You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(codegen): pin @dataplan/pg and grafast to prevent duplicate grafast install - #2073
Pin @dataplan/pg (1.1.1) and grafast (1.1.2) directly in @constructive-io/graphql-codegen and graphile-schema so external npm/pnpm consumers do not resolve duplicate copies of grafast (1.1.2 + 1.2.1).
Root cause
Inside the monorepo, pnpm-workspace.yaml overrides @dataplan/pg: 1.1.1 and grafast: 1.1.2, which hides the drift. Downstream consumers installing @constructive-io/graphql-codegen do not inherit workspace overrides:
graphile-schema -> graphile-settings -> graphile-build-pg@5.1.3 requests @dataplan/pg: ^1.1.1, which npm resolves to @dataplan/pg@1.2.1 (requiring grafast: ^1.2.0).
Meanwhile postgraphile@5.1.4 / graphile-build@5.1.1 require grafast: ^1.1.0, installing grafast@1.1.2 at root and a nested grafast@1.2.1 under node_modules/@dataplan/pg/node_modules/grafast.
Pinning both packages directly matches the workspace policy (pnpm-policy.yaml) and resolves a single grafast@1.1.2 for external consumers.
Addresses Q15a in constructive-io/constructive-planning#2586.
Updated supporting package requirements for the schema and GraphQL code generation packages. No direct changes to the end-user experience are included in this update.
This small dependency-hygiene PR pins grafast@1.1.2 and @dataplan/pg@1.1.1 exactly in two workspace manifests so pnpm resolves a single grafast copy across the monorepo.
Merge Risk: Minimal · up to b1361 · assessed changes only
Path filters excluded changed files. This rating applies only to the assessed changes.
Architecture risk: Low · up to b1361
The change affects 2 systems.
Changed systems:graphile, graphql
Architecture concerns
No architecture-level concerns identified.
Review details
Systems and components
observed — graphile (service) was modified; 1 changed file maps to changed impact.
observed — graphql (service) was modified; 1 changed file maps to changed impact.
Before / after behavior
observed — Modified behavior in graphile/graphile-schema/package.json: Added @dataplan/pg and grafast to dependencies; deepmerge remains listed.
observed — Modified behavior in graphql/codegen/package.json: Added runtime dependencies @dataplan/pg (1.1.1) and grafast (1.1.2); the intervening dependency entries remain unchanged.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the two packages pinned (@dataplan/pg and grafast), the codegen scope, and the stated purpose (preventing a duplicate grafast install). The changeset adds exact @dataplan/pg 1.1.1 and …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the two packages pinned (@dataplan/pg and grafast), the codegen scope, and the stated purpose (preventing a duplicate grafast install). The changeset adds exact @dataplan/pg 1.1.1 and grafast 1.1.2 dependencies to the codegen and graphile-schema package.json files, which matches the title. The title is specific and concise. It omits graphile-schema, which is a minor gap and does not make the title misleading.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between fced582 and b13615c.
Files ignored due to path filters: 1
pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml
Files selected for processing: 2
graphile/graphile-schema/package.json
graphql/codegen/package.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
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
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.
Summary
Pin
@dataplan/pg(1.1.1) andgrafast(1.1.2) directly in@constructive-io/graphql-codegenandgraphile-schemaso external npm/pnpm consumers do not resolve duplicate copies ofgrafast(1.1.2+1.2.1).Root cause
Inside the monorepo,
pnpm-workspace.yamloverrides@dataplan/pg: 1.1.1andgrafast: 1.1.2, which hides the drift. Downstream consumers installing@constructive-io/graphql-codegendo not inherit workspace overrides:graphile-schema->graphile-settings->graphile-build-pg@5.1.3requests@dataplan/pg: ^1.1.1, which npm resolves to@dataplan/pg@1.2.1(requiringgrafast: ^1.2.0).postgraphile@5.1.4/graphile-build@5.1.1requiregrafast: ^1.1.0, installinggrafast@1.1.2at root and a nestedgrafast@1.2.1undernode_modules/@dataplan/pg/node_modules/grafast.Pinning both packages directly matches the workspace policy (
pnpm-policy.yaml) and resolves a singlegrafast@1.1.2for external consumers.Addresses Q15a in constructive-io/constructive-planning#2586.
Implemented in session Sort out small DevNet run items
Review with Devin · Open in Devin Desktop
Summary by CodeRabbit