diff --git a/packages/libs/escape-markdown/CHANGELOG.md b/packages/libs/escape-markdown/CHANGELOG.md index db12519dd..996471f4b 100644 --- a/packages/libs/escape-markdown/CHANGELOG.md +++ b/packages/libs/escape-markdown/CHANGELOG.md @@ -2,6 +2,8 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [0.1.1](https://github.com/descope/descope-js/compare/escape-markdown-0.1.0...escape-markdown-0.1.1) (2024-11-14) + ## [0.1.0](https://github.com/descope/descope-js/compare/escape-markdown-0.0.2...escape-markdown-0.1.0) (2024-11-13) diff --git a/packages/libs/escape-markdown/package.json b/packages/libs/escape-markdown/package.json index a68b2bbfc..73406625f 100644 --- a/packages/libs/escape-markdown/package.json +++ b/packages/libs/escape-markdown/package.json @@ -1,6 +1,6 @@ { "name": "@descope/escape-markdown", - "version": "0.1.0", + "version": "0.1.1", "author": "Descope Team ", "homepage": "https://github.com/descope/descope-js", "bugs": { diff --git a/packages/libs/escape-markdown/project.json b/packages/libs/escape-markdown/project.json index 14bba05dc..c64cdf2eb 100644 --- a/packages/libs/escape-markdown/project.json +++ b/packages/libs/escape-markdown/project.json @@ -13,13 +13,11 @@ } }, "licenseCheck": { - "executor": "nx:run-commands", - "options": { - "commands": [ - "exit 0" - ] - } - } + "executor": "nx:run-commands", + "options": { + "commands": ["exit 0"] + } + } }, "tags": [] } diff --git a/packages/sdks/angular-sdk/CHANGELOG.md b/packages/sdks/angular-sdk/CHANGELOG.md index d5bbdd998..956721c03 100644 --- a/packages/sdks/angular-sdk/CHANGELOG.md +++ b/packages/sdks/angular-sdk/CHANGELOG.md @@ -2,6 +2,37 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [0.7.3](https://github.com/descope/descope-js/compare/angular-sdk-0.7.2...angular-sdk-0.7.3) (2024-11-16) + +### Dependency Updates + +* `access-key-management-widget` updated to version `0.2.3` +* `audit-management-widget` updated to version `0.2.3` +* `role-management-widget` updated to version `0.2.3` +* `user-management-widget` updated to version `0.5.3` +* `user-profile-widget` updated to version `0.1.3` +* `applications-portal-widget` updated to version `0.2.3` +* `web-component` updated to version `3.29.3` +* `web-js-sdk` updated to version `1.20.2` +* `core-js-sdk` updated to version `2.31.0` +## [0.7.2](https://github.com/descope/descope-js/compare/angular-sdk-0.7.1...angular-sdk-0.7.2) (2024-11-14) + +### Dependency Updates + +* `access-key-management-widget` updated to version `0.2.2` +* `audit-management-widget` updated to version `0.2.2` +* `role-management-widget` updated to version `0.2.2` +* `user-management-widget` updated to version `0.5.2` +* `user-profile-widget` updated to version `0.1.2` +* `applications-portal-widget` updated to version `0.2.2` +* `web-component` updated to version `3.29.2` +* `web-js-sdk` updated to version `1.20.1` +* `core-js-sdk` updated to version `2.30.1` + +### Bug Fixes + +* expose restartOnError on all sdks ([#838](https://github.com/descope/descope-js/issues/838)) ([dd20924](https://github.com/descope/descope-js/commit/dd20924dfd02345eae2972d5154b9be8a209a906)) + ## [0.7.1](https://github.com/descope/descope-js/compare/angular-sdk-0.7.0...angular-sdk-0.7.1) (2024-11-13) ### Dependency Updates diff --git a/packages/sdks/angular-sdk/package.json b/packages/sdks/angular-sdk/package.json index 59f975847..6a072c8c6 100644 --- a/packages/sdks/angular-sdk/package.json +++ b/packages/sdks/angular-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@descope/angular-sdk", - "version": "0.7.1", + "version": "0.7.3", "peerDependencies": { "@angular/common": ">=16.0.0", "@angular/core": ">=16.0.0" diff --git a/packages/sdks/core-js-sdk/CHANGELOG.md b/packages/sdks/core-js-sdk/CHANGELOG.md index c9aae39bc..b353b791e 100644 --- a/packages/sdks/core-js-sdk/CHANGELOG.md +++ b/packages/sdks/core-js-sdk/CHANGELOG.md @@ -2,6 +2,15 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [2.31.0](https://github.com/descope/descope-js/compare/core-js-sdk-2.30.1...core-js-sdk-2.31.0) (2024-11-16) + + +### Features + +* Add the revokeOtherSessions attribute in LoginOptions RELEASE ([#848](https://github.com/descope/descope-js/issues/848)) ([fca695f](https://github.com/descope/descope-js/commit/fca695fa4ab079791c969590694912a5b2daf74f)) + +## [2.30.1](https://github.com/descope/descope-js/compare/core-js-sdk-2.30.0...core-js-sdk-2.30.1) (2024-11-14) + ## [2.30.0](https://github.com/descope/descope-js/compare/core-js-sdk-2.29.1...core-js-sdk-2.30.0) (2024-11-13) diff --git a/packages/sdks/core-js-sdk/package.json b/packages/sdks/core-js-sdk/package.json index 13ee4aa32..e192cdc89 100644 --- a/packages/sdks/core-js-sdk/package.json +++ b/packages/sdks/core-js-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@descope/core-js-sdk", - "version": "2.30.0", + "version": "2.31.0", "author": "Descope Team ", "homepage": "https://github.com/descope/descope-js", "bugs": { diff --git a/packages/sdks/core-js-sdk/src/constants/apiPaths.ts b/packages/sdks/core-js-sdk/src/constants/apiPaths.ts index bd620ac38..73b6fa300 100644 --- a/packages/sdks/core-js-sdk/src/constants/apiPaths.ts +++ b/packages/sdks/core-js-sdk/src/constants/apiPaths.ts @@ -83,7 +83,6 @@ export default { selectTenant: '/v1/auth/tenant/select', logout: '/v1/auth/logout', logoutAll: '/v1/auth/logoutall', - logoutPrevious: '/v1/auth/logoutprevious', me: '/v1/auth/me', myTenants: '/v1/auth/me/tenants', history: '/v1/auth/me/history', diff --git a/packages/sdks/core-js-sdk/src/sdk/flow/types.ts b/packages/sdks/core-js-sdk/src/sdk/flow/types.ts index 01792361b..0443ec827 100644 --- a/packages/sdks/core-js-sdk/src/sdk/flow/types.ts +++ b/packages/sdks/core-js-sdk/src/sdk/flow/types.ts @@ -5,4 +5,4 @@ type JSONSerializable = | null | Array; - export type FlowInput = Record; +export type FlowInput = Record; diff --git a/packages/sdks/core-js-sdk/src/sdk/index.ts b/packages/sdks/core-js-sdk/src/sdk/index.ts index 827f376ec..80ef9fb52 100644 --- a/packages/sdks/core-js-sdk/src/sdk/index.ts +++ b/packages/sdks/core-js-sdk/src/sdk/index.ts @@ -97,15 +97,6 @@ export default (httpClient: HttpClient) => ({ httpClient.post(apiPaths.logoutAll, {}, { token }), ), ), - /** - * Logs out all previous sessions for the current user - * @param token A valid refresh token - */ - logoutPrevious: withOptionalTokenValidations((token?: string) => - transformResponse( - httpClient.post(apiPaths.logoutPrevious, {}, { token }), - ), - ), /** * Returns the current user details * @param token A valid refresh token diff --git a/packages/sdks/core-js-sdk/src/sdk/types.ts b/packages/sdks/core-js-sdk/src/sdk/types.ts index 9a51fa0ae..ad2bf748e 100644 --- a/packages/sdks/core-js-sdk/src/sdk/types.ts +++ b/packages/sdks/core-js-sdk/src/sdk/types.ts @@ -103,6 +103,7 @@ export type TemplateOptions = Record; // for providing messaging export type LoginOptions = { stepup?: boolean; mfa?: boolean; + revokeOtherSessions?: boolean; customClaims?: Record; templateId?: string; templateOptions?: TemplateOptions; diff --git a/packages/sdks/core-js-sdk/test/sdk/otp.test.ts b/packages/sdks/core-js-sdk/test/sdk/otp.test.ts index be1aa3f17..648c549fc 100644 --- a/packages/sdks/core-js-sdk/test/sdk/otp.test.ts +++ b/packages/sdks/core-js-sdk/test/sdk/otp.test.ts @@ -163,6 +163,7 @@ describe('otp', () => { it('should send the correct request with sign up options', () => { sdk.otp.signUpOrIn.email('loginId', { templateId: 'foo', + revokeOtherSessions: true, templateOptions: { ble: 'blue', }, @@ -173,6 +174,7 @@ describe('otp', () => { loginId: 'loginId', loginOptions: { templateId: 'foo', + revokeOtherSessions: true, templateOptions: { ble: 'blue', }, diff --git a/packages/sdks/core-js-sdk/test/sdk/sdk.test.ts b/packages/sdks/core-js-sdk/test/sdk/sdk.test.ts index b0c98e47c..e085d0022 100644 --- a/packages/sdks/core-js-sdk/test/sdk/sdk.test.ts +++ b/packages/sdks/core-js-sdk/test/sdk/sdk.test.ts @@ -222,33 +222,6 @@ describe('sdk', () => { }); }); - describe('logoutPrevious', () => { - it('should throw an error when token is not a string', () => { - expect(() => sdk.logoutPrevious({ a: 'b' })).toThrow( - '"token" must be string or undefined', - ); - }); - it('should send the correct request', () => { - const httpRespJson = { key: 'val' }; - const httpResponse = { - ok: true, - json: () => httpRespJson, - clone: () => ({ - json: () => Promise.resolve(httpRespJson), - }), - status: 200, - }; - mockHttpClient.post.mockResolvedValue(httpResponse); - - sdk.logoutPrevious('token'); - expect(mockHttpClient.post).toHaveBeenCalledWith( - apiPaths.logoutPrevious, - {}, - { token: 'token' }, - ); - }); - }); - describe('me', () => { it('should throw an error when token is not a string', () => { expect(() => sdk.me({ a: 'b' })).toThrow( diff --git a/packages/sdks/nextjs-sdk/CHANGELOG.md b/packages/sdks/nextjs-sdk/CHANGELOG.md index d570dc214..9f23d73c5 100644 --- a/packages/sdks/nextjs-sdk/CHANGELOG.md +++ b/packages/sdks/nextjs-sdk/CHANGELOG.md @@ -2,6 +2,22 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [0.3.10](https://github.com/descope/descope-js/compare/nextjs-sdk-0.3.9...nextjs-sdk-0.3.10) (2024-11-16) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.2` +* `react-sdk` updated to version `2.3.2` +* `core-js-sdk` updated to version `2.31.0` +* `web-component` updated to version `3.29.3` +## [0.3.9](https://github.com/descope/descope-js/compare/nextjs-sdk-0.3.8...nextjs-sdk-0.3.9) (2024-11-14) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.1` +* `react-sdk` updated to version `2.3.1` +* `core-js-sdk` updated to version `2.30.1` +* `web-component` updated to version `3.29.2` ## [0.3.8](https://github.com/descope/descope-js/compare/nextjs-sdk-0.3.7...nextjs-sdk-0.3.8) (2024-11-13) ### Dependency Updates diff --git a/packages/sdks/nextjs-sdk/package.json b/packages/sdks/nextjs-sdk/package.json index 677dbc2c5..0c40c36fc 100644 --- a/packages/sdks/nextjs-sdk/package.json +++ b/packages/sdks/nextjs-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@descope/nextjs-sdk", - "version": "0.3.8", + "version": "0.3.10", "description": "Descope NextJS SDK", "author": "Descope Team ", "homepage": "https://github.com/descope/descope-js", diff --git a/packages/sdks/react-sdk/CHANGELOG.md b/packages/sdks/react-sdk/CHANGELOG.md index 5177808c0..34843766e 100644 --- a/packages/sdks/react-sdk/CHANGELOG.md +++ b/packages/sdks/react-sdk/CHANGELOG.md @@ -2,6 +2,37 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [2.3.2](https://github.com/descope/descope-js/compare/react-sdk-2.3.1...react-sdk-2.3.2) (2024-11-16) + +### Dependency Updates + +* `access-key-management-widget` updated to version `0.2.3` +* `audit-management-widget` updated to version `0.2.3` +* `role-management-widget` updated to version `0.2.3` +* `user-management-widget` updated to version `0.5.3` +* `user-profile-widget` updated to version `0.1.3` +* `applications-portal-widget` updated to version `0.2.3` +* `web-component` updated to version `3.29.3` +* `web-js-sdk` updated to version `1.20.2` +* `core-js-sdk` updated to version `2.31.0` +## [2.3.1](https://github.com/descope/descope-js/compare/react-sdk-2.3.0...react-sdk-2.3.1) (2024-11-14) + +### Dependency Updates + +* `access-key-management-widget` updated to version `0.2.2` +* `audit-management-widget` updated to version `0.2.2` +* `role-management-widget` updated to version `0.2.2` +* `user-management-widget` updated to version `0.5.2` +* `user-profile-widget` updated to version `0.1.2` +* `applications-portal-widget` updated to version `0.2.2` +* `web-component` updated to version `3.29.2` +* `web-js-sdk` updated to version `1.20.1` +* `core-js-sdk` updated to version `2.30.1` + +### Bug Fixes + +* expose restartOnError on all sdks ([#838](https://github.com/descope/descope-js/issues/838)) ([dd20924](https://github.com/descope/descope-js/commit/dd20924dfd02345eae2972d5154b9be8a209a906)) + ## [2.3.0](https://github.com/descope/descope-js/compare/react-sdk-2.2.0...react-sdk-2.3.0) (2024-11-13) ### Dependency Updates diff --git a/packages/sdks/react-sdk/package.json b/packages/sdks/react-sdk/package.json index 80d8cb8cd..18c876c5d 100644 --- a/packages/sdks/react-sdk/package.json +++ b/packages/sdks/react-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@descope/react-sdk", - "version": "2.3.0", + "version": "2.3.2", "description": "Descope React SDK", "author": "Descope Team ", "homepage": "https://github.com/descope/descope-js", diff --git a/packages/sdks/react-sdk/test/hooks/useAuth.test.tsx b/packages/sdks/react-sdk/test/hooks/useAuth.test.tsx index f3590fbf7..248d9601a 100644 --- a/packages/sdks/react-sdk/test/hooks/useAuth.test.tsx +++ b/packages/sdks/react-sdk/test/hooks/useAuth.test.tsx @@ -15,7 +15,6 @@ jest.mock('@descope/web-js-sdk', () => { const sdk = { logout: jest.fn().mockName('logout'), logoutAll: jest.fn().mockName('logoutAll'), - logoutPrevious: jest.fn().mockName('logoutPrevious'), otp: { signIn: { email: jest.fn().mockName('otp.signIn.email'), @@ -65,7 +64,7 @@ describe('hooks', () => { ); }); - it.each(['logoutAll', 'logoutPrevious', 'logout', 'otp.signIn.email'])( + it.each(['logoutAll', 'logout', 'otp.signIn.email'])( 'should throw error when using sdk function before sdk initialization - %s', (fnName) => { const { result } = renderHook(() => useDescope(), { diff --git a/packages/sdks/vue-sdk/CHANGELOG.md b/packages/sdks/vue-sdk/CHANGELOG.md index 26dfcf1cb..c687ccbfb 100644 --- a/packages/sdks/vue-sdk/CHANGELOG.md +++ b/packages/sdks/vue-sdk/CHANGELOG.md @@ -2,6 +2,37 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [2.2.3](https://github.com/descope/descope-js/compare/vue-sdk-2.2.2...vue-sdk-2.2.3) (2024-11-16) + +### Dependency Updates + +* `access-key-management-widget` updated to version `0.2.3` +* `audit-management-widget` updated to version `0.2.3` +* `role-management-widget` updated to version `0.2.3` +* `user-management-widget` updated to version `0.5.3` +* `user-profile-widget` updated to version `0.1.3` +* `applications-portal-widget` updated to version `0.2.3` +* `web-component` updated to version `3.29.3` +* `web-js-sdk` updated to version `1.20.2` +* `core-js-sdk` updated to version `2.31.0` +## [2.2.2](https://github.com/descope/descope-js/compare/vue-sdk-2.2.1...vue-sdk-2.2.2) (2024-11-14) + +### Dependency Updates + +* `access-key-management-widget` updated to version `0.2.2` +* `audit-management-widget` updated to version `0.2.2` +* `role-management-widget` updated to version `0.2.2` +* `user-management-widget` updated to version `0.5.2` +* `user-profile-widget` updated to version `0.1.2` +* `applications-portal-widget` updated to version `0.2.2` +* `web-component` updated to version `3.29.2` +* `web-js-sdk` updated to version `1.20.1` +* `core-js-sdk` updated to version `2.30.1` + +### Bug Fixes + +* expose restartOnError on all sdks ([#838](https://github.com/descope/descope-js/issues/838)) ([dd20924](https://github.com/descope/descope-js/commit/dd20924dfd02345eae2972d5154b9be8a209a906)) + ## [2.2.1](https://github.com/descope/descope-js/compare/vue-sdk-2.2.0...vue-sdk-2.2.1) (2024-11-13) ### Dependency Updates diff --git a/packages/sdks/vue-sdk/package.json b/packages/sdks/vue-sdk/package.json index 831086445..e10302269 100644 --- a/packages/sdks/vue-sdk/package.json +++ b/packages/sdks/vue-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@descope/vue-sdk", - "version": "2.2.1", + "version": "2.2.3", "main": "dist/index.cjs", "module": "dist/index.mjs", "type": "module", diff --git a/packages/sdks/web-component/CHANGELOG.md b/packages/sdks/web-component/CHANGELOG.md index be813ecb1..4860d1aab 100644 --- a/packages/sdks/web-component/CHANGELOG.md +++ b/packages/sdks/web-component/CHANGELOG.md @@ -2,6 +2,22 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [3.29.3](https://github.com/descope/descope-js/compare/web-component-3.29.2...web-component-3.29.3) (2024-11-16) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.2` +## [3.29.2](https://github.com/descope/descope-js/compare/web-component-3.29.1...web-component-3.29.2) (2024-11-14) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.1` +* `escape-markdown` updated to version `0.1.1` + +### Bug Fixes + +* expose restartOnError on all sdks ([#838](https://github.com/descope/descope-js/issues/838)) ([dd20924](https://github.com/descope/descope-js/commit/dd20924dfd02345eae2972d5154b9be8a209a906)) + ## [3.29.1](https://github.com/descope/descope-js/compare/web-component-3.29.0...web-component-3.29.1) (2024-11-13) ### Dependency Updates diff --git a/packages/sdks/web-component/package.json b/packages/sdks/web-component/package.json index 211b9fe6f..639dde386 100644 --- a/packages/sdks/web-component/package.json +++ b/packages/sdks/web-component/package.json @@ -1,6 +1,6 @@ { "name": "@descope/web-component", - "version": "3.29.1", + "version": "3.29.3", "author": "Descope Team ", "homepage": "https://github.com/descope/descope-js", "bugs": { diff --git a/packages/sdks/web-js-sdk/CHANGELOG.md b/packages/sdks/web-js-sdk/CHANGELOG.md index f92372c69..f842d5501 100644 --- a/packages/sdks/web-js-sdk/CHANGELOG.md +++ b/packages/sdks/web-js-sdk/CHANGELOG.md @@ -2,6 +2,16 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [1.20.2](https://github.com/descope/descope-js/compare/web-js-sdk-1.20.1...web-js-sdk-1.20.2) (2024-11-16) + +### Dependency Updates + +* `core-js-sdk` updated to version `2.31.0` +## [1.20.1](https://github.com/descope/descope-js/compare/web-js-sdk-1.20.0...web-js-sdk-1.20.1) (2024-11-14) + +### Dependency Updates + +* `core-js-sdk` updated to version `2.30.1` ## [1.20.0](https://github.com/descope/descope-js/compare/web-js-sdk-1.19.2...web-js-sdk-1.20.0) (2024-11-13) ### Dependency Updates diff --git a/packages/sdks/web-js-sdk/package.json b/packages/sdks/web-js-sdk/package.json index c7c6f887d..ccb3bb372 100644 --- a/packages/sdks/web-js-sdk/package.json +++ b/packages/sdks/web-js-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@descope/web-js-sdk", - "version": "1.20.0", + "version": "1.20.2", "author": "Descope Team ", "homepage": "https://github.com/descope/descope-js", "bugs": { diff --git a/packages/sdks/web-js-sdk/src/enhancers/withAutoRefresh/index.ts b/packages/sdks/web-js-sdk/src/enhancers/withAutoRefresh/index.ts index 3025e5344..ae5196787 100644 --- a/packages/sdks/web-js-sdk/src/enhancers/withAutoRefresh/index.ts +++ b/packages/sdks/web-js-sdk/src/enhancers/withAutoRefresh/index.ts @@ -102,5 +102,5 @@ export const withAutoRefresh = return resp; }; - return wrapWith(sdk, ['logout', 'logoutAll', 'logoutPrevious'], wrapper); + return wrapWith(sdk, ['logout', 'logoutAll'], wrapper); }; diff --git a/packages/sdks/web-js-sdk/src/enhancers/withLastLoggedInUser/index.ts b/packages/sdks/web-js-sdk/src/enhancers/withLastLoggedInUser/index.ts index ba8a716a6..dfec08167 100644 --- a/packages/sdks/web-js-sdk/src/enhancers/withLastLoggedInUser/index.ts +++ b/packages/sdks/web-js-sdk/src/enhancers/withLastLoggedInUser/index.ts @@ -49,7 +49,7 @@ export const withLastLoggedInUser = let wrappedSdk = wrapWith(sdk, ['flow.start'], startWrapper); wrappedSdk = wrapWith( wrappedSdk, - ['logout', 'logoutAll', 'logoutPrevious'], + ['logout', 'logoutAll'], logoutWrapper(keepLastAuthenticatedUserAfterLogout), ); return Object.assign(wrappedSdk, { diff --git a/packages/sdks/web-js-sdk/src/enhancers/withNotifications/index.ts b/packages/sdks/web-js-sdk/src/enhancers/withNotifications/index.ts index a549848b3..0f0945b29 100644 --- a/packages/sdks/web-js-sdk/src/enhancers/withNotifications/index.ts +++ b/packages/sdks/web-js-sdk/src/enhancers/withNotifications/index.ts @@ -45,11 +45,7 @@ export const withNotifications = return resp; }; - const wrappedSdk = wrapWith( - sdk, - ['logout', 'logoutAll', 'logoutPrevious'], - wrapper, - ); + const wrappedSdk = wrapWith(sdk, ['logout', 'logoutAll'], wrapper); return Object.assign(wrappedSdk, { onSessionTokenChange: sessionPS.sub, diff --git a/packages/sdks/web-js-sdk/src/enhancers/withPersistTokens/index.ts b/packages/sdks/web-js-sdk/src/enhancers/withPersistTokens/index.ts index 588d1e7a7..82b497265 100644 --- a/packages/sdks/web-js-sdk/src/enhancers/withPersistTokens/index.ts +++ b/packages/sdks/web-js-sdk/src/enhancers/withPersistTokens/index.ts @@ -62,7 +62,7 @@ export const withPersistTokens = const wrappedSdk = wrapWith( sdk, - ['logout', 'logoutAll', 'logoutPrevious'], + ['logout', 'logoutAll'], wrapper(storagePrefix), ); diff --git a/packages/sdks/web-js-sdk/test/persistTokens.test.ts b/packages/sdks/web-js-sdk/test/persistTokens.test.ts index 7076af125..b3c8272aa 100644 --- a/packages/sdks/web-js-sdk/test/persistTokens.test.ts +++ b/packages/sdks/web-js-sdk/test/persistTokens.test.ts @@ -275,19 +275,6 @@ describe('persistTokens', () => { expect(removeMock).toBeCalledWith('DS'); }); - it('should clear tokens on logoutPrevious even when not passing refresh token', async () => { - localStorage.setItem('DSR', authInfo.refreshJwt); - const mockFetch = jest.fn().mockReturnValue(createMockReturnValue({})); - global.fetch = mockFetch; - - const sdk = createSdk({ projectId: 'pid', persistTokens: true }); - await sdk.logoutPrevious(); - - expect(localStorage.getItem('DSR')).toBeFalsy(); - const removeMock = Cookies.remove as jest.Mock; - expect(removeMock).toBeCalledWith('DS'); - }); - it('should not log a warning when not running in the browser', () => { const warnSpy = jest.spyOn(console, 'warn'); diff --git a/packages/widgets/access-key-management-widget/CHANGELOG.md b/packages/widgets/access-key-management-widget/CHANGELOG.md index 1d3c5a3a7..22a968d31 100644 --- a/packages/widgets/access-key-management-widget/CHANGELOG.md +++ b/packages/widgets/access-key-management-widget/CHANGELOG.md @@ -2,6 +2,16 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [0.2.3](https://github.com/descope/descope-js/compare/access-key-management-widget-0.2.2...access-key-management-widget-0.2.3) (2024-11-16) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.2` +## [0.2.2](https://github.com/descope/descope-js/compare/access-key-management-widget-0.2.1...access-key-management-widget-0.2.2) (2024-11-14) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.1` ## [0.2.1](https://github.com/descope/descope-js/compare/access-key-management-widget-0.2.0...access-key-management-widget-0.2.1) (2024-11-13) ### Dependency Updates diff --git a/packages/widgets/access-key-management-widget/package.json b/packages/widgets/access-key-management-widget/package.json index 14e5a575a..85e3b5b25 100644 --- a/packages/widgets/access-key-management-widget/package.json +++ b/packages/widgets/access-key-management-widget/package.json @@ -1,6 +1,6 @@ { "name": "@descope/access-key-management-widget", - "version": "0.2.1", + "version": "0.2.3", "author": "Descope Team ", "homepage": "https://github.com/descope/descope-js", "bugs": { diff --git a/packages/widgets/applications-portal-widget/CHANGELOG.md b/packages/widgets/applications-portal-widget/CHANGELOG.md index d64ba7d18..b63684bf3 100644 --- a/packages/widgets/applications-portal-widget/CHANGELOG.md +++ b/packages/widgets/applications-portal-widget/CHANGELOG.md @@ -2,6 +2,16 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [0.2.3](https://github.com/descope/descope-js/compare/applications-portal-widget-0.2.2...applications-portal-widget-0.2.3) (2024-11-16) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.2` +## [0.2.2](https://github.com/descope/descope-js/compare/applications-portal-widget-0.2.1...applications-portal-widget-0.2.2) (2024-11-14) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.1` ## [0.2.1](https://github.com/descope/descope-js/compare/applications-portal-widget-0.2.0...applications-portal-widget-0.2.1) (2024-11-13) ### Dependency Updates diff --git a/packages/widgets/applications-portal-widget/package.json b/packages/widgets/applications-portal-widget/package.json index 4a88c7cda..94ca03f4d 100644 --- a/packages/widgets/applications-portal-widget/package.json +++ b/packages/widgets/applications-portal-widget/package.json @@ -1,6 +1,6 @@ { "name": "@descope/applications-portal-widget", - "version": "0.2.1", + "version": "0.2.3", "author": "Descope Team ", "homepage": "https://github.com/descope/descope-js", "bugs": { diff --git a/packages/widgets/audit-management-widget/CHANGELOG.md b/packages/widgets/audit-management-widget/CHANGELOG.md index 44de09bd3..c65b20255 100644 --- a/packages/widgets/audit-management-widget/CHANGELOG.md +++ b/packages/widgets/audit-management-widget/CHANGELOG.md @@ -2,6 +2,16 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [0.2.3](https://github.com/descope/descope-js/compare/audit-management-widget-0.2.2...audit-management-widget-0.2.3) (2024-11-16) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.2` +## [0.2.2](https://github.com/descope/descope-js/compare/audit-management-widget-0.2.1...audit-management-widget-0.2.2) (2024-11-14) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.1` ## [0.2.1](https://github.com/descope/descope-js/compare/audit-management-widget-0.2.0...audit-management-widget-0.2.1) (2024-11-13) ### Dependency Updates diff --git a/packages/widgets/audit-management-widget/package.json b/packages/widgets/audit-management-widget/package.json index 02bcebc76..4b94e0dad 100644 --- a/packages/widgets/audit-management-widget/package.json +++ b/packages/widgets/audit-management-widget/package.json @@ -1,6 +1,6 @@ { "name": "@descope/audit-management-widget", - "version": "0.2.1", + "version": "0.2.3", "author": "Descope Team ", "homepage": "https://github.com/descope/descope-js", "bugs": { diff --git a/packages/widgets/role-management-widget/CHANGELOG.md b/packages/widgets/role-management-widget/CHANGELOG.md index 127bad265..528cc266f 100644 --- a/packages/widgets/role-management-widget/CHANGELOG.md +++ b/packages/widgets/role-management-widget/CHANGELOG.md @@ -2,6 +2,16 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [0.2.3](https://github.com/descope/descope-js/compare/role-management-widget-0.2.2...role-management-widget-0.2.3) (2024-11-16) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.2` +## [0.2.2](https://github.com/descope/descope-js/compare/role-management-widget-0.2.1...role-management-widget-0.2.2) (2024-11-14) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.1` ## [0.2.1](https://github.com/descope/descope-js/compare/role-management-widget-0.2.0...role-management-widget-0.2.1) (2024-11-13) ### Dependency Updates diff --git a/packages/widgets/role-management-widget/package.json b/packages/widgets/role-management-widget/package.json index f08200a00..a12f5f02b 100644 --- a/packages/widgets/role-management-widget/package.json +++ b/packages/widgets/role-management-widget/package.json @@ -1,6 +1,6 @@ { "name": "@descope/role-management-widget", - "version": "0.2.1", + "version": "0.2.3", "author": "Descope Team ", "homepage": "https://github.com/descope/descope-js", "bugs": { diff --git a/packages/widgets/user-management-widget/CHANGELOG.md b/packages/widgets/user-management-widget/CHANGELOG.md index bb4ea4c74..9a716ff29 100644 --- a/packages/widgets/user-management-widget/CHANGELOG.md +++ b/packages/widgets/user-management-widget/CHANGELOG.md @@ -2,6 +2,16 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [0.5.3](https://github.com/descope/descope-js/compare/user-management-widget-0.5.2...user-management-widget-0.5.3) (2024-11-16) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.2` +## [0.5.2](https://github.com/descope/descope-js/compare/user-management-widget-0.5.1...user-management-widget-0.5.2) (2024-11-14) + +### Dependency Updates + +* `web-js-sdk` updated to version `1.20.1` ## [0.5.1](https://github.com/descope/descope-js/compare/user-management-widget-0.5.0...user-management-widget-0.5.1) (2024-11-13) ### Dependency Updates diff --git a/packages/widgets/user-management-widget/package.json b/packages/widgets/user-management-widget/package.json index 184b28771..5afab9783 100644 --- a/packages/widgets/user-management-widget/package.json +++ b/packages/widgets/user-management-widget/package.json @@ -1,6 +1,6 @@ { "name": "@descope/user-management-widget", - "version": "0.5.1", + "version": "0.5.3", "author": "Descope Team ", "homepage": "https://github.com/descope/descope-js", "bugs": { diff --git a/packages/widgets/user-profile-widget/CHANGELOG.md b/packages/widgets/user-profile-widget/CHANGELOG.md index 8b5e34869..ba56ccf6a 100644 --- a/packages/widgets/user-profile-widget/CHANGELOG.md +++ b/packages/widgets/user-profile-widget/CHANGELOG.md @@ -2,6 +2,20 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [0.1.3](https://github.com/descope/descope-js/compare/user-profile-widget-0.1.2...user-profile-widget-0.1.3) (2024-11-16) + +### Dependency Updates + +* `core-js-sdk` updated to version `2.31.0` +* `web-js-sdk` updated to version `1.20.2` +* `web-component` updated to version `3.29.3` +## [0.1.2](https://github.com/descope/descope-js/compare/user-profile-widget-0.1.1...user-profile-widget-0.1.2) (2024-11-14) + +### Dependency Updates + +* `core-js-sdk` updated to version `2.30.1` +* `web-js-sdk` updated to version `1.20.1` +* `web-component` updated to version `3.29.2` ## [0.1.1](https://github.com/descope/descope-js/compare/user-profile-widget-0.1.0...user-profile-widget-0.1.1) (2024-11-13) ### Dependency Updates diff --git a/packages/widgets/user-profile-widget/package.json b/packages/widgets/user-profile-widget/package.json index 8de926d12..5ced05fc1 100644 --- a/packages/widgets/user-profile-widget/package.json +++ b/packages/widgets/user-profile-widget/package.json @@ -1,6 +1,6 @@ { "name": "@descope/user-profile-widget", - "version": "0.1.1", + "version": "0.1.3", "author": "Descope Team ", "homepage": "https://github.com/descope/descope-js", "bugs": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 27e2cb634..73ed4ea22 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -879,7 +879,7 @@ importers: optionalDependencies: '@descope/web-js-sdk': specifier: '>=1' - version: 1.20.2 + version: link:../web-js-sdk devDependencies: '@babel/core': specifier: 7.23.9 @@ -3357,15 +3357,6 @@ packages: picocolors: 1.1.0 dev: true - /@babel/code-frame@7.26.0: - resolution: {integrity: sha512-INCKxTtbXtcNbUZ3YXutwMpEleqttcswhAdee7dhuoVrD2cnuc3PqtERBtxkX5nziX9vnBL8WXmSGwv8CuPV6g==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.25.9 - js-tokens: 4.0.0 - picocolors: 1.1.0 - dev: true - /@babel/code-frame@7.26.2: resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} engines: {node: '>=6.9.0'} @@ -3393,7 +3384,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@ampproject/remapping': 2.2.1 - '@babel/code-frame': 7.25.7 + '@babel/code-frame': 7.26.2 '@babel/generator': 7.24.8 '@babel/helper-compilation-targets': 7.24.8 '@babel/helper-module-transforms': 7.24.8(@babel/core@7.22.9) @@ -3416,7 +3407,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@ampproject/remapping': 2.2.1 - '@babel/code-frame': 7.25.7 + '@babel/code-frame': 7.26.2 '@babel/generator': 7.24.8 '@babel/helper-compilation-targets': 7.24.8 '@babel/helper-module-transforms': 7.24.8(@babel/core@7.23.2) @@ -3893,7 +3884,7 @@ packages: '@babel/helper-module-imports': 7.24.7 '@babel/helper-simple-access': 7.24.7 '@babel/helper-split-export-declaration': 7.24.7 - '@babel/helper-validator-identifier': 7.24.7 + '@babel/helper-validator-identifier': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -3909,7 +3900,7 @@ packages: '@babel/helper-module-imports': 7.24.7 '@babel/helper-simple-access': 7.24.7 '@babel/helper-split-export-declaration': 7.24.7 - '@babel/helper-validator-identifier': 7.24.7 + '@babel/helper-validator-identifier': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -3941,7 +3932,7 @@ packages: '@babel/helper-module-imports': 7.24.7 '@babel/helper-simple-access': 7.24.7 '@babel/helper-split-export-declaration': 7.24.7 - '@babel/helper-validator-identifier': 7.24.7 + '@babel/helper-validator-identifier': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -3957,7 +3948,7 @@ packages: '@babel/helper-module-imports': 7.24.7 '@babel/helper-simple-access': 7.24.7 '@babel/helper-split-export-declaration': 7.24.7 - '@babel/helper-validator-identifier': 7.24.7 + '@babel/helper-validator-identifier': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -4216,7 +4207,7 @@ packages: resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-validator-identifier': 7.25.7 + '@babel/helper-validator-identifier': 7.25.9 chalk: 2.4.2 js-tokens: 4.0.0 dev: true @@ -4225,7 +4216,7 @@ packages: resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-validator-identifier': 7.24.7 + '@babel/helper-validator-identifier': 7.25.9 chalk: 2.4.2 js-tokens: 4.0.0 picocolors: 1.1.0 @@ -4235,7 +4226,7 @@ packages: resolution: {integrity: sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-validator-identifier': 7.25.7 + '@babel/helper-validator-identifier': 7.25.9 chalk: 2.4.2 js-tokens: 4.0.0 picocolors: 1.1.0 @@ -7421,7 +7412,7 @@ packages: resolution: {integrity: sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.25.7 + '@babel/code-frame': 7.26.2 '@babel/parser': 7.24.8 '@babel/types': 7.24.8 dev: true @@ -11665,7 +11656,7 @@ packages: resolution: {integrity: sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g==} engines: {node: '>=12'} dependencies: - '@babel/code-frame': 7.26.0 + '@babel/code-frame': 7.26.2 '@babel/runtime': 7.25.6 '@types/aria-query': 5.0.4 aria-query: 5.1.3 @@ -11679,7 +11670,7 @@ packages: resolution: {integrity: sha512-FlS4ZWlp97iiNWig0Muq8p+3rVDjRiYE+YKGbAqXOu9nwJFFOdL00kFpz42M+4huzYi86vAK1sOOfyOG45muIQ==} engines: {node: '>=14'} dependencies: - '@babel/code-frame': 7.26.0 + '@babel/code-frame': 7.26.2 '@babel/runtime': 7.25.6 '@types/aria-query': 5.0.4 aria-query: 5.1.3