You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@metamask/base-controller

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/base-controller - npm Package Compare versions

Comparing version
8.4.1
to
8.4.2
+7
next.d.ts
// Type definitions for compatibility with legacy TypeScript module resolution.
// Node16/NodeNext resolution uses the "exports" field in package.json,
// but legacy resolution needs explicit .d.ts files at the import path.
// Re-export all types and values from the CommonJS build
// eslint-disable-next-line import-x/no-useless-path-segments, import-x/extensions
export * from './dist/next/index.cjs';
+10
-1

@@ -10,2 +10,10 @@ # Changelog

## [8.4.2]
### Fixed
- Fix TypeScript module resolution for `/next` subpath export with legacy resolution mode ([#6915](https://github.com/MetaMask/core/pull/6915))
- Added `next.d.ts` file to enable imports like `import { BaseController } from '@metamask/base-controller/next'` to work with both legacy TypeScript module resolution and Node16/NodeNext resolution modes
- Previously, this import pattern only worked with Node16/NodeNext resolution which uses the `exports` field in package.json
## [8.4.1]

@@ -390,3 +398,4 @@

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/base-controller@8.4.1...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/base-controller@8.4.2...HEAD
[8.4.2]: https://github.com/MetaMask/core/compare/@metamask/base-controller@8.4.1...@metamask/base-controller@8.4.2
[8.4.1]: https://github.com/MetaMask/core/compare/@metamask/base-controller@8.4.0...@metamask/base-controller@8.4.1

@@ -393,0 +402,0 @@ [8.4.0]: https://github.com/MetaMask/core/compare/@metamask/base-controller@8.3.0...@metamask/base-controller@8.4.0

+3
-2
{
"name": "@metamask/base-controller",
"version": "8.4.1",
"version": "8.4.2",
"description": "Provides scaffolding for controllers as well a communication system for all controllers",

@@ -45,3 +45,4 @@ "keywords": [

"dist/",
"next.js"
"next.js",
"next.d.ts"
],

@@ -48,0 +49,0 @@ "scripts": {