Skip to content

feat: Console SDK update for version 8.2.0#78

Merged
ChiragAgg5k merged 2 commits intomainfrom
dev
Apr 4, 2026
Merged

feat: Console SDK update for version 8.2.0#78
ChiragAgg5k merged 2 commits intomainfrom
dev

Conversation

@ChiragAgg5k
Copy link
Copy Markdown
Member

This PR contains updates to the Console SDK for version 8.2.0.

@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Apr 4, 2026

Greptile Summary

This PR updates the Console SDK to version 8.2.0, introducing two new Migrations service methods (createJSONExport and createJSONImport), adding Dart311 and Flutter341 runtime variants across all three runtime enum files, marking Block.reason and Block.expiredAt as optional, and upgrading the build toolchain to Rollup v4 with ESM config and a Node ≥18 engine requirement.

Key changes:

  • New Migrations endpoints: createJSONExport (POST /migrations/json/exports) and createJSONImport (POST /migrations/json/imports) follow the existing dual-overload pattern and correctly validate required parameters before constructing the request payload.
  • Runtime enum additions: Dart311 = 'dart-3.11' and Flutter341 = 'flutter-3.41' are added symmetrically to BuildRuntime, Runtime, and Runtimes enums — all three files remain in sync.
  • Model update: Block.reason and Block.expiredAt are now typed as string | undefined (?), reflecting that the API can return null for these fields.
  • Toolchain upgrade: Rollup config migrated to .mjs ESM syntax; package.json now requires Node ≥18 and pins rollup at 4.60.1; package-lock.json is updated accordingly.
  • Doc improvements: Datetime placeholder examples changed from empty strings to a concrete ISO-8601 value (2020-10-15T06:38:00.000+00:00), improving clarity for SDK consumers.

Confidence Score: 5/5

This PR is safe to merge — all changes are well-structured, consistent, and additive.

No P0 or P1 issues were found. New methods follow established patterns, enum files are kept in sync, and model field changes correctly reflect the API contract. The Rollup v4 upgrade is straightforward. Score of 5 reflects that all remaining considerations are cosmetic (missing JSDoc description on the two new migration methods) and do not affect correctness or runtime behavior.

No files require special attention.

Important Files Changed

Filename Overview
src/services/migrations.ts Added createJSONExport() and createJSONImport() methods with correct dual-overload pattern, required-parameter guards, and proper API paths/content-type headers.
src/enums/build-runtime.ts Added Dart311 ('dart-3.11') and Flutter341 ('flutter-3.41') variants, consistent with runtime.ts and runtimes.ts.
src/enums/runtime.ts Added Dart311 and Flutter341 variants, mirroring build-runtime.ts.
src/enums/runtimes.ts Added Dart311 and Flutter341 variants, in sync with the other two runtime enum files.
src/models.ts Block.reason and Block.expiredAt changed to optional (?) fields; ProxyRule field descriptions improved.
src/client.ts x-sdk-version header bumped to 8.2.0; no logic changes.
package.json Version bumped to 8.2.0, Node >=18 engine requirement added, rollup upgraded to 4.60.1.
rollup.config.mjs Migrated to ESM (.mjs) syntax for Rollup v4 compatibility; build outputs unchanged.
CHANGELOG.md 8.2.0 release notes added; pre-existing misplaced CLI 17.3.0 section is a separate thread topic.
src/services/health.ts No new methods or logic changes in the reviewed sections.

Greploops — Automatically fix all review issues by running /greploops in Claude Code. It iterates: fix, push, re-review, repeat until 5/5 confidence.
Use the Greptile plugin for Claude Code to query reviews, search comments, and manage custom context directly from your terminal.

Reviews (2): Last reviewed commit: "chore: update Console SDK to 8.2.0" | Re-trigger Greptile

@ChiragAgg5k ChiragAgg5k merged commit 1200e27 into main Apr 4, 2026
1 check passed
@ChiragAgg5k ChiragAgg5k deleted the dev branch April 4, 2026 10:46
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.

2 participants