Skip to content

Commit 0abb8eb

Browse files
0gust1Rich-Harris
andauthored
Update index.d.ts (#8956)
* Update index.d.ts Doc update attempt, following #8948 * Update index.d.ts Better formulation * Update packages/kit/types/index.d.ts * changeset --------- Co-authored-by: Rich Harris <hello@rich-harris.dev>
1 parent 351af24 commit 0abb8eb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/chilly-otters-act.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
docs: clarify that `version.name` should be deterministic

packages/kit/types/index.d.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,7 @@ export interface KitConfig {
542542
*/
543543
version?: {
544544
/**
545-
* The current app version string.
546-
* @default Date.now().toString()
545+
* The current app version string. If specified, this must be deterministic (e.g. a commit ref rather than `Math.random()` or Date.now().toString()`), otherwise defaults to a timestamp of the build
547546
*/
548547
name?: string;
549548
/**

0 commit comments

Comments
 (0)