Skip to content

Commit

Permalink
Support React v19 (#177)
Browse files Browse the repository at this point in the history
* Support react@19

* Update peer depednedncy to support react-router-dom for < 7

* Bump version to 0.7.2
  • Loading branch information
sshyam-gupta authored Dec 25, 2024
1 parent b39f0db commit d547075
Show file tree
Hide file tree
Showing 7 changed files with 2,784 additions and 2,334 deletions.
9 changes: 6 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"es2021": true
},
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"prettier"
Expand All @@ -27,5 +25,10 @@
"react/prop-types": "off",
"react/jsx-no-bind": "off",
"react/require-default-props": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm lint
34 changes: 13 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.7.1",
"version": "0.7.2",
"name": "react-router-prompt",
"description": "React Router Navigation Prompt for v6",
"type": "module",
Expand All @@ -12,8 +12,7 @@
"exports": {
".": {
"import": "./dist/react-router-prompt.js",
"require": "./dist/react-router-prompt.umd.cjs",
"types": "./dist/index.d.ts"
"require": "./dist/react-router-prompt.umd.cjs"
}
},
"author": "Shyam Gupta (shyamm@outlook.com)",
Expand All @@ -39,23 +38,16 @@
"format": "prettier \"src/**/*.{js,jsx,ts,tsx,css,scss}\" --write",
"size": "size-limit",
"prepublishOnly": "yarn build",
"prepare": "husky install"
},
"husky": {
"hooks": {
"pre-commit": "pnpm lint"
}
"prepare": "husky"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^11.0.2",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"@vitejs/plugin-react-swc": "^3.6.0",
"@vitejs/plugin-react-swc": "^3.7.2",
"eslint": "^8.56.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
Expand All @@ -65,20 +57,20 @@
"history": "^5.3.0",
"husky": "^9.0.11",
"path": "^0.12.7",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"prettier": "^3.4.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router-dom": "^6.22.1",
"size-limit": "^11.0.2",
"typescript": "^5.3.3",
"vite": "^5.1.3",
"vite-plugin-dts": "^4.0.0",
"vite-tsconfig-paths": "^5.0.0"
"vite": "^6.0.5",
"vite-plugin-dts": "^4.4.0",
"vite-tsconfig-paths": "^5.1.4"
},
"peerDependencies": {
"react": ">=16.8",
"react-dom": ">=16.8",
"react-router-dom": ">=6.19"
"react-router-dom": ">=6.19 <7"
},
"size-limit": [
{
Expand Down
Loading

0 comments on commit d547075

Please sign in to comment.