devtools-protocol 0.0.936174 → 0.0.937044

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.
@@ -1479,6 +1479,28 @@
1479
1479
  }
1480
1480
  ]
1481
1481
  },
1482
+ {
1483
+ "id": "DeprecationIssueDetails",
1484
+ "description": "This issue tracks information needed to print a deprecation message.\nThe formatting is inherited from the old console.log version, see more at:\nhttps://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc\nTODO(crbug.com/1264960): Re-work format to add i18n support per:\nhttps://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md",
1485
+ "type": "object",
1486
+ "properties": [
1487
+ {
1488
+ "name": "affectedFrame",
1489
+ "optional": true,
1490
+ "$ref": "AffectedFrame"
1491
+ },
1492
+ {
1493
+ "name": "sourceCodeLocation",
1494
+ "$ref": "SourceCodeLocation"
1495
+ },
1496
+ {
1497
+ "name": "message",
1498
+ "description": "The content of the deprecation issue (this won't be translated),\ne.g. \"window.inefficientLegacyStorageMethod will be removed in M97,\naround January 2022. Please use Web Storage or Indexed Database\ninstead. This standard was abandoned in January, 1970. See\nhttps://www.chromestatus.com/feature/5684870116278272 for more details.\"",
1499
+ "optional": true,
1500
+ "type": "string"
1501
+ }
1502
+ ]
1503
+ },
1482
1504
  {
1483
1505
  "id": "InspectorIssueCode",
1484
1506
  "description": "A unique identifier for the type of issue. Each type may use one of the\noptional fields in InspectorIssueDetails to convey more specific\ninformation about the kind of issue.",
@@ -1497,7 +1519,8 @@
1497
1519
  "QuirksModeIssue",
1498
1520
  "NavigatorUserAgentIssue",
1499
1521
  "WasmCrossOriginModuleSharingIssue",
1500
- "GenericIssue"
1522
+ "GenericIssue",
1523
+ "DeprecationIssue"
1501
1524
  ]
1502
1525
  },
1503
1526
  {
@@ -1574,6 +1597,11 @@
1574
1597
  "name": "genericIssueDetails",
1575
1598
  "optional": true,
1576
1599
  "$ref": "GenericIssueDetails"
1600
+ },
1601
+ {
1602
+ "name": "deprecationIssueDetails",
1603
+ "optional": true,
1604
+ "$ref": "DeprecationIssueDetails"
1577
1605
  }
1578
1606
  ]
1579
1607
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.936174",
3
+ "version": "0.0.937044",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -709,6 +709,22 @@ experimental domain Audits
709
709
  GenericIssueErrorType errorType
710
710
  optional Page.FrameId frameId
711
711
 
712
+ # This issue tracks information needed to print a deprecation message.
713
+ # The formatting is inherited from the old console.log version, see more at:
714
+ # https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc
715
+ # TODO(crbug.com/1264960): Re-work format to add i18n support per:
716
+ # https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md
717
+ type DeprecationIssueDetails extends object
718
+ properties
719
+ optional AffectedFrame affectedFrame
720
+ SourceCodeLocation sourceCodeLocation
721
+ # The content of the deprecation issue (this won't be translated),
722
+ # e.g. "window.inefficientLegacyStorageMethod will be removed in M97,
723
+ # around January 2022. Please use Web Storage or Indexed Database
724
+ # instead. This standard was abandoned in January, 1970. See
725
+ # https://www.chromestatus.com/feature/5684870116278272 for more details."
726
+ optional string message
727
+
712
728
  # A unique identifier for the type of issue. Each type may use one of the
713
729
  # optional fields in InspectorIssueDetails to convey more specific
714
730
  # information about the kind of issue.
@@ -728,6 +744,7 @@ experimental domain Audits
728
744
  NavigatorUserAgentIssue
729
745
  WasmCrossOriginModuleSharingIssue
730
746
  GenericIssue
747
+ DeprecationIssue
731
748
 
732
749
  # This struct holds a list of optional fields with additional information
733
750
  # specific to the kind of issue. When adding a new issue code, please also
@@ -748,6 +765,7 @@ experimental domain Audits
748
765
  optional NavigatorUserAgentIssueDetails navigatorUserAgentIssueDetails
749
766
  optional WasmCrossOriginModuleSharingIssueDetails wasmCrossOriginModuleSharingIssue
750
767
  optional GenericIssueDetails genericIssueDetails
768
+ optional DeprecationIssueDetails deprecationIssueDetails
751
769
 
752
770
  # A unique id for a DevTools inspector issue. Allows other entities (e.g.
753
771
  # exceptions, CDP message, console messages, etc.) to reference an issue.
@@ -3256,12 +3256,32 @@ export namespace Protocol {
3256
3256
  frameId?: Page.FrameId;
3257
3257
  }
3258
3258
 
3259
+ /**
3260
+ * This issue tracks information needed to print a deprecation message.
3261
+ * The formatting is inherited from the old console.log version, see more at:
3262
+ * https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc
3263
+ * TODO(crbug.com/1264960): Re-work format to add i18n support per:
3264
+ * https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md
3265
+ */
3266
+ export interface DeprecationIssueDetails {
3267
+ affectedFrame?: AffectedFrame;
3268
+ sourceCodeLocation: SourceCodeLocation;
3269
+ /**
3270
+ * The content of the deprecation issue (this won't be translated),
3271
+ * e.g. "window.inefficientLegacyStorageMethod will be removed in M97,
3272
+ * around January 2022. Please use Web Storage or Indexed Database
3273
+ * instead. This standard was abandoned in January, 1970. See
3274
+ * https://www.chromestatus.com/feature/5684870116278272 for more details."
3275
+ */
3276
+ message?: string;
3277
+ }
3278
+
3259
3279
  /**
3260
3280
  * A unique identifier for the type of issue. Each type may use one of the
3261
3281
  * optional fields in InspectorIssueDetails to convey more specific
3262
3282
  * information about the kind of issue.
3263
3283
  */
3264
- export type InspectorIssueCode = ('SameSiteCookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'TrustedWebActivityIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'WasmCrossOriginModuleSharingIssue' | 'GenericIssue');
3284
+ export type InspectorIssueCode = ('SameSiteCookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'TrustedWebActivityIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'WasmCrossOriginModuleSharingIssue' | 'GenericIssue' | 'DeprecationIssue');
3265
3285
 
3266
3286
  /**
3267
3287
  * This struct holds a list of optional fields with additional information
@@ -3283,6 +3303,7 @@ export namespace Protocol {
3283
3303
  navigatorUserAgentIssueDetails?: NavigatorUserAgentIssueDetails;
3284
3304
  wasmCrossOriginModuleSharingIssue?: WasmCrossOriginModuleSharingIssueDetails;
3285
3305
  genericIssueDetails?: GenericIssueDetails;
3306
+ deprecationIssueDetails?: DeprecationIssueDetails;
3286
3307
  }
3287
3308
 
3288
3309
  /**