diff --git a/.changeset/hungry-tips-unite.md b/.changeset/hungry-tips-unite.md index b138fd409..0f2f0b64b 100644 --- a/.changeset/hungry-tips-unite.md +++ b/.changeset/hungry-tips-unite.md @@ -2,4 +2,4 @@ 'svelte': patch --- -fix: port over props that were set prior to initialization +fix: port over props that were set prior to initialisation diff --git a/documentation/docs/02-template-syntax/01-svelte-components.md b/documentation/docs/02-template-syntax/01-svelte-components.md index e79489144..e05a90a4c 100644 --- a/documentation/docs/02-template-syntax/01-svelte-components.md +++ b/documentation/docs/02-template-syntax/01-svelte-components.md @@ -212,7 +212,7 @@ If a statement consists entirely of an assignment to an undeclared variable, Sve A _store_ is an object that allows reactive access to a value via a simple _store contract_. The [`svelte/store` module](/docs/svelte-store) contains minimal store implementations which fulfil this contract. -Any time you have a reference to a store, you can access its value inside a component by prefixing it with the `$` character. This causes Svelte to declare the prefixed variable, subscribe to the store at component initialization and unsubscribe when appropriate. +Any time you have a reference to a store, you can access its value inside a component by prefixing it with the `$` character. This causes Svelte to declare the prefixed variable, subscribe to the store at component initialisation and unsubscribe when appropriate. Assignments to `$`-prefixed variables require that the variable be a writable store, and will result in a call to the store's `.set` method. diff --git a/packages/svelte/CHANGELOG.md b/packages/svelte/CHANGELOG.md index e65014006..f19f403a1 100644 --- a/packages/svelte/CHANGELOG.md +++ b/packages/svelte/CHANGELOG.md @@ -742,7 +742,7 @@ - fix: allow `bind:this` with dynamic type on inputs ([#9713](https://github.com/sveltejs/svelte/pull/9713)) -- fix: port over props that were set prior to initialization ([#9704](https://github.com/sveltejs/svelte/pull/9704)) +- fix: port over props that were set prior to initialisation ([#9704](https://github.com/sveltejs/svelte/pull/9704)) - feat: $inspect rune ([#9705](https://github.com/sveltejs/svelte/pull/9705)) diff --git a/packages/svelte/src/compiler/phases/1-parse/utils/fuzzymatch.js b/packages/svelte/src/compiler/phases/1-parse/utils/fuzzymatch.js index 2a74bbd8c..cd72d7300 100644 --- a/packages/svelte/src/compiler/phases/1-parse/utils/fuzzymatch.js +++ b/packages/svelte/src/compiler/phases/1-parse/utils/fuzzymatch.js @@ -132,7 +132,7 @@ class FuzzySet { /** @param {string[]} arr */ constructor(arr) { - // initialization + // initialisation for (let i = GRAM_SIZE_LOWER; i < GRAM_SIZE_UPPER + 1; ++i) { this.items[i] = []; } diff --git a/packages/svelte/src/internal/client/reactivity/sources.js b/packages/svelte/src/internal/client/reactivity/sources.js index 60403ddc3..504ecb1ef 100644 --- a/packages/svelte/src/internal/client/reactivity/sources.js +++ b/packages/svelte/src/internal/client/reactivity/sources.js @@ -125,7 +125,7 @@ export function set(signal, value) { // $effect(() => x++) // // We additionally want to skip this logic for when ignore_mutation_validation is - // true, as stores write to source signal on initialization. + // true, as stores write to source signal on initialisation. if ( is_runes(null) && !ignore_mutation_validation &&