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 app dependencies to v5 (main) (major) #2286

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 6, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@sveltejs/vite-plugin-svelte (source) ^3.1.2 -> ^5.0.3 age adoption passing confidence
astro (source) ^4.16.18 -> ^5.1.0 age adoption passing confidence
svelte (source) ^4.2.19 -> ^5.15.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]:

withastro/astro (astro)

v5.1.0

Compare Source

Minor Changes
  • #​12441 b4fec3c Thanks @​ascorbic! - Adds experimental session support

    Sessions are used to store user state between requests for server-rendered pages, such as login status, shopping cart contents, or other user-specific data.

v5.0.9

Compare Source

Patch Changes

v5.0.8

Compare Source

Patch Changes

v5.0.7

Compare Source

Patch Changes

v5.0.6

Compare Source

Patch Changes

v5.0.5

Compare Source

Patch Changes

v5.0.4

Compare Source

Patch Changes

v5.0.3

Compare Source

Patch Changes
  • #​12645 8704c54 Thanks @​sarah11918! - Updates some reference links in error messages for new v5 docs.

  • #​12641 48ca399 Thanks @​ascorbic! - Fixes a bug where astro info --copy wasn't working correctly on macOS systems.

  • #​12461 62939ad Thanks @​kyr0! - Removes the misleading log message telling that a custom renderer is not recognized while it clearly is and works.

  • #​12642 ff18b9c Thanks @​ematipico! - Provides more information when logging a warning for accessing Astro.request.headers in prerendered pages

  • #​12634 03958d9 Thanks @​delucis! - Improves error message formatting for user config and content collection frontmatter

  • #​12547 6b6e18d Thanks @​mtwilliams-code! - Fixes a bug where URL search parameters weren't passed when using the i18n fallback feature.

  • #​12449 e6b8017 Thanks @​apatel369! - Fixes an issue where the custom assetFileNames configuration caused assets to be incorrectly moved to the server directory instead of the client directory, resulting in 404 errors when accessed from the client side.

  • #​12518 e216250 Thanks @​ematipico! - Fixes an issue where SSR error pages would return duplicated custom headers.

  • #​12625 74bfad0 Thanks @​ematipico! - Fixes an issue where the experimental.svg had incorrect type, resulting in some errors in the editors.

  • #​12631 dec0305 Thanks @​ascorbic! - Fixes a bug where the class attribute was rendered twice on the image component

  • #​12623 0e4fecb Thanks @​ascorbic! - Correctly handles images in content collections with uppercase file extensions

  • #​12633 8a551c1 Thanks @​bluwy! - Cleans up content layer sync during builds and programmatic sync() calls

  • #​12640 22e405a Thanks @​ascorbic! - Fixes a bug that caused content collections to be returned empty when run in a test environment

  • #​12613 306c9f9 Thanks @​matthewp! - Fix use of cloned requests in middleware with clientAddress

    When using context.clientAddress or Astro.clientAddress Astro looks up the address in a hidden property. Cloning a request can cause this hidden property to be lost.

    The fix is to pass the address as an internal property instead, decoupling it from the request.

v5.0.2

Compare Source

Patch Changes

v5.0.1

Compare Source

Patch Changes

v5.0.0

Compare Source

Major Changes
  • #​11798 e9e2139 Thanks @​matthewp! - Unflag globalRoutePriority

    The previously experimental feature globalRoutePriority is now the default in Astro 5.

    This was a refactoring of route prioritization in Astro, making it so that injected routes, file-based routes, and redirects are all prioritized using the same logic. This feature has been enabled for all Starlight projects since it was added and should not affect most users.

  • #​11864 ee38b3a Thanks @​ematipico! - ### [changed]: entryPoint type inside the hook astro:build:ssr
    In Astro v4.x, the entryPoint type was RouteData.

    Astro v5.0 the entryPoint type is IntegrationRouteData, which contains a subset of the RouteData type. The fields isIndex and fallbackRoutes were removed.

What should I do?

Update your adapter to change the type of entryPoint from RouteData to IntegrationRouteData.

-import type {RouteData} from 'astro';
+import type {IntegrationRouteData} from "astro"

