Skip to content

Commit

Permalink
fix(react-oidc): compatibility with react 19 (release) (#1372)
Browse files Browse the repository at this point in the history
* fix(react-oidc): compatibility with react 19
  • Loading branch information
guillaume-chervet authored May 22, 2024
1 parent c49a857 commit bcba15b
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 388 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ node ./node_modules/@axa-fr/react-oidc/bin/copy-service-worker-files.mjs public
# ./public/OidcTrustedDomains.js <-- won't be updated if already exist
```

WARNING : If you use Service Worker mode, the OidcServiceWorker.js file should always be up to date with the version of the library. You may setup a postinstall script in your package.json file to update it at each npm install. For example :
WARNING : If you use Service Worker mode, the OidcServiceWorker.js file should always be up-to-date with the version of the library. You may setup a postinstall script in your package.json file to update it at each npm install. For example :
```sh
"scripts": {
...
Expand Down
12 changes: 6 additions & 6 deletions examples/react-oidc-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@
"react-router-dom": "^6.22.3"
},
"devDependencies": {
"@testing-library/jest-dom": "6.4.2",
"@testing-library/react": "14.2.1",
"@testing-library/jest-dom": "6.4.5",
"@testing-library/react": "15.0.7",
"@testing-library/user-event": "14.5.2",
"@types/react": "18.2.65",
"@types/react": "18.3.2",
"@vitejs/plugin-react": "4.2.1",
"bootstrap": "^4.6.2",
"copyfiles": "2.4.1",
"cross-env": "^7.0.3",
"jsdom": " 24.0.0",
"typescript": "5.4.2",
"typescript": "5.4.5",
"vite": "5.1.6",
"vite-plugin-dts": "3.7.3",
"vitest": "1.3.1"
"vite-plugin-dts": "3.9.1",
"vitest": "1.6.0"
},
"license": "MIT",
"publishConfig": {
Expand Down
5 changes: 4 additions & 1 deletion packages/react-oidc/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export default defineConfig({
fileName: 'index',
},
rollupOptions: {
external: [...dependencies],
external: [
...dependencies,
'react/jsx-runtime'
],
output: {
globals: {
react: 'React',
Expand Down
Loading

0 comments on commit bcba15b

Please sign in to comment.