@metamask-previews/phishing-controller 8.0.2-preview.8cdddaf → 8.0.2-preview.d392f46
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 +36 -0
- package/package.json +1 -1
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/),
|
|
@@ -7,28 +8,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
8
|
## [Unreleased]
|
|
8
9
|
|
|
9
10
|
## [8.0.2]
|
|
11
|
+
|
|
10
12
|
### Changed
|
|
13
|
+
|
|
11
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))
|
|
12
15
|
- Bump `@metamask/controller-utils` to `^8.0.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
|
|
13
16
|
|
|
14
17
|
## [8.0.1]
|
|
18
|
+
|
|
15
19
|
### Changed
|
|
20
|
+
|
|
16
21
|
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
|
|
17
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))
|
|
18
23
|
|
|
19
24
|
## [8.0.0]
|
|
25
|
+
|
|
20
26
|
### Changed
|
|
27
|
+
|
|
21
28
|
- **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
22
29
|
- This is breaking because the type of the `messenger` has backward-incompatible changes. See the changelog for this package for more.
|
|
23
30
|
- Bump `@metamask/controller-utils` to ^6.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
24
31
|
|
|
25
32
|
## [7.0.1]
|
|
33
|
+
|
|
26
34
|
### Changed
|
|
35
|
+
|
|
27
36
|
- Bump dependency on `@metamask/base-controller` to ^3.2.3 ([#1747](https://github.com/MetaMask/core/pull/1747))
|
|
28
37
|
- Bump dependency on `@metamask/controller-utils` to ^5.0.2 ([#1747](https://github.com/MetaMask/core/pull/1747))
|
|
29
38
|
|
|
30
39
|
## [7.0.0]
|
|
40
|
+
|
|
31
41
|
### Changed
|
|
42
|
+
|
|
32
43
|
- **BREAKING:** Migrate `PhishingController` to BaseControllerV2 ([#1705](https://github.com/MetaMask/core/pull/1705))
|
|
33
44
|
- `PhishingController` now expects a `messenger` option (and corresponding type `PhishingControllerMessenger` is now available)
|
|
34
45
|
- The constructor takes a single argument, an options bag, instead of three arguments
|
|
@@ -36,25 +47,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
36
47
|
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
|
|
37
48
|
|
|
38
49
|
## [6.0.2]
|
|
50
|
+
|
|
39
51
|
### Changed
|
|
52
|
+
|
|
40
53
|
- Bump dependency on `@metamask/controller-utils` to ^5.0.0
|
|
41
54
|
|
|
42
55
|
## [6.0.1]
|
|
56
|
+
|
|
43
57
|
### Changed
|
|
58
|
+
|
|
44
59
|
- Bump dependency on `@metamask/base-controller` to ^3.2.1
|
|
45
60
|
- Bump dependency on `@metamask/controller-utils` to ^4.3.2
|
|
46
61
|
|
|
47
62
|
## [6.0.0]
|
|
63
|
+
|
|
48
64
|
### Changed
|
|
65
|
+
|
|
49
66
|
- **BREAKING:** Remove fallback phishing configuration ([#1527](https://github.com/MetaMask/core/pull/1527))
|
|
50
67
|
- The default configuration is now blank. A custom initial configuration can still be specified via the constructor to preserve the old behavior.
|
|
51
68
|
|
|
52
69
|
## [5.0.0]
|
|
70
|
+
|
|
53
71
|
### Changed
|
|
72
|
+
|
|
54
73
|
- **BREAKING:** Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262))
|
|
55
74
|
|
|
56
75
|
## [4.0.0]
|
|
76
|
+
|
|
57
77
|
### Changed
|
|
78
|
+
|
|
58
79
|
- **BREAKING:** Switch to new phishing configuration API that returns a diff since the last update ([#1123](https://github.com/MetaMask/core/pull/1123))
|
|
59
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.
|
|
60
81
|
- The endpoints used are now `https://phishing-detection.metafi.codefi.network/v1/stalelist` and `https://phishing-detection.metafi.codefi.network/v1/diffsSince/:lastUpdated`
|
|
@@ -63,12 +84,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
63
84
|
- The PhishFort config is deduplicated server-side, so it should have zero overlap with the MetaMask configuration (which helps reduce memory/disk usage)
|
|
64
85
|
|
|
65
86
|
## [3.0.0]
|
|
87
|
+
|
|
66
88
|
### Removed
|
|
89
|
+
|
|
67
90
|
- **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106))
|
|
68
91
|
- Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch`
|
|
69
92
|
|
|
70
93
|
## [2.0.0]
|
|
94
|
+
|
|
71
95
|
### Changed
|
|
96
|
+
|
|
72
97
|
- **BREAKING:** Refactor to Cost-Optimized Phishing List Data Architecture. ([#1080](https://github.com/MetaMask/core/pull/1080))
|
|
73
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.
|
|
74
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.
|
|
@@ -87,27 +112,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
87
112
|
- The `updatePhishingLists` method has been replaced by `updateStalelist` and `updateHotlist`
|
|
88
113
|
|
|
89
114
|
## [1.1.2]
|
|
115
|
+
|
|
90
116
|
### Fixed
|
|
117
|
+
|
|
91
118
|
- Improve performance of phishing list update ([#1086](https://github.com/MetaMask/core/pull/1086))
|
|
92
119
|
- We now use a `Set` + `has` method instead of the array `includes` method for detecting overlap between phishing lists after an update.
|
|
93
120
|
|
|
94
121
|
## [1.1.1]
|
|
122
|
+
|
|
95
123
|
### Changed
|
|
124
|
+
|
|
96
125
|
- Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031))
|
|
97
126
|
- Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041))
|
|
98
127
|
|
|
99
128
|
## [1.1.0]
|
|
129
|
+
|
|
100
130
|
### Added
|
|
131
|
+
|
|
101
132
|
- Add method to conditionally update the phishing lists ([#986](https://github.com/MetaMask/core/pull/986))
|
|
102
133
|
|
|
103
134
|
### Changed
|
|
135
|
+
|
|
104
136
|
- Relax dependencies on `@metamask/base-controller` and `@metamask/controller-utils` (use `^` instead of `~`) ([#998](https://github.com/MetaMask/core/pull/998))
|
|
105
137
|
- Expose `lastFetched` in PhishingController state ([#986](https://github.com/MetaMask/core/pull/986))
|
|
106
138
|
|
|
107
139
|
## [1.0.0]
|
|
140
|
+
|
|
108
141
|
### Added
|
|
142
|
+
|
|
109
143
|
- Initial release
|
|
144
|
+
|
|
110
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
|
+
|
|
111
147
|
- `src/third-party/PhishingController.ts`
|
|
112
148
|
- `src/third-party/PhishingController.test.ts`
|
|
113
149
|
|
package/package.json
CHANGED