state-in-url 2.4.2 → 2.5.1
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/dist/package.json +292 -0
- package/package.json +14 -2
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "state-in-url",
|
|
3
|
+
"version": "2.5.1",
|
|
4
|
+
"description": "Library to store state in browser URL, includes hook for NextJS, hook for pure React, and low level helpers. https://state-in-url-asmyshlyaev177.vercel.app/",
|
|
5
|
+
"homepage": "https://github.com/asmyshlyaev177/state-in-url#readme",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"state-management",
|
|
8
|
+
"state management",
|
|
9
|
+
"Next.js",
|
|
10
|
+
"useUrlState",
|
|
11
|
+
"client components communication",
|
|
12
|
+
"signals alternative",
|
|
13
|
+
"query string",
|
|
14
|
+
"search params",
|
|
15
|
+
"typescript",
|
|
16
|
+
"react.js",
|
|
17
|
+
"workflow",
|
|
18
|
+
"javascript",
|
|
19
|
+
"hooks",
|
|
20
|
+
"reactjs",
|
|
21
|
+
"react",
|
|
22
|
+
"NextJS"
|
|
23
|
+
],
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/asmyshlyaev177/state-in-url.git"
|
|
27
|
+
},
|
|
28
|
+
"author": {
|
|
29
|
+
"name": "asmyshlyaev177",
|
|
30
|
+
"email": "asmyshlyaev177@gmail.com",
|
|
31
|
+
"url": "https://www.linkedin.com/in/asmyshlyaev177/"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"registry": "https://registry.npmjs.org/",
|
|
35
|
+
"tag": "latest",
|
|
36
|
+
"provenance": true
|
|
37
|
+
},
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"funding": {
|
|
40
|
+
"type": "patreon",
|
|
41
|
+
"url": "https://patreon.com/asmyshlyaev177"
|
|
42
|
+
},
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/asmyshlyaev177/state-in-url/issues"
|
|
45
|
+
},
|
|
46
|
+
"workspaces": [
|
|
47
|
+
"packages/urlstate",
|
|
48
|
+
"packages/example-nextjs",
|
|
49
|
+
"packages/example-react"
|
|
50
|
+
],
|
|
51
|
+
"files": [
|
|
52
|
+
"dist"
|
|
53
|
+
],
|
|
54
|
+
"main": "dist/index.mjs",
|
|
55
|
+
"exports": {
|
|
56
|
+
".": {
|
|
57
|
+
"types": "./dist/index.d.ts",
|
|
58
|
+
"default": "./dist/index.mjs"
|
|
59
|
+
},
|
|
60
|
+
"./next": {
|
|
61
|
+
"types": "./dist/next/index.d.ts",
|
|
62
|
+
"default": "./dist/next/index.mjs"
|
|
63
|
+
},
|
|
64
|
+
"./encodeState": {
|
|
65
|
+
"types": "./dist/encodeState/index.d.ts",
|
|
66
|
+
"default": "./dist/encodeState/index.mjs"
|
|
67
|
+
},
|
|
68
|
+
"./encoder": {
|
|
69
|
+
"types": "./dist/encoder/index.d.ts",
|
|
70
|
+
"default": "./dist/encoder/index.mjs"
|
|
71
|
+
},
|
|
72
|
+
"./useSharedState": {
|
|
73
|
+
"types": "./dist/useSharedState/index.d.ts",
|
|
74
|
+
"default": "./dist/useSharedState/index.mjs"
|
|
75
|
+
},
|
|
76
|
+
"./useUrlEncode": {
|
|
77
|
+
"types": "./dist/useUrlEncode/index.d.ts",
|
|
78
|
+
"default": "./dist/useUrlEncode/index.mjs"
|
|
79
|
+
},
|
|
80
|
+
"./useUrlStateBase": {
|
|
81
|
+
"types": "./dist/useUrlStateBase/index.d.ts",
|
|
82
|
+
"default": "./dist/useUrlStateBase/index.mjs"
|
|
83
|
+
},
|
|
84
|
+
"./utils": {
|
|
85
|
+
"types": "./dist/utils.d.ts",
|
|
86
|
+
"default": "./dist/utils.mjs"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"types": "./dist/index.d.ts",
|
|
90
|
+
"scripts": {
|
|
91
|
+
"start": "npm install && npm run start:demo",
|
|
92
|
+
"release": "release-it --ci -V",
|
|
93
|
+
"test:unit": "wireit",
|
|
94
|
+
"test:int": "wireit",
|
|
95
|
+
"test:int:ci": "wireit",
|
|
96
|
+
"test:exports": "npx babel-node --extensions .js,.mjs,.ts,.mts --config-file ./babel.config.json -- ./packages/urlstate/exportsTest.ts",
|
|
97
|
+
"test": "wireit",
|
|
98
|
+
"tsc": "wireit",
|
|
99
|
+
"dev": "wireit",
|
|
100
|
+
"dev:lib": "wireit",
|
|
101
|
+
"dev:nextjs": "wireit",
|
|
102
|
+
"bump": "npx standard-version --no-verify",
|
|
103
|
+
"build": "wireit",
|
|
104
|
+
"build:demo": "wireit",
|
|
105
|
+
"start:demo": "npm run build && cd packages/example-nextjs && npm run build && npm run start",
|
|
106
|
+
"kill-next": "wireit",
|
|
107
|
+
"kill-vite": "wireit",
|
|
108
|
+
"cleanup": "rm -rf dist",
|
|
109
|
+
"reinstall": "rm -rf dist .wireit node_modules packages/example-nextjs/node_modules packages/example-nextjs/.next packages/example-react/node_modules && npm install",
|
|
110
|
+
"setup": "playwright install --with-deps",
|
|
111
|
+
"prepack": "npm run build && cp package.json dist/package.json && npm run build:demo",
|
|
112
|
+
"prepare": "npx husky",
|
|
113
|
+
"preinstall": "npx only-allow npm"
|
|
114
|
+
},
|
|
115
|
+
"wireit": {
|
|
116
|
+
"test": {
|
|
117
|
+
"dependencies": [
|
|
118
|
+
"tsc",
|
|
119
|
+
"test:unit"
|
|
120
|
+
],
|
|
121
|
+
"command": "npm run test:int"
|
|
122
|
+
},
|
|
123
|
+
"kill-next": {
|
|
124
|
+
"command": "ps aux | grep .next | grep -v grep | awk '{print $2}' | xargs kill -9 2>&1; exit 0"
|
|
125
|
+
},
|
|
126
|
+
"kill-vite": {
|
|
127
|
+
"command": "ps aux | grep '.bin/vite' | grep -v grep | awk '{print $2}' | xargs kill -9 2>&1; exit 0"
|
|
128
|
+
},
|
|
129
|
+
"test:int:ci": {
|
|
130
|
+
"command": "playwright test",
|
|
131
|
+
"dependencies": [
|
|
132
|
+
"dev:react"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"test:int": {
|
|
136
|
+
"command": "playwright test --project=chromium --retries=2",
|
|
137
|
+
"dependencies": [
|
|
138
|
+
"dev:react"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"tsc": {
|
|
142
|
+
"command": "npx tsc --noEmit"
|
|
143
|
+
},
|
|
144
|
+
"test:unit": {
|
|
145
|
+
"dependencies": [
|
|
146
|
+
"tsc"
|
|
147
|
+
],
|
|
148
|
+
"command": "npx jest"
|
|
149
|
+
},
|
|
150
|
+
"dev": {
|
|
151
|
+
"dependencies": [
|
|
152
|
+
"dev:lib",
|
|
153
|
+
"kill-next"
|
|
154
|
+
],
|
|
155
|
+
"service": true,
|
|
156
|
+
"command": "npm run dev:nextjs"
|
|
157
|
+
},
|
|
158
|
+
"dev:lib": {
|
|
159
|
+
"command": "cross-env IS_DEVELOPMENT=true rollup -c rollup.config.js -w",
|
|
160
|
+
"service": {
|
|
161
|
+
"readyWhen": {
|
|
162
|
+
"lineMatches": "created "
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"dependencies": [
|
|
166
|
+
"cleanup"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
"dev:react-router": {
|
|
170
|
+
"command": "cd packages/example-react-router6 && npm run dev",
|
|
171
|
+
"service": {
|
|
172
|
+
"readyWhen": {
|
|
173
|
+
"lineMatches": "ready in"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"dev:nextjs": {
|
|
178
|
+
"command": "cd packages/example-nextjs && npm run dev",
|
|
179
|
+
"dependencies": [
|
|
180
|
+
"dev:react"
|
|
181
|
+
],
|
|
182
|
+
"service": {
|
|
183
|
+
"readyWhen": {
|
|
184
|
+
"lineMatches": "Ready in"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"build:demo": {
|
|
189
|
+
"command": "cd packages/example-nextjs && npm run build"
|
|
190
|
+
},
|
|
191
|
+
"dev:react": {
|
|
192
|
+
"command": "cd packages/example-react && npm run dev",
|
|
193
|
+
"service": {
|
|
194
|
+
"readyWhen": {
|
|
195
|
+
"lineMatches": "ready in"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"build": {
|
|
200
|
+
"command": "rollup -c rollup.config.js && npm run test:exports",
|
|
201
|
+
"dependencies": [
|
|
202
|
+
"cleanup"
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"browserslist": [
|
|
207
|
+
"last 5 Chrome versions",
|
|
208
|
+
"last 5 ChromeAndroid versions",
|
|
209
|
+
"last 5 Firefox versions",
|
|
210
|
+
"last 5 FirefoxAndroid versions",
|
|
211
|
+
"Firefox ESR",
|
|
212
|
+
"last 2 Safari major versions",
|
|
213
|
+
"last 2 iOS major versions"
|
|
214
|
+
],
|
|
215
|
+
"lint-staged": {
|
|
216
|
+
"*.{js,jsx,ts,tsx}": [
|
|
217
|
+
"eslint --fix"
|
|
218
|
+
],
|
|
219
|
+
"*.{html,css,less,ejs,json}": [
|
|
220
|
+
"prettier --write"
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
"config": {
|
|
224
|
+
"commitizen": {
|
|
225
|
+
"path": "cz-conventional-changelog"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"commitlint": {
|
|
229
|
+
"extends": [
|
|
230
|
+
"@commitlint/config-conventional"
|
|
231
|
+
],
|
|
232
|
+
"rules": {
|
|
233
|
+
"body-max-line-length": [
|
|
234
|
+
0,
|
|
235
|
+
"always",
|
|
236
|
+
"Infinity"
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"devDependencies": {
|
|
241
|
+
"@babel/core": "^7.25.2",
|
|
242
|
+
"@babel/node": "^7.25.0",
|
|
243
|
+
"@babel/preset-env": "^7.25.3",
|
|
244
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
245
|
+
"@commitlint/cli": "^19.0.3",
|
|
246
|
+
"@commitlint/config-conventional": "^19.0.3",
|
|
247
|
+
"@playwright/test": "^1.45.3",
|
|
248
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
249
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
250
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
251
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
252
|
+
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
253
|
+
"@semantic-release/git": "^10.0.1",
|
|
254
|
+
"@semantic-release/npm": "^12.0.1",
|
|
255
|
+
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
256
|
+
"@testing-library/dom": "^10.4.0",
|
|
257
|
+
"@testing-library/jest-dom": "^6.4.8",
|
|
258
|
+
"@testing-library/react": "^16.0.0",
|
|
259
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
260
|
+
"@types/glob": "^8.1.0",
|
|
261
|
+
"@types/jest": "^29.5.12",
|
|
262
|
+
"@types/node": "^20.11.24",
|
|
263
|
+
"@types/react": "^18.3.3",
|
|
264
|
+
"@types/react-dom": "^18.3.0",
|
|
265
|
+
"auto-changelog": "^2.4.0",
|
|
266
|
+
"babel-plugin-module-resolver": "^5.0.2",
|
|
267
|
+
"commitizen": "^4.3.0",
|
|
268
|
+
"conventional-recommended-bump": "^10.0.0",
|
|
269
|
+
"cross-env": "^7.0.3",
|
|
270
|
+
"cz": "^1.8.2",
|
|
271
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
272
|
+
"eslint": "^8.57.0",
|
|
273
|
+
"eslint-plugin-maintainable": "^0.4.4",
|
|
274
|
+
"husky": "^9.0.11",
|
|
275
|
+
"jest": "^29.7.0",
|
|
276
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
277
|
+
"lint-staged": "^15.2.9",
|
|
278
|
+
"playwright": "^1.45.3",
|
|
279
|
+
"prettier": "^3.2.5",
|
|
280
|
+
"release-it": "^17.6.0",
|
|
281
|
+
"rollup": "^2.79.1",
|
|
282
|
+
"rollup-plugin-filesize": "^10.0.0",
|
|
283
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
284
|
+
"semantic-release": "^24.1.0",
|
|
285
|
+
"standard-version": "^9.5.0",
|
|
286
|
+
"ts-jest": "^29.1.5",
|
|
287
|
+
"ts-node": "^10.9.2",
|
|
288
|
+
"typescript": "^5.3.3",
|
|
289
|
+
"wireit": "^0.14.4",
|
|
290
|
+
"zx": "^8.1.5"
|
|
291
|
+
}
|
|
292
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "state-in-url",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Library to store state in browser URL, includes hook for NextJS, hook for pure React, and low level helpers. https://state-in-url-asmyshlyaev177.vercel.app/",
|
|
5
5
|
"homepage": "https://github.com/asmyshlyaev177/state-in-url#readme",
|
|
6
6
|
"keywords": [
|
|
@@ -228,7 +228,14 @@
|
|
|
228
228
|
"commitlint": {
|
|
229
229
|
"extends": [
|
|
230
230
|
"@commitlint/config-conventional"
|
|
231
|
-
]
|
|
231
|
+
],
|
|
232
|
+
"rules": {
|
|
233
|
+
"body-max-line-length": [
|
|
234
|
+
0,
|
|
235
|
+
"always",
|
|
236
|
+
"Infinity"
|
|
237
|
+
]
|
|
238
|
+
}
|
|
232
239
|
},
|
|
233
240
|
"devDependencies": {
|
|
234
241
|
"@babel/core": "^7.25.2",
|
|
@@ -241,6 +248,11 @@
|
|
|
241
248
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
242
249
|
"@rollup/plugin-terser": "^0.4.4",
|
|
243
250
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
251
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
252
|
+
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
253
|
+
"@semantic-release/git": "^10.0.1",
|
|
254
|
+
"@semantic-release/npm": "^12.0.1",
|
|
255
|
+
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
244
256
|
"@testing-library/dom": "^10.4.0",
|
|
245
257
|
"@testing-library/jest-dom": "^6.4.8",
|
|
246
258
|
"@testing-library/react": "^16.0.0",
|