Repository navigation
fix(deps): bump inquirerer to 4.9.7 - #2098
pyramation wants to merge 1 commit into
Conversation
|
Review complete. No issues found — approved ✅. This change only updates dependency versions in ten Reviewed commit: 582b407 |
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
Devin Review found 1 finding. It is left for you to triage below.
There was a problem hiding this comment.
🔴 Default migration exports skip schema renaming
When noninteractive pgpm export uses the default schema selection, inquirerer returns checkbox objects instead of names. The string comparisons in SQL export and GraphQL export match none. The exported migrations silently retain source schema names.
Devin left this for you to triage: Real 4.9.7 regression (required noninteractive checkbox defaults return objects). Fixed upstream in inquirerer (dev-utils branch devin/1795750839-inquirerer-checkbox-default-compat); hold this PR until that ships as 4.9.8 and bump to it.
(Refers to this code)
Learn more
PGPM export renames source schemas to names derived from the output extension. The schema prompt in GraphQL mode and the schema prompt in SQL mode default to all schemas. In noninteractive mode, inquirerer 4.9.4 returned that default as a string array, while 4.9.7 returns selected checkbox objects. Both SQL export and GraphQL export use string membership to build the schema list for makeReplacer, so the new answer produces no schema replacements.
Example: Export a database with schema pets_public as extension adopt, using --no-tty without --schema_names. The prompt now returns [{ name: 'pets_public', value: 'pets_public', selected: true }] rather than ['pets_public']. The export keeps pets_public in the generated migrations instead of rewriting it to adopt_public.
Recommended fix: Normalize both checkbox answers to selected schema name strings before passing them to exportMigrations or exportGraphQL. Test that a noninteractive export without --schema_names rewrites a source schema to a different destination name.
Was this helpful? React with 👍 or 👎 to provide feedback.
Summary
This picks up
inquirerer@4.9.7. Before it, with--no-ttyand a missing required answer,applyDefaultValuesoverwrote flags that had been passed with their defaults.inquirerer:^4.9.4→^4.9.7in every workspace package that uses it; the lockfile resolves 4.9.7.genomic: bumped to^5.6.9inpgpm/coreandpgpm/cli. 5.6.9 pins inquirerer 4.9.7, while the older genomic pinned 4.9.4, and the mixed types broke compilation atscaffolder.scaffold.The full build passes, and the workspace matches
pnpm-policy.Implemented in session Add llms.txt and Markdown pages to all sites
Review with Devin · Open in Devin Desktop
Summary by CodeRabbit