diff --git a/.changeset/angry-pumpkins-deny.md b/.changeset/angry-pumpkins-deny.md deleted file mode 100644 index e2306cebf..000000000 --- a/.changeset/angry-pumpkins-deny.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': major ---- - -only prebundle files with default filenames (.svelte for components, .svelte.(js|ts) for modules) diff --git a/.changeset/friendly-actors-relate.md b/.changeset/friendly-actors-relate.md deleted file mode 100644 index c9c91fed4..000000000 --- a/.changeset/friendly-actors-relate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': patch ---- - -fix: make defaultHandler a required argument for onwarn in plugin options diff --git a/.changeset/friendly-wombats-listen.md b/.changeset/friendly-wombats-listen.md deleted file mode 100644 index e5ab5e291..000000000 --- a/.changeset/friendly-wombats-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': patch ---- - -prebundle with dev: true by default diff --git a/.changeset/healthy-years-battle.md b/.changeset/healthy-years-battle.md deleted file mode 100644 index dcfaaeb2f..000000000 --- a/.changeset/healthy-years-battle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': patch ---- - -fix(dev): compile with hmr: false for prebundled deps as hmr does not work with that diff --git a/.changeset/lazy-bats-warn.md b/.changeset/lazy-bats-warn.md deleted file mode 100644 index e65979705..000000000 --- a/.changeset/lazy-bats-warn.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': minor ---- - -allow infix notation for svelte modules - -Previously, only suffix notation `.svelte.js` was allowed, now you can also use `.svelte.test.js` or `.svelte.stories.js`. -This helps when writing testcases or other auxillary code where you may want to use runes too. diff --git a/.changeset/lemon-trains-hear.md b/.changeset/lemon-trains-hear.md deleted file mode 100644 index f2f34dfd6..000000000 --- a/.changeset/lemon-trains-hear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': minor ---- - -feat(config): dynamically extract list of svelte exports from peer dependency so that new exports work automatically" diff --git a/.changeset/long-suns-happen.md b/.changeset/long-suns-happen.md deleted file mode 100644 index b69393cc2..000000000 --- a/.changeset/long-suns-happen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': patch ---- - -fix: ensure svelte modules correctly run in DEV mode diff --git a/.changeset/odd-pens-protect.md b/.changeset/odd-pens-protect.md deleted file mode 100644 index 946f9b18a..000000000 --- a/.changeset/odd-pens-protect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': patch ---- - -ensure consistent use of compileOptions.hmr also for prebundling diff --git a/.changeset/old-ants-remain.md b/.changeset/old-ants-remain.md deleted file mode 100644 index 7cba89c4f..000000000 --- a/.changeset/old-ants-remain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': patch ---- - -fix(optimizeDeps): avoid to optimise server only entrypoints of svelte that are never used on the client diff --git a/.changeset/olive-boxes-fly.md b/.changeset/olive-boxes-fly.md deleted file mode 100644 index 01d2d6e1f..000000000 --- a/.changeset/olive-boxes-fly.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte-inspector': patch -'@sveltejs/vite-plugin-svelte': patch ---- - -update peer on workspace packages to avoid packages bumping each other diff --git a/.changeset/plenty-weeks-battle.md b/.changeset/plenty-weeks-battle.md deleted file mode 100644 index 9c59d4ea7..000000000 --- a/.changeset/plenty-weeks-battle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': patch ---- - -export PluginOptions interface diff --git a/.changeset/popular-islands-remain.md b/.changeset/popular-islands-remain.md deleted file mode 100644 index 641989458..000000000 --- a/.changeset/popular-islands-remain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': patch ---- - -Remove log about experimental status of Svelte 5. Note that breaking changes can still occur while vite-plugin-svelte 4 is in prerelease mode diff --git a/.changeset/popular-months-vanish.md b/.changeset/popular-months-vanish.md deleted file mode 100644 index f09619a7a..000000000 --- a/.changeset/popular-months-vanish.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte-inspector': major -'@sveltejs/vite-plugin-svelte': major ---- - -remove support for Svelte 4 diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 7608a1385..000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "mode": "exit", - "tag": "next", - "initialVersions": { - "vite-plugin-svelte-e2e-tests": "1.0.0", - "e2e-test-dep-cjs-and-esm": "1.0.0", - "e2e-test-dep-cjs-only": "1.0.0", - "e2e-test-dep-esm-only": "1.0.0", - "e2e-test-dep-index-only": "1.0.0", - "e2e-test-dep-scss-only": "1.0.0", - "e2e-test-dep-svelte-api-only": "1.0.0", - "e2e-test-dep-svelte-exports-simple": "1.0.0", - "e2e-test-dep-svelte-hybrid": "1.0.0", - "e2e-test-dep-svelte-module": "1.0.0", - "e2e-test-dep-svelte-nested": "1.0.0", - "e2e-test-dep-svelte-simple": "1.0.0", - "e2e-test-dep-types-only": "1.0.0", - "e2e-test-dep-vite-plugins": "1.0.0", - "e2e-tests-autoprefixer-browserslist": "1.0.0", - "e2e-tests-configfile-custom": "1.0.0", - "e2e-tests-configfile-esm": "1.0.0", - "e2e-tests-css-dev-sourcemap": "0.0.0", - "e2e-tests-css-none": "0.0.0", - "e2e-tests-custom-extensions": "1.0.0", - "e2e-tests-dependencies": "0.0.0", - "e2e-tests-env": "1.0.0", - "e2e-tests-hmr": "0.0.0", - "e2e-tests-import-queries": "0.0.0", - "e2e-tests-inspector-kit": "0.0.0", - "e2e-tests-inspector-vite": "0.0.0", - "e2e-tests-kit-node": "0.0.0", - "e2e-tests-package-json-svelte-field": "1.0.0", - "e2e-tests-prebundle-svelte-deps": "0.0.0", - "e2e-tests-preprocess-with-vite": "0.0.0", - "e2e-tests-svelte-preprocess": "0.0.0", - "e2e-tests-ts-type-import": "0.0.0", - "e2e-tests-vite-ssr-esm": "0.0.0", - "vite-plugin-svelte-playground": "1.0.0", - "playground-basic": "0.0.0", - "playground-big": "0.0.0", - "playground-big-component-library": "0.0.0", - "playground-big-component-library-kit": "0.0.0", - "playground-big-component-library-vite-ssr": "0.0.0", - "playground-kit-demo-app": "0.0.0", - "playground-optimizedeps-include": "0.0.0", - "@sveltejs/vite-plugin-svelte": "3.1.0", - "@sveltejs/vite-plugin-svelte-inspector": "2.1.0", - "e2e-tests-scan-deps": "0.0.0" - }, - "changesets": [ - "angry-pumpkins-deny", - "friendly-actors-relate", - "friendly-wombats-listen", - "healthy-years-battle", - "lazy-bats-warn", - "lemon-trains-hear", - "long-suns-happen", - "odd-pens-protect", - "old-ants-remain", - "olive-boxes-fly", - "plenty-weeks-battle", - "popular-islands-remain", - "popular-months-vanish", - "rare-turkeys-mate", - "red-buckets-walk", - "shiny-rocks-grow", - "slow-eagles-unite", - "spotty-garlics-search", - "strong-cherries-know", - "tall-monkeys-shout", - "thin-rats-sniff", - "twenty-walls-watch", - "wet-rabbits-wink" - ] -} diff --git a/.changeset/rare-turkeys-mate.md b/.changeset/rare-turkeys-mate.md deleted file mode 100644 index c7b2fc748..000000000 --- a/.changeset/rare-turkeys-mate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': patch ---- - -fix: ensure vite config is only resolved once during lazy init of vitePreprocess diff --git a/.changeset/red-buckets-walk.md b/.changeset/red-buckets-walk.md deleted file mode 100644 index 02b8bc9d8..000000000 --- a/.changeset/red-buckets-walk.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte-inspector': major -'@sveltejs/vite-plugin-svelte': major ---- - -breaking(types): some types that have been unintentionally public are now private diff --git a/.changeset/shiny-rocks-grow.md b/.changeset/shiny-rocks-grow.md deleted file mode 100644 index 5ac102d91..000000000 --- a/.changeset/shiny-rocks-grow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': patch ---- - -fix(vitePreprocess): default to build config so that svelte-check does not trigger dev-only plugins diff --git a/.changeset/slow-eagles-unite.md b/.changeset/slow-eagles-unite.md deleted file mode 100644 index f52fb22fc..000000000 --- a/.changeset/slow-eagles-unite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': patch ---- - -fix: only apply infix filter to basename diff --git a/.changeset/spotty-garlics-search.md b/.changeset/spotty-garlics-search.md deleted file mode 100644 index 3fdbd17de..000000000 --- a/.changeset/spotty-garlics-search.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': minor ---- - -feat(warnings): change default loglevel of warnings originating from files in node_modules to debug. To see them call `DEBUG:vite-plugin-svelte:node-modules-onwarn pnpm build`. diff --git a/.changeset/strong-cherries-know.md b/.changeset/strong-cherries-know.md deleted file mode 100644 index b276f0832..000000000 --- a/.changeset/strong-cherries-know.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': patch ---- - -fix: disable hmr when vite config server.hmr is false diff --git a/.changeset/tall-monkeys-shout.md b/.changeset/tall-monkeys-shout.md deleted file mode 100644 index 961335533..000000000 --- a/.changeset/tall-monkeys-shout.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte-inspector': major ---- - -Change default key-combo to `alt-x` to avoid conflicts with other combos that started with the previous defaults. diff --git a/.changeset/thin-rats-sniff.md b/.changeset/thin-rats-sniff.md deleted file mode 100644 index 2ecec07db..000000000 --- a/.changeset/thin-rats-sniff.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': major ---- - -disable script preprocessing in vitePreprocess() by default because Svelte 5 supports lang=ts out of the box diff --git a/.changeset/twenty-walls-watch.md b/.changeset/twenty-walls-watch.md deleted file mode 100644 index d583c1f11..000000000 --- a/.changeset/twenty-walls-watch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': patch ---- - -fix(dev): make sure custom cssHash is applied consistently even for prebundled components to avoid hash mismatches during hydration diff --git a/.changeset/wet-rabbits-wink.md b/.changeset/wet-rabbits-wink.md deleted file mode 100644 index 07e89cbfd..000000000 --- a/.changeset/wet-rabbits-wink.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/vite-plugin-svelte': major ---- - -replaced svelte-hmr with Svelte 5 compiler hmr integration diff --git a/packages/vite-plugin-svelte-inspector/CHANGELOG.md b/packages/vite-plugin-svelte-inspector/CHANGELOG.md index b3485d407..ca693a869 100644 --- a/packages/vite-plugin-svelte-inspector/CHANGELOG.md +++ b/packages/vite-plugin-svelte-inspector/CHANGELOG.md @@ -1,5 +1,26 @@ # @sveltejs/vite-plugin-svelte-inspector +## 3.0.0 +### Major Changes + + +- remove support for Svelte 4 ([#892](https://github.com/sveltejs/vite-plugin-svelte/pull/892)) + + +- breaking(types): some types that have been unintentionally public are now private ([#934](https://github.com/sveltejs/vite-plugin-svelte/pull/934)) + + +- Change default key-combo to `alt-x` to avoid conflicts with other combos that started with the previous defaults. ([#995](https://github.com/sveltejs/vite-plugin-svelte/pull/995)) + + +### Patch Changes + + +- update peer on workspace packages to avoid packages bumping each other ([#916](https://github.com/sveltejs/vite-plugin-svelte/pull/916)) + +- Updated dependencies [[`dfd4cc6`](https://github.com/sveltejs/vite-plugin-svelte/commit/dfd4cc6c93154660500697a3646e3e428d760fe6), [`bd5e3c2`](https://github.com/sveltejs/vite-plugin-svelte/commit/bd5e3c2514424465fd65ef6e0ae8e99efb1709f5), [`dfd4cc6`](https://github.com/sveltejs/vite-plugin-svelte/commit/dfd4cc6c93154660500697a3646e3e428d760fe6), [`4fbc960`](https://github.com/sveltejs/vite-plugin-svelte/commit/4fbc96026bbdc94182d1df535a21711c2b31baa3), [`dfd4cc6`](https://github.com/sveltejs/vite-plugin-svelte/commit/dfd4cc6c93154660500697a3646e3e428d760fe6), [`ab2dd12`](https://github.com/sveltejs/vite-plugin-svelte/commit/ab2dd120e82edc39632d046bec3553e0da211285), [`85acc9f`](https://github.com/sveltejs/vite-plugin-svelte/commit/85acc9fefbc1c25714d26d6d23f5b48e96a29654), [`b6e037a`](https://github.com/sveltejs/vite-plugin-svelte/commit/b6e037ab8d409148753921c34b152f2fcfff7c88), [`ab2dd12`](https://github.com/sveltejs/vite-plugin-svelte/commit/ab2dd120e82edc39632d046bec3553e0da211285), [`22baa25`](https://github.com/sveltejs/vite-plugin-svelte/commit/22baa25b5e98ddc92715bfc430dc9d0cfad99bb0), [`552eaeb`](https://github.com/sveltejs/vite-plugin-svelte/commit/552eaebaa714c42d8cc5857d6d8a10e32418fdde), [`2f51a3a`](https://github.com/sveltejs/vite-plugin-svelte/commit/2f51a3af6b1e322c5a686b493a8dbf516e8985f0), [`49324db`](https://github.com/sveltejs/vite-plugin-svelte/commit/49324dbf747a46ae75b405a29fc7feac2db966dd), [`1211f97`](https://github.com/sveltejs/vite-plugin-svelte/commit/1211f97ffd85df1dbc3fac68265eb0b88ea61bdd), [`e9f048c`](https://github.com/sveltejs/vite-plugin-svelte/commit/e9f048c362a0769b3d5afa87da6f8398f46fe1a9), [`c5253ae`](https://github.com/sveltejs/vite-plugin-svelte/commit/c5253aed244b31e9edf114053316232cd0166c03), [`bc8026f`](https://github.com/sveltejs/vite-plugin-svelte/commit/bc8026fb3836bba64910cf91d287077ef443ea82), [`54d3bb5`](https://github.com/sveltejs/vite-plugin-svelte/commit/54d3bb522c003e96c781ee5859aedca8260ae4b4), [`f7409c8`](https://github.com/sveltejs/vite-plugin-svelte/commit/f7409c8d55fba965e2671f767d00c93e4d1200b4), [`49324db`](https://github.com/sveltejs/vite-plugin-svelte/commit/49324dbf747a46ae75b405a29fc7feac2db966dd), [`4fbc960`](https://github.com/sveltejs/vite-plugin-svelte/commit/4fbc96026bbdc94182d1df535a21711c2b31baa3), [`49324db`](https://github.com/sveltejs/vite-plugin-svelte/commit/49324dbf747a46ae75b405a29fc7feac2db966dd)]: + - @sveltejs/vite-plugin-svelte@4.0.0 + ## 3.0.0-next.4 ### Major Changes diff --git a/packages/vite-plugin-svelte-inspector/package.json b/packages/vite-plugin-svelte-inspector/package.json index dd56d9368..f747a6a77 100644 --- a/packages/vite-plugin-svelte-inspector/package.json +++ b/packages/vite-plugin-svelte-inspector/package.json @@ -1,6 +1,6 @@ { "name": "@sveltejs/vite-plugin-svelte-inspector", - "version": "3.0.0-next.4", + "version": "3.0.0", "license": "MIT", "author": "dominikg", "files": [ diff --git a/packages/vite-plugin-svelte/CHANGELOG.md b/packages/vite-plugin-svelte/CHANGELOG.md index 38eb8f9f2..18fa6e04f 100644 --- a/packages/vite-plugin-svelte/CHANGELOG.md +++ b/packages/vite-plugin-svelte/CHANGELOG.md @@ -1,5 +1,85 @@ # @sveltejs/vite-plugin-svelte +## 4.0.0 +### Major Changes + + +- only prebundle files with default filenames (.svelte for components, .svelte.(js|ts) for modules) ([#901](https://github.com/sveltejs/vite-plugin-svelte/pull/901)) + + +- remove support for Svelte 4 ([#892](https://github.com/sveltejs/vite-plugin-svelte/pull/892)) + + +- breaking(types): some types that have been unintentionally public are now private ([#934](https://github.com/sveltejs/vite-plugin-svelte/pull/934)) + + +- disable script preprocessing in vitePreprocess() by default because Svelte 5 supports lang=ts out of the box ([#892](https://github.com/sveltejs/vite-plugin-svelte/pull/892)) + + +- replaced svelte-hmr with Svelte 5 compiler hmr integration ([#892](https://github.com/sveltejs/vite-plugin-svelte/pull/892)) + + +### Minor Changes + + +- allow infix notation for svelte modules ([#901](https://github.com/sveltejs/vite-plugin-svelte/pull/901)) + + Previously, only suffix notation `.svelte.js` was allowed, now you can also use `.svelte.test.js` or `.svelte.stories.js`. + This helps when writing testcases or other auxillary code where you may want to use runes too. + +- feat(config): dynamically extract list of svelte exports from peer dependency so that new exports work automatically" ([#941](https://github.com/sveltejs/vite-plugin-svelte/pull/941)) + + +- feat(warnings): change default loglevel of warnings originating from files in node_modules to debug. To see them call `DEBUG:vite-plugin-svelte:node-modules-onwarn pnpm build`. ([#989](https://github.com/sveltejs/vite-plugin-svelte/pull/989)) + + +### Patch Changes + + +- fix: make defaultHandler a required argument for onwarn in plugin options ([#895](https://github.com/sveltejs/vite-plugin-svelte/pull/895)) + + +- prebundle with dev: true by default ([#901](https://github.com/sveltejs/vite-plugin-svelte/pull/901)) + + +- fix(dev): compile with hmr: false for prebundled deps as hmr does not work with that ([#950](https://github.com/sveltejs/vite-plugin-svelte/pull/950)) + + +- fix: ensure svelte modules correctly run in DEV mode ([#906](https://github.com/sveltejs/vite-plugin-svelte/pull/906)) + + +- ensure consistent use of compileOptions.hmr also for prebundling ([#956](https://github.com/sveltejs/vite-plugin-svelte/pull/956)) + + +- fix(optimizeDeps): avoid to optimise server only entrypoints of svelte that are never used on the client ([#941](https://github.com/sveltejs/vite-plugin-svelte/pull/941)) + + +- update peer on workspace packages to avoid packages bumping each other ([#916](https://github.com/sveltejs/vite-plugin-svelte/pull/916)) + + +- export PluginOptions interface ([#976](https://github.com/sveltejs/vite-plugin-svelte/pull/976)) + + +- Remove log about experimental status of Svelte 5. Note that breaking changes can still occur while vite-plugin-svelte 4 is in prerelease mode ([#894](https://github.com/sveltejs/vite-plugin-svelte/pull/894)) + + +- fix: ensure vite config is only resolved once during lazy init of vitePreprocess ([#912](https://github.com/sveltejs/vite-plugin-svelte/pull/912)) + + +- fix(vitePreprocess): default to build config so that svelte-check does not trigger dev-only plugins ([#931](https://github.com/sveltejs/vite-plugin-svelte/pull/931)) + + +- fix: only apply infix filter to basename ([#920](https://github.com/sveltejs/vite-plugin-svelte/pull/920)) + + +- fix: disable hmr when vite config server.hmr is false ([#913](https://github.com/sveltejs/vite-plugin-svelte/pull/913)) + + +- fix(dev): make sure custom cssHash is applied consistently even for prebundled components to avoid hash mismatches during hydration ([#950](https://github.com/sveltejs/vite-plugin-svelte/pull/950)) + +- Updated dependencies [[`22baa25`](https://github.com/sveltejs/vite-plugin-svelte/commit/22baa25b5e98ddc92715bfc430dc9d0cfad99bb0), [`49324db`](https://github.com/sveltejs/vite-plugin-svelte/commit/49324dbf747a46ae75b405a29fc7feac2db966dd), [`e9f048c`](https://github.com/sveltejs/vite-plugin-svelte/commit/e9f048c362a0769b3d5afa87da6f8398f46fe1a9), [`213fedd`](https://github.com/sveltejs/vite-plugin-svelte/commit/213fedd68ec2c5fcb41752e05dcded4abfa8d0c0)]: + - @sveltejs/vite-plugin-svelte-inspector@3.0.0 + ## 4.0.0-next.8 ### Minor Changes diff --git a/packages/vite-plugin-svelte/package.json b/packages/vite-plugin-svelte/package.json index 0b547efa5..be4e33011 100644 --- a/packages/vite-plugin-svelte/package.json +++ b/packages/vite-plugin-svelte/package.json @@ -1,6 +1,6 @@ { "name": "@sveltejs/vite-plugin-svelte", - "version": "4.0.0-next.8", + "version": "4.0.0", "license": "MIT", "author": "dominikg", "files": [