Skip to content

Commit 8977142

Browse files
committed
chore: update links to preview site
1 parent e99e865 commit 8977142

File tree

5 files changed

+33
-35
lines changed

5 files changed

+33
-35
lines changed

packages/svelte/src/ambient.d.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ declare module '*.svelte' {
2424
* let count = $state(0);
2525
* ```
2626
*
27-
* https://svelte-5-preview.vercel.app/docs/runes#$state
27+
* https://svelte.dev/docs/svelte/$state
2828
*
2929
* @param initial The initial value
3030
*/
@@ -120,7 +120,7 @@ declare namespace $state {
120120
* </button>
121121
* ```
122122
*
123-
* https://svelte-5-preview.vercel.app/docs/runes#$state-raw
123+
* https://svelte.dev/docs/svelte/$state#$state.raw
124124
*
125125
* @param initial The initial value
126126
*/
@@ -141,7 +141,7 @@ declare namespace $state {
141141
* </script>
142142
* ```
143143
*
144-
* https://svelte-5-preview.vercel.app/docs/runes#$state.snapshot
144+
* https://svelte.dev/docs/svelte/$state#$state.snapshot
145145
*
146146
* @param state The value to snapshot
147147
*/
@@ -178,7 +178,7 @@ declare namespace $state {
178178
* let double = $derived(count * 2);
179179
* ```
180180
*
181-
* https://svelte-5-preview.vercel.app/docs/runes#$derived
181+
* https://svelte.dev/docs/svelte/$derived
182182
*
183183
* @param expression The derived state expression
184184
*/
@@ -200,7 +200,7 @@ declare namespace $derived {
200200
* });
201201
* ```
202202
*
203-
* https://svelte-5-preview.vercel.app/docs/runes#$derived-by
203+
* https://svelte.dev/docs/svelte/$derived#$derived.by
204204
*/
205205
export function by<T>(fn: () => T): T;
206206

@@ -239,7 +239,7 @@ declare namespace $derived {
239239
*
240240
* Does not run during server side rendering.
241241
*
242-
* https://svelte-5-preview.vercel.app/docs/runes#$effect
242+
* https://svelte.dev/docs/svelte/$effect
243243
* @param fn The function to execute
244244
*/
245245
declare function $effect(fn: () => void | (() => void)): void;
@@ -258,7 +258,7 @@ declare namespace $effect {
258258
*
259259
* Does not run during server side rendering.
260260
*
261-
* https://svelte-5-preview.vercel.app/docs/runes#$effect-pre
261+
* https://svelte.dev/docs/svelte/$effect#$effect.pre
262262
* @param fn The function to execute
263263
*/
264264
export function pre(fn: () => void | (() => void)): void;
@@ -281,7 +281,7 @@ declare namespace $effect {
281281
*
282282
* This allows you to (for example) add things like subscriptions without causing memory leaks, by putting them in child effects.
283283
*
284-
* https://svelte-5-preview.vercel.app/docs/runes#$effect-tracking
284+
* https://svelte.dev/docs/svelte/$effect#$effect.tracking
285285
*/
286286
export function tracking(): boolean;
287287

@@ -309,7 +309,7 @@ declare namespace $effect {
309309
* <button onclick={() => cleanup()}>cleanup</button>
310310
* ```
311311
*
312-
* https://svelte-5-preview.vercel.app/docs/runes#$effect-root
312+
* https://svelte.dev/docs/svelte/$effect#$effect.root
313313
*/
314314
export function root(fn: () => void | (() => void)): () => void;
315315

@@ -342,7 +342,7 @@ declare namespace $effect {
342342
* let { optionalProp = 42, requiredProp, bindableProp = $bindable() }: { optionalProp?: number; requiredProps: string; bindableProp: boolean } = $props();
343343
* ```
344344
*
345-
* https://svelte-5-preview.vercel.app/docs/runes#$props
345+
* https://svelte.dev/docs/svelte/$props
346346
*/
347347
declare function $props(): any;
348348

@@ -353,7 +353,7 @@ declare function $props(): any;
353353
* let { propName = $bindable() }: { propName: boolean } = $props();
354354
* ```
355355
*
356-
* https://svelte-5-preview.vercel.app/docs/runes#$bindable
356+
* https://svelte.dev/docs/svelte/$bindable
357357
*/
358358
declare function $bindable<T>(fallback?: T): T;
359359

@@ -373,7 +373,7 @@ declare function $bindable<T>(fallback?: T): T;
373373
* $inspect(x, y).with(() => { debugger; });
374374
* ```
375375
*
376-
* https://svelte-5-preview.vercel.app/docs/runes#$inspect
376+
* https://svelte.dev/docs/svelte/$inspect
377377
*/
378378
declare function $inspect<T extends any[]>(
379379
...values: T
@@ -396,6 +396,6 @@ declare function $inspect<T extends any[]>(
396396
*
397397
* Only available inside custom element components, and only on the client-side.
398398
*
399-
* https://svelte-5-preview.vercel.app/docs/runes#$host
399+
* https://svelte.dev/docs/svelte/$host
400400
*/
401401
declare function $host<El extends HTMLElement = HTMLElement>(): El;

packages/svelte/src/compiler/phases/3-transform/server/transform-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export function server_component(analysis, options) {
344344
b.block([
345345
b.throw_error(
346346
`Component.render(...) is no longer valid in Svelte 5. ` +
347-
'See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes for more information'
347+
'See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more information'
348348
)
349349
])
350350
)

packages/svelte/src/index-client.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function create_custom_event(type, detail, { bubbles = false, cancelable = false
8282
* }>();
8383
* ```
8484
*
85-
* @deprecated Use callback props and/or the `$host()` rune instead — see https://svelte-5-preview.vercel.app/docs/deprecations#createeventdispatcher
85+
* @deprecated Use callback props and/or the `$host()` rune instead — see https://svelte.dev/docs/svelte/v5-migration-guide#Event-changes-Component-events
8686
* @template {Record<string, any>} [EventMap = any]
8787
* @returns {EventDispatcher<EventMap>}
8888
*/
@@ -121,7 +121,7 @@ export function createEventDispatcher() {
121121
*
122122
* In runes mode use `$effect.pre` instead.
123123
*
124-
* @deprecated Use `$effect.pre` instead — see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate
124+
* @deprecated Use `$effect.pre` instead — see https://svelte.dev/docs/svelte/$effect#$effect.pre
125125
* @param {() => void} fn
126126
* @returns {void}
127127
*/
@@ -144,7 +144,7 @@ export function beforeUpdate(fn) {
144144
*
145145
* In runes mode use `$effect` instead.
146146
*
147-
* @deprecated Use `$effect` instead — see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate
147+
* @deprecated Use `$effect` instead — see https://svelte.dev/docs/svelte/$effect
148148
* @param {() => void} fn
149149
* @returns {void}
150150
*/

packages/svelte/src/internal/client/runtime.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,6 @@ export function invalidate_inner_signals(fn) {
832832

833833
/**
834834
* Use `untrack` to prevent something from being treated as an `$effect`/`$derived` dependency.
835-
*
836-
* https://svelte-5-preview.vercel.app/docs/functions#untrack
837835
* @template T
838836
* @param {() => T} fn
839837
* @returns {T}

packages/svelte/types/index.d.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ declare module 'svelte' {
385385
* }>();
386386
* ```
387387
*
388-
* @deprecated Use callback props and/or the `$host()` rune instead — see https://svelte-5-preview.vercel.app/docs/deprecations#createeventdispatcher
388+
* @deprecated Use callback props and/or the `$host()` rune instead — see https://svelte.dev/docs/svelte/v5-migration-guide#Event-changes-Component-events
389389
* */
390390
export function createEventDispatcher<EventMap extends Record<string, any> = any>(): EventDispatcher<EventMap>;
391391
/**
@@ -395,7 +395,7 @@ declare module 'svelte' {
395395
*
396396
* In runes mode use `$effect.pre` instead.
397397
*
398-
* @deprecated Use `$effect.pre` instead — see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate
398+
* @deprecated Use `$effect.pre` instead — see https://svelte.dev/docs/svelte/$effect#$effect.pre
399399
* */
400400
export function beforeUpdate(fn: () => void): void;
401401
/**
@@ -405,7 +405,7 @@ declare module 'svelte' {
405405
*
406406
* In runes mode use `$effect` instead.
407407
*
408-
* @deprecated Use `$effect` instead — see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate
408+
* @deprecated Use `$effect` instead — see https://svelte.dev/docs/svelte/$effect
409409
* */
410410
export function afterUpdate(fn: () => void): void;
411411
/**
@@ -2322,7 +2322,7 @@ declare module 'svelte/types/compiler/interfaces' {
23222322
* let count = $state(0);
23232323
* ```
23242324
*
2325-
* https://svelte-5-preview.vercel.app/docs/runes#$state
2325+
* https://svelte.dev/docs/svelte/$state
23262326
*
23272327
* @param initial The initial value
23282328
*/
@@ -2418,7 +2418,7 @@ declare namespace $state {
24182418
* </button>
24192419
* ```
24202420
*
2421-
* https://svelte-5-preview.vercel.app/docs/runes#$state-raw
2421+
* https://svelte.dev/docs/svelte/$state#$state.raw
24222422
*
24232423
* @param initial The initial value
24242424
*/
@@ -2439,7 +2439,7 @@ declare namespace $state {
24392439
* </script>
24402440
* ```
24412441
*
2442-
* https://svelte-5-preview.vercel.app/docs/runes#$state.snapshot
2442+
* https://svelte.dev/docs/svelte/$state#$state.snapshot
24432443
*
24442444
* @param state The value to snapshot
24452445
*/
@@ -2476,7 +2476,7 @@ declare namespace $state {
24762476
* let double = $derived(count * 2);
24772477
* ```
24782478
*
2479-
* https://svelte-5-preview.vercel.app/docs/runes#$derived
2479+
* https://svelte.dev/docs/svelte/$derived
24802480
*
24812481
* @param expression The derived state expression
24822482
*/
@@ -2498,7 +2498,7 @@ declare namespace $derived {
24982498
* });
24992499
* ```
25002500
*
2501-
* https://svelte-5-preview.vercel.app/docs/runes#$derived-by
2501+
* https://svelte.dev/docs/svelte/$derived#$derived.by
25022502
*/
25032503
export function by<T>(fn: () => T): T;
25042504

@@ -2537,7 +2537,7 @@ declare namespace $derived {
25372537
*
25382538
* Does not run during server side rendering.
25392539
*
2540-
* https://svelte-5-preview.vercel.app/docs/runes#$effect
2540+
* https://svelte.dev/docs/svelte/$effect
25412541
* @param fn The function to execute
25422542
*/
25432543
declare function $effect(fn: () => void | (() => void)): void;
@@ -2556,7 +2556,7 @@ declare namespace $effect {
25562556
*
25572557
* Does not run during server side rendering.
25582558
*
2559-
* https://svelte-5-preview.vercel.app/docs/runes#$effect-pre
2559+
* https://svelte.dev/docs/svelte/$effect#$effect.pre
25602560
* @param fn The function to execute
25612561
*/
25622562
export function pre(fn: () => void | (() => void)): void;
@@ -2579,7 +2579,7 @@ declare namespace $effect {
25792579
*
25802580
* This allows you to (for example) add things like subscriptions without causing memory leaks, by putting them in child effects.
25812581
*
2582-
* https://svelte-5-preview.vercel.app/docs/runes#$effect-tracking
2582+
* https://svelte.dev/docs/svelte/$effect#$effect.tracking
25832583
*/
25842584
export function tracking(): boolean;
25852585

@@ -2607,7 +2607,7 @@ declare namespace $effect {
26072607
* <button onclick={() => cleanup()}>cleanup</button>
26082608
* ```
26092609
*
2610-
* https://svelte-5-preview.vercel.app/docs/runes#$effect-root
2610+
* https://svelte.dev/docs/svelte/$effect#$effect.root
26112611
*/
26122612
export function root(fn: () => void | (() => void)): () => void;
26132613

@@ -2640,7 +2640,7 @@ declare namespace $effect {
26402640
* let { optionalProp = 42, requiredProp, bindableProp = $bindable() }: { optionalProp?: number; requiredProps: string; bindableProp: boolean } = $props();
26412641
* ```
26422642
*
2643-
* https://svelte-5-preview.vercel.app/docs/runes#$props
2643+
* https://svelte.dev/docs/svelte/$props
26442644
*/
26452645
declare function $props(): any;
26462646

@@ -2651,7 +2651,7 @@ declare function $props(): any;
26512651
* let { propName = $bindable() }: { propName: boolean } = $props();
26522652
* ```
26532653
*
2654-
* https://svelte-5-preview.vercel.app/docs/runes#$bindable
2654+
* https://svelte.dev/docs/svelte/$bindable
26552655
*/
26562656
declare function $bindable<T>(fallback?: T): T;
26572657

@@ -2671,7 +2671,7 @@ declare function $bindable<T>(fallback?: T): T;
26712671
* $inspect(x, y).with(() => { debugger; });
26722672
* ```
26732673
*
2674-
* https://svelte-5-preview.vercel.app/docs/runes#$inspect
2674+
* https://svelte.dev/docs/svelte/$inspect
26752675
*/
26762676
declare function $inspect<T extends any[]>(
26772677
...values: T
@@ -2694,7 +2694,7 @@ declare function $inspect<T extends any[]>(
26942694
*
26952695
* Only available inside custom element components, and only on the client-side.
26962696
*
2697-
* https://svelte-5-preview.vercel.app/docs/runes#$host
2697+
* https://svelte.dev/docs/svelte/$host
26982698
*/
26992699
declare function $host<El extends HTMLElement = HTMLElement>(): El;
27002700

0 commit comments

Comments
 (0)