@kasperrt/smolter 0.3.2 → 0.3.3
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/.generated/client/deployment.ts +3 -1
- package/CHANGELOG.md +5 -0
- package/README.md +6 -6
- package/dist/client/deployment.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
|
@@ -73,7 +73,9 @@ export function watchDeployment(
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
const preloadError = () => {
|
|
76
|
-
|
|
76
|
+
// Intent prefetch is speculative: it must not reload the current page or
|
|
77
|
+
// consume the recovery marker before a click records its destination.
|
|
78
|
+
if (router.getSnapshot().state !== "loading") return;
|
|
77
79
|
|
|
78
80
|
const current = sequence;
|
|
79
81
|
const target = destination;
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
- Ignore idle intent-prefetch chunk failures in deployment recovery so the next click retains its destination and reload marker.
|
|
6
|
+
- Keep active-navigation chunk recovery and latest-navigation wins behavior, with unit and production-browser regressions.
|
|
7
|
+
|
|
3
8
|
## 0.3.2
|
|
4
9
|
|
|
5
10
|
- Configure transport endpoints consistently across browser handlers, file routes, Express and development middleware for multiple apps sharing one origin.
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# smolter _
|
|
2
2
|
|
|
3
3
|
<!-- bundlejs:start -->
|
|
4
|
-
[](https://bundlejs.com/?q=%40kasperrt%2Fsmolter%400.3.3%2Freact&treeshake=%5B*%5D&config=%7B%22compression%22%3A%22gzip%22%2C%22esbuild%22%3A%7B%22external%22%3A%5B%22react%22%2C%22react%2F*%22%5D%7D%7D&bundle)
|
|
5
|
+
[](https://bundlejs.com/?q=%40kasperrt%2Fsmolter%400.3.3%2Fpreact&treeshake=%5B*%5D&config=%7B%22compression%22%3A%22gzip%22%2C%22esbuild%22%3A%7B%22external%22%3A%5B%22preact%22%2C%22preact%2F*%22%5D%7D%7D&bundle)
|
|
6
6
|
<!-- bundlejs:end -->
|
|
7
7
|
|
|
8
8
|
A typed data router for React and Preact. **Zero runtime dependencies.**
|
|
@@ -605,10 +605,10 @@ a claim of identical features.
|
|
|
605
605
|
| `Preact: routing-only named exports` | 1405 |
|
|
606
606
|
| `@kasperrt/smolter/react` | 2948 |
|
|
607
607
|
| `@kasperrt/smolter/preact` | 4842 |
|
|
608
|
-
| `@kasperrt/smolter/react + @kasperrt/smolter/react/client` |
|
|
609
|
-
| `@kasperrt/smolter/preact + server transport` |
|
|
610
|
-
| `@kasperrt/smolter/preact + client + document (application without lazy routes)` |
|
|
611
|
-
| `@kasperrt/smolter/preact + client + document + lazy-route (file-routed application)` |
|
|
608
|
+
| `@kasperrt/smolter/react + @kasperrt/smolter/react/client` | 4044 |
|
|
609
|
+
| `@kasperrt/smolter/preact + server transport` | 5883 |
|
|
610
|
+
| `@kasperrt/smolter/preact + client + document (application without lazy routes)` | 8415 |
|
|
611
|
+
| `@kasperrt/smolter/preact + client + document + lazy-route (file-routed application)` | 8701 |
|
|
612
612
|
| `@kasperrt/smolter/react/data (optional resource API)` | 2962 |
|
|
613
613
|
| `React: common routing/data exports` | 2761 |
|
|
614
614
|
| `Preact: common routing/data exports` | 3046 |
|
|
@@ -38,7 +38,7 @@ function watchDeployment(router, options) {
|
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
40
|
const preloadError = () => {
|
|
41
|
-
if (router.getSnapshot().state
|
|
41
|
+
if (router.getSnapshot().state !== "loading") return;
|
|
42
42
|
const current = sequence;
|
|
43
43
|
const target = destination;
|
|
44
44
|
changed().then((updated) => {
|
package/jsr.json
CHANGED