diff --git a/.changeset/slimy-dingos-call.md b/.changeset/slimy-dingos-call.md deleted file mode 100644 index 4ecb122ae272..000000000000 --- a/.changeset/slimy-dingos-call.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'svelte': minor ---- - -feat: move `svelteHTML` from language-tools into core to load the correct `svelte/element` types diff --git a/documentation/docs/05-misc/03-typescript.md b/documentation/docs/05-misc/03-typescript.md index b88c6f5c9ff7..f525810cc6da 100644 --- a/documentation/docs/05-misc/03-typescript.md +++ b/documentation/docs/05-misc/03-typescript.md @@ -142,7 +142,7 @@ Then make sure that `d.ts` file is referenced in your `tsconfig.json`. If it rea Since Svelte version 4.2 / `svelte-check` version 3.5 / VS Code extension version 107.10.0 you can also declare the typings by augmenting the the `svelte/elements` module like this: -```js +```ts /// file: additional-svelte-typings.d.ts import { HTMLButtonAttributes } from 'svelte/elements' diff --git a/packages/svelte/CHANGELOG.md b/packages/svelte/CHANGELOG.md index aa0313a68a92..a7d6cc5e8527 100644 --- a/packages/svelte/CHANGELOG.md +++ b/packages/svelte/CHANGELOG.md @@ -1,5 +1,11 @@ # svelte +## 4.2.0 + +### Minor Changes + +- feat: move `svelteHTML` from language-tools into core to load the correct `svelte/element` types ([#9070](https://github.com/sveltejs/svelte/pull/9070)) + ## 4.1.2 ### Patch Changes diff --git a/packages/svelte/package.json b/packages/svelte/package.json index cbc11b3da777..357bfba31b52 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -1,6 +1,6 @@ { "name": "svelte", - "version": "4.1.2", + "version": "4.2.0", "description": "Cybernetically enhanced web apps", "type": "module", "module": "src/runtime/index.js", diff --git a/packages/svelte/src/shared/version.js b/packages/svelte/src/shared/version.js index 755a1cac3398..29e3707aa804 100644 --- a/packages/svelte/src/shared/version.js +++ b/packages/svelte/src/shared/version.js @@ -6,5 +6,5 @@ * https://svelte.dev/docs/svelte-compiler#svelte-version * @type {string} */ -export const VERSION = '4.1.2'; +export const VERSION = '4.2.0'; export const PUBLIC_VERSION = '4';