Skip to content

Commit b2f9548

Browse files
committed
note when features were added
1 parent b0e3c5b commit b2f9548

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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';

0 commit comments

Comments
 (0)