diff --git a/.changesets/32ofn.minor.md b/.changesets/32ofn.minor.md deleted file mode 100644 index 4c0da49..0000000 --- a/.changesets/32ofn.minor.md +++ /dev/null @@ -1 +0,0 @@ -Feat: Add `SigningAlgorithm` interface diff --git a/.changesets/450g.major.md b/.changesets/450g.major.md deleted file mode 100644 index a18cb79..0000000 --- a/.changesets/450g.major.md +++ /dev/null @@ -1 +0,0 @@ -Breaking: Update `OAuth2RequestError` diff --git a/.changesets/a1o5w.minor.md b/.changesets/a1o5w.minor.md deleted file mode 100644 index 0b4e1b7..0000000 --- a/.changesets/a1o5w.minor.md +++ /dev/null @@ -1 +0,0 @@ -Feat: Add `createJWTHeader()` and `createJWTPayload()` diff --git a/.changesets/a8v49.minor.md b/.changesets/a8v49.minor.md deleted file mode 100644 index e77b943..0000000 --- a/.changesets/a8v49.minor.md +++ /dev/null @@ -1 +0,0 @@ -Feat: `sha1()`, `sha256()`, `sha384()`, and `sha512()` is synchronous diff --git a/.changesets/a9v5m.major.md b/.changesets/a9v5m.major.md deleted file mode 100644 index dcd8d15..0000000 --- a/.changesets/a9v5m.major.md +++ /dev/null @@ -1 +0,0 @@ -Breaking: Update `OAuth2Client` diff --git a/.changesets/anacy.minor.md b/.changesets/anacy.minor.md deleted file mode 100644 index df2d4a1..0000000 --- a/.changesets/anacy.minor.md +++ /dev/null @@ -1 +0,0 @@ -Feat: Add `TokenRevocationClient`, `TokenRevocationRetryError`, and `TokenRevocationRequestContext` diff --git a/.changesets/byh56.major.md b/.changesets/byh56.major.md deleted file mode 100644 index d5121dc..0000000 --- a/.changesets/byh56.major.md +++ /dev/null @@ -1 +0,0 @@ -Breaking: Remove `oslo/password` diff --git a/.changesets/eyjwv.major.md b/.changesets/eyjwv.major.md deleted file mode 100644 index 706b38f..0000000 --- a/.changesets/eyjwv.major.md +++ /dev/null @@ -1 +0,0 @@ -Breaking: Remove `oslo/request` diff --git a/.changesets/hitcz.major.md b/.changesets/hitcz.major.md deleted file mode 100644 index 4453752..0000000 --- a/.changesets/hitcz.major.md +++ /dev/null @@ -1 +0,0 @@ -Breaking: Update `createJWT()` and `validateJWT()` parameters diff --git a/.changesets/jvllp.major.md b/.changesets/jvllp.major.md deleted file mode 100644 index 7172527..0000000 --- a/.changesets/jvllp.major.md +++ /dev/null @@ -1 +0,0 @@ -Breaking: Replace `oslo/webauthn` with `oslo/passkey` diff --git a/.changesets/k0utl.major.md b/.changesets/k0utl.major.md deleted file mode 100644 index 8ea4a53..0000000 --- a/.changesets/k0utl.major.md +++ /dev/null @@ -1 +0,0 @@ -Breaking: Rename `createDate()` to `addToDate()` diff --git a/.changesets/mjf9y.minor.md b/.changesets/mjf9y.minor.md deleted file mode 100644 index 1cfca1b..0000000 --- a/.changesets/mjf9y.minor.md +++ /dev/null @@ -1 +0,0 @@ -Feat: Add `oslo/binary` diff --git a/.changesets/p2blk.major.md b/.changesets/p2blk.major.md deleted file mode 100644 index 1076d0a..0000000 --- a/.changesets/p2blk.major.md +++ /dev/null @@ -1 +0,0 @@ -Breaking: Remove `encodeBase32()`, `decodeBase32()`, `encodeBase64()`, `decodeBase64()`, `encodeBase64url()`, and `decodeBase64url()`, diff --git a/.changesets/t5acy.minor.md b/.changesets/t5acy.minor.md deleted file mode 100644 index cefea6a..0000000 --- a/.changesets/t5acy.minor.md +++ /dev/null @@ -1 +0,0 @@ -Feat: Add `OAuth2RequestError` \ No newline at end of file diff --git a/.changesets/u280g.major.md b/.changesets/u280g.major.md deleted file mode 100644 index c5e65cf..0000000 --- a/.changesets/u280g.major.md +++ /dev/null @@ -1 +0,0 @@ -Breaking: Functions only accept `Uint8Array` instead of `TypedArray | ArrayBuffer` diff --git a/.changesets/vjh9f.minor.md b/.changesets/vjh9f.minor.md deleted file mode 100644 index 06415ec..0000000 --- a/.changesets/vjh9f.minor.md +++ /dev/null @@ -1 +0,0 @@ -Feat: Add `OAuth2RequestContext`, `AccessTokenRequestContext`, `RefreshTokenRequestContext`, and `OAuth2Request` \ No newline at end of file diff --git a/.changesets/xiah5.minor.md b/.changesets/xiah5.minor.md deleted file mode 100644 index d12ae7b..0000000 --- a/.changesets/xiah5.minor.md +++ /dev/null @@ -1 +0,0 @@ -Feat: Add `generateRandomBoolean()` diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ed8ed9..e84b3c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,44 +1,26 @@ # oslo -## 1.2.0 - -### Minor changes - -- Feat: Add `codeChallengeMethod` option to `OAuth2Client.createAuthorizationURL()` ([#29](https://github.com/pilcrowOnPaper/oslo/pull/29)) - -## 1.1.3 - -### Patch changes - -- Update dependencies. ([#51](https://github.com/pilcrowOnPaper/oslo/pull/51)) - -## 1.1.2 - -### Patch changes - -- Export OAuth2 token response interface ([#45](https://github.com/pilcrowOnPaper/oslo/pull/45)) -- Fix client data JSON validation - -## 1.1.1 - -### Patch changes - -- Improve `base64.encode()` performance -- Improve `base32.encode()` performance. ([#40](https://github.com/pilcrowOnPaper/oslo/pull/40)) - -## 1.1.0 - -### Minor changes - -- Deprecate `encodeBase32()`, `decodeBase32()`, `encodeBase64`, `decodeBase64()`, `encodeBase64url()`, `decodeBase64url()`. ([#35](https://github.com/pilcrowOnPaper/oslo/pull/35)) -- Feat: Add `Base64Encoding`, `Base32Encoding`, `base16`, `base32`, `base32hex`, `base64`, `base64url`. ([#35](https://github.com/pilcrowOnPaper/oslo/pull/35)) - -## 1.0.4 - -### Patch changes - -- Fix: Export `TimeSpanUnit` ([#30](https://github.com/pilcrowOnPaper/oslo/pull/30)) - -## 1.0.3 - -- Pin `@node-rs/argon2` and `@node-rs/bcrypt` versions [#26](https://github.com/pilcrowOnPaper/oslo/pull/26) +## 2.0.0-next.0 + +## Major changes + +- Breaking: Update `OAuth2RequestError` +- Breaking: Update `OAuth2Client` +- Breaking: Remove `oslo/password` +- Breaking: Remove `oslo/request` +- Breaking: Update `createJWT()` and `validateJWT()` parameters +- Breaking: Replace `oslo/webauthn` with `oslo/passkey` +- Breaking: Rename `createDate()` to `addToDate()` +- Breaking: Remove `encodeBase32()`, `decodeBase32()`, `encodeBase64()`, `decodeBase64()`, `encodeBase64url()`, and `decodeBase64url()`, +- Breaking: Functions only accept `Uint8Array` instead of `TypedArray | ArrayBuffer` + +## Minor changes + +- Feat: Add `SigningAlgorithm` interface +- Feat: Add `createJWTHeader()` and `createJWTPayload()` +- Feat: `sha1()`, `sha256()`, `sha384()`, and `sha512()` is synchronous +- Feat: Add `TokenRevocationClient`, `TokenRevocationRetryError`, and `TokenRevocationRequestContext` +- Feat: Add `oslo/binary` +- Feat: Add `OAuth2RequestError` +- Feat: Add `OAuth2RequestContext`, `AccessTokenRequestContext`, `RefreshTokenRequestContext`, and `OAuth2Request` +- Feat: Add `generateRandomBoolean()` diff --git a/package.json b/package.json index 2fb98cd..2d851e0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "oslo", "type": "module", - "version": "1.2.0", + "version": "2.0.0-next.0", "description": "A collection of auth-related utilities", "main": "dist/index.js", "types": "dist/index.d.ts",