From 52763a105cf9d0d8afd769905c4812c93e58e539 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 6 Jun 2024 13:22:33 +0000 Subject: [PATCH 1/3] 8.5.0 --- CHANGELOG.md | 10 +++++++++- package.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc04ef66..0017edc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [8.5.0] +### Uncategorized +- Use `@metamask/superstruct`, set `moduleResolution` to `NodeNext` ([#185](https://github.com/MetaMask/utils/pull/185)) +- Bump semver ([#181](https://github.com/MetaMask/utils/pull/181)) +- Use `ts-bridge` for building ([#182](https://github.com/MetaMask/utils/pull/182)) +- Bump tar from 6.1.11 to 6.2.1 ([#180](https://github.com/MetaMask/utils/pull/180)) + ## [8.4.0] ### Added - Add `toCaipChainId` utility function ([#175](https://github.com/MetaMask/utils/pull/175)) @@ -223,7 +230,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Initial release -[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 [8.3.0]: https://github.com/MetaMask/utils/compare/v8.2.1...v8.3.0 [8.2.1]: https://github.com/MetaMask/utils/compare/v8.2.0...v8.2.1 diff --git a/package.json b/package.json index 3851b712..9443f653 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/utils", - "version": "8.4.0", + "version": "8.5.0", "description": "Various JavaScript/TypeScript utilities of wide relevance to the MetaMask codebase", "homepage": "https://github.com/MetaMask/utils#readme", "bugs": { From 09f3b1dc5eab400c15d9c7271e50579fce6172ad Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Thu, 6 Jun 2024 09:46:03 -0400 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0017edc1..93c82df1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ## [8.5.0] -### Uncategorized -- Use `@metamask/superstruct`, set `moduleResolution` to `NodeNext` ([#185](https://github.com/MetaMask/utils/pull/185)) -- Bump semver ([#181](https://github.com/MetaMask/utils/pull/181)) -- Use `ts-bridge` for building ([#182](https://github.com/MetaMask/utils/pull/182)) -- Bump tar from 6.1.11 to 6.2.1 ([#180](https://github.com/MetaMask/utils/pull/180)) +### 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] ### Added From f8663c81c4d7b3ef74555b32f98f425f98a87ce5 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Thu, 6 Jun 2024 09:47:50 -0400 Subject: [PATCH 3/3] Bump devDependency `typescript` from `~4.8.4` to `~5.0.4` --- package.json | 2 +- yarn.lock | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 9443f653..0853ac11 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "ts-node": "^10.7.0", "tsd": "^0.29.0", "typedoc": "^0.23.15", - "typescript": "~4.8.4" + "typescript": "~5.0.4" }, "packageManager": "yarn@3.2.3", "engines": { diff --git a/yarn.lock b/yarn.lock index 467dba60..d0419cca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1107,7 +1107,7 @@ __metadata: ts-node: ^10.7.0 tsd: ^0.29.0 typedoc: ^0.23.15 - typescript: ~4.8.4 + typescript: ~5.0.4 uuid: ^9.0.1 languageName: unknown linkType: soft @@ -7125,23 +7125,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:~4.8.4": - version: 4.8.4 - resolution: "typescript@npm:4.8.4" +"typescript@npm:~5.0.4": + version: 5.0.4 + resolution: "typescript@npm:5.0.4" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 3e4f061658e0c8f36c820802fa809e0fd812b85687a9a2f5430bc3d0368e37d1c9605c3ce9b39df9a05af2ece67b1d844f9f6ea8ff42819f13bcb80f85629af0 + checksum: 82b94da3f4604a8946da585f7d6c3025fff8410779e5bde2855ab130d05e4fd08938b9e593b6ebed165bda6ad9292b230984f10952cf82f0a0ca07bbeaa08172 languageName: node linkType: hard -"typescript@patch:typescript@~4.8.4#~builtin": - version: 4.8.4 - resolution: "typescript@patch:typescript@npm%3A4.8.4#~builtin::version=4.8.4&hash=a1c5e5" +"typescript@patch:typescript@~5.0.4#~builtin": + version: 5.0.4 + resolution: "typescript@patch:typescript@npm%3A5.0.4#~builtin::version=5.0.4&hash=a1c5e5" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 563a0ef47abae6df27a9a3ab38f75fc681f633ccf1a3502b1108e252e187787893de689220f4544aaf95a371a4eb3141e4a337deb9895de5ac3c1ca76430e5f0 + checksum: 6a1fe9a77bb9c5176ead919cc4a1499ee63e46b4e05bf667079f11bf3a8f7887f135aa72460a4c3b016e6e6bb65a822cb8689a6d86cbfe92d22cc9f501f09213 languageName: node linkType: hard