Skip to content

react 18 support #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ docs/build/
z_old/
z_temp/
todo.md

.idea
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ __*
z_old/
z_temp/
todo.md
z_temp
z_temp

.idea
28 changes: 15 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,16 @@
"author": "Catalin Covic <catalin.covic@gmail.com>",
"license": "MIT",
"scripts": {
"install-all": "yarn install && yarn add -P react react-dom",
"docs:dev": "node ./bin/dev.js",
"docs:build": "node ./bin/build.js",
"_clean": "rimraf lib && mkdir lib",
"_build": "NODE_ENV=production babel src --extensions '.tsx' --extensions '.ts' -d lib --ignore '**/__tests__/'",
"_types": "NODE_ENV=production tsc --emitDeclarationOnly -d --outDir lib --esModuleInterop --jsx react-jsx src/index.ts",
"_build": "cross-env NODE_ENV=production babel src --extensions .ts,.tsx -d lib --ignore **/__tests__/",
"_types": "cross-env NODE_ENV=production tsc --emitDeclarationOnly -d --outDir lib --esModuleInterop --jsx react-jsx src/index.ts",
"lib": " npm run _clean && npm run _build & npm run _types",
"eslint": "eslint src/ docs/",
"ts:compile": "tsc --noEmit -p tsconfig.json",
"tests:watch": "NODE_ENV=test jest --watch",
"tests": "NODE_ENV=test jest"
"tests:watch": "cross-env NODE_ENV=test jest --watch",
"tests": "cross-env NODE_ENV=test jest"
},
"devDependencies": {
"@babel/cli": "^7.16.0",
Expand All @@ -44,15 +43,16 @@
"@emotion/babel-preset-css-prop": "^11.2.0",
"@emotion/eslint-plugin": "^11.7.0",
"@hot-loader/react-dom": "^16.13.0",
"@testing-library/react": "^12.1.2",
"@testing-library/react": "^14.0.0",
"@types/jest": "^24.0.15",
"@types/lodash.debounce": "^4.0.6",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@types/lodash.debounce": "^4.0.7",
"@types/react": "^18.0.38",
"@types/react-dom": "^18.0.11",
"@typescript-eslint/eslint-plugin": "5.8.0",
"@typescript-eslint/parser": "5.8.0",
"autoprefixer": "^9.7.4",
"babel-loader": "^8.2.3",
"cross-env": "^7.0.3",
"css-loader": "^3.0.0",
"cssnano": "^4.1.10",
"eslint": "^8.5.0",
Expand All @@ -67,6 +67,8 @@
"node-sass": "^4.12.0",
"postcss-loader": "^3.0.0",
"prettier": "^2.5.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-loader": "^4.11.1",
"rimraf": "^2.6.3",
"sass-loader": "^7.1.0",
Expand All @@ -79,13 +81,13 @@
"node": ">=12.16.2"
},
"peerDependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^17.0.2 || ^18.0.2",
"react-dom": "^17.0.2 || ^18.0.2"
},
"dependencies": {
"@emotion/react": "^11.7.1",
"@emotion/react": "^11.10.6",
"lodash.debounce": "^4.0.8",
"react-spring": "^9.3.3"
"react-spring": "^9.7.1"
},
"eslintIgnore": [
"lib/",
Expand Down
Loading