@k8ordo/state 1.3.0 → 1.4.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/README.md CHANGED
@@ -32,7 +32,7 @@ pnpm add @k8ordo/state zod
32
32
  | ---------------- | ------- | -------- | ------------------------------------------------------- |
33
33
  | `react` | ≥19.3.0 | yes | `useAppState` |
34
34
  | `zod` | ^4.6.6 | yes | the schemas (`zod/mini` works, and is the lighter pick) |
35
- | `@k8ordo/router` | ^1.3.0 | optional | typed `href` paths from the app's route table |
35
+ | `@k8ordo/router` | ^1.4.0 | optional | typed `href` paths from the app's route table |
36
36
  | `typescript` | ≥7.0.0 | optional | the shipped type declarations |
37
37
  | `@types/react` | ≥19.3.0 | optional | the shipped type declarations |
38
38
 
package/docs/GUIDE.md CHANGED
@@ -264,8 +264,8 @@ was given, a navigation that moves the search loads that page again: a GET
264
264
  form, a link, or a url `update()`. That load is a state change otherwise — no
265
265
  scroll, no focus reset, nothing remounts — and `update().finished` settles
266
266
  once the page is on screen with the new search. Going back or forward to
267
- another search of the page loads it again too, and then the browser restores
268
- the position that entry was left at. The router's usual shortcut,
267
+ another search of the page loads it again too, and once it is on screen the
268
+ viewport returns to where that entry was left. The router's usual shortcut,
269
269
  a same-pathname navigation that loads nothing, still holds for every page
270
270
  that did not declare `search`, and for a search that did not move.
271
271
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k8ordo/state",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Declare state by where it lives — URL search params, history-entry state, localStorage, sessionStorage, a cookie, or memory. One zod schema per boundary place and a typed box for memory, over the Navigation API.",
5
5
  "keywords": [
6
6
  "cookie",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@arethetypeswrong/cli": "0.18.5",
46
- "@k8ordo/router": "^1.3.0",
46
+ "@k8ordo/router": "^1.4.0",
47
47
  "@types/react": "19.3.0",
48
48
  "@types/react-dom": "19.3.0",
49
49
  "@vitejs/plugin-basic-ssl": "2.3.0",
@@ -61,7 +61,7 @@
61
61
  "zod": "4.6.7"
62
62
  },
63
63
  "peerDependencies": {
64
- "@k8ordo/router": "^1.3.0",
64
+ "@k8ordo/router": "^1.4.0",
65
65
  "@types/react": ">=19.3.0",
66
66
  "react": ">=19.3.0",
67
67
  "typescript": ">=7.0.0",