Skip to content

Commit 07219f1

Browse files
authored
chore: update links that previously pointed to preview site (#14001)
1 parent c93a645 commit 07219f1

File tree

7 files changed

+58
-57
lines changed

7 files changed

+58
-57
lines changed

.changeset/tiny-boxes-exist.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: update links that previously pointed to preview site

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/index.d.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import './ambient.js';
55
/**
66
* @deprecated In Svelte 4, components are classes. In Svelte 5, they are functions.
77
* Use `mount` instead to instantiate components.
8-
* See [breaking changes](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes)
8+
* See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes)
99
* for more info.
1010
*/
1111
export interface ComponentConstructorOptions<
@@ -39,7 +39,7 @@ type Properties<Props, Slots> = Props &
3939
* This was the base class for Svelte components in Svelte 4. Svelte 5+ components
4040
* are completely different under the hood. For typing, use `Component` instead.
4141
* To instantiate components, use `mount` instead`.
42-
* See [breaking changes documentation](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes) for more info.
42+
* See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes) for more info.
4343
*/
4444
export class SvelteComponent<
4545
Props extends Record<string, any> = Record<string, any>,
@@ -53,7 +53,7 @@ export class SvelteComponent<
5353
/**
5454
* @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which
5555
* is a stop-gap solution. Migrate towards using `mount` instead. See
56-
* https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes for more info.
56+
* https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more info.
5757
*/
5858
constructor(options: ComponentConstructorOptions<Properties<Props, Slots>>);
5959
/**
@@ -83,14 +83,14 @@ export class SvelteComponent<
8383

8484
/**
8585
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
86-
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes
86+
* is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
8787
* for more info.
8888
*/
8989
$destroy(): void;
9090

9191
/**
9292
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
93-
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes
93+
* is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
9494
* for more info.
9595
*/
9696
$on<K extends Extract<keyof Events, string>>(
@@ -100,7 +100,7 @@ export class SvelteComponent<
100100

101101
/**
102102
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
103-
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes
103+
* is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
104104
* for more info.
105105
*/
106106
$set(props: Partial<Props>): void;
@@ -153,13 +153,13 @@ export interface Component<
153153
): {
154154
/**
155155
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
156-
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes
156+
* is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
157157
* for more info.
158158
*/
159159
$on?(type: string, callback: (e: any) => void): () => void;
160160
/**
161161
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
162-
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes
162+
* is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
163163
* for more info.
164164
*/
165165
$set?(props: Partial<Props>): void;
@@ -171,7 +171,7 @@ export interface Component<
171171
}
172172

173173
/**
174-
* @deprecated Use `Component` instead. See [breaking changes documentation](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes) for more information.
174+
* @deprecated Use `Component` instead. See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes) for more information.
175175
*/
176176
export class SvelteComponentTyped<
177177
Props extends Record<string, any> = Record<string, any>,
@@ -278,7 +278,7 @@ declare const SnippetReturn: unique symbol;
278278
* ```
279279
* You can only call a snippet through the `{@render ...}` tag.
280280
*
281-
* https://svelte-5-preview.vercel.app/docs/snippets
281+
* https://svelte.dev/docs/svelte/snippet
282282
*
283283
* @template Parameters the parameters that the snippet expects (if any) as a tuple.
284284
*/

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}

0 commit comments

Comments
 (0)