webext-schema 5.5.1 → 5.5.3

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
@@ -10,38 +10,40 @@
10
10
  "url": "git+https://github.com/asamuzaK/webext-schema.git"
11
11
  },
12
12
  "type": "module",
13
- "main": "index.js",
13
+ "exports": {
14
+ "default": {
15
+ "types": "./types/index.d.ts",
16
+ "default": "./index.js"
17
+ }
18
+ },
14
19
  "types": "types/index.d.ts",
15
20
  "dependencies": {
16
21
  "camelize": "^1.0.1",
17
- "commander": "^12.1.0",
22
+ "commander": "^13.1.0",
18
23
  "decamelize": "^6.0.0",
19
24
  "json5": "^2.2.3",
20
25
  "sinon": "^19.0.2"
21
26
  },
22
27
  "devDependencies": {
23
28
  "@types/firefox-webext-browser": "^120.0.4",
24
- "@types/node": "^22.10.1",
29
+ "@types/node": "^22.13.1",
25
30
  "@types/sinon": "^17.0.3",
26
- "c8": "^10.1.2",
27
- "eslint": "^9.15.0",
28
- "eslint-plugin-import-x": "^4.4.3",
29
- "eslint-plugin-jsdoc": "^50.6.0",
31
+ "c8": "^10.1.3",
32
+ "eslint": "^9.19.0",
33
+ "eslint-plugin-import-x": "^4.6.1",
34
+ "eslint-plugin-jsdoc": "^50.6.3",
30
35
  "eslint-plugin-regexp": "^2.7.0",
31
36
  "eslint-plugin-unicorn": "^56.0.1",
32
- "globals": "^15.12.0",
33
- "mocha": "^10.8.2",
34
- "neostandard": "^0.11.9",
35
- "npm-run-all2": "^7.0.1",
36
- "typescript": "^5.7.2",
37
- "undici": "^7.0.0"
38
- },
39
- "overrides": {
40
- "glob": "^10.4.5"
37
+ "globals": "^15.14.0",
38
+ "mocha": "^11.1.0",
39
+ "neostandard": "^0.12.1",
40
+ "npm-run-all2": "^7.0.2",
41
+ "typescript": "^5.7.3",
42
+ "undici": "^7.3.0"
41
43
  },
42
44
  "scripts": {
43
45
  "build": "npm run tsc && npm run lint && npm run test",
44
- "lint": "eslint --fix .",
46
+ "lint": "eslint . --fix",
45
47
  "start": "node index",
46
48
  "test": "npm run test-central",
47
49
  "test-beta": "c8 mocha --require=test/mocha/setup.js --channel=beta --exit test/*.test.js",
@@ -57,5 +59,5 @@
57
59
  "update-mail": "node index update --channel=mail -i",
58
60
  "update-release": "node index update --channel=release -i"
59
61
  },
60
- "version": "5.5.1"
62
+ "version": "5.5.3"
61
63
  }
@@ -9590,6 +9590,7 @@
9590
9590
  "imageset",
9591
9591
  "web_manifest",
9592
9592
  "speculative",
9593
+ "json",
9593
9594
  "other"
9594
9595
  ]
9595
9596
  },
@@ -12398,7 +12399,8 @@
12398
12399
  "bandwidth",
12399
12400
  "memory",
12400
12401
  "tracing",
12401
- "sandbox"
12402
+ "sandbox",
12403
+ "flows"
12402
12404
  ]
12403
12405
  },
12404
12406
  {
@@ -13421,6 +13423,7 @@
13421
13423
  },
13422
13424
  "name": {
13423
13425
  "type": "string",
13426
+ "description": "Name must be at least 2, at should be at most 75 characters",
13424
13427
  "optional": false,
13425
13428
  "preprocess": "localize"
13426
13429
  },
@@ -13519,24 +13522,16 @@
13519
13522
  {
13520
13523
  "type": "object",
13521
13524
  "properties": {
13522
- "page": {
13525
+ "service_worker": {
13526
+ "optional": true,
13523
13527
  "$ref": "ExtensionURL"
13524
13528
  },
13525
- "persistent": {
13529
+ "page": {
13526
13530
  "optional": true,
13527
- "type": "boolean",
13528
- "max_manifest_version": 2,
13529
- "default": true
13530
- }
13531
- },
13532
- "additionalProperties": {
13533
- "$ref": "UnrecognizedProperty"
13534
- }
13535
- },
13536
- {
13537
- "type": "object",
13538
- "properties": {
13531
+ "$ref": "ExtensionURL"
13532
+ },
13539
13533
  "scripts": {
13534
+ "optional": true,
13540
13535
  "type": "array",
13541
13536
  "items": {
13542
13537
  "$ref": "ExtensionURL"
@@ -13545,6 +13540,7 @@
13545
13540
  "type": {
13546
13541
  "optional": true,
13547
13542
  "type": "string",
13543
+ "description": "Only supported for page/scripts; not for service_worker yet, see bug 1775574",
13548
13544
  "enum": [
13549
13545
  "module",
13550
13546
  "classic"
@@ -13555,20 +13551,24 @@
13555
13551
  "type": "boolean",
13556
13552
  "max_manifest_version": 2,
13557
13553
  "default": true
13554
+ },
13555
+ "preferred_environment": {
13556
+ "optional": true,
13557
+ "type": "array",
13558
+ "items": {
13559
+ "type": "string",
13560
+ "enum": [
13561
+ "service_worker",
13562
+ "document"
13563
+ ],
13564
+ "onError": "warn"
13565
+ }
13558
13566
  }
13559
13567
  },
13560
13568
  "additionalProperties": {
13561
13569
  "$ref": "UnrecognizedProperty"
13562
- }
13563
- },
13564
- {
13565
- "type": "object",
13566
- "properties": {
13567
- "service_worker": {
13568
- "$ref": "ExtensionURL"
13569
- }
13570
13570
  },
13571
- "postprocess": "requireBackgroundServiceWorkerEnabled"
13571
+ "postprocess": "checkRequiredManifestBackgroundKeys"
13572
13572
  }
13573
13573
  ],
13574
13574
  "optional": true
@@ -20423,6 +20423,7 @@
20423
20423
  "imageset",
20424
20424
  "web_manifest",
20425
20425
  "speculative",
20426
+ "json",
20426
20427
  "other"
20427
20428
  ]
20428
20429
  },
@@ -968,6 +968,13 @@
968
968
  "description": "Called to return the registered commands."
969
969
  }
970
970
  ]
971
+ },
972
+ {
973
+ "name": "openShortcutSettings",
974
+ "type": "function",
975
+ "async": true,
976
+ "description": "Open extension shortcuts configuration page.",
977
+ "parameters": []
971
978
  }
972
979
  ]
973
980
  }
@@ -9590,6 +9597,7 @@
9590
9597
  "imageset",
9591
9598
  "web_manifest",
9592
9599
  "speculative",
9600
+ "json",
9593
9601
  "other"
9594
9602
  ]
9595
9603
  },
@@ -12398,7 +12406,8 @@
12398
12406
  "bandwidth",
12399
12407
  "memory",
12400
12408
  "tracing",
12401
- "sandbox"
12409
+ "sandbox",
12410
+ "flows"
12402
12411
  ]
12403
12412
  },
12404
12413
  {
@@ -13421,6 +13430,7 @@
13421
13430
  },
13422
13431
  "name": {
13423
13432
  "type": "string",
13433
+ "description": "Name must be at least 2, at should be at most 75 characters",
13424
13434
  "optional": false,
13425
13435
  "preprocess": "localize"
13426
13436
  },
@@ -13519,24 +13529,16 @@
13519
13529
  {
13520
13530
  "type": "object",
13521
13531
  "properties": {
13522
- "page": {
13532
+ "service_worker": {
13533
+ "optional": true,
13523
13534
  "$ref": "ExtensionURL"
13524
13535
  },
13525
- "persistent": {
13536
+ "page": {
13526
13537
  "optional": true,
13527
- "type": "boolean",
13528
- "max_manifest_version": 2,
13529
- "default": true
13530
- }
13531
- },
13532
- "additionalProperties": {
13533
- "$ref": "UnrecognizedProperty"
13534
- }
13535
- },
13536
- {
13537
- "type": "object",
13538
- "properties": {
13538
+ "$ref": "ExtensionURL"
13539
+ },
13539
13540
  "scripts": {
13541
+ "optional": true,
13540
13542
  "type": "array",
13541
13543
  "items": {
13542
13544
  "$ref": "ExtensionURL"
@@ -13545,6 +13547,7 @@
13545
13547
  "type": {
13546
13548
  "optional": true,
13547
13549
  "type": "string",
13550
+ "description": "Only supported for page/scripts; not for service_worker yet, see bug 1775574",
13548
13551
  "enum": [
13549
13552
  "module",
13550
13553
  "classic"
@@ -13555,20 +13558,24 @@
13555
13558
  "type": "boolean",
13556
13559
  "max_manifest_version": 2,
13557
13560
  "default": true
13561
+ },
13562
+ "preferred_environment": {
13563
+ "optional": true,
13564
+ "type": "array",
13565
+ "items": {
13566
+ "type": "string",
13567
+ "enum": [
13568
+ "service_worker",
13569
+ "document"
13570
+ ],
13571
+ "onError": "warn"
13572
+ }
13558
13573
  }
13559
13574
  },
13560
13575
  "additionalProperties": {
13561
13576
  "$ref": "UnrecognizedProperty"
13562
- }
13563
- },
13564
- {
13565
- "type": "object",
13566
- "properties": {
13567
- "service_worker": {
13568
- "$ref": "ExtensionURL"
13569
- }
13570
13577
  },
13571
- "postprocess": "requireBackgroundServiceWorkerEnabled"
13578
+ "postprocess": "checkRequiredManifestBackgroundKeys"
13572
13579
  }
13573
13580
  ],
13574
13581
  "optional": true
@@ -20423,6 +20430,7 @@
20423
20430
  "imageset",
20424
20431
  "web_manifest",
20425
20432
  "speculative",
20433
+ "json",
20426
20434
  "other"
20427
20435
  ]
20428
20436
  },