@metamask-previews/notification-services-controller 0.5.0-preview-9d310688 → 0.5.1-preview-e34879fb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.5.1]
11
+
12
+ ### Fixed
13
+
14
+ - Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files ([#4648](https://github.com/MetaMask/core/pull/4648))
15
+ - Previously, this package shipped with only one variant of type declaration
16
+ files, and these files were only CommonJS-compatible, and the `exports`
17
+ field in `package.json` linked to these files. This is an anti-pattern and
18
+ was rightfully flagged by the
19
+ ["Are the Types Wrong?"](https://arethetypeswrong.github.io/) tool as
20
+ ["masquerading as CJS"](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md).
21
+ All of the ATTW checks now pass.
22
+ - Remove chunk files ([#4648](https://github.com/MetaMask/core/pull/4648)).
23
+ - Previously, the build tool we used to generate JavaScript files extracted
24
+ common code to "chunk" files. While this was intended to make this package
25
+ more tree-shakeable, it also made debugging more difficult for our
26
+ development teams. These chunk files are no longer present.
27
+
10
28
  ## [0.5.0]
11
29
 
12
30
  ### Changed
@@ -123,7 +141,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
123
141
 
124
142
  - Initial release
125
143
 
126
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/notification-services-controller@0.5.0...HEAD
144
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/notification-services-controller@0.5.1...HEAD
145
+ [0.5.1]: https://github.com/MetaMask/core/compare/@metamask/notification-services-controller@0.5.0...@metamask/notification-services-controller@0.5.1
127
146
  [0.5.0]: https://github.com/MetaMask/core/compare/@metamask/notification-services-controller@0.4.1...@metamask/notification-services-controller@0.5.0
128
147
  [0.4.1]: https://github.com/MetaMask/core/compare/@metamask/notification-services-controller@0.4.0...@metamask/notification-services-controller@0.4.1
129
148
  [0.4.0]: https://github.com/MetaMask/core/compare/@metamask/notification-services-controller@0.3.0...@metamask/notification-services-controller@0.4.0
@@ -4,6 +4,6 @@
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
7
- "main": "../../dist/NotificationServicesController/__fixtures__/index.js",
8
- "types": "../../dist/types/NotificationServicesController/__fixtures__/index.d.ts"
7
+ "main": "../../dist/NotificationServicesController/__fixtures__/index.cjs",
8
+ "types": "../../dist/NotificationServicesController/__fixtures__/index.d.cts"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
7
- "main": "../dist/NotificationServicesController/index.js",
8
- "types": "../dist/types/NotificationServicesController/index.d.ts"
7
+ "main": "../dist/NotificationServicesController/index.cjs",
8
+ "types": "../dist/NotificationServicesController/index.d.cts"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
7
- "main": "../../dist/NotificationServicesController/ui/index.js",
8
- "types": "../../dist/types/NotificationServicesController/ui/index.d.ts"
7
+ "main": "../../dist/NotificationServicesController/ui/index.cjs",
8
+ "types": "../../dist/NotificationServicesController/ui/index.d.cts"
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/notification-services-controller",
3
- "version": "0.5.0-preview-9d310688",
3
+ "version": "0.5.1-preview-e34879fb",
4
4
  "description": "Manages New MetaMask decentralized Notification system",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -28,29 +28,54 @@
28
28
  }
29
29
  },
30
30
  "./notification-services": {
31
- "import": "./dist/NotificationServicesController/index.mjs",
32
- "require": "./dist/NotificationServicesController/index.js",
33
- "types": "./dist/types/NotificationServicesController/index.d.ts"
31
+ "import": {
32
+ "types": "./dist/NotificationServicesController/index.d.mts",
33
+ "default": "./dist/NotificationServicesController/index.mjs"
34
+ },
35
+ "require": {
36
+ "types": "./dist/NotificationServicesController/index.d.cts",
37
+ "default": "./dist/NotificationServicesController/index.cjs"
38
+ }
34
39
  },
35
40
  "./notification-services/ui": {
36
- "import": "./dist/NotificationServicesController/ui/index.mjs",
37
- "require": "./dist/NotificationServicesController/ui/index.js",
38
- "types": "./dist/types/NotificationServicesController/ui/index.d.ts"
41
+ "import": {
42
+ "types": "./dist/NotificationServicesController/ui/index.d.mts",
43
+ "default": "./dist/NotificationServicesController/ui/index.mjs"
44
+ },
45
+ "require": {
46
+ "types": "./dist/NotificationServicesController/ui/index.d.cts",
47
+ "default": "./dist/NotificationServicesController/ui/index.cjs"
48
+ }
39
49
  },
40
50
  "./notification-services/mocks": {
41
- "import": "./dist/NotificationServicesController/__fixtures__/index.mjs",
42
- "require": "./dist/NotificationServicesController/__fixtures__/index.js",
43
- "types": "./dist/types/NotificationServicesController/__fixtures__/index.d.ts"
51
+ "import": {
52
+ "types": "./dist/NotificationServicesController/__fixtures__/index.d.mts",
53
+ "default": "./dist/NotificationServicesController/__fixtures__/index.mjs"
54
+ },
55
+ "require": {
56
+ "types": "./dist/NotificationServicesController/__fixtures__/index.d.cts",
57
+ "default": "./dist/NotificationServicesController/__fixtures__/index.cjs"
58
+ }
44
59
  },
45
60
  "./push-services": {
46
- "import": "./dist/NotificationServicesPushController/index.mjs",
47
- "require": "./dist/NotificationServicesPushController/index.js",
48
- "types": "./dist/types/NotificationServicesPushController/index.d.ts"
61
+ "import": {
62
+ "types": "./dist/NotificationServicesPushController/index.d.mts",
63
+ "default": "./dist/NotificationServicesPushController/index.mjs"
64
+ },
65
+ "require": {
66
+ "types": "./dist/NotificationServicesPushController/index.d.cts",
67
+ "default": "./dist/NotificationServicesPushController/index.cjs"
68
+ }
49
69
  },
50
70
  "./push-services/mocks": {
51
- "import": "./dist/NotificationServicesPushController/__fixtures__/index.mjs",
52
- "require": "./dist/NotificationServicesPushController/__fixtures__/index.js",
53
- "types": "./dist/types/NotificationServicesPushController/__fixtures__/index.d.ts"
71
+ "import": {
72
+ "types": "./dist/NotificationServicesPushController/__fixtures__/index.d.mts",
73
+ "default": "./dist/NotificationServicesPushController/__fixtures__/index.mjs"
74
+ },
75
+ "require": {
76
+ "types": "./dist/NotificationServicesPushController/__fixtures__/index.d.cts",
77
+ "default": "./dist/NotificationServicesPushController/__fixtures__/index.cjs"
78
+ }
54
79
  },
55
80
  "./package.json": "./package.json"
56
81
  },
@@ -75,8 +100,8 @@
75
100
  },
76
101
  "dependencies": {
77
102
  "@contentful/rich-text-html-renderer": "^16.5.2",
78
- "@metamask/base-controller": "^7.0.0",
79
- "@metamask/controller-utils": "^11.2.0",
103
+ "@metamask/base-controller": "^7.0.1",
104
+ "@metamask/controller-utils": "^11.3.0",
80
105
  "bignumber.js": "^4.1.0",
81
106
  "firebase": "^10.11.0",
82
107
  "loglevel": "^1.8.1",
@@ -85,8 +110,8 @@
85
110
  "devDependencies": {
86
111
  "@lavamoat/allow-scripts": "^3.0.4",
87
112
  "@metamask/auto-changelog": "^3.4.4",
88
- "@metamask/keyring-controller": "^17.2.0",
89
- "@metamask/profile-sync-controller": "^0.5.0",
113
+ "@metamask/keyring-controller": "^17.2.1",
114
+ "@metamask/profile-sync-controller": "^0.6.0",
90
115
  "@types/jest": "^27.4.1",
91
116
  "@types/readable-stream": "^2.3.0",
92
117
  "contentful": "^10.15.0",
@@ -101,7 +126,7 @@
101
126
  },
102
127
  "peerDependencies": {
103
128
  "@metamask/keyring-controller": "^17.0.0",
104
- "@metamask/profile-sync-controller": "^0.5.0"
129
+ "@metamask/profile-sync-controller": "^0.0.0"
105
130
  },
106
131
  "engines": {
107
132
  "node": "^18.18 || >=20"
@@ -4,6 +4,6 @@
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
7
- "main": "../../dist/NotificationServicesPushController/__fixtures__/index.js",
8
- "types": "../../dist/types/NotificationServicesPushController/__fixtures__/index.d.ts"
7
+ "main": "../../dist/NotificationServicesPushController/__fixtures__/index.cjs",
8
+ "types": "../../dist/NotificationServicesPushController/__fixtures__/index.d.cts"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
7
- "main": "../dist/NotificationServicesPushController/index.js",
8
- "types": "../dist/types/NotificationServicesPushController/index.d.ts"
7
+ "main": "../dist/NotificationServicesPushController/index.cjs",
8
+ "types": "../dist/NotificationServicesPushController/index.d.cts"
9
9
  }