Skip to content

Commit 9f96417

Browse files
authored
note when features were added (#14709)
* note when features were added * regenerate
1 parent ecd1b48 commit 9f96417

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

packages/svelte/src/compiler/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export function compileModule(source, options) {
9898
* The `modern` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST.
9999
* `modern` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7.
100100
*
101+
* The `loose` option, available since 5.13.0, tries to always return an AST even if the input will not successfully compile.
102+
*
101103
* @param {string} source
102104
* @param {{ filename?: string; rootDir?: string; modern?: boolean; loose?: boolean }} [options]
103105
* @returns {AST.Root | LegacyRoot}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,9 @@ let mounted_components = new WeakMap();
272272
/**
273273
* Unmounts a component that was previously mounted using `mount` or `hydrate`.
274274
*
275-
* If `options.outro` is `true`, [transitions](https://svelte.dev/docs/svelte/transition) will play before the component is removed from the DOM.
275+
* Since 5.13.0, if `options.outro` is `true`, [transitions](https://svelte.dev/docs/svelte/transition) will play before the component is removed from the DOM.
276276
*
277-
* Returns a `Promise` that resolves after transitions have completed if `options.outro` is true, or immediately otherwise.
277+
* Returns a `Promise` that resolves after transitions have completed if `options.outro` is true, or immediately otherwise (prior to 5.13.0, returns `void`).
278278
*
279279
* ```js
280280
* import { mount, unmount } from 'svelte';

packages/svelte/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ declare module 'svelte' {
449449
/**
450450
* Unmounts a component that was previously mounted using `mount` or `hydrate`.
451451
*
452-
* If `options.outro` is `true`, [transitions](https://svelte.dev/docs/svelte/transition) will play before the component is removed from the DOM.
452+
* Since 5.13.0, if `options.outro` is `true`, [transitions](https://svelte.dev/docs/svelte/transition) will play before the component is removed from the DOM.
453453
*
454-
* Returns a `Promise` that resolves after transitions have completed if `options.outro` is true, or immediately otherwise.
454+
* Returns a `Promise` that resolves after transitions have completed if `options.outro` is true, or immediately otherwise (prior to 5.13.0, returns `void`).
455455
*
456456
* ```js
457457
* import { mount, unmount } from 'svelte';

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy