Skip to content

Commit 49975e2

Browse files
refactor(all): update libraries (release) (#1633)
* refactor(all): update libraries * update (alpha) * fix (alpha)
1 parent 2bb456e commit 49975e2

File tree

16 files changed

+2212
-1896
lines changed

16 files changed

+2212
-1896
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
env:
1212
PNPM_VERSION: 8.6.11
13-
NODE_VERSION: 18
13+
NODE_VERSION: 20
1414

1515
jobs:
1616
tests:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
env:
1414
PNPM_VERSION: 8.6.11
15-
NODE_VERSION: 18
15+
NODE_VERSION: 20
1616

1717
jobs:
1818
run-linters:

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
env:
1313
PNPM_VERSION: 8.6.11
14-
NODE_VERSION: 18
14+
NODE_VERSION: 20
1515
jobs:
1616
skip_ci:
1717
runs-on: ubuntu-latest

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,31 @@
2323
"lint": "eslint --cache .",
2424
"lint-fix": "eslint --cache --fix .",
2525
"outdated": "pnpm outdated -r",
26-
"test": "pnpm run test --workspaces --if-present",
26+
"test": "pnpm --filter=./packages/* run test",
27+
"test:ci": "pnpm --filter=./packages/* run test --run",
2728
"build": "pnpm -r --filter=./packages/* run build"
2829
},
2930
"devDependencies": {
30-
"@eslint/compat": "^1.2.9",
31-
"@typescript-eslint/eslint-plugin": "^8.32.0",
32-
"@typescript-eslint/parser": "^8.32.0",
33-
"eslint": "^9.26.0",
34-
"eslint-config-prettier": "^10.1.2",
35-
"eslint-define-config": "^2.1.0",
36-
"eslint-plugin-import": "^2.31.0",
31+
"@eslint/compat": "^2.0.1",
32+
"@typescript-eslint/eslint-plugin": "^8.54.0",
33+
"@typescript-eslint/parser": "^8.54.0",
34+
"eslint": "^9.39.2",
35+
"eslint-config-prettier": "^10.1.8",
36+
"eslint-plugin-import": "^2.32.0",
3737
"eslint-plugin-jsx-a11y": "^6.10.2",
38-
"eslint-plugin-n": "^17.17.0",
38+
"eslint-plugin-n": "^17.23.2",
3939
"eslint-plugin-no-only-tests": "^3.3.0",
40-
"eslint-plugin-prettier": "^5.4.0",
40+
"eslint-plugin-prettier": "^5.5.5",
4141
"eslint-plugin-react": "^7.37.5",
42-
"eslint-plugin-react-hooks": "^5.2.0",
43-
"eslint-plugin-regexp": "^2.7.0",
42+
"eslint-plugin-react-hooks": "^7.0.1",
43+
"eslint-plugin-regexp": "^3.0.0",
4444
"eslint-plugin-simple-import-sort": "^12.1.1",
45-
"eslint-plugin-testing-library": "^7.1.1",
46-
"prettier": "^3.5.3",
45+
"eslint-plugin-testing-library": "^7.15.4",
46+
"prettier": "^3.8.1",
4747
"tslib": "^2.8.1",
48-
"tsx": "4.19.4",
49-
"typescript": "5.8.3",
50-
"vitest": "3.1.3"
48+
"tsx": "4.21.0",
49+
"typescript": "5.9.3",
50+
"vitest": "4.0.18"
5151
},
5252
"engines": {
5353
"node": ">= 18.0.0"

packages/oidc-client-service-worker/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
"lint": "eslint src"
3535
},
3636
"devDependencies": {
37-
"@vitest/coverage-v8": "3.1.3",
38-
"cpy": "11.1.0",
39-
"cpy-cli": "^5.0.0",
40-
"rimraf": "6.0.1",
41-
"typescript": "5.8.3",
42-
"vite": "6.3.5",
43-
"vite-plugin-dts": "4.5.3",
44-
"vitest": "3.1.3"
37+
"@vitest/coverage-v8": "4.0.18",
38+
"cpy": "12.1.0",
39+
"cpy-cli": "^6.0.0",
40+
"rimraf": "6.1.2",
41+
"typescript": "5.9.3",
42+
"vite": "7.3.1",
43+
"vite-plugin-dts": "4.5.4",
44+
"vitest": "4.0.18"
4545
},
4646
"publishConfig": {
4747
"access": "public",

packages/oidc-client/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,18 @@
2323
"@axa-fr/oidc-client-service-worker": "workspace:*"
2424
},
2525
"devDependencies": {
26-
"@testing-library/dom": "10.4.0",
27-
"@testing-library/jest-dom": "6.6.3",
28-
"@testing-library/react": "16.3.0",
29-
"@vitest/coverage-v8": "3.1.3",
30-
"cpy": "11.1.0",
31-
"cpy-cli": "^5.0.0",
32-
"rimraf": "6.0.1",
33-
"typescript": "5.8.3",
34-
"vite": "6.3.5",
35-
"vite-plugin-dts": "4.5.3",
36-
"vitest": "3.1.3"
26+
"@testing-library/dom": "10.4.1",
27+
"@testing-library/jest-dom": "6.9.1",
28+
"@testing-library/react": "16.3.2",
29+
"@types/node": "^22.12.0",
30+
"@vitest/coverage-v8": "4.0.18",
31+
"cpy": "12.1.0",
32+
"cpy-cli": "^6.0.0",
33+
"rimraf": "6.1.2",
34+
"typescript": "5.9.3",
35+
"vite": "7.3.1",
36+
"vite-plugin-dts": "4.5.4",
37+
"vitest": "4.0.18"
3738
},
3839
"keywords": [
3940
"oidc",

packages/oidc-client/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"compilerOptions": {
33
"target": "ES2019",
44
"lib": ["ES2021", "DOM"],
5+
"types": ["node"],
56
"outDir": "dist",
67
"baseUrl": ".",
78
"skipLibCheck": true,

packages/react-oidc/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,24 @@
4747
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
4848
},
4949
"devDependencies": {
50-
"@testing-library/jest-dom": "6.6.3",
51-
"@testing-library/react": "16.3.0",
50+
"@testing-library/jest-dom": "6.9.1",
51+
"@testing-library/react": "16.3.2",
5252
"@testing-library/user-event": "14.6.1",
53-
"@types/react": "19.1.2",
54-
"@vitejs/plugin-react": "4.4.1",
55-
"@vitest/coverage-v8": "3.1.3",
56-
"cpy": "11.1.0",
57-
"cpy-cli": "^5.0.0",
58-
"cross-env": "^7.0.3",
59-
"jsdom": "26.1.0",
60-
"msw": "2.7.6",
61-
"react": "^19.1.0",
62-
"react-dom": "^19.1.0",
63-
"rimraf": "6.0.1",
64-
"typescript": "5.8.3",
65-
"vite": "6.3.5",
66-
"vite-plugin-dts": "4.5.3",
67-
"vitest": "3.1.3"
53+
"@types/react": "19.2.10",
54+
"@vitejs/plugin-react": "5.1.2",
55+
"@vitest/coverage-v8": "4.0.18",
56+
"cpy": "12.1.0",
57+
"cpy-cli": "^6.0.0",
58+
"cross-env": "^10.1.0",
59+
"jsdom": "27.4.0",
60+
"msw": "2.12.7",
61+
"react": "^19.2.4",
62+
"react-dom": "^19.2.4",
63+
"rimraf": "6.1.2",
64+
"typescript": "5.9.3",
65+
"vite": "7.3.1",
66+
"vite-plugin-dts": "4.5.4",
67+
"vitest": "4.0.18"
6868
},
6969
"license": "MIT",
7070
"publishConfig": {

packages/react-oidc/src/FetchToken.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const useOidcFetch = (
5353
);
5454
return newFetch(input, init);
5555
},
56-
[previousFetch, configurationName],
56+
[previousFetch, configurationName, demonstratingProofOfPossession],
5757
);
5858
return { fetch: memoizedFetchCallback };
5959
};

packages/react-oidc/src/OidcProvider.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const OidcProvider: FC<PropsWithChildren<OidcProviderProps>> = ({
117117

118118
const [loading, setLoading] = useState(true);
119119
const [event, setEvent] = useState(defaultEventState);
120-
const [currentConfigurationName, setConfigurationName] = useState('default');
120+
const [currentConfigurationName, setConfigurationName] = useState(configurationName);
121121

122122
useEffect(() => {
123123
const oidc = getOidc(configurationName);
@@ -170,8 +170,11 @@ export const OidcProvider: FC<PropsWithChildren<OidcProviderProps>> = ({
170170
}
171171
});
172172

173-
setConfigurationName(configurationName);
174-
setLoading(false);
173+
queueMicrotask(() => {
174+
setConfigurationName(configurationName);
175+
setLoading(false);
176+
});
177+
175178
return () => {
176179
const previousOidc = getOidc(configurationName);
177180
previousOidc.removeEventSubscription(newSubscriptionId);

0 commit comments

Comments
 (0)