diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 35ac59a0..38790846 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -54,6 +54,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} - name: Install dependencies run: npm ci diff --git a/examples/cra-react-router/package.json b/examples/cra-react-router/package.json index 73095cb7..05f6f28d 100644 --- a/examples/cra-react-router/package.json +++ b/examples/cra-react-router/package.json @@ -5,13 +5,12 @@ "dependencies": { "@auth0/auth0-react": "file:../..", "@types/node": "^17.0.29", - "@types/react": "^18.0.8", - "@types/react-router-dom": "^5.3.3", + "@types/react": "file:../../node_modules/@types/react", "react": "file:../../node_modules/react", "react-dom": "file:../../node_modules/react-dom", - "react-router-dom": "^6.3.0", + "react-router-dom": "^6.16.0", "react-scripts": "^5.0.1", - "typescript": "^4.6.3" + "typescript": "^4.9.4" }, "scripts": { "start": "react-scripts start", diff --git a/examples/cra-react-router/src/App.tsx b/examples/cra-react-router/src/App.tsx index 277106cb..7692b30b 100644 --- a/examples/cra-react-router/src/App.tsx +++ b/examples/cra-react-router/src/App.tsx @@ -22,7 +22,7 @@ function App() { {error && } - } /> + ); diff --git a/examples/cra-react-router/src/Users.tsx b/examples/cra-react-router/src/Users.tsx index 636cbb67..eef2661f 100644 --- a/examples/cra-react-router/src/Users.tsx +++ b/examples/cra-react-router/src/Users.tsx @@ -32,7 +32,7 @@ export function Users() { - {users!.map( + {users.map( ({ name, email }: { name: string; email: string }, i: number) => ( {name} diff --git a/package-lock.json b/package-lock.json index fde0d385..bc6bf32d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2036,9 +2036,9 @@ "dev": true }, "node_modules/@types/react": { - "version": "18.2.23", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.23.tgz", - "integrity": "sha512-qHLW6n1q2+7KyBEYnrZpcsAmU/iiCh9WGCKgXvMxx89+TYdJWRjZohVIo9XTcoLhfX3+/hP0Pbulu3bCZQ9PSA==", + "version": "18.2.24", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.24.tgz", + "integrity": "sha512-Ee0Jt4sbJxMu1iDcetZEIKQr99J1Zfb6D4F3qfUWoR1JpInkY1Wdg4WwCyBjL257D0+jGqSl1twBjV8iCaC0Aw==", "dev": true, "dependencies": { "@types/prop-types": "*",