Merge v4-beta to v4 (2026-05-29)#174
Merged
Merged
Conversation
Section 2b required a changeset for every workspace package consuming a bumped catalog key, scanning all dependency sections. That flagged packages whose only "change" was a build-tool catalog bump in a devDependency (e.g. @platforma-sdk/block-tools in a block model, @platforma-sdk/tengo-builder in a workflow) even though the package's own files were untouched and `pnpm changeset` does not flag them. Restrict the catalog-consumer scan to runtime sections (dependencies, peerDependencies). A runtime catalog dep bump still requires a release; build-only tooling no longer produces false positives. Adds a bats case + pkg-dev fixture covering the devDependency path.
Section 2b required a changeset for every workspace package consuming a bumped catalog key, scanning all dependency sections. That flagged packages whose only "change" was a build-tool catalog bump in a devDependency (e.g. @platforma-sdk/block-tools in a block model, @platforma-sdk/tengo-builder in a workflow) even though the package's own files were untouched and `pnpm changeset` does not flag them. Restrict the catalog-consumer scan to runtime sections (dependencies, peerDependencies). A runtime catalog dep bump still requires a release; build-only tooling no longer produces false positives. Adds a bats case + pkg-dev fixture covering the devDependency path.
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.
Merge v4-beta into v4
Canary tested:
platforma-open/sequence-properties#14 - Not over strict
platforma-open/sequence-properties#15 - Still fail when module missing
Greptile Summary
This PR refines the catalog-bump coverage check so that only runtime consumers (
dependenciesandpeerDependencies) are required to add a changeset entry when apnpm-workspace.yamlcatalog key changes. Previously the check also flagged packages that consumed the entry solely indevDependencies(e.g. build tools likeblock-toolsortengo-builder), generating false positives for UI-only or unrelated changes.check-coverage.sh: narrows thejqfilter from four dependency sections todependencies+peerDependenciesonly, with a new inline comment and updated header note explaining the rationale.coverage.bats+pkg-devfixture: adds a new test package consumingis-stringonly as adevDependencyand a matching test case that asserts it is not flagged when the catalog entry bumps.action.yaml: description updated to document the runtime-only scoping.Confidence Score: 4/5
Safe to merge; the core devDependency exclusion is correct and well-tested, with one unaddressed edge case around optionalDependencies.
The devDependency exclusion is intentional, clearly motivated, and backed by a new test. The only concern is that optionalDependencies was also silently dropped from the catalog-consumer scan — those entries appear in the published package.json and affect consumers at runtime, so removing them from the check could cause the script to miss legitimate coverage gaps.
actions/changeset/check-coverage/check-coverage.sh — specifically the jq filter on line 200 and whether the optionalDependencies exclusion is intentional.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[pnpm-workspace.yaml changed?] -->|No| Z[Skip catalog check] A -->|Yes| B[Extract changed catalog keys via yq structural parse] B --> C{Any keys changed?} C -->|No| Z C -->|Yes| D[For each catalog key / For each workspace package] D --> E{Package private?} E -->|Yes| D E -->|No| F[Read package.json] F --> G{Key in dependencies or peerDependencies with catalog: value?} G -->|No — devDeps and optionalDeps now excluded| D G -->|Yes| H[Add to required_bump_set] H --> D D --> I[Compare required vs bumped set] I --> J{Any missing?} J -->|No| K[Exit 0 ✓] J -->|Yes| L[Exit 1 — list missing packages]Comments Outside Diff (1)
actions/changeset/check-coverage/check-coverage.sh, line 199-204 (link)optionalDependenciessilently dropped from the coverage check. The stated rationale — build-tool bumps indevDependenciesleave the published artifact unchanged — does not apply tooptionalDependencies. Those entries are emitted into the publishedpackage.jsonand installed by consumers at runtime, so a catalog bump there does change what the package ships. Before this PR the check caught them; now it silently skips them with no explanation in the comment or the header note.Prompt To Fix With AI
Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "Merge v4-beta into v4" | Re-trigger Greptile