state-in-url 6.1.0 → 6.1.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.
Files changed (1) hide show
  1. package/package.json +59 -54
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "state-in-url",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "Store state in URL as in object, types and structure are preserved, with TS validation. Same API as React.useState, wthout any hasssle or boilerplate. Next.js@14-15, react-router@6-7, and remix@2.",
5
5
  "homepage": "https://state-in-url.dev",
6
6
  "repository": {
@@ -25,16 +25,6 @@
25
25
  "bugs": {
26
26
  "url": "https://github.com/asmyshlyaev177/state-in-url/issues"
27
27
  },
28
- "workspaces": [
29
- "packages/urlstate",
30
- "packages/example-nextjs14",
31
- "packages/example-nextjs15",
32
- "packages/example-nextjs16",
33
- "packages/example-react",
34
- "packages/example-react-router6",
35
- "packages/example-react-router7",
36
- "packages/example-remix2"
37
- ],
38
28
  "files": [
39
29
  "dist"
40
30
  ],
@@ -102,9 +92,9 @@
102
92
  "test:unit": "wireit",
103
93
  "test:int": "wireit",
104
94
  "test:int:ci": "wireit",
105
- "test:exports": "npm run build && npx babel-node --extensions .js,.mjs,.ts,.mts --config-file ./babel.config.json -- ./packages/urlstate/exportsTest.ts",
106
- "install:all": "npm install",
107
- "install:ci": "npm ci",
95
+ "test:exports": "pnpm run build && npx babel-node --extensions .js,.mjs,.ts,.mts --config-file ./babel.config.json -- ./packages/urlstate/exportsTest.ts",
96
+ "install:all": "pnpm install",
97
+ "install:ci": "pnpm install --frozen-lockfile",
108
98
  "test": "wireit",
109
99
  "tsc": "wireit",
110
100
  "dev": "wireit",
@@ -128,11 +118,11 @@
128
118
  "kill": "wireit",
129
119
  "rmdist": "rm -rf dist",
130
120
  "cleanup": "rm -rf dist .wireit node_modules test-results playwright-report coverage-reports nyc_coverage packages/example-nextjs14/node_modules packages/example-nextjs14/.next packages/example-nextjs15/node_modules packages/example-nextjs15/.next packages/example-nextjs16/node_modules packages/example-nextjs16/.next packages/example-react/node_modules packages/example-react-router6/node_modules packages/example-react-router7/node_modules packages/example-remix2/node_modules",
131
- "reinstall": "npm run cleanup && npm install",
121
+ "reinstall": "pnpm run cleanup && pnpm install",
132
122
  "setup": "playwright install --with-deps",
133
- "prepack": "npm run build && cp package.json dist/package.json && npm run build:demo",
123
+ "prepack": "pnpm run build && cp package.json dist/package.json && pnpm run build:demo",
134
124
  "pin-gh-deps": "pin-github-action -i .github/workflows/tests.yml",
135
- "prepare": "npx husky"
125
+ "prepare": "pnpm exec husky"
136
126
  },
137
127
  "wireit": {
138
128
  "dev": {
@@ -150,7 +140,7 @@
150
140
  "lineMatches": "http://localhost:3000"
151
141
  }
152
142
  },
153
- "command": "npm run dev:nextjs15"
143
+ "command": "pnpm run dev:nextjs15"
154
144
  },
155
145
  "test": {
156
146
  "dependencies": [
@@ -158,7 +148,7 @@
158
148
  "test:unit",
159
149
  "build:packages"
160
150
  ],
161
- "command": "npm run test:exports && npm run test:int"
151
+ "command": "pnpm run test:exports && pnpm run test:int"
162
152
  },
163
153
  "kill-next": {
164
154
  "command": "ps aux | grep .next | grep -v grep | awk '{print $2}' | xargs kill -9 2>&1; exit 0"
@@ -204,61 +194,61 @@
204
194
  ]
205
195
  },
206
196
  "dev:router6": {
207
- "command": "cd packages/example-react-router6 && npm run dev",
197
+ "command": "cd packages/example-react-router6 && pnpm run dev",
208
198
  "service": true
209
199
  },
210
200
  "dev:router7": {
211
- "command": "cd packages/example-react-router7 && npm run dev",
201
+ "command": "cd packages/example-react-router7 && pnpm run dev",
212
202
  "service": true
213
203
  },
214
204
  "dev:remix2": {
215
- "command": "cd packages/example-remix2 && PORT=3003 npm run dev",
205
+ "command": "cd packages/example-remix2 && PORT=3003 pnpm run dev",
216
206
  "service": true
217
207
  },
218
208
  "dev:nextjs14": {
219
- "command": "cd packages/example-nextjs14 && npm run dev --turbo",
209
+ "command": "cd packages/example-nextjs14 && pnpm run dev --turbo",
220
210
  "service": true
221
211
  },
