Repository navigation
Move pg-proto-parser and @pgsql/cli to @constructive-io/protobufjs 7.6.6 - #407
Conversation
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
Review complete. No issues found — approved ✅. The migration from the
Reviewed commit: 3701af3 |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Summary
Fixes #405.
pg-proto-parserand@pgsql/clipinned@launchql/protobufjs@7.2.6, which is based on protobufjs 7.2.6 and misses 11 upstream security fixes. The fork (constructive-io/protobuf.js, rebased in constructive-io/protobuf.js#1) now sits on upstream protobufjs 7.6.6 / protobufjs-cli 1.3.3 and is published as@constructive-io/protobufjs@7.6.6and@constructive-io/protobufjs-cli@1.3.3. This PR moves both packages to those versions.Field.prototype.applyJsonName, called fromparse, renames fields to theirjson_name(select_stmtbecomesSelectStmt). Plain upstream drops these fields silently when it encodes a real AST.Type.addworkaround for a field namedconstructoris no longer needed, because upstream 7.6.6Namespace.getchecks own properties only.proto-fetch: the generated module now defaults to@constructive-io/protobufjs/minimal.pbjscomes from@constructive-io/protobufjs-cli/pbjs.Tests
New tests: a json_name reflection test and a proto-fetch encode/decode round trip on a parsed
SELECT 42AST. Both fail on plain upstream protobufjs and pass on the fork.Verification against the published npm packages:
SELECT 42round-trips with matching wire bytes on PG 13–18.Implemented in session Remove vulnerable protobufjs fork from pg-proto-parser
Review with Devin · Open in Devin Desktop