Repository navigation
fix(security): patch @vitest/mocker and postcss-selector-parser - #35937
Conversation
- ui-core-components: vitest/@vitest/* 4.1.11 -> 4.1.12 (#773, #774) - openmetadata-ui, ui-core-components: resolve postcss-selector-parser to 7.1.7 over @tailwindcss/typography's exact 6.0.10 pin (#749, #753). 7.0's only break (safe insertion during iteration) does not touch typography's commonTrailingPseudos; compiled CSS is byte-identical.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review ✅ Approved🟡 Medium risk · Pinning Vitest and postcss-selector-parser to patched versions changes test/build dependency resolution; parser incompatibility could disrupt UI CSS builds. Bumps vitest and VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
|
LGTM! |



Describe your changes:
Closes the 4 open Dependabot alerts in this repo for
@vitest/mockerandpostcss-selector-parser. Only the pins inresolutions, one devDependency range and the lockfile blocks of these packages change. No source files change.vitest+@vitest/*ui-core-componentsdevDependency (test only)postcss-selector-parseropenmetadata-ui,ui-core-components(build time only)postcss-selector-parser. #35837 left this open because forcing 7.x overrides an exact pin across a major version. I checked that this is safe:
@tailwindcss/typography. It pins6.0.10exactly, up to its latest release (0.5.20).commonTrailingPseudosinsrc/utils.js, and only usesastSync,remove, andprependonto a fresh selector, so that change does not reach it.Companion Collate PR: open-metadata/openmetadata-collate#7700 (the same two fixes there, plus the vite 7.3.7 bump in
collate-local-webserver). Each repo resolves its ownnode_modules, so neither PR depends on the other to merge.Not fixed here:
@tiptap/core#713 still needs the tiptap v2 → v3 migration of BlockEditor.Type of change:
High-level design:
N/A, small change.
Tests:
Use cases covered
Unit tests
openmetadata-uiwas regenerated withyarn install(yarn 1.22.22), and only thepostcss-selector-parserblock changes. Inui-core-components, yarn also split the unrelatedstring-width-cjs/strip-ansi-cjsalias entries, so I applied only the 8 vitest blocks and the parser block ontomain's lock.yarn install --frozen-lockfilefrom a cleannode_modulespasses on both and installs vitest 4.1.12 and postcss-selector-parser 7.1.7.ui-core-componentsvitest run: 914 passed and 6 failed, the same as on unmodifiedmain, with no new failures. The 6 are theshould render a tooltip trigger when tooltip is passedtests incomponents/application/tag/*(nobuttonrole found), and they fail onmaintoo.ui-core-componentsyarn build: passes, anddist/is byte-identical to themainbuild, includingui-core-components.css.openmetadata-uiTailwind output: I compiledsrc/styles/tailwind.css(typography plugin, full@sourcescan, 74,272 candidates) through@tailwindcss/nodebefore and after. The output is byte-identical: 482,293 bytes, with 266proserules that include the::markerrules, which go through the parser.Backend integration tests
make java_affected: no Java tests are impacted.Playwright (UI) tests
Not run.
make playwright_affectedmapspackage.json/yarn.lockto 21 canary and smoke specs, and those pull in the full chromium project. Neither package reaches the browser bundle. vitest runs only the core-components unit tests, andpostcss-selector-parserruns only inside typography while the CSS is built, where the output is byte-identical (see above).Manual testing performed
N/A, no runtime code path changes.
🤖 Generated with Claude Code


Confidence Score: 5/5
This dependency-only PR appears safe to merge; no actionable issues were found.Summary
Updates dependencies in both UI packages without changing source files.
Reviews (1) · Last reviewed commit: "fix(security): patch @vitest/mocker and ..." · Reviewed by Greptile