222
212
  "dev:nextjs15": {
223
- "command": "cd packages/example-nextjs15 && npm run dev --turbo",
213
+ "command": "cd packages/example-nextjs15 && pnpm run dev --turbo",
224
214
  "service": true
225
215
  },
226
216
  "dev:nextjs16": {
227
- "command": "cd packages/example-nextjs16 && npm run dev --turbo",
217
+ "command": "cd packages/example-nextjs16 && pnpm run dev --turbo",
228
218
  "service": true
229
219
  },
230
220
  "build:next14": {
231
- "command": "cd packages/example-nextjs14 && npm run build",
221
+ "command": "cd packages/example-nextjs14 && pnpm run build",
232
222
  "dependencies": [
233
223
  "build"
234
224
  ]
235
225
  },
236
226
  "build:next15": {
237
- "command": "cd packages/example-nextjs15 && npm run build",
227
+ "command": "cd packages/example-nextjs15 && pnpm run build",
238
228
  "dependencies": [
239
229
  "build"
240
230
  ]
241
231
  },
242
232
  "build:next16": {
243
- "command": "cd packages/example-nextjs16 && npm run build",
233
+ "command": "cd packages/example-nextjs16 && pnpm run build",
244
234
  "dependencies": [
245
235
  "build"
246
236
  ]
247
237
  },
248
238
  "build:router6": {
249
- "command": "cd packages/example-react-router6 && npm run build",
239
+ "command": "cd packages/example-react-router6 && pnpm run build",
250
240
  "dependencies": [
251
241
  "build"
252
242
  ]
253
243
  },
254
244
  "build:router7": {
255
- "command": "cd packages/example-react-router7 && npm run build",
245
+ "command": "cd packages/example-react-router7 && pnpm run build",
256
246
  "dependencies": [
257
247
  "build"
258
248
  ]
259
249
  },
260
250
  "build:remix2": {
261
- "command": "cd packages/example-remix2 && npm run build",
251
+ "command": "cd packages/example-remix2 && pnpm run build",
262
252
  "dependencies": [
263
253
  "build"
264
254
  ]
@@ -267,23 +257,23 @@
267
257
  "dependencies": [
268
258
  "build"
269
259
  ],
270
- "command": "cd packages/example-nextjs15 && npm run build"
260
+ "command": "cd packages/example-nextjs15 && pnpm run build"
271
261
  },
272
262
  "build:demo:tests": {
273
263
  "dependencies": [
274
264
  "build"
275
265
  ],
276
- "command": "cd packages/example-nextjs15 && npx cross-env TEST=true npm run build"
266
+ "command": "cd packages/example-nextjs15 && npx cross-env TEST=true pnpm run build"
277
267
  },
278
268
  "start:demo": {
279
269
  "dependencies": [
280
270
  "build:demo"
281
271
  ],
282
- "command": "cd packages/example-nextjs15 && npm run start",
272
+ "command": "cd packages/example-nextjs15 && pnpm run start",
283
273
  "service": true
284
274
  },
285
275
  "start:demo:ci": {
286
- "command": "cd packages/example-nextjs15 && npm run start",
276
+ "command": "cd packages/example-nextjs15 && pnpm run start",
287
277
  "service": true
288
278
  },
289
279
  "start:react": {
@@ -320,51 +310,51 @@
320
310
  "service": true
321
311
  },
322
312
  "start:remix2": {
323
- "command": "cd packages/example-remix2 && npm run start",
313
+ "command": "cd packages/example-remix2 && pnpm run start",
324
314
  "dependencies": [
325
315
  "build:remix2"
326
316
  ],
327
317
  "service": true
328
318
  },
329
319
  "start:remix2:ci": {
330
- "command": "cd packages/example-remix2 && npm run start",
320
+ "command": "cd packages/example-remix2 && pnpm run start",
331
321
  "service": true
332
322
  },
333
323
  "start:demo14": {
334
324
  "dependencies": [
335
325
  "build:next14"
336
326
  ],
337
- "command": "cd packages/example-nextjs14 && npm run start",
327
+ "command": "cd packages/example-nextjs14 && pnpm run start",
338
328
  "service": true
339
329
  },
340
330
  "start:demo15": {
341
331
  "dependencies": [
342
332
  "build:next15"
343
333
  ],
344
- "command": "cd packages/example-nextjs15 && npm run start",
334
+ "command": "cd packages/example-nextjs15 && pnpm run start",
345
335
  "service": true
346
336
  },
347
337
  "start:demo14:ci": {
348
- "command": "cd packages/example-nextjs14 && npm run start",
338
+ "command": "cd packages/example-nextjs14 && pnpm run start",
349
339
  "service": true
350
340
  },
351
341
  "start:demo15:ci": {
352
- "command": "cd packages/example-nextjs15 && npm run start",
342
+ "command": "cd packages/example-nextjs15 && pnpm run start",
353
343
  "service": true
354
344
  },
