Merge pull request #96 from aleleba/PR-387478

PR-387478: Actualizaciones de dependencias de React Router DOM y Cypress.
This commit is contained in:
Alejandro Lembke Barrientos 2024-02-13 14:41:10 -08:00 committed by GitHub
commit b73aefec45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 753 additions and 971 deletions

View File

@ -26,7 +26,7 @@ jobs:
node-version: 16 node-version: 16
cache: 'npm' cache: 'npm'
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm ci - run: npm ci --legacy-peer-deps
- run: npm test - run: npm test
# Job to run Cypress component tests # Job to run Cypress component tests
@ -37,10 +37,13 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
# Install NPM dependencies, cache them correctly # Install NPM dependencies, cache them correctly
# and run all Cypress tests # and run all Cypress tests
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v5 # use the explicit version number uses: cypress-io/github-action@v6 # use the explicit version number
with: with:
component: true component: true
install: false
# Job to run Cypress End to End tests # Job to run Cypress End to End tests
end-to-end-testing: end-to-end-testing:
@ -52,9 +55,12 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
# Install NPM dependencies, cache them correctly # Install NPM dependencies, cache them correctly
# and run all Cypress tests # and run all Cypress tests
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v5 # use the explicit version number uses: cypress-io/github-action@v6 # use the explicit version number
with: with:
install: false
build: npm run build build: npm run build
start: npm start start: npm start
@ -69,7 +75,7 @@ jobs:
with: with:
node-version: 16 node-version: 16
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm ci - run: npm ci --legacy-peer-deps
- run: npm run build - run: npm run build
# Job to publish the package to NPM # Job to publish the package to NPM
@ -83,7 +89,7 @@ jobs:
with: with:
node-version: 16 node-version: 16
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm ci - run: npm ci --legacy-peer-deps
- run: npm publish --access=public - run: npm publish --access=public
env: env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}} NODE_AUTH_TOKEN: ${{secrets.npm_token}}

1
.npmrc Normal file
View File

@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${NPM_PERSONAL_TOKEN}

View File

@ -8,9 +8,9 @@ Tech(Library or Framework) | Version |
--- | --- | --- | --- |
React (Render Library) | 18.2.0 React (Render Library) | 18.2.0
Redux (Global State Management) | 5.0.1 Redux (Global State Management) | 5.0.1
React Router DOM (Routing) | 6.21.3 React Router DOM (Routing) | 6.22.0
Jest (Testing) | 29.7.0 Jest (Testing) | 29.7.0
Cypress (E2E Testing) | 13.6.3 Cypress (E2E Testing) | 13.6.4
Typescript | 5.3.3 Typescript | 5.3.3
## Setup ## Setup

View File

@ -67,7 +67,7 @@ if(!checkedOut) process.exit(-1);
const actualVersion = runCommandWithOutput(`cd ${repoName} && node -p "require('./package.json').version"`).toString().trim() const actualVersion = runCommandWithOutput(`cd ${repoName} && node -p "require('./package.json').version"`).toString().trim()
const installDepsCommand = `cd ${repoName} && npm install`; const installDepsCommand = `cd ${repoName} && npm install --legacy-peer-deps`;
const cleanGitHistoryCommand = `cd ${repoName} && rm -rf .git && git init && git add --all -- ":!.github" ":!bin" && git commit -m "Initial commit"` const cleanGitHistoryCommand = `cd ${repoName} && rm -rf .git && git init && git add --all -- ":!.github" ":!bin" && git commit -m "Initial commit"`
const cleanGitHistoryCommandWindows = `cd ${repoName} && rmdir .git /s /q && git init && git add --all -- ":!.github" ":!bin" && git commit -m "Initial commit"` const cleanGitHistoryCommandWindows = `cd ${repoName} && rmdir .git /s /q && git init && git add --all -- ":!.github" ":!bin" && git commit -m "Initial commit"`
const deleteFoldersCommand = `cd ${repoName} && rm -rf .github && rm -rf bin` const deleteFoldersCommand = `cd ${repoName} && rm -rf .github && rm -rf bin`

