@metamask-previews/logging-controller 2.0.0-preview.3fbb6b41 → 2.0.1-preview.353ee83b

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
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.0.1]
10
+ ### Changed
11
+ - Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
12
+ - 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
+
9
14
  ## [2.0.0]
10
15
  ### Changed
11
16
  - **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
@@ -35,7 +40,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
35
40
  - Initial Release
36
41
  - Add logging controller ([#1089](https://github.com/MetaMask/core.git/pull/1089))
37
42
 
38
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/logging-controller@2.0.0...HEAD
43
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/logging-controller@2.0.1...HEAD
44
+ [2.0.1]: https://github.com/MetaMask/core/compare/@metamask/logging-controller@2.0.0...@metamask/logging-controller@2.0.1
39
45
  [2.0.0]: https://github.com/MetaMask/core/compare/@metamask/logging-controller@1.0.4...@metamask/logging-controller@2.0.0
40
46
  [1.0.4]: https://github.com/MetaMask/core/compare/@metamask/logging-controller@1.0.3...@metamask/logging-controller@1.0.4
41
47
  [1.0.3]: https://github.com/MetaMask/core/compare/@metamask/logging-controller@1.0.2...@metamask/logging-controller@1.0.3
@@ -1 +1 @@
1
- {"version":3,"file":"EthSignLog.d.ts","sourceRoot":"","sources":["../../src/logTypes/EthSignLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;GAEG;AACH,oBAAY,aAAa;IACvB,OAAO,aAAa;IACpB,YAAY,kBAAkB;IAC9B,gBAAgB,sBAAsB;IACtC,kBAAkB,yBAAyB;IAC3C,kBAAkB,yBAAyB;CAC5C;AAED;;GAEG;AACH,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAED;;;;;GAKG;AACH,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC;IACzB,IAAI,EAAE;QACJ,aAAa,EAAE,aAAa,CAAC;QAC7B,KAAK,EAAE,YAAY,CAAC;QACpB,WAAW,CAAC,EAAE,GAAG,CAAC;KACnB,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"EthSignLog.d.ts","sourceRoot":"","sources":["../../src/logTypes/EthSignLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;GAEG;AACH,oBAAY,aAAa;IACvB,OAAO,aAAa;IACpB,YAAY,kBAAkB;IAC9B,gBAAgB,sBAAsB;IACtC,kBAAkB,yBAAyB;IAC3C,kBAAkB,yBAAyB;CAC5C;AAED;;GAEG;AACH,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAED;;;;;GAKG;AACH,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC;IACzB,IAAI,EAAE;QACJ,aAAa,EAAE,aAAa,CAAC;QAC7B,KAAK,EAAE,YAAY,CAAC;QAGpB,WAAW,CAAC,EAAE,GAAG,CAAC;KACnB,CAAC;CACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EthSignLog.js","sourceRoot":"","sources":["../../src/logTypes/EthSignLog.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,qCAAoB,CAAA;IACpB,+CAA8B,CAAA;IAC9B,uDAAsC,CAAA;IACtC,4DAA2C,CAAA;IAC3C,4DAA2C,CAAA;AAC7C,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;AAED;;GAEG;AACH,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;AACnB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB","sourcesContent":["import type { LogType } from './LogType';\n\n/**\n * An enum of the signing method types that we are interested in logging.\n */\nexport enum SigningMethod {\n EthSign = 'eth_sign',\n PersonalSign = 'personal_sign',\n EthSignTypedData = 'eth_signTypedData',\n EthSignTypedDataV3 = 'eth_signTypedData_v3',\n EthSignTypedDataV4 = 'eth_signTypedData_v4',\n}\n\n/**\n * An enum of the various stages of the signing request\n */\nexport enum SigningStage {\n Proposed = 'proposed',\n Rejected = 'rejected',\n Signed = 'signed',\n}\n\n/**\n * First special case of logging scenarios involves signing requests. In this\n * case the data provided must include the method for the signature request as\n * well as the signingData. This is intended to be used to troubleshoot and\n * investigate FLI at the user's request.\n */\nexport type EthSignLog = {\n type: LogType.EthSignLog;\n data: {\n signingMethod: SigningMethod;\n stage: SigningStage;\n signingData?: any;\n };\n};\n"]}
1
+ {"version":3,"file":"EthSignLog.js","sourceRoot":"","sources":["../../src/logTypes/EthSignLog.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,qCAAoB,CAAA;IACpB,+CAA8B,CAAA;IAC9B,uDAAsC,CAAA;IACtC,4DAA2C,CAAA;IAC3C,4DAA2C,CAAA;AAC7C,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;AAED;;GAEG;AACH,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;AACnB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB","sourcesContent":["import type { LogType } from './LogType';\n\n/**\n * An enum of the signing method types that we are interested in logging.\n */\nexport enum SigningMethod {\n EthSign = 'eth_sign',\n PersonalSign = 'personal_sign',\n EthSignTypedData = 'eth_signTypedData',\n EthSignTypedDataV3 = 'eth_signTypedData_v3',\n EthSignTypedDataV4 = 'eth_signTypedData_v4',\n}\n\n/**\n * An enum of the various stages of the signing request\n */\nexport enum SigningStage {\n Proposed = 'proposed',\n Rejected = 'rejected',\n Signed = 'signed',\n}\n\n/**\n * First special case of logging scenarios involves signing requests. In this\n * case the data provided must include the method for the signature request as\n * well as the signingData. This is intended to be used to troubleshoot and\n * investigate FLI at the user's request.\n */\nexport type EthSignLog = {\n type: LogType.EthSignLog;\n data: {\n signingMethod: SigningMethod;\n stage: SigningStage;\n // TODO: Replace `any` with type\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n signingData?: any;\n };\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"GenericLog.d.ts","sourceRoot":"","sources":["../../src/logTypes/GenericLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOzC,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC;IACzB,IAAI,EAAE,GAAG,CAAC;CACX,CAAC"}
1
+ {"version":3,"file":"GenericLog.d.ts","sourceRoot":"","sources":["../../src/logTypes/GenericLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOzC,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC;IAGzB,IAAI,EAAE,GAAG,CAAC;CACX,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GenericLog.js","sourceRoot":"","sources":["../../src/logTypes/GenericLog.ts"],"names":[],"mappings":"","sourcesContent":["import type { LogType } from './LogType';\n\n/*\n * The logging controller can handle any kind of log statement that may benefit\n * users and MetaMask support agents helping those users. These logs are typed\n * as generic.\n */\nexport type GenericLog = {\n type: LogType.GenericLog;\n data: any;\n};\n"]}
1
+ {"version":3,"file":"GenericLog.js","sourceRoot":"","sources":["../../src/logTypes/GenericLog.ts"],"names":[],"mappings":"","sourcesContent":["import type { LogType } from './LogType';\n\n/*\n * The logging controller can handle any kind of log statement that may benefit\n * users and MetaMask support agents helping those users. These logs are typed\n * as generic.\n */\nexport type GenericLog = {\n type: LogType.GenericLog;\n // TODO: Replace `any` with type\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: any;\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/logging-controller",
3
- "version": "2.0.0-preview.3fbb6b41",
3
+ "version": "2.0.1-preview.353ee83b",
4
4
  "description": "Manages logging data to assist users and support staff",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -22,6 +22,7 @@
22
22
  ],
23
23
  "scripts": {
24
24
  "build:docs": "typedoc",
25
+ "changelog:update": "../../scripts/update-changelog.sh @metamask/logging-controller",
25
26
  "changelog:validate": "../../scripts/validate-changelog.sh @metamask/logging-controller",
26
27
  "publish:preview": "yarn npm publish --tag preview",
27
28
  "test": "jest --reporters=jest-silent-reporter",
@@ -30,12 +31,12 @@
30
31
  "test:watch": "jest --watch"
31
32
  },
32
33
  "dependencies": {
33
- "@metamask/base-controller": "^4.0.0",
34
- "@metamask/controller-utils": "^6.1.0",
34
+ "@metamask/base-controller": "^4.0.1",
35
+ "@metamask/controller-utils": "^8.0.1",
35
36
  "uuid": "^8.3.2"
36
37
  },
37
38
  "devDependencies": {
38
- "@metamask/auto-changelog": "^3.4.3",
39
+ "@metamask/auto-changelog": "^3.4.4",
39
40
  "@types/jest": "^27.4.1",
40
41
  "deepmerge": "^4.2.2",
41
42
  "jest": "^27.5.1",