Skip to content

Commit e939e79

Browse files
committed
1.0.1
1 parent 073a814 commit e939e79

File tree

3 files changed

+9
-32
lines changed

3 files changed

+9
-32
lines changed

CHANGELOG.md

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,16 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated 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

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opengovsg/sgid-client",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "The official TypeScript/JavaScript SDK for sgID",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)