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 vite to v3 #11

Merged
merged 1 commit into from
Sep 11, 2022
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 26, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vite (source) 2.9.15 -> 3.1.0 age adoption passing confidence

Release Notes

vitejs/vite

v3.1.0

Compare Source

Main Changes
  • Vite now uses parse5, which parses HTML in the same way as the latest browser versions. This migration gives us a more robust HTML story moving forward (#​9678).
  • Vite now supports using objects as hooks to change execution order (#​9634). Check out the RFC and the implementation upstream at rollup/rollup#​4600 for details and rationale.
      import { resolve } from 'node:path';
      import { readdir } from 'node:fs/promises';
    
      export default function getFilesOnDisk() {
        return {
          name: 'getFilesOnDisk',
          writeBundle: {
            // run this hook sequentially even if the hook is parallel
            sequential: true,
            // push this hook to the 'post' stage, after all normal hooks
            order: 'post',
            // hook implementation
            async handler({ dir }) {
              const topLevelFiles = await readdir(resolve(dir))
              console.log(topLevelFiles)
            }
          }
        }
      }
    Read the updated Rollup Plugin docs for more information.

Note
After Vite 3.1, you are no longer going to see [vite] hot updated log messages in the browser console. These messages have been moved to the debug channel (#​8855). Check your browser docs to show debug logs.

Features
Bug Fixes
Previous Changelogs
3.1.0-beta.2 (2022-09-02)

See 3.1.0-beta.2 changelog

3.1.0-beta.1 (2022-08-29)

See 3.1.0-beta.1 changelog

3.1.0-beta.0 (2022-08-25)

See 3.1.0-beta.0 changelog

v3.0.9

Compare Source

v3.0.8

Compare Source

v3.0.7

Compare Source

v3.0.6

Compare Source

v3.0.5

Compare Source

v3.0.4

Compare Source

v3.0.3

Compare Source

v3.0.2

Compare Source

v3.0.1

Compare Source

v3.0.0

Compare Source

Main Changes

Vite 3 is out!
Read the Vite 3 Announcement blog post

  • New docs theme using VitePress v1 alpha: https://vitejs.dev
  • Vite CLI
    • The default dev server port is now 5173, with the preview server starting at 4173.
    • The default dev server host is now localhost instead of 127.0.0.1.
  • Compatibility
    • Vite no longer supports Node v12, which reached its EOL. Node 14.18+ is now required.
    • Vite is now published as ESM, with a CJS proxy to the ESM entry for compatibility.
    • The Modern Browser Baseline now targets browsers which support the native ES Modules and native ESM dynamic import and import.meta.
    • JS file extensions in SSR and lib mode now use a valid extension (js, mjs, or cjs) for output JS entries and chunks based on their format and the package type.
  • Architecture changes
    • Vite now avoids full reload during cold start when imports are injected by plugins in while crawling the initial statically imported modules (#​8869).
    • Vite uses ESM for the SSR build by default, and previous SSR externalization heuristics are no longer needed.
  • import.meta.glob has been improved, read about the new features in the Glob Import Guide
  • The WebAssembly import API has been revised to avoid collisions with future standards. Read more in the WebAssembly guide
  • Improved support for relative base.
  • Experimental Features
  • Bundle size reduction
    • Terser is now an optional dependency. If you use build.minify: 'terser', you'll need to install it (npm add -D terser)
    • node-forge moved out of the monorepo to @​vitejs/plugin-basic-ssl
  • Options that were already deprecated in v2 have been removed.

Note
Before updating, check out the migration guide from v2

Features
Bug Fixes

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, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/vite-3.x branch from e8db28f to 87bbae0 Compare September 5, 2022 12:51
@renovate renovate bot force-pushed the renovate/vite-3.x branch from 87bbae0 to 6dde347 Compare September 10, 2022 07:20
@elonehoo elonehoo merged commit dc1cb69 into main Sep 11, 2022
@renovate renovate bot deleted the renovate/vite-3.x branch September 11, 2022 08:13
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.

1 participant