355
345
  "start:demo16": {
356
346
  "dependencies": [
357
347
  "build:next16"
358
348
  ],
359
- "command": "cd packages/example-nextjs16 && npm run start",
349
+ "command": "cd packages/example-nextjs16 && pnpm run start",
360
350
  "service": true
361
351
  },
362
352
  "start:demo16:ci": {
363
- "command": "cd packages/example-nextjs16 && npm run start",
353
+ "command": "cd packages/example-nextjs16 && pnpm run start",
364
354
  "service": true
365
355
  },
366
356
  "start": {
367
- "command": "npm run start:demo15",
357
+ "command": "pnpm run start:demo15",
368
358
  "dependencies": [
369
359
  "start:demo14",
370
360
  "start:demo16",
@@ -376,7 +366,7 @@
376
366
  "service": true
377
367
  },
378
368
  "start:ci": {
379
- "command": "npm run start:demo15:ci",
369
+ "command": "pnpm run start:demo15:ci",
380
370
  "dependencies": [
381
371
  "start:demo14:ci",
382
372
  "start:demo16:ci",
@@ -388,7 +378,7 @@
388
378
  "service": true
389
379
  },
390
380
  "dev:react": {
391
- "command": "cd packages/example-react && npm run dev",
381
+ "command": "cd packages/example-react && pnpm run dev",
392
382
  "service": true
393
383
  },
394
384
  "build:packages": {
@@ -404,7 +394,7 @@
404
394
  ]
405
395
  },
406
396
  "build:react": {
407
- "command": "cd packages/example-react && npm run build"
397
+ "command": "cd packages/example-react && pnpm run build"
408
398
  },
409
399
  "build": {
410
400
  "command": "rollup -c rollup.config.mjs",
@@ -460,13 +450,12 @@
460
450
  "@semantic-release/changelog": "^6.0.3",
461
451
  "@semantic-release/commit-analyzer": "^13.0.1",
462
452
  "@semantic-release/git": "^10.0.1",
463
- "@semantic-release/npm": "^13.1.1",
453
+ "@semantic-release/npm": "^13.1.3",
464
454
  "@semantic-release/release-notes-generator": "^14.1.0",
465
455
  "@testing-library/dom": "^10.4.1",
466
456
  "@testing-library/jest-dom": "^6.9.0",
467
457
  "@testing-library/react": "^16.3.0",
468
458
  "@testing-library/react-hooks": "^8.0.1",
469
- "@types/glob": "^8.1.0",
470
459
  "@types/node": "^20.19.18",
471
460
  "@types/react": "^18.3.25",
472
461
  "@types/react-dom": "^18.3.7",
@@ -487,6 +476,7 @@
487
476
  "eslint-plugin-prettier": "^5.2.1",
488
477
  "eslint-plugin-react-hooks": "^4.6.2",
489
478
  "eslint-plugin-simple-import-sort": "^12.1.1",
479
+ "glob": "^13.0.0",
490
480
  "happy-dom": "^15.11.7",
491
481
  "husky": "^9.1.7",
492
482
  "lint-staged": "^15.5.2",
@@ -496,19 +486,23 @@
496
486
  "playwright": "^1.55.1",
497
487
  "prettier": "^3.6.2",
498
488
  "prettier-plugin-tailwindcss": "^0.6.14",
489
+ "react-router": "^7.10.1",
499
490
  "release-it": "^17.11.0",
500
491
  "rollup": "^4.52.3",
501
492
  "rollup-plugin-esbuild": "^6.2.1",
502
493
  "rollup-plugin-filesize": "^10.0.0",
503
494
  "rollup-plugin-sourcemaps": "^0.6.3",
504
- "semantic-release": "^24.2.9",
495
+ "semantic-release": "^25.0.2",
505
496
  "standard-version": "^9.5.0",
506
497
  "ts-node": "^10.9.2",
507
498
  "typescript": "^5.9.2",
508
499
  "unplugin-auto-import": "^0.18.6",
509
500
  "vitest": "^2.1.9",
510
501
  "wait-on": "^8.0.5",
511
- "wireit": "^0.14.12"
502
+ "wireit": "^0.14.12",
503
+ "next": "^15.5.9",
504
+ "react": "^19.2.1",
505
+ "react-dom": "^19.2.1"
512
506
  },
513
507
  "keywords": [
514
508
  "state in url",
@@ -565,8 +559,19 @@
565
559
  "decode url",
566
560
  "fast"
567
561
  ],
568
- "packageManager": "npm@10.8.2",
569
- "dependencies": {
570
- "react-router": "^7.7.1"
562
+ "packageManager": "pnpm@10.26.0",
563
+ "pnpm": {
564
+ "overrides": {
565
+ "@remix-run/react>react": "18.3.1",
566
+ "@remix-run/react>react-dom": "18.3.1"
567
+ },
568
+ "onlyBuiltDependencies": [
569
+ "@parcel/watcher",
570
+ "core-js",
571
+ "esbuild",
572
+ "less",
573
+ "sharp",
574
+ "unrs-resolver"
575
+ ]
571
576
  }
572
577
  }