navgo 6.0.7 → 6.0.8
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/changelog.md +5 -0
- package/index.js +7 -4
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v6.0.8
|
|
4
|
+
|
|
5
|
+
- breaking: make search-schema transitions atomic by publishing `router.route` before global `router.search_params`, with sync guard across both writes
|
|
6
|
+
- note: `router.route.subscribe(...)` now fires before `router.search_params` updates on search-schema transitions
|
|
7
|
+
|
|
3
8
|
## v6.0.7
|
|
4
9
|
|
|
5
10
|
- add `nav.status` as the formal HTTP-like status for completed navigations
|
package/index.js
CHANGED
|
@@ -588,10 +588,13 @@ export default class Navgo {
|
|
|
588
588
|
#set_search_store(values) {
|
|
589
589
|
const next = values || {}
|
|
590
590
|
this.#search_syncing = true
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
591
|
+
try {
|
|
592
|
+
this.#current.search_params = next
|
|
593
|
+
if (this.#current.url) this.route.set(this.#current)
|
|
594
|
+
this.search_params.set(next)
|
|
595
|
+
} finally {
|
|
596
|
+
this.#search_syncing = false
|
|
597
|
+
}
|
|
595
598
|
}
|
|
596
599
|
|
|
597
600
|
/* Apply resolved search config to current route. */
|