Comparing version 0.1.4 to 0.2.0
143
package.json
{ | ||
"name": "r18gs", | ||
"author": "Mayank Kumar Chaudhari <https://mayank-chaudhari.vercel.app>", | ||
"private": false, | ||
"version": "0.1.4", | ||
"description": "A simple yet elegant, light weight, react18 global store to replace Zustand for better tree shaking.", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/react18-tools/react18-global-store.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/react18-tools/react18-global-store/issues" | ||
}, | ||
"homepage": "https://react18-global-store.vercel.app/", | ||
"sideEffects": false, | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "vitest run --coverage", | ||
"build": "tsup src && tsc -p tsconfig-build.json && node touchup.js", | ||
"doc": "cp ../../README.md . && typedoc", | ||
"publish-package": "cd dist && npm publish --provenance --access public", | ||
"lint": "eslint ." | ||
}, | ||
"devDependencies": { | ||
"@testing-library/react": "^15.0.5", | ||
"@turbo/gen": "^1.13.3", | ||
"@types/node": "^20.12.7", | ||
"@types/react": "^18.3.1", | ||
"@types/react-dom": "^18.3.0", | ||
"@vitejs/plugin-react": "^4.2.1", | ||
"@vitest/coverage-v8": "^1.5.2", | ||
"eslint-config-custom": "workspace:*", | ||
"jsdom": "^24.0.0", | ||
"octokit": "^3.2.0", | ||
"react": "^18.3.1", | ||
"tsconfig": "workspace:*", | ||
"tsup": "^8.0.2", | ||
"typedoc": "^0.25.13", | ||
"typescript": "^5.4.5", | ||
"vite-tsconfig-paths": "^4.3.2", | ||
"vitest": "^1.5.2" | ||
}, | ||
"peerDependencies": { | ||
"@types/react": "16.8 - 18", | ||
"react": "16.8 - 18" | ||
}, | ||
"funding": { | ||
"type": "github", | ||
"url": "https://github.com/sponsors/mayank1513" | ||
}, | ||
"keywords": [ | ||
"react18-global-store", | ||
"nextjs", | ||
"nextjs13", | ||
"nextjs14", | ||
"react", | ||
"react18", | ||
"zustand", | ||
"zen-store", | ||
"react-global-store", | ||
"react-server-components", | ||
"react-client-components", | ||
"typescript", | ||
"javascript", | ||
"mayank1513", | ||
"turborepo-trmplate" | ||
], | ||
"module": "index.mjs" | ||
} | ||
"name": "r18gs", | ||
"author": "Mayank Kumar Chaudhari <https://mayank-chaudhari.vercel.app>", | ||
"private": false, | ||
"version": "0.2.0", | ||
"description": "A simple yet elegant, light weight, react18 global store to replace Zustand for better tree shaking.", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.mjs", | ||
"files": [ | ||
"dist/**" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/react18-tools/react18-global-store.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/react18-tools/react18-global-store/issues" | ||
}, | ||
"homepage": "https://react18-global-store.vercel.app/", | ||
"sideEffects": false, | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "vitest run --coverage", | ||
"build": "tsup src && tsc -p tsconfig-build.json", | ||
"doc": "cp ../../README.md . && typedoc", | ||
"publish-package": "cp ../../README.md . && npm publish --provenance --access public", | ||
"lint": "eslint ." | ||
}, | ||
"devDependencies": { | ||
"@testing-library/react": "^15.0.5", | ||
"@turbo/gen": "^1.13.3", | ||
"@types/node": "^20.12.7", | ||
"@types/react": "^18.3.1", | ||
"@types/react-dom": "^18.3.0", | ||
"@vitejs/plugin-react": "^4.2.1", | ||
"@vitest/coverage-v8": "^1.5.2", | ||
"eslint-config-custom": "workspace:*", | ||
"jsdom": "^24.0.0", | ||
"octokit": "^3.2.0", | ||
"react": "^18.3.1", | ||
"tsconfig": "workspace:*", | ||
"tsup": "^8.0.2", | ||
"typedoc": "^0.25.13", | ||
"typescript": "^5.4.5", | ||
"vite-tsconfig-paths": "^4.3.2", | ||
"vitest": "^1.5.2" | ||
}, | ||
"peerDependencies": { | ||
"@types/react": "16.8 - 18", | ||
"react": "16.8 - 18" | ||
}, | ||
"funding": { | ||
"type": "github", | ||
"url": "https://github.com/sponsors/mayank1513" | ||
}, | ||
"keywords": [ | ||
"react18-global-store", | ||
"nextjs", | ||
"nextjs13", | ||
"nextjs14", | ||
"react", | ||
"react18", | ||
"zustand", | ||
"zen-store", | ||
"react-global-store", | ||
"react-server-components", | ||
"react-client-components", | ||
"typescript", | ||
"javascript", | ||
"mayank1513", | ||
"turborepo-trmplate" | ||
] | ||
} |
@@ -19,4 +19,2 @@ # React18GlobalStore | ||
✅ Works for both client side and server side components (be careful, separate states are created for server side and client side. Any changes done on client side will not affect the server components.) | ||
✅ Doccumented with [Typedoc](https://react18-tools.github.io/react18-global-store) ([Docs](https://react18-tools.github.io/react18-global-store)) | ||
@@ -57,3 +55,3 @@ | ||
You can access the same state across all client side components using unique. | ||
You can access the same state across all client side components using unique key. | ||
@@ -111,27 +109,6 @@ > It is recommended to store your keys in separate file to avoid typos and unnecessary conflicts. | ||
## Contribute | ||
## Contributing | ||
### Build | ||
See [contributing.md](/contributing.md) | ||
To build all apps and packages, run the following command: | ||
``` | ||
cd react18-global-store | ||
pnpm build | ||
``` | ||
### Develop | ||
To develop all apps and packages, run the following command: | ||
``` | ||
cd react18-global-store | ||
pnpm dev | ||
``` | ||
Also, please | ||
1. check out discussion for providing any feedback or sugestions. | ||
2. Report any issues or feature requests in issues tab | ||
### 🤩 Don't forger to star [this repo](https://github.com/mayank1513/react18-global-store)! | ||
@@ -138,0 +115,0 @@ |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
18038
20
130
5
124