Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @sveltejs/vite-plugin-svelte to v5 #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 18, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@sveltejs/vite-plugin-svelte (source) ^3.1.2 -> ^5.0.0 age adoption passing confidence

Release Notes

sveltejs/vite-plugin-svelte (@​sveltejs/vite-plugin-svelte)

v5.0.3

Compare Source

Patch Changes
  • fix errorhandling to work with errors that don't have a code property (#​1054)

v5.0.2

Compare Source

Patch Changes
  • adapt internal handling of warning and error code property to changes in svelte5 (#​1044)

v5.0.1

Compare Source

Patch Changes
  • Fix peer dependencies warning (#​1038)

v5.0.0

Compare Source

Major Changes
  • Handle Vite 6 breaking change and remove Vite 5 handling (#​1020)

  • Support Vite 6 (#​1026)

Minor Changes
  • Add esm-env to ssr.noExternal by default to resolve its conditions with Vite (#​1020)

  • Support ?inline query on Svelte style virtual modules (#​1024)

Patch Changes

v4.0.4

Compare Source

Patch Changes
  • fix errorhandling to work with errors that don't have a code property (1a91581)

v4.0.3

Compare Source

Patch Changes
  • adapt internal handling of warning and error code property to changes in svelte5 (#​1046)

v4.0.2

Compare Source

Patch Changes
  • Allow script tags to span multiple lines (5309d7b)

v4.0.1

Compare Source

Patch Changes
  • removed references to compiler options no longer available in svelte5 (#​1010)

v4.0.0

Compare Source

Major Changes
  • only prebundle files with default filenames (.svelte for components, .svelte.(js|ts) for modules) (#​901)

  • remove support for Svelte 4 (#​892)

  • breaking(types): some types that have been unintentionally public are now private (#​934)

  • disable script preprocessing in vitePreprocess() by default because Svelte 5 supports lang=ts out of the box (#​892)

  • replaced svelte-hmr with Svelte 5 compiler hmr integration (#​892)

Minor Changes
  • allow infix notation for svelte modules (#​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)

  • 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)

Patch Changes
  • fix: make defaultHandler a required argument for onwarn in plugin options (#​895)

  • prebundle with dev: true by default (#​901)

  • fix(dev): compile with hmr: false for prebundled deps as hmr does not work with that (#​950)

  • fix: ensure svelte modules correctly run in DEV mode (#​906)

  • ensure consistent use of compileOptions.hmr also for prebundling (#​956)

  • fix(optimizeDeps): avoid to optimise server only entrypoints of svelte that are never used on the client (#​941)

  • update peer on workspace packages to avoid packages bumping each other (#​916)

  • export PluginOptions interface (#​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)

  • fix: ensure vite config is only resolved once during lazy init of vitePreprocess (#​912)

  • fix(vitePreprocess): default to build config so that svelte-check does not trigger dev-only plugins (#​931)

  • fix: only apply infix filter to basename (#​920)

  • fix: disable hmr when vite config server.hmr is false (#​913)

  • fix(dev): make sure custom cssHash is applied consistently even for prebundled components to avoid hash mismatches during hydration (#​950)

  • Updated dependencies [22baa25, 49324db, e9f048c, 213fedd]:


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

vercel bot commented Feb 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
promplate-docs ❌ Failed (Inspect) Mar 12, 2025 5:54am

Copy link

stackblitz bot commented Feb 18, 2025

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

sourcery-ai bot commented Feb 18, 2025

Reviewer's Guide by Sourcery

This PR updates the @sveltejs/vite-plugin-svelte dependency from version 3.1.2 to 5.0.0. This includes support for Vite 6, removes Vite 5 handling, adds esm-env to ssr.noExternal, and supports the ?inline query on Svelte style virtual modules.

Class diagram for PluginOptions changes

classDiagram
    class PluginOptions {
        +onwarn?: (warning: Warning, defaultHandler: (warning: Warning) => void) => void
        +preprocess?: PreprocessorGroup | PreprocessorGroup[]
        +compilerOptions?: CompileOptions
        +disableScriptPreprocessing?: boolean
    }

    note for PluginOptions "Some types that have been unintentionally public are now private."
    note for PluginOptions "disableScriptPreprocessing defaults to true because Svelte 5 supports lang=ts out of the box."
Loading

File-Level Changes

Change Details Files
The package @sveltejs/vite-plugin-svelte was updated from version 3.1.2 to 5.0.0.
  • Updated to the latest version of the @sveltejs/vite-plugin-svelte package.
  • The new version includes support for Vite 6 and removes handling for Vite 5.
  • The new version adds esm-env to ssr.noExternal by default.
  • The new version supports the ?inline query on Svelte style virtual modules.
package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

Copy link

netlify bot commented Feb 18, 2025

👷 Deploy Preview for promplate-site processing.

Name Link
🔨 Latest commit ac6a166
🔍 Latest deploy log https://app.netlify.com/sites/promplate-site/deploys/67b4300d02e776000879e529

Copy link

netlify bot commented Feb 18, 2025

Deploy Preview for promplate-site failed. Why did it fail? →

Name Link
🔨 Latest commit 260a962
🔍 Latest deploy log https://app.netlify.com/sites/promplate-site/deploys/67d11d079472dc0008088aa4

@renovate renovate bot force-pushed the renovate/sveltejs-vite-plugin-svelte-5.x branch from ac6a166 to 6be9341 Compare February 21, 2025 08:54
@renovate renovate bot force-pushed the renovate/sveltejs-vite-plugin-svelte-5.x branch from 6be9341 to 260a962 Compare March 12, 2025 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants