Release 1245.0.0 - #10146
Merged
Merged
Conversation
Treat PerpsErrorCode expansion as additive. Clients should handle unknown codes in a catch-all.
abretonc7s
temporarily deployed
to
default-branch
September 9, 2026 01:16 — with
GitHub Actions
Inactive
abretonc7s
temporarily deployed
to
default-branch
September 9, 2026 01:17 — with
GitHub Actions
Inactive
|
✅ No changelog changes needed. |
Bigshmow
approved these changes
Sep 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation
Publishes
@metamask/perps-controller@16.2.0. No other workspace packages are version-bumped.This is a minor, not a major. Expanding
PerpsErrorCodewith the margin-mode codes is additive; clients should handle unknown codes in a catch-all rather than an exhaustive map. OptionalOrderParams.marginModeandMarketInfo.marginModekeep existing callers on the isolated-leverage path.Also includes the HyperLiquid TWAP terminal-record fix and Lighter account/market/log fixes.
References
Checklist
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.jsonversions, a new[16.2.0]changelog section (margin-mode error codes and HyperLiquidmarginModeAPI, TWAP terminal-record fix, Lighter account/market/logging fixes — already merged via linked PRs), and consumer guidance updates.Policy clarification: new
PerpsErrorCodevalues (including the four margin-mode codes) are documented as additive minors, not breaking — the changelog drops the prior BREAKING wording.README.mdadds an Error codes section andperpsErrorCodes.tsJSDoc now tells clients to use a catch-all for unknown codes instead of an exhaustiveRecord<PerpsErrorCode, …>.Reviewed by Cursor Bugbot for commit add8f2d. Bugbot is set up for automated code reviews on this repo. Configure here.