@metamask-previews/phishing-controller 8.0.1-preview.fa529884 → 8.0.2-preview.56c80981
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 +43 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
|
|
2
3
|
All notable changes to this project will be documented in this file.
|
|
3
4
|
|
|
4
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
@@ -6,24 +7,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
7
|
|
|
7
8
|
## [Unreleased]
|
|
8
9
|
|
|
10
|
+
## [8.0.2]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Bump `@metamask/base-controller` to `^4.1.1` ([#3760](https://github.com/MetaMask/core/pull/3760), [#3821](https://github.com/MetaMask/core/pull/3821))
|
|
15
|
+
- Bump `@metamask/controller-utils` to `^8.0.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
|
|
16
|
+
|
|
9
17
|
## [8.0.1]
|
|
18
|
+
|
|
10
19
|
### Changed
|
|
20
|
+
|
|
11
21
|
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
|
|
12
22
|
- Bump `@metamask/controller-utils` to `^8.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695), [#3678](https://github.com/MetaMask/core/pull/3678), [#3667](https://github.com/MetaMask/core/pull/3667), [#3580](https://github.com/MetaMask/core/pull/3580))
|
|
13
23
|
|
|
14
24
|
## [8.0.0]
|
|
25
|
+
|
|
15
26
|
### Changed
|
|
27
|
+
|
|
16
28
|
- **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
17
29
|
- This is breaking because the type of the `messenger` has backward-incompatible changes. See the changelog for this package for more.
|
|
18
30
|
- Bump `@metamask/controller-utils` to ^6.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
19
31
|
|
|
20
32
|
## [7.0.1]
|
|
33
|
+
|
|
21
34
|
### Changed
|
|
35
|
+
|
|
22
36
|
- Bump dependency on `@metamask/base-controller` to ^3.2.3 ([#1747](https://github.com/MetaMask/core/pull/1747))
|
|
23
37
|
- Bump dependency on `@metamask/controller-utils` to ^5.0.2 ([#1747](https://github.com/MetaMask/core/pull/1747))
|
|
24
38
|
|
|
25
39
|
## [7.0.0]
|
|
40
|
+
|
|
26
41
|
### Changed
|
|
42
|
+
|
|
27
43
|
- **BREAKING:** Migrate `PhishingController` to BaseControllerV2 ([#1705](https://github.com/MetaMask/core/pull/1705))
|
|
28
44
|
- `PhishingController` now expects a `messenger` option (and corresponding type `PhishingControllerMessenger` is now available)
|
|
29
45
|
- The constructor takes a single argument, an options bag, instead of three arguments
|
|
@@ -31,25 +47,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
31
47
|
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
|
|
32
48
|
|
|
33
49
|
## [6.0.2]
|
|
50
|
+
|
|
34
51
|
### Changed
|
|
52
|
+
|
|
35
53
|
- Bump dependency on `@metamask/controller-utils` to ^5.0.0
|
|
36
54
|
|
|
37
55
|
## [6.0.1]
|
|
56
|
+
|
|
38
57
|
### Changed
|
|
58
|
+
|
|
39
59
|
- Bump dependency on `@metamask/base-controller` to ^3.2.1
|
|
40
60
|
- Bump dependency on `@metamask/controller-utils` to ^4.3.2
|
|
41
61
|
|
|
42
62
|
## [6.0.0]
|
|
63
|
+
|
|
43
64
|
### Changed
|
|
65
|
+
|
|
44
66
|
- **BREAKING:** Remove fallback phishing configuration ([#1527](https://github.com/MetaMask/core/pull/1527))
|
|
45
67
|
- The default configuration is now blank. A custom initial configuration can still be specified via the constructor to preserve the old behavior.
|
|
46
68
|
|
|
47
69
|
## [5.0.0]
|
|
70
|
+
|
|
48
71
|
### Changed
|
|
72
|
+
|
|
49
73
|
- **BREAKING:** Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262))
|
|
50
74
|
|
|
51
75
|
## [4.0.0]
|
|
76
|
+
|
|
52
77
|
### Changed
|
|
78
|
+
|
|
53
79
|
- **BREAKING:** Switch to new phishing configuration API that returns a diff since the last update ([#1123](https://github.com/MetaMask/core/pull/1123))
|
|
54
80
|
- The "hotlist" has been replaced by a service that returns any configuration changes since the last update. This should reduce network traffic even further.
|
|
55
81
|
- The endpoints used are now `https://phishing-detection.metafi.codefi.network/v1/stalelist` and `https://phishing-detection.metafi.codefi.network/v1/diffsSince/:lastUpdated`
|
|
@@ -58,12 +84,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
58
84
|
- The PhishFort config is deduplicated server-side, so it should have zero overlap with the MetaMask configuration (which helps reduce memory/disk usage)
|
|
59
85
|
|
|
60
86
|
## [3.0.0]
|
|
87
|
+
|
|
61
88
|
### Removed
|
|
89
|
+
|
|
62
90
|
- **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106))
|
|
63
91
|
- Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch`
|
|
64
92
|
|
|
65
93
|
## [2.0.0]
|
|
94
|
+
|
|
66
95
|
### Changed
|
|
96
|
+
|
|
67
97
|
- **BREAKING:** Refactor to Cost-Optimized Phishing List Data Architecture. ([#1080](https://github.com/MetaMask/core/pull/1080))
|
|
68
98
|
- Rather than periodically downloading two separate configurations (MetaMask and Phishfort), we now download a combined "stalelist" and "hotlist". The stalelist is downloaded every 4 days, and the hotlist is downloaded every 30 minutes. The hotlist only includes data from the last 8 days, which should dramatically reduce the required network traffic for phishing config updates.
|
|
69
99
|
- When a site is blocked, we no longer know which list is responsible due to the combined format. We will need to come up with another way to attribute blocks to a specific list; this controller will no longer be responsible for that.
|
|
@@ -82,33 +112,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
82
112
|
- The `updatePhishingLists` method has been replaced by `updateStalelist` and `updateHotlist`
|
|
83
113
|
|
|
84
114
|
## [1.1.2]
|
|
115
|
+
|
|
85
116
|
### Fixed
|
|
117
|
+
|
|
86
118
|
- Improve performance of phishing list update ([#1086](https://github.com/MetaMask/core/pull/1086))
|
|
87
119
|
- We now use a `Set` + `has` method instead of the array `includes` method for detecting overlap between phishing lists after an update.
|
|
88
120
|
|
|
89
121
|
## [1.1.1]
|
|
122
|
+
|
|
90
123
|
### Changed
|
|
124
|
+
|
|
91
125
|
- Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031))
|
|
92
126
|
- Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041))
|
|
93
127
|
|
|
94
128
|
## [1.1.0]
|
|
129
|
+
|
|
95
130
|
### Added
|
|
131
|
+
|
|
96
132
|
- Add method to conditionally update the phishing lists ([#986](https://github.com/MetaMask/core/pull/986))
|
|
97
133
|
|
|
98
134
|
### Changed
|
|
135
|
+
|
|
99
136
|
- Relax dependencies on `@metamask/base-controller` and `@metamask/controller-utils` (use `^` instead of `~`) ([#998](https://github.com/MetaMask/core/pull/998))
|
|
100
137
|
- Expose `lastFetched` in PhishingController state ([#986](https://github.com/MetaMask/core/pull/986))
|
|
101
138
|
|
|
102
139
|
## [1.0.0]
|
|
140
|
+
|
|
103
141
|
### Added
|
|
142
|
+
|
|
104
143
|
- Initial release
|
|
144
|
+
|
|
105
145
|
- As a result of converting our shared controllers repo into a monorepo ([#831](https://github.com/MetaMask/core/pull/831)), we've created this package from select parts of [`@metamask/controllers` v33.0.0](https://github.com/MetaMask/core/tree/v33.0.0), namely:
|
|
146
|
+
|
|
106
147
|
- `src/third-party/PhishingController.ts`
|
|
107
148
|
- `src/third-party/PhishingController.test.ts`
|
|
108
149
|
|
|
109
150
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
110
151
|
|
|
111
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/phishing-controller@8.0.
|
|
152
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/phishing-controller@8.0.2...HEAD
|
|
153
|
+
[8.0.2]: https://github.com/MetaMask/core/compare/@metamask/phishing-controller@8.0.1...@metamask/phishing-controller@8.0.2
|
|
112
154
|
[8.0.1]: https://github.com/MetaMask/core/compare/@metamask/phishing-controller@8.0.0...@metamask/phishing-controller@8.0.1
|
|
113
155
|
[8.0.0]: https://github.com/MetaMask/core/compare/@metamask/phishing-controller@7.0.1...@metamask/phishing-controller@8.0.0
|
|
114
156
|
[7.0.1]: https://github.com/MetaMask/core/compare/@metamask/phishing-controller@7.0.0...@metamask/phishing-controller@7.0.1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/phishing-controller",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2-preview.56c80981",
|
|
4
4
|
"description": "Maintains a periodically updated list of approved and unapproved website origins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"test:watch": "jest --watch"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@metamask/base-controller": "^4.
|
|
35
|
-
"@metamask/controller-utils": "^8.0.
|
|
34
|
+
"@metamask/base-controller": "^4.1.1",
|
|
35
|
+
"@metamask/controller-utils": "^8.0.2",
|
|
36
36
|
"@types/punycode": "^2.1.0",
|
|
37
37
|
"eth-phishing-detect": "^1.2.0",
|
|
38
38
|
"punycode": "^2.1.1"
|