webext-schema 5.2.0 → 5.2.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 CHANGED
@@ -21,25 +21,20 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/firefox-webext-browser": "^111.0.1",
24
- "@types/node": "^20.3.3",
25
- "@types/sinon": "^10.0.15",
26
- "c8": "^8.0.0",
27
- "chai": "^4.3.7",
28
- "eslint": "^8.44.0",
24
+ "@types/node": "^20.5.7",
25
+ "@types/sinon": "^10.0.16",
26
+ "c8": "^8.0.1",
27
+ "chai": "^4.3.8",
28
+ "eslint": "^8.48.0",
29
29
  "eslint-config-standard": "^17.1.0",
30
- "eslint-plugin-import": "^2.27.5",
31
- "eslint-plugin-jsdoc": "^46.4.3",
32
- "eslint-plugin-node": "^11.1.0",
33
- "eslint-plugin-promise": "^6.1.1",
30
+ "eslint-plugin-import": "^2.28.1",
31
+ "eslint-plugin-jsdoc": "^46.5.1",
34
32
  "eslint-plugin-regexp": "^1.15.0",
35
- "eslint-plugin-unicorn": "^47.0.0",
33
+ "eslint-plugin-unicorn": "^48.0.1",
36
34
  "mocha": "^10.2.0",
37
35
  "npm-run-all": "^4.1.5",
38
- "typescript": "^5.1.6",
39
- "undici": "^5.22.1"
40
- },
41
- "overrides": {
42
- "semver": "^7.5.2"
36
+ "typescript": "^5.2.2",
37
+ "undici": "^5.23.0"
43
38
  },
44
39
  "scripts": {
45
40
  "build": "npm run tsc && npm run lint && npm run test",
@@ -59,5 +54,5 @@
59
54
  "update-mail": "node index update --channel=mail -i",
60
55
  "update-release": "node index update --channel=release -i"
61
56
  },
62
- "version": "5.2.0"
57
+ "version": "5.2.2"
63
58
  }
@@ -12575,7 +12575,8 @@
12575
12575
  "unregisteredthreads",
12576
12576
  "processcpu",
12577
12577
  "power",
12578
- "responsiveness"
12578
+ "responsiveness",
12579
+ "cpufreq"
12579
12580
  ]
12580
12581
  },
12581
12582
  {
@@ -12575,7 +12575,8 @@
12575
12575
  "unregisteredthreads",
12576
12576
  "processcpu",
12577
12577
  "power",
12578
- "responsiveness"
12578
+ "responsiveness",
12579
+ "cpufreq"
12579
12580
  ]
12580
12581
  },
12581
12582
  {
@@ -10926,20 +10926,58 @@
10926
10926
  {
10927
10927
  "name": "getRaw",
10928
10928
  "type": "function",
10929
- "description": "Returns the unmodified source of a message as a `binary string <|link-binary-string|>`__, which is a simple series of 8-bit values. Throws if the message could not be read, for example due to network issues. If the message contains non-ASCII characters, the body parts in the binary string cannot be read directly and must be decoded according to their character sets. Use :ref:`messages.getFull` to get the correctly decoded parts. Manually decoding the raw message is probably too error-prone, especially if the message contains MIME parts with different character set encodings or attachments.\n\nTo get a readable version of the raw message as it appears in Thunderbird's message source view, it may be sufficient to decode the message according to the character set specified in its main `content-type <|link-content-type|>`__ header (example: <value>text/html; charset=UTF-8</value>) using the following function (see MDN for `supported input encodings <|link-input-encoding|>`__): <literalinclude>includes/messages/decodeBinaryString.js<lang>JavaScript</lang></literalinclude>",
10929
+ "description": "Returns the unmodified source of a message. Throws if the message could not be read, for example due to network issues.",
10930
10930
  "async": "callback",
10931
10931
  "parameters": [
10932
10932
  {
10933
10933
  "name": "messageId",
10934
10934
  "type": "integer"
10935
10935
  },
10936
+ {
10937
+ "name": "options",
10938
+ "type": "object",
10939
+ "properties": {
10940
+ "data_format": {
10941
+ "choices": [
10942
+ {
10943
+ "max_manifest_version": 2,
10944
+ "description": "The message can either be returned as a DOM File or as a `binary string <|link-binary-string|>`__. The historic default is to return a binary string (kept for backward compatibility). However, it is now recommended to use the ``File`` format, because the DOM File object can be used as-is with the downloads API and has useful methods to access the content, like `File.text() <|link-DOMFile-text|>`__ and `File.arrayBuffer() <|link-DOMFile-arrayBuffer|>`__. Working with binary strings is error prone and needs special handling: <literalinclude>includes/messages/decodeBinaryString.js<lang>JavaScript</lang></literalinclude> (see MDN for `supported input encodings <|link-input-encoding|>`__).",
10945
+ "type": "string",
10946
+ "enum": [
10947
+ "File",
10948
+ "BinaryString"
10949
+ ]
10950
+ },
10951
+ {
10952
+ "min_manifest_version": 3,
10953
+ "description": "The message can either be returned as a DOM File (default) or as a `binary string <|link-binary-string|>`__. It is recommended to use the ``File`` format, because the DOM File object can be used as-is with the downloads API and has useful methods to access the content, like `File.text() <|link-DOMFile-text|>`__ and `File.arrayBuffer() <|link-DOMFile-arrayBuffer|>`__. Working with binary strings is error prone and needs special handling: <literalinclude>includes/messages/decodeBinaryString.js<lang>JavaScript</lang></literalinclude> (see MDN for `supported input encodings <|link-input-encoding|>`__).",
10954
+ "type": "string",
10955
+ "enum": [
10956
+ "File",
10957
+ "BinaryString"
10958
+ ]
10959
+ }
10960
+ ]
10961
+ }
10962
+ },
10963
+ "optional": true
10964
+ },
10936
10965
  {
10937
10966
  "type": "function",
10938
10967
  "name": "callback",
10939
10968
  "optional": true,
10940
10969
  "parameters": [
10941
10970
  {
10942
- "type": "string"
10971
+ "choices": [
10972
+ {
10973
+ "type": "string"
10974
+ },
10975
+ {
10976
+ "type": "object",
10977
+ "isInstanceOf": "File",
10978
+ "additionalProperties": true
10979
+ }
10980
+ ]
10943
10981
  }
10944
10982
  ]
10945
10983
  }
@@ -4463,6 +4463,11 @@
4463
4463
  "optional": true,
4464
4464
  "description": "Whether the tab has produced sound over the past couple of seconds (but it might not be heard if also muted). Equivalent to whether the speaker audio indicator is showing."
4465
4465
  },
4466
+ "autoDiscardable": {
4467
+ "type": "boolean",
4468
+ "optional": true,
4469
+ "description": "Whether the tab can be discarded automatically by the browser when resources are low."
4470
+ },
4466
4471
  "mutedInfo": {
4467
4472
  "$ref": "MutedInfo",
4468
4473
  "optional": true,
@@ -4764,6 +4769,7 @@
4764
4769
  "enum": [
4765
4770
  "attention",
4766
4771
  "audible",
4772
+ "autoDiscardable",
4767
4773
  "discarded",
4768
4774
  "favIconUrl",
4769
4775
  "hidden",
@@ -5095,6 +5101,11 @@
5095
5101
  "optional": true,
5096
5102
  "description": "Whether the tabs are audible."
5097
5103
  },
5104
+ "autoDiscardable": {
5105
+ "type": "boolean",
5106
+ "optional": true,
5107
+ "description": "Whether the tab can be discarded automatically by the browser when resources are low."
5108
+ },
5098
5109
  "muted": {
5099
5110
  "type": "boolean",
5100
5111
  "optional": true,
@@ -5312,6 +5323,11 @@
5312
5323
  "optional": true,
5313
5324
  "description": "Whether the tab should be active. Does not affect whether the window is focused (see $(ref:windows.update))."
5314
5325
  },
5326
+ "autoDiscardable": {
5327
+ "type": "boolean",
5328
+ "optional": true,
5329
+ "description": "Whether the tab can be discarded automatically by the browser when resources are low."
5330
+ },
5315
5331
  "highlighted": {
5316
5332
  "type": "boolean",
5317
5333
  "optional": true,
@@ -6058,6 +6074,11 @@
6058
6074
  "optional": true,
6059
6075
  "description": "The tab's new audible state."
6060
6076
  },
6077
+ "autoDiscardable": {
6078
+ "type": "boolean",
6079
+ "optional": true,
6080
+ "description": "The tab's new autoDiscardable state."
6081
+ },
6061
6082
  "discarded": {
6062
6083
  "type": "boolean",
6063
6084
  "optional": true,
@@ -7860,6 +7881,32 @@
7860
7881
  }
7861
7882
  ]
7862
7883
  },
7884
+ {
7885
+ "name": "getUserSettings",
7886
+ "type": "function",
7887
+ "description": "Returns the user-specified settings relating to an extension's action.",
7888
+ "async": "callback",
7889
+ "parameters": [
7890
+ {
7891
+ "type": "function",
7892
+ "name": "callback",
7893
+ "parameters": [
7894
+ {
7895
+ "name": "userSettings",
7896
+ "type": "object",
7897
+ "properties": {
7898
+ "isOnToolbar": {
7899
+ "type": "boolean",
7900
+ "optional": true,
7901
+ "description": "Whether the extension's action icon is visible on browser windows' top-level toolbar (i.e., whether the extension has been 'pinned' by the user)."
7902
+ }
7903
+ },
7904
+ "description": "The collection of user-specified settings relating to an extension's action."
7905
+ }
7906
+ ]
7907
+ }
7908
+ ]
7909
+ },
7863
7910
  {
7864
7911
  "name": "setIcon",
7865
7912
  "type": "function",
@@ -16263,14 +16310,14 @@
16263
16310
  {
16264
16311
  "name": "setUninstallURL",
16265
16312
  "type": "function",
16266
- "description": "Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum 255 characters.",
16313
+ "description": "Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum 1023 characters.",
16267
16314
  "async": "callback",
16268
16315
  "parameters": [
16269
16316
  {
16270
16317
  "type": "string",
16271
16318
  "name": "url",
16272
16319
  "optional": true,
16273
- "maxLength": 255,
16320
+ "maxLength": 1023,
16274
16321
  "description": "URL to be opened after the extension is uninstalled. This URL must have an http: or https: scheme. Set an empty string to not open a new tab upon uninstallation."
16275
16322
  },
16276
16323
  {
@@ -19543,12 +19590,10 @@
19543
19590
  "description": "0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."
19544
19591
  },
19545
19592
  "transitionType": {
19546
- "unsupported": true,
19547
19593
  "$ref": "TransitionType",
19548
19594
  "description": "Cause of the navigation."
19549
19595
  },
19550
19596
  "transitionQualifiers": {
19551
- "unsupported": true,
19552
19597
  "type": "array",
19553
19598
  "description": "A list of transition qualifiers.",
19554
19599
  "items": {
@@ -19770,12 +19815,10 @@
19770
19815
  "description": "0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."
19771
19816
  },
19772
19817
  "transitionType": {
19773
- "unsupported": true,
19774
19818
  "$ref": "TransitionType",
19775
19819
  "description": "Cause of the navigation."
19776
19820
  },
19777
19821
  "transitionQualifiers": {
19778
- "unsupported": true,
19779
19822
  "type": "array",
19780
19823
  "description": "A list of transition qualifiers.",
19781
19824
  "items": {
@@ -19849,12 +19892,10 @@
19849
19892
  "description": "0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."
19850
19893
  },
19851
19894
  "transitionType": {
19852
- "unsupported": true,
19853
19895
  "$ref": "TransitionType",
19854
19896
  "description": "Cause of the navigation."
19855
19897
  },
19856
19898
  "transitionQualifiers": {
19857
- "unsupported": true,
19858
19899
  "type": "array",
19859
19900
  "description": "A list of transition qualifiers.",
19860
19901
  "items": {