Skip to content

Release 1245.0.0 - #10146

Merged
abretonc7s merged 3 commits into
mainfrom
release/1245.0.0
Sep 9, 2026
Merged

Release 1245.0.0#10146
abretonc7s merged 3 commits into
mainfrom
release/1245.0.0

Conversation

@abretonc7s

@abretonc7s abretonc7s commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Explanation

Publishes @metamask/perps-controller@16.2.0. No other workspace packages are version-bumped.

This is a minor, not a major. Expanding PerpsErrorCode with the margin-mode codes is additive; clients should handle unknown codes in a catch-all rather than an exhaustive map. Optional OrderParams.marginMode and MarketInfo.marginMode keep existing callers on the isolated-leverage path.

Also includes the HyperLiquid TWAP terminal-record fix and Lighter account/market/log fixes.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Low Risk
This PR only bumps versions and edits changelog/README/JSDoc; trading behavior ships in the referenced feature PRs, not in this diff.

Overview
Cuts release 1245.0.0, publishing @metamask/perps-controller@16.2.0 (monorepo root version bump only; no other workspace packages change).

The diff is mostly release bookkeeping: package.json versions, a new [16.2.0] changelog section (margin-mode error codes and HyperLiquid marginMode API, TWAP terminal-record fix, Lighter account/market/logging fixes — already merged via linked PRs), and consumer guidance updates.

Policy clarification: new PerpsErrorCode values (including the four margin-mode codes) are documented as additive minors, not breaking — the changelog drops the prior BREAKING wording. README.md adds an Error codes section and perpsErrorCodes.ts JSDoc now tells clients to use a catch-all for unknown codes instead of an exhaustive Record<PerpsErrorCode, …>.

Reviewed by Cursor Bugbot for commit add8f2d. Bugbot is set up for automated code reviews on this repo. Configure here.

Treat PerpsErrorCode expansion as additive. Clients should handle unknown codes in a catch-all.
@metamask-ci

metamask-ci Bot commented Sep 9, 2026

Copy link
Copy Markdown

✅ No changelog changes needed.

@abretonc7s
abretonc7s enabled auto-merge September 9, 2026 02:02
@abretonc7s
abretonc7s added this pull request to the merge queue Sep 9, 2026
Merged via the queue into main with commit ec96965 Sep 9, 2026
50 of 52 checks passed
@abretonc7s
abretonc7s deleted the release/1245.0.0 branch September 9, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants