react-global-state-hooks 14.0.2 → 14.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/createGlobalState.d.ts +1 -1
- package/package.json +26 -11
package/createGlobalState.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { StateHook, BaseMetadata, ActionCollectionConfig, ActionCollectionResult, GlobalStoreCallbacks } from 'react-hooks-global-states/types';
|
|
3
3
|
export type { InferActionsType } from 'react-hooks-global-states/createGlobalState';
|
|
4
|
-
import { LocalStorageConfig } from './types';
|
|
4
|
+
import type { LocalStorageConfig } from './types';
|
|
5
5
|
interface CreateGlobalState {
|
|
6
6
|
/**
|
|
7
7
|
* Creates a global state hook.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-global-state-hooks",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.1.0-beta.0",
|
|
4
4
|
"description": "This is a package to easily handling global-state across your react components No-redux, No-context.",
|
|
5
5
|
"main": "./bundle.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -72,16 +72,20 @@
|
|
|
72
72
|
"*.d.ts"
|
|
73
73
|
],
|
|
74
74
|
"scripts": {
|
|
75
|
+
"format": "prettier --write . --log-level silent && yarn lint:fix",
|
|
76
|
+
"test": "yarn build && yarn jest",
|
|
77
|
+
"test:debug:no-watch": "node --inspect-brk node_modules/.bin/jest --no-watchman --runInBand",
|
|
75
78
|
"test:debug": "node --inspect-brk node_modules/.bin/jest --watch --runInBand",
|
|
76
|
-
"test:quick": "
|
|
77
|
-
"test:coverage": "
|
|
78
|
-
"build": "yarn ts-check &&yarn clean && webpack --config webpack.config.js",
|
|
79
|
-
"prepare": "yarn
|
|
80
|
-
"version": "npm run format && git add -A
|
|
79
|
+
"test:quick": "yarn test --no-coverage --maxWorkers=4 -c --no-watchman -u",
|
|
80
|
+
"test:coverage": "yarn test --maxWorkers=4 -c --colors --no-watchman --verbose --coverage",
|
|
81
|
+
"build": "yarn ts-check && yarn clean && webpack --config webpack.config.js",
|
|
82
|
+
"prepare": "yarn format && npm run build && yarn test:quick",
|
|
83
|
+
"version": "npm run format && yarn build && yarn jest && git add -A",
|
|
81
84
|
"postversion": "git push && git push --tags",
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
+
"lint": "eslint . --max-warnings=0",
|
|
86
|
+
"lint:fix": "eslint . --fix --max-warnings=0",
|
|
87
|
+
"clean": "find . -maxdepth 1 -type f \\( -name '*.js' -o -name '*.d.ts' \\) ! -name 'webpack.config.js' ! -name 'eslint.config.mts' -exec rm {} +",
|
|
88
|
+
"ts-check": "tsc -p tsconfig.json --noEmit"
|
|
85
89
|
},
|
|
86
90
|
"repository": {
|
|
87
91
|
"type": "git",
|
|
@@ -142,13 +146,24 @@
|
|
|
142
146
|
"tslib": "^2.6.2",
|
|
143
147
|
"typescript": "^5.8.2",
|
|
144
148
|
"webpack": "^5.76.3",
|
|
145
|
-
"webpack-cli": "^5.0.1"
|
|
149
|
+
"webpack-cli": "^5.0.1",
|
|
150
|
+
"jiti": "^2.6.1",
|
|
151
|
+
"@eslint/js": "^9.39.1",
|
|
152
|
+
"@typescript-eslint/eslint-plugin": "^4.9.1",
|
|
153
|
+
"@typescript-eslint/parser": "^4.9.1",
|
|
154
|
+
"eslint": "^9.39.1",
|
|
155
|
+
"eslint-config-airbnb": "^18.2.1",
|
|
156
|
+
"eslint-plugin-import": "^2.22.1",
|
|
157
|
+
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
158
|
+
"eslint-plugin-react": "^7.37.5",
|
|
159
|
+
"eslint-plugin-react-hooks": "^4.2.0",
|
|
160
|
+
"typescript-eslint": "^8.46.3"
|
|
146
161
|
},
|
|
147
162
|
"peerDependencies": {
|
|
148
163
|
"json-storage-formatter": "^2.0.9",
|
|
149
164
|
"react": ">=18.0.0"
|
|
150
165
|
},
|
|
151
166
|
"dependencies": {
|
|
152
|
-
"react-hooks-global-states": "
|
|
167
|
+
"react-hooks-global-states": "14.1.0-beta.1"
|
|
153
168
|
}
|
|
154
169
|
}
|