Skip to content

build(deps-dev): move to vitest 5, the Workers plugin and canonicalize 5 - #70

Merged
Mearman merged 1 commit into
mainfrom
chore/vitest-5-canonicalize-5
Oct 10, 2026
Merged

Mearman merged 1 commit into
mainfrom
chore/vitest-5-canonicalize-5

Conversation

@Mearman

@Mearman Mearman commented Oct 10, 2026

Copy link
Copy Markdown
Member

Supersedes #58 and #59, which fail on an outdated lockfile because Dependabot did not update pnpm-lock.yaml. Refs #58, refs #59.

#58 alone could not work: @vitest/coverage-v8 5 needs vitest 5, and @cloudflare/vitest-pool-workers 0.22 peers on vitest 4 and is deprecated. The workers project now uses its successor @cloudflare/vitest-plugin, which takes vitest 5 and exports the same cloudflareTest. vitest and coverage-v8 are 5.0.3 in all three packages; canonicalize is 5.1.0.

canonicalize 5 changes output only for undefined properties, sparse arrays and boxed primitives. I built the schema generator against 4.0.0 and 5.1.0 on the same source and trilean.schema.json is byte-identical. It also needs Node 22; it is a dev dependency and .tool-versions is already 22.

Lint, typecheck, coverage, integration, smoke and workers all pass locally via the root scripts.

vitest and @vitest/coverage-v8 go to 5.0.3 in every package, so trilean no
longer lags the other two on 4.x. @cloudflare/vitest-pool-workers 0.22 peers
on vitest 4 and is deprecated in favour of @cloudflare/vitest-plugin, which
accepts vitest 5 and exports the same cloudflareTest plugin, so the workers
project swaps its import.

canonicalize 5.1.0 only changes output for values with no JSON form
(undefined properties, sparse arrays, boxed primitives), none of which the
generated JSON Schema contains.
@Mearman
Mearman marked this pull request as ready for review October 10, 2026 10:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-10T10:46:19.434677Z 763714d Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman
Mearman merged commit f2274a4 into main Oct 10, 2026
14 checks passed
@Mearman
Mearman deleted the chore/vitest-5-canonicalize-5 branch October 10, 2026 10:46
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in trilean-regex@1.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

Copy link
Copy Markdown

🎉 This PR is included in trilean@1.7.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

Copy link
Copy Markdown

🎉 This PR is included in trilean-sql@2.2.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant