diff --git a/docs-site/package.json b/docs-site/package.json index 4ecad3f8a..2e9ce3388 100644 --- a/docs-site/package.json +++ b/docs-site/package.json @@ -4,8 +4,8 @@ "private": true, "dependencies": { "highlight.js": "^11.11.1", - "react": "^18.3.1", - "react-dom": "^18.3.1", + "react": "^19.0.0", + "react-dom": "^19.0.0", "react-live": "^4.1.8" }, "scripts": { @@ -18,11 +18,7 @@ "extends": "react-app" }, "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], + "production": [">0.2%", "not dead", "not op_mini all"], "development": [ "last 1 chrome version", "last 1 firefox version", diff --git a/examples/hello-world/package.json b/examples/hello-world/package.json index d650597cc..99aeacb31 100644 --- a/examples/hello-world/package.json +++ b/examples/hello-world/package.json @@ -3,9 +3,9 @@ "version": "0.1.0", "private": true, "dependencies": { - "react": "^18.3.1", + "react": "^19.0.0", "react-datepicker": "^7.5.0", - "react-dom": "^18.3.1", + "react-dom": "^19.0.0", "react-scripts": "5.0.1" }, "scripts": { @@ -18,11 +18,7 @@ "extends": "react-app" }, "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], + "production": [">0.2%", "not dead", "not op_mini all"], "development": [ "last 1 chrome version", "last 1 firefox version", diff --git a/package.json b/package.json index 0ed705255..ffd04ea89 100644 --- a/package.json +++ b/package.json @@ -11,23 +11,9 @@ "module": "dist/es/index.js", "unpkg": "dist/react-datepicker.min.js", "style": "dist/react-datepicker.min.css", - "files": [ - "*.md", - "dist", - "lib", - "es", - "src/stylesheets" - ], - "sideEffects": [ - "**/*.css" - ], - "keywords": [ - "react", - "datepicker", - "calendar", - "date", - "react-component" - ], + "files": ["*.md", "dist", "lib", "es", "src/stylesheets"], + "sideEffects": ["**/*.css"], + "keywords": ["react", "datepicker", "calendar", "date", "react-component"], "repository": { "type": "git", "url": "git://github.com/Hacker0x01/react-datepicker.git" @@ -55,8 +41,8 @@ "@types/eslint": "^8.56.10", "@types/jest": "^29.5.12", "@types/node": "22", - "@types/react": "^18.3.4", - "@types/react-dom": "^18.3.0", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^8.6.0", "axe-core": "^4.10.0", @@ -77,8 +63,8 @@ "lint-staged": "^15.2.9", "lodash": "^4.17.21", "prettier": "^3.3.3", - "react": "^18.3.1", - "react-dom": "^18.3.1", + "react": "^19.0.0", + "react-dom": "^19.0.0", "rollup": "^4.21.1", "rollup-plugin-filesize": "^10.0.0", "sass": "1.80.7", @@ -124,10 +110,7 @@ "prepare": "husky" }, "lint-staged": { - "*.{js,jsx,ts,tsx,json,css,scss,md}": [ - "prettier --write", - "git add" - ] + "*.{js,jsx,ts,tsx,json,css,scss,md}": ["prettier --write", "git add"] }, "packageManager": "yarn@4.6.0" }