Skip to content

Commit

Permalink
Update index.d.ts (#8956)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
0gust1 and Rich-Harris authored Feb 9, 2023
1 parent 351af24 commit 0abb8eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-otters-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

docs: clarify that `version.name` should be deterministic
3 changes: 1 addition & 2 deletions packages/kit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,7 @@ export interface KitConfig {
*/
version?: {
/**
* The current app version string.
* @default Date.now().toString()
* 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
*/
name?: string;
/**
Expand Down

0 comments on commit 0abb8eb

Please sign in to comment.