Repository navigation
chore(deps-dev): bump vitest from 4.1.12 to 5.0.5 - #111
Closed
dependabot[bot] wants to merge 1 commit into
Closed
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
❌ Deploy Preview for cscsdev failed.
|
5 tasks done
jvcorredor
added a commit
that referenced
this pull request
Nov 2, 2026
## Summary ```diff eslint 9.39.5 -> 10.13.0 eslint-plugin-astro 1.7.0 -> 3.2.1 (peers eslint >=10) prettier-plugin-tailwindcss 0.7.4 -> 0.8.1 -eslint-plugin-jsx-a11y 6.10.2 +eslint-plugin-jsx-a11y-x 0.2.0 ``` `eslint.config.js` is unchanged. The `flat/jsx-a11y-recommended` config is still used. `AGENTS.md` now describes the a11y plugin accurately. **Why the a11y plugin is swapped.** `eslint-plugin-jsx-a11y` 6.10.2 (latest, Oct 2024) peers `eslint ^3 ... ^9` and has no ESLint 10 release (jsx-eslint/eslint-plugin-jsx-a11y#1075, open). The lint config does use it, through `eslint-plugin-astro`'s `flat/jsx-a11y-recommended`. `eslint-plugin-astro` 3.2 supports the community fork `eslint-plugin-jsx-a11y-x` (es-tooling, same rules, peers `eslint ^9 || ^10`, v0.2.0 from May 2026, repo active, about 417k weekly downloads) as a second optional peer and prefers `jsx-a11y` only when it is installed. `overrides` was rejected because it would hide an unsupported runtime. `typescript-eslint` 8.72.0 and `eslint-plugin-storybook` 10.6.3 already support ESLint 10; their resolved versions are unchanged, and the `typescript-eslint` family's range floor is raised to `^8.61.0` to match `eslint-plugin-astro`'s optional peer. The a11y rules cover `.astro` files only (not `.tsx`); that gap predates this PR and is tracked in #114. Versions are the newest published before the 2026-10-26 cooldown cutoff. **Migration checked.** ESLint v10 migration guide: Node >=20.19, `eslint-env` comments, config lookup from file, JSX reference tracking, removed eslintrc. None needed a change. `eslint-plugin-astro` 2.x and 3.x changelog: ESM only, and `astro/no-prerender-export-outside-pages` was added to `recommended`. `astro/valid-compile` and `astro/no-omitted-end-tags` were deprecated and dropped from `recommended`, since `astro check` (run in CI) covers them. ## Test plan - [x] `npm run lint`, `format:check`, `check` (0 errors), `test:run` (80 passed), `build` and `build-storybook` all pass. - [x] `npm run format` once with prettier-plugin-tailwindcss 0.8.1: **0 files changed**, so there is no separate format commit. - [x] **Planted violations** in a scratch copy (TypeScript `no-unused-vars`, `ban-ts-comment`, `no-var`; Astro `no-conflict-set-directives`, `no-unused-define-vars-in-style`; Storybook `default-exports`; 11 a11y findings including `alt-text`, `anchor-is-valid` for both a missing href and `href="#"`, `click-events-have-key-events`, `media-has-caption`). Main and the branch report the same 18 findings. A second a11y file (`label-has-associated-control`, `mouse-events-have-key-events`, `no-distracting-elements`, `aria-role`) is identical too. A bare `<input>` without a label is not flagged on either side, because it is not covered by `label-has-associated-control`. - [x] **Rule sets** (`eslint --print-config` on an `.astro` file): all 34 `astro/jsx-a11y/*` rules have the same names and severities on main and the branch, none added or dropped. The only difference is that `jsx-a11y-x` writes its default options into the resolved config. Non-a11y astro rules: dropped `astro/valid-compile` (deprecated upstream, covered by `astro check`), added `astro/no-exports-from-components` and `astro/no-prerender-export-outside-pages`. Existing code passes the new rules. - [x] `npm audit`: 21 vulnerabilities before, 19 after (one low, 18 moderate). `eslint-plugin-jsx-a11y`, `eslint-compat-utils` and `@eslint/eslintrc` are gone. **The eslint / minimatch / typescript-eslint chain is not gone:** advisory GHSA-g3hv-75wg-m249 needs `minimatch >=11.0.1`, which was only published 2026-10-27 (inside the 7-day cooldown), and eslint 10.13 still depends on `minimatch ^10`. ## Merge Danger **Door:** two-way. Revert restores the previous lockfile. **Blast Radius:** dev tooling and CI only. This includes `prettier-plugin-tailwindcss` 0.8.1 from #97, which stays open for its `pocketbase` half (B3). Supersedes #105 (eslint-plugin-astro 3.2.1). That PR cannot pass on its own because it requires eslint 10 and `jsx-a11y` pins `<=9`. Not touched: #74 (optional Storybook ESLint plugin loading), #111 and #102 (vitest 5), #110 (prettier-plugin-astro). Refs: #81 Refs: #90 BREAKING CHANGE: `eslint-plugin-jsx-a11y` is replaced by `eslint-plugin-jsx-a11y-x`, and ESLint 10 changes the config and CLI behaviour (flat config only, new config lookup, `eslint-env` comments are errors). `engines.node` is unchanged (already `>=22.23.4`). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
dependabot
Bot
force-pushed
the
dependabot/npm_and_yarn/vitest-5.0.5
branch
from
November 2, 2026 01:32
ea949cd to
df7f88b
Compare
dependabot
Bot
force-pushed
the
dependabot/npm_and_yarn/vitest-5.0.5
branch
from
November 2, 2026 14:15
df7f88b to
3a99055
Compare
jvcorredor
added a commit
that referenced
this pull request
Nov 3, 2026
Bump vitest, @vitest/browser-playwright and @vitest/coverage-v8 from 4.1.12 to 5.0.5 together. Each Dependabot PR (#111, #102, #133) fails alone at `npm ci` because the packages peer-pin each other to the exact same vitest version. Vitest 5 ships browser-mode DOM matcher types in which toHaveTextContent no longer accepts a RegExp. They shadow @testing-library/jest-dom's signature and broke `astro check` on five existing assertions, although the jsdom tests still run jest-dom's matcher. Re-declare jest-dom's signature in src/test/vitest-matchers.d.ts instead of changing tests. 5.0.5 was published 2026-10-15, past the 7-day cooldown; 5.1.0 (2026-11-02) is not. Supersedes #111, #102 and #133. Refs: #117 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 4.1.12 to 5.0.5. - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md) - [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.5/packages/vitest) --- updated-dependencies: - dependency-name: vitest dependency-version: 5.0.5 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
Bot
force-pushed
the
dependabot/npm_and_yarn/vitest-5.0.5
branch
from
November 3, 2026 13:35
3a99055 to
756853f
Compare
jvcorredor
added a commit
that referenced
this pull request
Nov 3, 2026
Bump vitest, @vitest/browser-playwright and @vitest/coverage-v8 from 4.1.12 to 5.0.5 together. Each Dependabot PR (#111, #102, #133) fails alone at `npm ci` because the packages peer-pin each other to the exact same vitest version. Vitest 5 ships browser-mode DOM matcher types in which toHaveTextContent no longer accepts a RegExp. They shadow @testing-library/jest-dom's signature and broke `astro check` on five existing assertions, although the jsdom tests still run jest-dom's matcher. Re-declare jest-dom's signature in src/test/vitest-matchers.d.ts instead of changing tests. 5.0.5 was published 2026-10-15, past the 7-day cooldown; 5.1.0 (2026-11-02) is not. Supersedes #111, #102 and #133. Refs: #117 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jvcorredor
added a commit
that referenced
this pull request
Nov 3, 2026
Supersedes #111, #102 and #133 (left open for you to close). ## Summary ```diff devDependencies - vitest ^4.1.1 - @vitest/browser-playwright ^4.0.14 - @vitest/coverage-v8 ^4.1.1 + vitest ^5.0.5 (locked 5.0.5) + @vitest/browser-playwright ^5.0.5 (locked 5.0.5) + @vitest/coverage-v8 ^5.0.5 (locked 5.0.5) src/test/ +└── vitest-matchers.d.ts # types only: restores jest-dom's toHaveTextContent(RegExp) ``` - Why each Dependabot PR failed alone: `@vitest/browser-playwright` and `@vitest/coverage-v8` peer-pin the exact same `vitest` version, so bumping one gives `npm ci` an `ERESOLVE`. They have to move together. - Vitest 5 ships browser-mode DOM matcher types (via `vitest/config` in `vitest.config.ts`) where `toHaveTextContent(text?: string | number)` rejects RegExp. They shadow `@testing-library/jest-dom`, so `astro check` failed on 5 existing assertions. The jsdom tests still run jest-dom's matcher at runtime. No test was changed: `src/test/vitest-matchers.d.ts` re-declares jest-dom's signature on `Matchers` (the `Assertion` type parameter lists disagree across libs). Drop it if tests move to Vitest browser mode, where `toMatchTextContent` replaces the RegExp form. - Pinned to 5.0.5, published 2026-10-15 (past the 7-day cooldown). 5.1.0 was published 2026-11-02, so the lock does not take it; transitive `tinybench` is pinned to 6.2.2 (6.2.3 is inside the cooldown), and every package the lock changes vs main is >= 7 days old. - `vitest` 5 pulls in `@vitest/ui` (needed by the `test:ui` script anyway) and the lock dedupes some transitive packages. ## Evidence - **Before:** `npm ci` on #111/#102/#133 fails with `ERESOLVE` (peer `vitest@"4.1.12"` vs `5.0.5`). With only the version bump, `npm run check` reports 5 errors (`ts(2345)` RegExp not assignable to `string | number | undefined` in `BooksList`, `EventForm`, `EventsList` tests). **After:** every step of `.github/workflows/ci.yml` run locally on Node 24: - `npm ci`, `npm run lint`, `npm run format:check`: clean - `npm run check`: 0 errors - `npm run test:run`: 13 files, 249 tests pass (same as main on 4.1.12) - `npm run test:coverage`: identical to main (93.54 / 90.81 / 84.21 / 93.27) - `npm run test:pb`: 16/16; `make -C backend pocketbase`, `npm run build`, `npm run build-storybook`: succeed - `scripts/test-agent-hooks.sh`: pass - No browser-mode (Playwright) test project exists in this repo; the only vitest project is jsdom, so none ran. ## Merge Danger **Door:** two-way Revert the commit to return to 4.1.12. **Blast Radius:** dev tooling Test, coverage and storybook tooling only. No runtime or production code changes. Refs: #117 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Superseded by #140, which moves vitest, @vitest/browser-playwright and @vitest/coverage-v8 to 5.0.5 together. Their peer pins mean none of them can move alone. |
Contributor
Author
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
9 of 11 tasks
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.
Bumps vitest from 4.1.12 to 5.0.5.
Release notes
Sourced from vitest's releases.
... (truncated)
Commits
7a825dbchore: release v5.0.5 (#11609)6621a72fix: abort all running tests on cancel (#11606)e9c3d72fix: release mocks of finished test files (#11607)8dd67c2fix(browser): run global setup once with instances (#11596)6c5a447fix: run hook cleanups when a later hook fails (#11605)9697b38fix: keep the import frame in native loader errors (#11599)6498b66fix(browser): wait 30s for the browser to close (#11601)f161e6dfix(browser): drop late connections of closed sessions (#11600)fe86a64fix: skip builtin loading in async leak detector (#11598)6ae8e89fix(reporter): end reason'failed'on worker crash (#11568)