@metamask/utils 3.0.1 → 3.0.2
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/package.json +2 -2
- package/CHANGELOG.md +0 -62
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/utils",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Various JavaScript/TypeScript utilities of wide relevance to the MetaMask codebase.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@types/debug": "^4.1.7",
|
|
31
31
|
"debug": "^4.3.4",
|
|
32
32
|
"fast-deep-equal": "^3.1.3",
|
|
33
|
-
"superstruct": "^0.16.
|
|
33
|
+
"superstruct": "^0.16.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@lavamoat/allow-scripts": "^1.0.5",
|
package/CHANGELOG.md
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
All notable changes to this project will be documented in this file.
|
|
3
|
-
|
|
4
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
-
|
|
7
|
-
## [Unreleased]
|
|
8
|
-
|
|
9
|
-
## [3.0.1]
|
|
10
|
-
### Fixed
|
|
11
|
-
- Promote `@types/debug` from development dependencies to production dependencies ([#23](https://github.com/MetaMask/utils/pull/23))
|
|
12
|
-
|
|
13
|
-
## [3.0.0]
|
|
14
|
-
### Added
|
|
15
|
-
- Add logging functions ([#20](https://github.com/MetaMask/utils/pull/20))
|
|
16
|
-
- Add frozen collections (implemented in [#5](https://github.com/MetaMask/utils/pull/5) but exported in [#19](https://github.com/MetaMask/utils/pull/19))
|
|
17
|
-
|
|
18
|
-
### Changed
|
|
19
|
-
- **BREAKING:** Improve types and type validation ([#19](https://github.com/MetaMask/utils/pull/19))
|
|
20
|
-
- Various type changes have been made that might be breaking:
|
|
21
|
-
- The `JsonRpcRequest` and `JsonRpcNotification` types now include a generic constraint requiring that the `Params` type extends the `JsonRpcParams` type.
|
|
22
|
-
- The `JsonRpcSuccess` and `JsonRpcResponse` types now include a generic contraint for the `Result` type, requiring that it extends the `Json` type.
|
|
23
|
-
- Various validation functions now accept `unknown` parameters rather than specific types. This should not be breaking except that it may affect type inference for the parameters passed in.
|
|
24
|
-
- New JSON-related functions have been added:
|
|
25
|
-
- `assertIsJsonRpcResponse`
|
|
26
|
-
- `isJsonRpcResponse`
|
|
27
|
-
- `InferWithParams`
|
|
28
|
-
- `JsonRpcParams`
|
|
29
|
-
- New JSON Struct types have been added:
|
|
30
|
-
- `JsonRpcErrorStruct`
|
|
31
|
-
- `JsonRpcFailureStruct`
|
|
32
|
-
- `JsonRpcIdStruct`
|
|
33
|
-
- `JsonRpcParamsStruct`
|
|
34
|
-
- `JsonRpcRequestStruct`
|
|
35
|
-
- `JsonRpcResponseStruct`
|
|
36
|
-
- `JsonRpcSuccessStruct`
|
|
37
|
-
- `JsonRpcVersionStruct`
|
|
38
|
-
- `JsonStruct`
|
|
39
|
-
|
|
40
|
-
## [2.1.0]
|
|
41
|
-
### Added
|
|
42
|
-
- Add JSON storage validation and limit utilities ([#14](https://github.com/MetaMask/utils/pull/14))
|
|
43
|
-
- Adds a new function `validateJsonAndGetSize`.
|
|
44
|
-
|
|
45
|
-
## [2.0.0]
|
|
46
|
-
### Added
|
|
47
|
-
- Add more JSON utils ([#8](https://github.com/MetaMask/utils/pull/8))
|
|
48
|
-
|
|
49
|
-
### Changed
|
|
50
|
-
- **BREAKING:** Refactor and expand time utils ([#9](https://github.com/MetaMask/utils/pull/9))
|
|
51
|
-
- Adds a new function, `inMilliseconds`, and moves the time constants into a TypeScript `enum`.
|
|
52
|
-
|
|
53
|
-
## [1.0.0]
|
|
54
|
-
### Added
|
|
55
|
-
- Initial release
|
|
56
|
-
|
|
57
|
-
[Unreleased]: https://github.com/MetaMask/utils/compare/v3.0.1...HEAD
|
|
58
|
-
[3.0.1]: https://github.com/MetaMask/utils/compare/v3.0.0...v3.0.1
|
|
59
|
-
[3.0.0]: https://github.com/MetaMask/utils/compare/v2.1.0...v3.0.0
|
|
60
|
-
[2.1.0]: https://github.com/MetaMask/utils/compare/v2.0.0...v2.1.0
|
|
61
|
-
[2.0.0]: https://github.com/MetaMask/utils/compare/v1.0.0...v2.0.0
|
|
62
|
-
[1.0.0]: https://github.com/MetaMask/utils/releases/tag/v1.0.0
|