@@ -4,39 +4,16 @@ All notable changes to this project will be documented in this file. Dates are d
44
55Generated by [ ` auto-changelog ` ] ( https://github.com/CookPete/auto-changelog ) .
66
7- #### [ v1.0.0 ] ( https://github.com/opengovsg/sgid-client/compare/v0 .0.12 ...v1.0.0 )
7+ #### [ v1.0.1 ] ( https://github.com/opengovsg/sgid-client/compare/v1 .0.0 ...v1.0.1 )
88
9- ** BREAKING CHANGES **
9+ - fix: constructor optional types [ ` 073a814 ` ] ( https://github.com/opengovsg/sgid-client/commit/073a814fce5fa25c4d4683c701c7e6ab3d4dbbe2 )
1010
11- - ` SgidClient ` constructor now accepts optional ` hostname ` and ` apiVersion ` params instead of required ` endpoint ` param
11+ ### [ v1.0.0 ] ( https://github.com/opengovsg/sgid-client/compare/v0.0.12...v1.0.0 )
1212
13- Before:
13+ > 11 May 2022
1414
15- ``` typescript
16- endpoint : ' https://api.id.gov.sg/v1/oauth'
17- ```
18-
19- After:
20-
21- ``` typescript
22- hostname : ' https://api.id.gov.sg' , // default
23- apiVersion : 1 // default
24- ```
25-
26- - ` authorizationUrl ` and ` callback ` functions now accepts optional ` redirectUrl ` to override redirect url.
27- - Removal of the following functions: ` createJWT ` and ` verifyJWT ` . Import ` jsonwebtoken ` directly if you require them.
28- - ` decodeIdToken ` and ` getRedirectUri ` are now private functions
29-
30- ##### Other changes
31-
32- - Replaced ` node-jose ` library with ` jose ` for better performance.
33- Ref: https://github.com/panva/jose#how-is-it-different-from-node-jose
34-
35- ##### Commits
36-
37- - chore: migrate to jose, update implementation [ ` d29ca28 ` ] ( https://github.com/opengovsg/sgid-client/commit/d29ca28671bcb256981b4c187cb20941fc83f7b5 )
38- - chore: allow backward compatibility with pkcs1 keys [ ` efb9bb3 ` ] ( https://github.com/opengovsg/sgid-client/commit/efb9bb3b0c533140f5243a457f24698b249b1f8f )
39- - doc: update readme [ ` 8051d29 ` ] ( https://github.com/opengovsg/sgid-client/commit/8051d29c6861a802b1a80c7a8f7168b1f7331bd0 )
15+ - Version 1.0.0 [ ` #6 ` ] ( https://github.com/opengovsg/sgid-client/pull/6 )
16+ - chore: npm audit fix [ ` 03b42cc ` ] ( https://github.com/opengovsg/sgid-client/commit/03b42cc6e2e9fd6fad71d22d48aa00e4c0a92147 )
4017
4118#### [ v0.0.12] ( https://github.com/opengovsg/sgid-client/compare/v0.0.11...v0.0.12 )
4219
0 commit comments