Skip to content

fix(deps): bump groq-js to ^2.0.0 - #151

Merged
stipsan merged 1 commit into
mainfrom
cursor/bump-groq-js-v2-8791
Jul 27, 2026
Merged

fix(deps): bump groq-js to ^2.0.0#151
stipsan merged 1 commit into
mainfrom
cursor/bump-groq-js-v2-8791

Conversation

@stipsan

@stipsan stipsan commented Jul 24, 2026

Copy link
Copy Markdown
Member

Summary

Bumps groq-js from ^1.30.2 to ^2.0.0 so @sanity/codegen no longer pulls groq-js@1.x into the Sanity monorepo (SDK-2125 / parent SDK-2123).

Changes

  • package.json: groq-js: ^2.0.0 (lockfile updated; resolves to 2.0.0)
  • safeParseQuery: explicit ExprNode return type so @microsoft/api-extractor can resolve the type against groq-js@2’s chunked .d.ts output
  • Engines: already node >= 22.12, matching groq-js@2 — no change needed

Notes

  • groq-js@2 breaking changes are Node >=22.12 + ESM-only; this package already matches both
  • npm publish is expected via release-please after merge

Test plan

  • pnpm build succeeds
  • pnpm test — 162 passed, 10 skipped
  • CI green (ubuntu + windows + publish)

Linear Issue: SDK-2125

Open in Web Open in Cursor 

Align with groq-js v2 so the sanity monorepo can dedupe to a single major.
Also annotate safeParseQuery's return type so api-extractor can resolve
ExprNode against groq-js@2's chunked declaration output.

Refs: SDK-2125
@pkg-pr-new

pkg-pr-new Bot commented Jul 24, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/@sanity/codegen@151

commit: ff51f16

@stipsan
stipsan marked this pull request as ready for review July 24, 2026 14:35
@stipsan
stipsan enabled auto-merge (squash) July 24, 2026 14:35
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​groq-js@​2.0.010010010097100

View full report

@stipsan
stipsan merged commit fe9b8e1 into main Jul 27, 2026
6 checks passed
@stipsan
stipsan deleted the cursor/bump-groq-js-v2-8791 branch July 27, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants