state-in-url 2.4.1 → 2.5.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.
Files changed (2) hide show
  1. package/dist/package.json +280 -0
  2. package/package.json +2 -3
@@ -0,0 +1,280 @@
1
+ {
2
+ "name": "state-in-url",
3
+ "version": "2.5.0",
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
+ },
233
+ "devDependencies": {
234
+ "@babel/core": "^7.25.2",
235
+ "@babel/node": "^7.25.0",
236
+ "@babel/preset-env": "^7.25.3",
237
+ "@babel/preset-typescript": "^7.24.7",
238
+ "@commitlint/cli": "^19.0.3",
239
+ "@commitlint/config-conventional": "^19.0.3",
240
+ "@playwright/test": "^1.45.3",
241
+ "@rollup/plugin-node-resolve": "^15.2.3",
242
+ "@rollup/plugin-terser": "^0.4.4",
243
+ "@rollup/plugin-typescript": "^11.1.6",
244
+ "@testing-library/dom": "^10.4.0",
245
+ "@testing-library/jest-dom": "^6.4.8",
246
+ "@testing-library/react": "^16.0.0",
247
+ "@testing-library/react-hooks": "^8.0.1",
248
+ "@types/glob": "^8.1.0",
249
+ "@types/jest": "^29.5.12",
250
+ "@types/node": "^20.11.24",
251
+ "@types/react": "^18.3.3",
252
+ "@types/react-dom": "^18.3.0",
253
+ "auto-changelog": "^2.4.0",
254
+ "babel-plugin-module-resolver": "^5.0.2",
255
+ "commitizen": "^4.3.0",
256
+ "conventional-recommended-bump": "^10.0.0",
257
+ "cross-env": "^7.0.3",
258
+ "cz": "^1.8.2",
259
+ "cz-conventional-changelog": "^3.3.0",
260
+ "eslint": "^8.57.0",
261
+ "eslint-plugin-maintainable": "^0.4.4",
262
+ "husky": "^9.0.11",
263
+ "jest": "^29.7.0",
264
+ "jest-environment-jsdom": "^29.7.0",
265
+ "lint-staged": "^15.2.9",
266
+ "playwright": "^1.45.3",
267
+ "prettier": "^3.2.5",
268
+ "release-it": "^17.6.0",
269
+ "rollup": "^2.79.1",
270
+ "rollup-plugin-filesize": "^10.0.0",
271
+ "rollup-plugin-sourcemaps": "^0.6.3",
272
+ "semantic-release": "^24.1.0",
273
+ "standard-version": "^9.5.0",
274
+ "ts-jest": "^29.1.5",
275
+ "ts-node": "^10.9.2",
276
+ "typescript": "^5.3.3",
277
+ "wireit": "^0.14.4",
278
+ "zx": "^8.1.5"
279
+ }
280
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "state-in-url",
3
- "version": "2.4.1",
3
+ "version": "2.5.0",
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": [
@@ -238,8 +238,6 @@
238
238
  "@commitlint/cli": "^19.0.3",
239
239
  "@commitlint/config-conventional": "^19.0.3",
240
240
  "@playwright/test": "^1.45.3",
241
- "@release-it/bumper": "^6.0.1",
242
- "@release-it/conventional-changelog": "^8.0.1",
243
241
  "@rollup/plugin-node-resolve": "^15.2.3",
244
242
  "@rollup/plugin-terser": "^0.4.4",
245
243
  "@rollup/plugin-typescript": "^11.1.6",
@@ -255,6 +253,7 @@
255
253
  "auto-changelog": "^2.4.0",
256
254
  "babel-plugin-module-resolver": "^5.0.2",
257
255
  "commitizen": "^4.3.0",
256
+ "conventional-recommended-bump": "^10.0.0",
258
257
  "cross-env": "^7.0.3",
259
258
  "cz": "^1.8.2",
260
259
  "cz-conventional-changelog": "^3.3.0",