Repository navigation
Clear the open advisories and move to @cloudflare/vitest-plugin - #59
Merged
Merged
Conversation
Dependabot had 37 open alerts, all in the two Workers fixture lockfiles: vite, launch-editor, source-map-js, vitest/@vitest/mocker, hono, undici and sharp. Both fixtures now audit clean. @cloudflare/vitest-pool-workers is deprecated in favour of @cloudflare/vitest-plugin. The move is a rename: the same cloudflareTest export and the same /types entry. wrangler follows to ^4.152.0, the exact version the plugin pins, so the lockfiles keep a single copy. vitest goes to ^4.1.12 and hono to ^4.13.14. Two overrides remain because upstream pins exact vulnerable versions with no newer release to move to: miniflare pins undici 7.29.1 (fixed in 7.30.1) and the plugin pins zod 4.6.5 (fixed in 4.6.6). Drop each once the plugin pins a patched version. The consumer skill's local D1 test reference still described the pre-0.21 pool API (defineWorkersConfig, ProvidedEnv, implicit storage isolation); it now mirrors the verified example, including reset() in beforeEach.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Dependabot had 37 open alerts, all in the two Workers fixture lockfiles (
test/miniflare,examples/d1-worker). Both now report zero undernpm audit, as does the root. No code scanning or secret scanning alerts and no repository advisories were open.What moved
@cloudflare/vitest-pool-workers^0.21.3@cloudflare/vitest-plugin^1.4.7sharpvitest^4.1.10^4.1.12vitest,@vitest/mocker; pullsvite8.3.5 (vite,launch-editor) andsource-map-js1.2.2wrangler^4.123.0^4.152.0hono^4.13.2^4.13.14honoadvisoriesOverrides
Two remain, because upstream pins exact vulnerable versions and has no newer release yet:
undici7.29.1miniflare5.20261019.2-betazod4.6.5@cloudflare/vitest-plugin1.4.7Both are patch/minor moves within the same major, and only test tooling is affected. Drop each once the plugin pins a patched version.
The move to
@cloudflare/vitest-plugin@cloudflare/vitest-pool-workers0.23.0 is marked deprecated, renamed to@cloudflare/vitest-plugin. The move is a rename: the samecloudflareTestexport and the same/typesentry, sovitest.config.tsandtest/tsconfig.jsonchange only the import path. Bothworker-configuration.d.tsare regenerated for the newer workerd. Compatibility dates are untouched.viteststays on 4.x. The plugin accepts 5, but a major is out of scope here.Consumer skill
skills/sqlc-d1-typescript/reference/local-d1-test.mdstill described the pre-0.21 pool API:defineWorkersConfigwithpoolOptions.workers,ProvidedEnvaugmentation, and implicit per-test storage isolation. It now mirrorsexamples/d1-worker, whichmake test-exampleverifies: thecloudflareTestplugin,Cloudflare.Env,@cloudflare/vitest-plugin/types, andreset()inbeforeEach.SKILL.mdstep 6 names the new package.Verification
make verify-localgreen: unit and candidate tests, generated-output drift clean, 33 miniflare tests, 5 example tests.make fmt-checkclean.