Skip to content

Commit

Permalink
bump to v3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AsakuraMizu committed Jul 4, 2024
1 parent 0641515 commit 7c73baa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ It's ok if you meet `Timeout * Async callback was not invoked within the 5000ms

## Changelog

- v3.2.1
- Upgrade to eslint v9
- Add `setCSRFToken` function to manually reuse previous (maybe valid) token and prevent unnecessary re-login (see [#49](https://github.com/Harry-Chen/thu-learn-lib/issues/49))
*Note:* To use this feature in Node.js, `cookieJar` should also be reused, otherwise it will not work. (not the case in browser env)
- Fix `CourseContent` type: default value for type param `T` (breaking change introduced in [#53](https://github.com/Harry-Chen/thu-learn-lib/issues/53))
- *(Breaking...?)* Rename `File.id2` added in previous version to actual `id` and previously used `id` to `fileId` (see [#60](https://github.com/Harry-Chen/thu-learn-lib/issues/60))
- Upgrade dependencies
- v3.2.0
- Support file categories (see [#57](https://github.com/Harry-Chen/thu-learn-lib/issues/57)):
- Add `FileCategory` type and optional `category` field in `File` type
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thu-learn-lib",
"version": "3.2.0",
"version": "3.2.1",
"description": "a JavaScript library to provide a program-friendly interface to Web Learning (2018) of Tsinghua University",
"type": "module",
"module": "lib/index.js",
Expand Down

0 comments on commit 7c73baa

Please sign in to comment.