[Snyk] Upgrade @adonisjs/vite from 2.0.2 to 4.0.0 #32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade @adonisjs/vite from 2.0.2 to 4.0.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 15 versions ahead of your current version.
The recommended version was released 22 days ago.
Issues fixed by the recommended upgrade:
SNYK-JS-BRACES-6838727
SNYK-JS-MICROMATCH-6838728
Release notes
Package name: @adonisjs/vite
This release adds support for Vite 6.
Breaking Changes
Vite.createRuntime
is nowVite.createServerModuleRunner
and accepts the same options as Vite'screateServerModuleRunner
. This breaking change is unlikely to affect you unless you are a package maintainer.New Contributors
Full Changelog: v3.0.0...v4.0.0
v4.0.0-beta.0
Changes
V3 of @ adonisjs/vite is finally available in stable version. The changes have been fully explained in the following documents:
Migration Guide
To migrate your application you will need to make the following changes:
You will need to add the vite server middleware to your
kernel.ts
file :])
generateEntryPointsTags
method is now async.Our implementation is based on the new Vite Runtime API, available only since version 5.1. So make sure you have at least this version of
vite
in your package.json.You'll need the latest version of adonisjs/assembler and adonisjs/core. Then make sure to have
assetsBundler: false
and the assembler hook defined in youradonisrc.ts
file :+ hooks: {
+ onBuildStarting: [() => import('@ adonisjs/vite/build_hook')],
+ },
})
Commits
post
for config plugin (7fd9e77)Changes
This new release has a breaking change: the Vite middleware must be added in your own
kernel.ts
like this :// ...
server.use([
// ...
() => import('@ adonisjs/cors/cors_middleware'),
() => import('@ adonisjs/vite/vite_middleware'),
])
This was needed because otherwise Vite's CORS settings and
@ adonisjs/cors
could conflict. See #14 and #13 for more detailed explanations.Commits
v3.0.0-10...v3.0.0-11
v3.0.0-9...v3.0.0-10
Breaking Changes
generateEntryPointsTags
method is now async.Changes
Commits
v3.0.0-8...v3.0.0-9
Fixed a configuration resolving problem that caused Solid x Inertia apps to sometimes get a "
find.test
is not a function`Commits
v3.0.0-7...v3.0.0-8
chore(release): 3.0.0-7
chore(release): 3.0.0-6
Breaking changes
getRuntime
in favor of acreateRuntime
method that returns a fresh instanceCommits
v3.0.0-4...v3.0.0-5
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: