@metamask/utils
Advanced tools
Comparing version 8.4.0 to 8.5.0
@@ -9,2 +9,14 @@ # Changelog | ||
## [8.5.0] | ||
### Changed | ||
- Bump dependency `semver` from `^5.7.1` to `^7.6.0` ([#181](https://github.com/MetaMask/utils/pull/181)). | ||
### Fixed | ||
- Replace dependency `superstruct` `^1.0.3` with ESM-compatible `@metamask/superstruct` `^3.0.0` ([#185](https://github.com/MetaMask/utils/pull/185)). | ||
- This fixes the issue of this package being unusable by any TypeScript project that uses `Node16` or `NodeNext` as its `moduleResolution` option. | ||
- Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files ([#182](https://github.com/MetaMask/utils/pull/182)) | ||
- 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 ([#182](https://github.com/MetaMask/utils/pull/182)). | ||
- 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. | ||
## [8.4.0] | ||
@@ -227,3 +239,4 @@ ### Added | ||
[Unreleased]: https://github.com/MetaMask/utils/compare/v8.4.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/utils/compare/v8.5.0...HEAD | ||
[8.5.0]: https://github.com/MetaMask/utils/compare/v8.4.0...v8.5.0 | ||
[8.4.0]: https://github.com/MetaMask/utils/compare/v8.3.0...v8.4.0 | ||
@@ -230,0 +243,0 @@ [8.3.0]: https://github.com/MetaMask/utils/compare/v8.2.1...v8.3.0 |
{ | ||
"name": "@metamask/utils", | ||
"version": "8.4.0", | ||
"version": "8.5.0", | ||
"description": "Various JavaScript/TypeScript utilities of wide relevance to the MetaMask codebase", | ||
@@ -17,16 +17,26 @@ "homepage": "https://github.com/MetaMask/utils#readme", | ||
".": { | ||
"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" | ||
} | ||
}, | ||
"./node": { | ||
"import": "./dist/node.mjs", | ||
"require": "./dist/node.js", | ||
"types": "./dist/types/node.d.ts" | ||
"import": { | ||
"types": "./dist/node.d.mts", | ||
"default": "./dist/node.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/node.d.cts", | ||
"default": "./dist/node.cjs" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "./dist/index.js", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/types/index.d.ts", | ||
"types": "./dist/index.d.cts", | ||
"files": [ | ||
@@ -36,5 +46,4 @@ "dist" | ||
"scripts": { | ||
"build": "tsup && yarn build:types", | ||
"build": "ts-bridge --project tsconfig.build.json --clean", | ||
"build:docs": "typedoc", | ||
"build:types": "tsc --project tsconfig.build.json", | ||
"lint": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog", | ||
@@ -58,2 +67,3 @@ "lint:changelog": "auto-changelog validate", | ||
"@ethereumjs/tx": "^4.2.0", | ||
"@metamask/superstruct": "^3.0.0", | ||
"@noble/hashes": "^1.3.1", | ||
@@ -65,3 +75,2 @@ "@scure/base": "^1.1.3", | ||
"semver": "^7.5.4", | ||
"superstruct": "^1.0.3", | ||
"uuid": "^9.0.1" | ||
@@ -77,5 +86,7 @@ }, | ||
"@metamask/eslint-config-typescript": "^12.0.0", | ||
"@ts-bridge/cli": "^0.1.2", | ||
"@ts-bridge/shims": "^0.1.1", | ||
"@types/jest": "^28.1.7", | ||
"@types/jest-when": "^3.5.3", | ||
"@types/node": "^17.0.23", | ||
"@types/node": "^20.12.7", | ||
"@types/uuid": "^9.0.8", | ||
@@ -102,5 +113,4 @@ "@typescript-eslint/eslint-plugin": "^5.43.0", | ||
"tsd": "^0.29.0", | ||
"tsup": "^7.2.0", | ||
"typedoc": "^0.23.15", | ||
"typescript": "~4.8.4" | ||
"typescript": "~5.0.4" | ||
}, | ||
@@ -117,4 +127,3 @@ "packageManager": "yarn@3.2.3", | ||
"allowScripts": { | ||
"@lavamoat/preinstall-always-fail": false, | ||
"tsup>esbuild": true | ||
"@lavamoat/preinstall-always-fail": false | ||
} | ||
@@ -121,0 +130,0 @@ }, |
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
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
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
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
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
691995
35
188
4664
1
+ Added@metamask/superstruct@^3.0.0
+ Added@metamask/superstruct@3.1.0(transitive)
- Removedsuperstruct@^1.0.3
- Removedsuperstruct@1.0.4(transitive)