@vibesdotdev/kit 1.0.0-rc.4 → 1.0.0-rc.5
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.
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SvelteKit `version` config for a Vibes app.
|
|
3
|
+
*
|
|
4
|
+
* `version.name` is a build identity: the client offers a reload only when it
|
|
5
|
+
* changes, and the deploy smoke probe compares it with the commit it shipped.
|
|
6
|
+
* The deploy's build version therefore wins; an app label is only a fallback
|
|
7
|
+
* for a build that has none, and a timestamp keeps local builds changing.
|
|
8
|
+
*
|
|
9
|
+
* `svelte.config.js` imports this at config-load time (plain Node/Bun, no Vite
|
|
10
|
+
* transform), so it reads no environment: the caller passes the build version
|
|
11
|
+
* it read through its own tooling runtime.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createKitVersion({ buildVersion, name, pollInterval, now }?: {
|
|
14
|
+
/** VIBES_BUILD_VERSION (or the host's commit sha) as the caller read it. */
|
|
15
|
+
buildVersion?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
pollInterval?: number;
|
|
18
|
+
now?: () => number;
|
|
19
|
+
}): {
|
|
20
|
+
name: string;
|
|
21
|
+
pollInterval: number;
|
|
22
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SvelteKit `version` config for a Vibes app.
|
|
3
|
+
*
|
|
4
|
+
* `version.name` is a build identity: the client offers a reload only when it
|
|
5
|
+
* changes, and the deploy smoke probe compares it with the commit it shipped.
|
|
6
|
+
* The deploy's build version therefore wins; an app label is only a fallback
|
|
7
|
+
* for a build that has none, and a timestamp keeps local builds changing.
|
|
8
|
+
*
|
|
9
|
+
* `svelte.config.js` imports this at config-load time (plain Node/Bun, no Vite
|
|
10
|
+
* transform), so it reads no environment: the caller passes the build version
|
|
11
|
+
* it read through its own tooling runtime.
|
|
12
|
+
*/
|
|
13
|
+
export function createKitVersion({ buildVersion, name, pollInterval = 60_000, now = Date.now } = {}) {
|
|
14
|
+
return { name: buildVersion || name || String(now()), pollInterval };
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibesdotdev/kit",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.5",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@codemirror/autocomplete": "^6.20.4",
|
|
6
6
|
"@codemirror/commands": "^6.11.1",
|
|
@@ -47,23 +47,23 @@
|
|
|
47
47
|
"tailwind-variants": "^3.3.1",
|
|
48
48
|
"tw-animate-css": "^1.4.0",
|
|
49
49
|
"vaul-svelte": "^1.0.0-next.7",
|
|
50
|
-
"@vibesdotdev/surface-sveltekit": "^1.0.0-rc.
|
|
50
|
+
"@vibesdotdev/surface-sveltekit": "^1.0.0-rc.6"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@humanspeak/svelte-markdown": "^1.9.5",
|
|
54
54
|
"@iconify/svelte": "^5.2.3",
|
|
55
55
|
"@sveltejs/kit": "^2.70.3",
|
|
56
|
-
"@vibesdotdev/config": "^1.0.0-rc.
|
|
57
|
-
"@vibesdotdev/infra-core": "^1.0.0-rc.
|
|
58
|
-
"@vibesdotdev/kernel": "^1.0.0-rc.
|
|
56
|
+
"@vibesdotdev/config": "^1.0.0-rc.0",
|
|
57
|
+
"@vibesdotdev/infra-core": "^1.0.0-rc.0",
|
|
58
|
+
"@vibesdotdev/kernel": "^1.0.0-rc.0",
|
|
59
59
|
"drizzle-orm": "^0.45.4",
|
|
60
60
|
"svelte": "^5.57.2",
|
|
61
61
|
"tailwindcss": "^4.3.3",
|
|
62
62
|
"zod": "^4.6.7",
|
|
63
|
-
"@vibesdotdev/design-tokens": "^1.0.0-rc.
|
|
64
|
-
"@vibesdotdev/filesystem": "^1.0.0-rc.
|
|
65
|
-
"@vibesdotdev/paths": "^1.0.0-rc.
|
|
66
|
-
"@vibesdotdev/shared": "^1.0.0-rc.
|
|
63
|
+
"@vibesdotdev/design-tokens": "^1.0.0-rc.0",
|
|
64
|
+
"@vibesdotdev/filesystem": "^1.0.0-rc.0",
|
|
65
|
+
"@vibesdotdev/paths": "^1.0.0-rc.0",
|
|
66
|
+
"@vibesdotdev/shared": "^1.0.0-rc.0"
|
|
67
67
|
},
|
|
68
68
|
"main": "./dist/lib/index.js",
|
|
69
69
|
"exports": {
|
|
@@ -956,6 +956,12 @@
|
|
|
956
956
|
"import": "./dist/lib/config/css-hash.js",
|
|
957
957
|
"default": "./dist/lib/config/css-hash.js"
|
|
958
958
|
},
|
|
959
|
+
"./config/sveltekit-version": {
|
|
960
|
+
"types": "./dist/lib/config/sveltekit-version.d.ts",
|
|
961
|
+
"bun": "./dist/lib/config/sveltekit-version.js",
|
|
962
|
+
"import": "./dist/lib/config/sveltekit-version.js",
|
|
963
|
+
"default": "./dist/lib/config/sveltekit-version.js"
|
|
964
|
+
},
|
|
959
965
|
"./config/sveltekit-browser-csp": {
|
|
960
966
|
"types": "./dist/lib/config/sveltekit-browser-csp.d.ts",
|
|
961
967
|
"bun": "./dist/lib/config/sveltekit-browser-csp.js",
|
|
@@ -1363,10 +1369,10 @@
|
|
|
1363
1369
|
"ui-components",
|
|
1364
1370
|
"typescript"
|
|
1365
1371
|
],
|
|
1366
|
-
"gitHead": "
|
|
1372
|
+
"gitHead": "5b9a620a037cea8a45d0492ea6e346875c84c6c4",
|
|
1367
1373
|
"_vibes_source": {
|
|
1368
1374
|
"repo": "ssh://git@git.vibes.dev/vibesdotdev/kit.git",
|
|
1369
|
-
"sha": "
|
|
1370
|
-
"workspaceDigest": "sha256:
|
|
1375
|
+
"sha": "5b9a620a037cea8a45d0492ea6e346875c84c6c4",
|
|
1376
|
+
"workspaceDigest": "sha256:44aa7d9701e939721471f7b830f303df963e9a90603baf9d43d645dba2b7e1de"
|
|
1371
1377
|
}
|
|
1372
1378
|
}
|