-function useRoute(route: RouteData) {
+function useRoute(route: IntegrationRouteData) {

}
  • #​12524 9f44019 Thanks @​bluwy! - Bumps Vite to ^6.0.1 and handles its breaking changes

  • #​10742 b6fbdaa Thanks @​ematipico! - The lowest version of Node supported by Astro is now Node v18.17.1 and higher.

  • #​11916 46ea29f Thanks @​bluwy! - Updates how the build.client and build.server option values get resolved to match existing documentation. With this fix, the option values will now correctly resolve relative to the outDir option. So if outDir is set to ./dist/nested/, then by default:

    • build.client will resolve to <root>/dist/nested/client/
    • build.server will resolve to <root>/dist/nested/server/

    Previously the values were incorrectly resolved:

    • build.client was resolved to <root>/dist/nested/dist/client/
    • build.server was resolved to <root>/dist/nested/dist/server/

    If you were relying on the previous build paths, make sure that your project code is updated to the new build paths.

  • #​11982 d84e444 Thanks @​Princesseuh! - Adds a default exclude and include value to the tsconfig presets. {projectDir}/dist is now excluded by default, and {projectDir}/.astro/types.d.ts and {projectDir}/**/* are included by default.

    Both of these options can be overridden by setting your own values to the corresponding settings in your tsconfig.json file.

  • #​11861 3ab3b4e Thanks @​bluwy! - Cleans up Astro-specfic metadata attached to vfile.data in Remark and Rehype plugins. Previously, the metadata was attached in different locations with inconsistent names. The metadata is now renamed as below:

    • vfile.data.__astroHeadings -> vfile.data.astro.headings
    • vfile.data.imagePaths -> vfile.data.astro.imagePaths

    The types of imagePaths has also been updated from Set<string> to string[]. The vfile.data.astro.frontmatter metadata is left unchanged.

    While we don't consider these APIs public, they can be accessed by Remark and Rehype plugins that want to re-use Astro's metadata. If you are using these APIs, make sure to access them in the new locations.

  • #​11987 bf90a53 Thanks @​florian-lefebvre! - The locals object can no longer be overridden

    Middleware, API endpoints, and pages can no longer override the locals object in its entirety. You can still append values onto the object, but you can not replace the entire object and delete its existing values.

    If you were previously overwriting like so:

    ctx.locals = {
      one: 1,
      two: 2,
    };

    This can be changed to an assignment on the existing object instead:

    Object.assign(ctx.locals, {
      one: 1,
      two: 2,
    });
  • #​11908 518433e Thanks @​Princesseuh! - The image.endpoint config now allow customizing the route of the image endpoint in addition to the entrypoint. This can be useful in niche situations where the default route /_image conflicts with an existing route or your local server setup.

    import { defineConfig } from 'astro/config';
    
    defineConfig({
      image: {
        endpoint: {
          route: '/image',
          entrypoint: './src/image_endpoint.ts',
        },
      },
    });
  • #​12008 5608338 Thanks @​Princesseuh! - Welcome to the Astro 5 beta! This release has no changes from the latest alpha of this package, but it does bring us one step closer to the final, stable release.

    Starting from this release, no breaking changes will be introduced unless absolutely necessary.

    To learn how to upgrade, check out the Astro v5.0 upgrade guide in our beta docs site.

  • #​11679 ea71b90 Thanks @​florian-lefebvre! - The astro:env feature introduced behind a flag in v4.10.0 is no longer experimental and is available for general use. If you have been waiting for stabilization before using astro:env, you can now do so.

    This feature lets you configure a type-safe schema for your environment variables, and indicate whether they should be available on the server or the client.

    To configure a schema, add the env option to your Astro config and define your client and server variables. If you were previously using this feature, please remove the experimental flag from your Astro config and move your entire env configuration unchanged to a top-level option.

    import { defineConfig, envField } from 'astro/config';
    
    export default defineConfig({
      env: {
        schema: {
          API_URL: envField.string({ context: 'client', access: 'public', optional: true }),
          PORT: envField.number({ context: 'server', access: 'public', default: 4321 }),
          API_SECRET: envField.string({ context: 'server', access: 'secret' }),
        },
      },
    });

    You can import and use your defined variables from the appropriate /client or /server module:

sveltejs/svelte (svelte)

v5.15.0

Compare Source

Minor Changes
  • feat: add "worker" exports condition to better support bundling for worker-based environments (#​14779)

v5.14.6

Compare Source

Patch Changes
  • fix: treeshake $inspect.trace code if unused in modules (#​14774)

  • fix: Improve typescript DX for $inspect, $props, $bindable, and $host (#​14777)

v5.14.5

Compare Source

Patch Changes
  • fix: bump esrap dependency (#​14765)

  • fix: ensure svg namespace for <a> elements is correct (#​14756)

  • fix: treeshake $inspect.trace code if unused (#​14770)

v5.14.4

Compare Source

Patch Changes
  • fix: remove implements from class declarations (#​14749)

  • fix: remove unwanted properties from both replaced and unreplaced nodes (#​14744)

v5.14.3

Compare Source

Patch Changes
  • fix: bump esrap, prevent malformed AST (#​14742)

  • fix: compare array contents for equality mismatch detections, not the arrays themselves (#​14738)

v5.14.2

Compare Source

Patch Changes
  • fix: correctly highlight first rerun of $inspect.trace (#​14734)

  • chore: more loose parser improvements (#​14733)

v5.14.1

Compare Source

Patch Changes
  • fix: improve unowned derived performance (#​14724)

v5.14.0

Compare Source

Minor Changes

v5.13.0

Compare Source

Minor Changes
  • feat: add outro option to unmount (#​14540)

  • feat: provide loose parser mode (#​14691)

v5.12.0

Compare Source

Minor Changes
  • feat: expose more AST types from "svelte/compiler" (#​14601)
Patch Changes
  • fix: don't add parenthesis to media query if already present (#​14699)

  • fix: ensure if block paths retain correct template namespacing (#​14685)

v5.11.3

Compare Source

Patch Changes
  • fix: allow unquoted slash in attributes (#​14615)

  • fix: better handle hydration of script/style elements (#​14683)

  • fix: make defaultValue work with spread (#​14640)

  • fix: avoid mutation validation for invalidate_inner_signals (#​14688)

v5.11.2

Compare Source

Patch Changes
  • fix: correctly handle ssr for reactivity/window (#​14681)

v5.11.1

Compare Source

Patch Changes
  • fix: account for global block in is_empty (#​14677)

  • fix: remove overzealous reactive_declaration_non_reactive_property warning (#​14663)

v5.11.0

Compare Source

Minor Changes
  • feat: add svelte/reactivity/window module (#​14660)
Patch Changes
  • fix: take into account registration state when setting custom element props (#​14508)

v5.10.1

Compare Source

Patch Changes
  • fix: ensure snippet hoisting works in the correct scope (#​14642)

  • fix: ensure $state.snapshot clones holey arrays correctly (#​14657)

  • fix: restore input binding selection position (#​14649)

  • fix: transform everything that is not a selector inside :global (#​14577)

  • Overwrite Spring.#last_value when using .set() with {instant: true} (#​14656)

  • fix: don't emit assignment warnings for bindings (#​14651)

v5.10.0

Compare Source

Minor Changes
  • feat: provide links to documentation for errors/warnings (#​14629)
Patch Changes
  • fix: allow exports with source from script module even if no bind is present (#​14620)

  • fix: deconflict get_name for literal class properties (#​14607)

v5.9.1

Compare Source

Patch Changes
  • fix: mark subtree dynamic for bind with sequence expressions (#​14626)

v5.9.0

Compare Source

Minor Changes
  • feat: add support for bind getters/setters (#​14307)
Patch Changes
  • fix: always run if block code the first time (#​14597)

v5.8.1

Compare Source

Patch Changes
  • fix: reinstate missing prefersReducedMotion export (#​14586)

v5.8.0

Compare Source

Minor Changes
  • feat: add Spring and Tween classes to svelte/motion (#​11519)

v5.7.1

Compare Source

Patch Changes
  • fix: ensure bindings always take precedence over spreads (#​14575)

v5.7.0

Compare Source

Minor Changes
  • feat: add createSubscriber function for creating reactive values that depend on subscriptions (#​14422)

  • feat: add reactive MediaQuery class, and a prefersReducedMotion class instance (#​14422)

Patch Changes
  • fix: treat undefined and null the same for the initial input value (#​14562)

v5.6.2

Compare Source

Patch Changes
  • chore: make if blocks tree-shakable (#​14549)

v5.6.1

Compare Source

Patch Changes
  • fix: handle static form values in combination with default values (#​14555)

v5.6.0

Compare Source

Minor Changes
  • feat: support defaultValue/defaultChecked for inputs (#​14289)

v5.5.4

Compare Source

Patch Changes
  • fix: better error messages for invalid HTML trees (#​14445)

  • fix: remove spreaded event handlers when they become nullish (#​14546)

  • fix: respect the unidirectional nature of time (#​14541)

v5.5.3

Compare Source

Patch Changes
  • fix: don't try to add owners to non-$state class fields (#​14533)

  • fix: capture infinite_loop_guard in error boundary (#​14534)

  • fix: proxify values when assigning using ||=, &&= and ??= operators (#​14273)

v5.5.2

Compare Source

Patch Changes
  • fix: use correct reaction when lazily creating deriveds inside SvelteDate (#​14525)

v5.5.0

Compare Source

Minor Changes
  • feat: allow snippets to be exported from module scripts (#​14315)
Patch Changes
  • fix: ignore TypeScript generics on variables (#​14509)

v5.4.0

Compare Source

Minor Changes

v5.3.2

Compare Source

Patch Changes
  • fix: correctly prune CSS for elements inside snippets (#​14494)

  • fix: render attributes during SSR regardless of case (#​14492)

v5.3.1

Compare Source

Patch Changes
  • fix: treat spread elements the same as call expressions (#​14488)

  • fix: correctly increment/decrement bigints (#​14485)

v5.3.0

Compare Source

Minor Changes
  • feat: add error boundaries with <svelte:boundary> (#​14211)

v5.2.12

Compare Source

Patch Changes
  • fix: upgrade to esm-env 1.2.1 to fix issues with non-Vite setups (#​14470)

  • fix: prevent infinite loops when pruning CSS (#​14474)

  • fix: generate correct code when encountering object expression statement (#​14480)

v5.2.11

Compare Source

Patch Changes
  • fix: ignore text and expressions outside the template when validating HTML (#​14468)

  • fix: better account for render tags when pruning CSS (#​14456)

v5.2.10

Compare Source

Patch Changes
  • fix: correctly remove unused selectors in middle of selector lists (#​14448)

  • chore: upgrade esm-env for Vite 6 support (#​14460)

  • fix: strip exported TypeScript function overloads (#​14458)

v5.2.9

Compare Source

Patch Changes
  • fix: show :then block for null/undefined value (#​14440)

  • fix: relax html parent validation (#​14442)

  • fix: prevent memory leak when creating deriveds inside untrack (#​14443)

  • fix: disregard TypeScript nodes when pruning CSS (#​14446)

v5.2.8

Compare Source

Patch Changes
  • fix: correctly prune each blocks (#​14403)

  • fix: provide temporary LegacyComponentType (#​14257)

  • fix: attach spread attribute events synchronously (#​14387)

  • fix: ensure last empty text node correctly hydrates (#​14425)

  • fix: correctly prune key blocks (#​14403)

v5.2.7

Compare Source

Patch Changes
  • fix: always use set for private identifiers (#​14378)

v5.2.6

Compare Source

Patch Changes
  • fix: remove template expression inlining (#​14374)

v5.2.5

Compare Source

Patch Changes
  • fix: correctly handle srcObject attribute on video elements (#​14369)

  • add contentvisibilityautostatechange event to element definitions (#​14373)

  • fix: tighten up export default validation (#​14368)

  • fix: include method definitions in class private fields (#​14365)

v5.2.4

Compare Source

Patch Changes
  • fix: ensure internal cloning can work circular values (#​14347)

  • fix: correctly update dynamic member expressions (#​14359)

  • fix: ensure is_pure takes into account $effect.tracking() (#​14333)

  • fix: coerce value to number when hydrating range/number input with changed value (#​14349)

v5.2.3

[Compa


Configuration

📅 Schedule: Branch creation - "before 3am on the first day of the month" (UTC), 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 these updates again.


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

This PR has been generated by Mend Renovate using a curated preset maintained by Sanity. View repository job log here

Copy link

vercel bot commented Dec 6, 2024

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

Name Status Preview Comments Updated (UTC)
live-visual-editing-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 11:55pm
visual-editing-astro ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 11:55pm
visual-editing-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 11:55pm
visual-editing-next-with-i18n ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 11:55pm
visual-editing-nuxt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 11:55pm
visual-editing-page-builder-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 11:55pm
visual-editing-remix ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 11:55pm
visual-editing-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 11:55pm
visual-editing-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 11:55pm
visual-editing-svelte ❌ Failed (Inspect) Dec 19, 2024 11:55pm

Copy link

socket-security bot commented Dec 6, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] Transitive: environment, eval, filesystem, network, shell +310 51.8 MB fredkschott, matthewp, natemoo-re
npm/[email protected] None +17 4.92 MB conduitry, rich_harris, svelte-admin

🚮 Removed packages: npm/[email protected]

View full report↗︎

@renovate renovate bot force-pushed the renovate/main-major-5-app-dependencies branch from 97ff1e3 to 8de936f Compare December 6, 2024 13:44
@renovate renovate bot force-pushed the renovate/main-major-5-app-dependencies branch from 8de936f to 727644a Compare December 6, 2024 14:52
Copy link
Contributor Author

renovate bot commented Dec 20, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 5.x releases. But if you manually upgrade to 5.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/main-major-5-app-dependencies branch December 20, 2024 09:47
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant