From 7c73baa24ae2e7e6cb2494e1a9a25320ac3386b2 Mon Sep 17 00:00:00 2001 From: AsakuraMizu Date: Thu, 4 Jul 2024 17:21:27 +0800 Subject: [PATCH] bump to v3.2.1 --- README.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7538839..40766f6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index cdec490..9a6e418 100644 --- a/package.json +++ b/package.json @@ -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",