Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/perps-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add slippage controls so users can configure per-order slippage tolerance for market trades ([#8871](https://github.com/MetaMask/core/pull/8871))
- Track `vip_tier` and `vip_discount` properties on perps trading events for fee analytics ([#8871](https://github.com/MetaMask/core/pull/8871))
- Surface an in-app banner during an ongoing HyperLiquid outage so users see degraded trading status ([#8871](https://github.com/MetaMask/core/pull/8871))
- Expose subpath `exports` for `./constants`, `./constants/*`, `./types`, and `./utils/*` so consumers using legacy `node` module resolution can deep-import compiled entry points without losing tree-shaking ([#8883](https://github.com/MetaMask/core/pull/8883))

### Fixed

Expand Down
40 changes: 40 additions & 0 deletions packages/perps-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,46 @@
"default": "./dist/index.cjs"
}
},
"./constants": {
"import": {
"types": "./dist/constants/index.d.mts",
"default": "./dist/constants/index.mjs"
},
"require": {
"types": "./dist/constants/index.d.cts",
"default": "./dist/constants/index.cjs"
}
},
"./constants/*": {
"import": {
"types": "./dist/constants/*.d.mts",
"default": "./dist/constants/*.mjs"
},
"require": {
"types": "./dist/constants/*.d.cts",
"default": "./dist/constants/*.cjs"
}
},
"./types": {
"import": {
"types": "./dist/types/index.d.mts",
"default": "./dist/types/index.mjs"
},
"require": {
"types": "./dist/types/index.d.cts",
"default": "./dist/types/index.cjs"
}
},
"./utils/*": {
"import": {
"types": "./dist/utils/*.d.mts",
"default": "./dist/utils/*.mjs"
},
"require": {
"types": "./dist/utils/*.d.cts",
"default": "./dist/utils/*.cjs"
}
},
"./package.json": "./package.json"
},
"publishConfig": {
Expand Down
Loading