From 619a188b27e1c47230d929c7b2c355721c2f4392 Mon Sep 17 00:00:00 2001 From: ZayanKhan-12 <108294002+ZayanKhan-12@users.noreply.github.com> Date: Mon, 3 Aug 2026 20:34:14 -0400 Subject: [PATCH 1/2] chore: remove obsolete dist export entries The package.json exports map contained "./dist/StreamProvider" and "./dist/initializeInpageProvider" entries that are redundant with the top-level "./stream-provider" and "./initializeInpageProvider" subpath exports. The top-level entries also have JavaScript redirect files for build systems that don't support export maps, so they are strictly better supported. Fixes #393 Co-Authored-By: Claude Fable 5 --- package.json | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/package.json b/package.json index cc7d83e6..1f7ed4cf 100644 --- a/package.json +++ b/package.json @@ -29,26 +29,6 @@ "default": "./dist/index.cjs" } }, - "./dist/StreamProvider": { - "import": { - "types": "./dist/StreamProvider.d.mts", - "default": "./dist/StreamProvider.mjs" - }, - "require": { - "types": "./dist/StreamProvider.d.cts", - "default": "./dist/StreamProvider.cjs" - } - }, - "./dist/initializeInpageProvider": { - "import": { - "types": "./dist/initializeInpageProvider.d.mts", - "default": "./dist/initializeInpageProvider.mjs" - }, - "require": { - "types": "./dist/initializeInpageProvider.d.cts", - "default": "./dist/initializeInpageProvider.cjs" - } - }, "./initializeInpageProvider": { "import": { "types": "./dist/initializeInpageProvider.d.mts", From 6e3064f2d93fb57b1666d6dc274ae1fa406913c7 Mon Sep 17 00:00:00 2001 From: ZayanKhan-12 <108294002+ZayanKhan-12@users.noreply.github.com> Date: Mon, 3 Aug 2026 20:34:48 -0400 Subject: [PATCH 2/2] docs: add changelog entry Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e675f10a..f305364f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Removed + +- **BREAKING**: Remove obsolete `./dist/StreamProvider` and `./dist/initializeInpageProvider` export entries ([#430](https://github.com/MetaMask/providers/pull/430)) + - Use the `./stream-provider` and `./initializeInpageProvider` exports instead. + ## [22.1.1] ### Changed