@metamask/utils 3.0.0 → 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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/CHANGELOG.md +0 -57
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/utils",
3
- "version": "3.0.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",
@@ -27,9 +27,10 @@
27
27
  "docs:publish": "typedoc --cleanOutputDir false --gitRevision \"v$(jq -r .version < ./package.json)\""
28
28
  },
29
29
  "dependencies": {
30
+ "@types/debug": "^4.1.7",
30
31
  "debug": "^4.3.4",
31
32
  "fast-deep-equal": "^3.1.3",
32
- "superstruct": "^0.16.0"
33
+ "superstruct": "^0.16.5"
33
34
  },
34
35
  "devDependencies": {
35
36
  "@lavamoat/allow-scripts": "^1.0.5",
@@ -38,7 +39,6 @@
38
39
  "@metamask/eslint-config-jest": "^9.0.0",
39
40
  "@metamask/eslint-config-nodejs": "^9.0.0",
40
41
  "@metamask/eslint-config-typescript": "^9.0.1",
41
- "@types/debug": "^4.1.7",
42
42
  "@types/jest": "^28.1.7",
43
43
  "@typescript-eslint/eslint-plugin": "^4.21.0",
44
44
  "@typescript-eslint/parser": "^4.21.0",
package/CHANGELOG.md DELETED
@@ -1,57 +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.0]
10
- ### Added
11
- - Add logging functions ([#20](https://github.com/MetaMask/utils/pull/20))
12
- - Add frozen collections (implemented in [#5](https://github.com/MetaMask/utils/pull/5) but exported in [#19](https://github.com/MetaMask/utils/pull/19))
13
-
14
- ### Changed
15
- - **BREAKING:** Improve types and type validation ([#19](https://github.com/MetaMask/utils/pull/19))
16
- - Various type changes have been made that might be breaking:
17
- - The `JsonRpcRequest` and `JsonRpcNotification` types now include a generic constraint requiring that the `Params` type extends the `JsonRpcParams` type.
18
- - The `JsonRpcSuccess` and `JsonRpcResponse` types now include a generic contraint for the `Result` type, requiring that it extends the `Json` type.
19
- - 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.
20
- - New JSON-related functions have been added:
21
- - `assertIsJsonRpcResponse`
22
- - `isJsonRpcResponse`
23
- - `InferWithParams`
24
- - `JsonRpcParams`
25
- - New JSON Struct types have been added:
26
- - `JsonRpcErrorStruct`
27
- - `JsonRpcFailureStruct`
28
- - `JsonRpcIdStruct`
29
- - `JsonRpcParamsStruct`
30
- - `JsonRpcRequestStruct`
31
- - `JsonRpcResponseStruct`
32
- - `JsonRpcSuccessStruct`
33
- - `JsonRpcVersionStruct`
34
- - `JsonStruct`
35
-
36
- ## [2.1.0]
37
- ### Added
38
- - Add JSON storage validation and limit utilities ([#14](https://github.com/MetaMask/utils/pull/14))
39
- - Adds a new function `validateJsonAndGetSize`.
40
-
41
- ## [2.0.0]
42
- ### Added
43
- - Add more JSON utils ([#8](https://github.com/MetaMask/utils/pull/8))
44
-
45
- ### Changed
46
- - **BREAKING:** Refactor and expand time utils ([#9](https://github.com/MetaMask/utils/pull/9))
47
- - Adds a new function, `inMilliseconds`, and moves the time constants into a TypeScript `enum`.
48
-
49
- ## [1.0.0]
50
- ### Added
51
- - Initial release
52
-
53
- [Unreleased]: https://github.com/MetaMask/utils/compare/v3.0.0...HEAD
54
- [3.0.0]: https://github.com/MetaMask/utils/compare/v2.1.0...v3.0.0
55
- [2.1.0]: https://github.com/MetaMask/utils/compare/v2.0.0...v2.1.0
56
- [2.0.0]: https://github.com/MetaMask/utils/compare/v1.0.0...v2.0.0
57
- [1.0.0]: https://github.com/MetaMask/utils/releases/tag/v1.0.0