1657
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "@aleleba/create-react-ssr", "name": "@aleleba/create-react-ssr",
"version": "3.9.19", "version": "3.9.20",
"description": "Starter Kit of server side render of react", "description": "Starter Kit of server side render of react",
"bin": "./bin/cli.js", "bin": "./bin/cli.js",
"main": "src/server/index", "main": "src/server/index",
@ -13,7 +13,7 @@
"lint:fix": "eslint ./ --ext .js --ext .ts --ext .jsx --ext .tsx --fix", "lint:fix": "eslint ./ --ext .js --ext .ts --ext .jsx --ext .tsx --fix",
"test": "jest", "test": "jest",
"test:watch": "jest --watch", "test:watch": "jest --watch",
"check-updates": "npx npm-check-updates -u && npm i", "check-updates": "npx npm-check-updates -u && npm i --legacy-peer-deps",
"cy:open": "npx cypress open", "cy:open": "npx cypress open",
"cy:run": "cypress run", "cy:run": "cypress run",
"cy:run-component": "cypress run --headless --component" "cy:run-component": "cypress run --headless --component"
@ -37,7 +37,7 @@
"homepage": "https://github.com/aleleba/create-react-ssr#readme", "homepage": "https://github.com/aleleba/create-react-ssr#readme",
"dependencies": { "dependencies": {
"@babel/register": "^7.23.7", "@babel/register": "^7.23.7",
"dotenv": "^16.3.2", "dotenv": "^16.4.4",
"express": "^4.18.2", "express": "^4.18.2",
"helmet": "^7.1.0", "helmet": "^7.1.0",
"history": "^5.3.0", "history": "^5.3.0",
@ -45,10 +45,11 @@
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-redux": "^9.1.0", "react-redux": "^9.1.0",
"react-router-dom": "^6.21.3", "react-router-dom": "^6.22.0",
"react-router-hash-link": "^2.4.3", "react-router-hash-link": "^2.4.3",
"redux": "^5.0.1", "redux": "^5.0.1",
"webpack": "^5.89.0", "webpack": "^5.90.1",
"webpack-dev-server": "^4.15.1",
"webpack-manifest-plugin": "^5.0.0", "webpack-manifest-plugin": "^5.0.0",
"workbox-background-sync": "^7.0.0", "workbox-background-sync": "^7.0.0",
"workbox-broadcast-update": "^7.0.0", "workbox-broadcast-update": "^7.0.0",
@ -64,32 +65,32 @@
"workbox-streams": "^7.0.0" "workbox-streams": "^7.0.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.23.7", "@babel/core": "^7.23.9",
"@babel/preset-env": "^7.23.8", "@babel/preset-env": "^7.23.9",
"@babel/preset-react": "^7.23.3", "@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3", "@babel/preset-typescript": "^7.23.3",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
"@redux-devtools/extension": "^3.3.0", "@redux-devtools/extension": "^3.3.0",
"@testing-library/jest-dom": "^6.2.0", "@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.1.2", "@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2", "@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.11", "@types/jest": "^29.5.12",
"@types/node": "^20.11.5", "@types/node": "^20.11.17",
"@types/react": "^18.2.48", "@types/react": "^18.2.55",
"@types/react-dom": "^18.2.18", "@types/react-dom": "^18.2.19",
"@types/webpack": "^5.28.5", "@types/webpack": "^5.28.5",
"@types/webpack-hot-middleware": "^2.25.9", "@types/webpack-hot-middleware": "^2.25.9",
"@types/webpack-node-externals": "^3.0.4", "@types/webpack-node-externals": "^3.0.4",
"@typescript-eslint/eslint-plugin": "^6.19.0", "@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^6.19.0", "@typescript-eslint/parser": "^7.0.1",
"babel-jest": "^29.7.0", "babel-jest": "^29.7.0",
"babel-loader": "^9.1.3", "babel-loader": "^9.1.3",
"clean-webpack-plugin": "^4.0.0", "clean-webpack-plugin": "^4.0.0",
"compression-webpack-plugin": "^11.0.0", "compression-webpack-plugin": "^11.0.0",
"copy-webpack-plugin": "^12.0.2", "copy-webpack-plugin": "^12.0.2",
"css-loader": "^6.9.1", "css-loader": "^6.10.0",
"css-minimizer-webpack-plugin": "^6.0.0", "css-minimizer-webpack-plugin": "^6.0.0",
"cypress": "^13.6.3", "cypress": "^13.6.4",
"eslint": "^8.56.0", "eslint": "^8.56.0",
"eslint-plugin-react": "^7.33.2", "eslint-plugin-react": "^7.33.2",
"eslint-webpack-plugin": "^4.0.1", "eslint-webpack-plugin": "^4.0.1",
@ -99,20 +100,19 @@
"jest": "^29.7.0", "jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0", "jest-environment-jsdom": "^29.7.0",
"jest-fetch-mock": "^3.0.3", "jest-fetch-mock": "^3.0.3",
"mini-css-extract-plugin": "^2.7.7", "mini-css-extract-plugin": "^2.8.0",
"react-refresh": "^0.14.0", "react-refresh": "^0.14.0",
"resolve-ts-aliases": "^1.0.1", "resolve-ts-aliases": "^1.0.1",
"sass": "^1.70.0", "sass": "^1.70.0",
"sass-loader": "^14.0.0", "sass-loader": "^14.1.0",
"style-loader": "^3.3.4", "style-loader": "^3.3.4",
"terser-webpack-plugin": "^5.3.10", "terser-webpack-plugin": "^5.3.10",
"ts-jest": "^29.1.1", "ts-jest": "^29.1.2",
"typescript": "^5.3.3", "typescript": "^5.3.3",
"url-loader": "^4.1.1", "url-loader": "^4.1.1",
"webpack-cli": "^5.1.4", "webpack-cli": "^5.1.4",
"webpack-dev-middleware": "^7.0.0", "webpack-dev-middleware": "^7.0.0",
"webpack-dev-server": "^4.15.1", "webpack-hot-middleware": "^2.26.1",
"webpack-hot-middleware": "^2.26.0",
"webpack-node-externals": "^3.0.0", "webpack-node-externals": "^3.0.0",
"webpack-shell-plugin-next": "^2.3.1", "webpack-shell-plugin-next": "^2.3.1",
"workbox-webpack-plugin": "^7.0.0", "workbox-webpack-plugin": "^7.0.0",