@metamask/base-controller
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -10,2 +10,20 @@ # Changelog | ||
## [7.0.1] | ||
### Fixed | ||
- Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files ([#4648](https://github.com/MetaMask/core/pull/4648)) | ||
- Previously, this package shipped with only one variant of type declaration | ||
files, and these files were only CommonJS-compatible, and the `exports` | ||
field in `package.json` linked to these files. This is an anti-pattern and | ||
was rightfully flagged by the | ||
["Are the Types Wrong?"](https://arethetypeswrong.github.io/) tool as | ||
["masquerading as CJS"](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md). | ||
All of the ATTW checks now pass. | ||
- Remove chunk files ([#4648](https://github.com/MetaMask/core/pull/4648)). | ||
- Previously, the build tool we used to generate JavaScript files extracted | ||
common code to "chunk" files. While this was intended to make this package | ||
more tree-shakeable, it also made debugging more difficult for our | ||
development teams. These chunk files are no longer present. | ||
## [7.0.0] | ||
@@ -249,3 +267,4 @@ | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/base-controller@7.0.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/base-controller@7.0.1...HEAD | ||
[7.0.1]: https://github.com/MetaMask/core/compare/@metamask/base-controller@7.0.0...@metamask/base-controller@7.0.1 | ||
[7.0.0]: https://github.com/MetaMask/core/compare/@metamask/base-controller@6.0.3...@metamask/base-controller@7.0.0 | ||
@@ -252,0 +271,0 @@ [6.0.3]: https://github.com/MetaMask/core/compare/@metamask/base-controller@6.0.2...@metamask/base-controller@6.0.3 |
{ | ||
"name": "@metamask/base-controller", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Provides scaffolding for controllers as well a communication system for all controllers", | ||
@@ -20,10 +20,15 @@ "keywords": [ | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js", | ||
"types": "./dist/types/index.d.ts" | ||
"import": { | ||
"types": "./dist/index.d.mts", | ||
"default": "./dist/index.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/index.d.cts", | ||
"default": "./dist/index.cjs" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "./dist/index.js", | ||
"types": "./dist/types/index.d.ts", | ||
"main": "./dist/index.cjs", | ||
"types": "./dist/index.d.cts", | ||
"files": [ | ||
@@ -33,3 +38,3 @@ "dist/" | ||
"scripts": { | ||
"build": "tsup --config ../../tsup.config.ts --tsconfig ./tsconfig.build.json --clean", | ||
"build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references", | ||
"build:docs": "typedoc", | ||
@@ -51,3 +56,3 @@ "changelog:update": "../../scripts/update-changelog.sh @metamask/base-controller", | ||
"@metamask/auto-changelog": "^3.4.4", | ||
"@metamask/json-rpc-engine": "^9.0.2", | ||
"@metamask/json-rpc-engine": "^9.0.3", | ||
"@types/jest": "^27.4.1", | ||
@@ -54,0 +59,0 @@ "@types/sinon": "^9.0.10", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
344105
44
1631