@powerhousedao/builder-tools 6.2.3-dev.60 → 6.2.3-dev.62
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/dist/index.d.mts +170 -5
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +679 -236
- package/dist/index.mjs.map +1 -1
- package/dist/service-worker/service-worker.ts +5 -21
- package/package.json +8 -5
|
@@ -174,28 +174,12 @@ registerRoute(
|
|
|
174
174
|
// producer at that URL. The __WB_MANIFEST property below is the injectManifest
|
|
175
175
|
// injection point — workbox-build replaces it with the precache list at build
|
|
176
176
|
// time (the token is written once, on the code line, never in prose).
|
|
177
|
-
|
|
177
|
+
// `v` versions the reactor worker URLs; the precached copy is that same build's.
|
|
178
|
+
precacheAndRoute(self.__WB_MANIFEST, {
|
|
179
|
+
ignoreURLParametersMatching: [/^utm_/, /^fbclid$/, /^v$/],
|
|
180
|
+
});
|
|
178
181
|
|
|
179
|
-
// ── runtime caching
|
|
180
|
-
// Inter font stays on Google's CDN; cache it after the first online load.
|
|
181
|
-
registerRoute(
|
|
182
|
-
({ url }) => url.origin === "https://fonts.googleapis.com",
|
|
183
|
-
new StaleWhileRevalidate({ cacheName: "google-fonts-stylesheets" }),
|
|
184
|
-
);
|
|
185
|
-
registerRoute(
|
|
186
|
-
({ url }) => url.origin === "https://fonts.gstatic.com",
|
|
187
|
-
new CacheFirst({
|
|
188
|
-
cacheName: "google-fonts-webfonts",
|
|
189
|
-
plugins: [
|
|
190
|
-
new ExpirationPlugin({
|
|
191
|
-
maxEntries: 30,
|
|
192
|
-
maxAgeSeconds: 60 * 60 * 24 * 365,
|
|
193
|
-
}),
|
|
194
|
-
// statuses [0, 200]: 0 permits opaque cross-origin font responses.
|
|
195
|
-
new CacheableResponsePlugin({ statuses: [0, 200] }),
|
|
196
|
-
],
|
|
197
|
-
}),
|
|
198
|
-
);
|
|
182
|
+
// ── runtime caching ──────────────────────────────────────────────────────────
|
|
199
183
|
// Document-model editors/packages loaded at runtime from the registry CDN. The
|
|
200
184
|
// registry ORIGIN is a runtime value, so match the stable "/-/cdn/" path. Two
|
|
201
185
|
// rules (order matters): unversioned ENTRY points first (SWR — a newer editor
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/builder-tools",
|
|
3
|
-
"version": "6.2.3-dev.
|
|
3
|
+
"version": "6.2.3-dev.62",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"publishConfig": {
|
|
@@ -23,11 +23,14 @@
|
|
|
23
23
|
},
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@powerhousedao/config": "6.2.3-dev.
|
|
27
|
-
"@powerhousedao/shared": "6.2.3-dev.
|
|
26
|
+
"@powerhousedao/config": "6.2.3-dev.62",
|
|
27
|
+
"@powerhousedao/shared": "6.2.3-dev.62",
|
|
28
28
|
"@tailwindcss/vite": "4.2.2",
|
|
29
|
+
"@tanstack/router-generator": "1.167.40",
|
|
30
|
+
"@tanstack/router-plugin": "1.168.42",
|
|
31
|
+
"@tanstack/virtual-file-routes": "1.162.0",
|
|
29
32
|
"@vitejs/plugin-react": "6.1.1",
|
|
30
|
-
"document-model": "6.2.3-dev.
|
|
33
|
+
"document-model": "6.2.3-dev.62",
|
|
31
34
|
"magic-string": "^0.30.21",
|
|
32
35
|
"vite": "8.3.0",
|
|
33
36
|
"vite-plugin-html": "3.2.2",
|
|
@@ -45,7 +48,7 @@
|
|
|
45
48
|
"tsx": "4.23.13",
|
|
46
49
|
"vite-plugin-externalize-dependencies": "^1.0.1",
|
|
47
50
|
"vitest": "5.0.3",
|
|
48
|
-
"zod": "4.
|
|
51
|
+
"zod": "^4.5.4"
|
|
49
52
|
},
|
|
50
53
|
"peerDependencies": {
|
|
51
54
|
"@sentry/vite-plugin": "^4.3.0",
|