Skip to content

Commit 49bc39b

Browse files
committed
version 4.0.1
1 parent d42350c commit 49bc39b

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
/test/keys
33
/test/*.pem
44
/test/encrypted-key-passphrase
5+
package-lock.json

CHANGELOG.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
11
# Change Log
2+
23
All 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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jws",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"description": "Implementation of JSON Web Signatures",
55
"main": "index.js",
66
"directories": {
@@ -24,7 +24,7 @@
2424
"readmeFilename": "readme.md",
2525
"gitHead": "c0f6b27bcea5a2ad2e304d91c2e842e4076a6b03",
2626
"dependencies": {
27-
"jwa": "^2.0.0",
27+
"jwa": "^2.0.1",
2828
"safe-buffer": "^5.0.1"
2929
},
3030
"devDependencies": {

0 commit comments

Comments
 (0)