11# Change Log
2+
23All notable changes to this project will be documented in this file.
34
5+ ## [ 4.0.1]
6+
7+ ### Changed
8+
9+ - Fix advisory GHSA-869p -cjfg-cm3x: createSign and createVerify now require
10+ that a non empty secret is provided (via opts.secret, opts.privateKey or opts.key)
11+ when using HMAC algorithms.
12+ - Upgrading JWA version to 2.0.1, adressing a compatibility issue for Node >= 25.
13+
14+ ## [ 3.2.3]
15+
16+ ### Changed
17+
18+ - Fix advisory GHSA-869p -cjfg-cm3x: createSign and createVerify now require
19+ that a non empty secret is provided (via opts.secret, opts.privateKey or opts.key)
20+ when using HMAC algorithms.
21+ - Upgrading JWA version to 1.4.2, adressing a compatibility issue for Node >= 25.
22+
423## [ 3.0.0]
24+
525### Changed
26+
627- ** BREAKING** : ` jwt.verify ` now requires an ` algorithm ` parameter, and
728 ` jws.createVerify ` requires an ` algorithm ` option. The ` "alg" ` field
829 signature headers is ignored. This mitigates a critical security flaw
@@ -12,7 +33,9 @@ All notable changes to this project will be documented in this file.
1233 for details.
1334
1435## [ 2.0.0] - 2015-01-30
36+
1537### Changed
38+
1639- ** BREAKING** : Default payload encoding changed from ` binary ` to
1740 ` utf8 ` . ` utf8 ` is a is a more sensible default than ` binary ` because
1841 many payloads, as far as I can tell, will contain user-facing
@@ -21,14 +44,13 @@ All notable changes to this project will be documented in this file.
2144- Code reorganization, thanks [ @fearphage ] ! (<code >[ 7880050] </code >)
2245
2346### Added
47+
2448- Option in all relevant methods for ` encoding ` . For those few users
2549 that might be depending on a ` binary ` encoding of the messages, this
2650 is for them. (<code >[ 6b6de48] </code >)
2751
2852[ unreleased ] : https://github.com/brianloveswords/node-jws/compare/v2.0.0...HEAD
2953[ 2.0.0 ] : https://github.com/brianloveswords/node-jws/compare/v1.0.1...v2.0.0
30-
3154[ 7880050 ] : https://github.com/brianloveswords/node-jws/commit/7880050
3255[ 6b6de48 ] : https://github.com/brianloveswords/node-jws/commit/6b6de48
33-
3456[ @fearphage ] : https://github.com/fearphage
0 commit comments