browser-extension-manager 1.2.6 → 1.2.7

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.
@@ -22,8 +22,10 @@
22
22
  default_locale: 'en',
23
23
 
24
24
  // Background script
25
+ // Chrome uses service_worker, Firefox uses scripts array
25
26
  background: {
26
27
  service_worker: 'assets/js/components/background.bundle.js',
28
+ scripts: ['assets/js/components/background.bundle.js'],
27
29
  },
28
30
 
29
31
  // Permissions
@@ -90,6 +92,12 @@
90
92
  gecko: {
91
93
  id: 'my-addon@example.com',
92
94
  strict_min_version: '91.0',
95
+ // Required for new Firefox extensions as of Nov 2025
96
+ // https://blog.mozilla.org/addons/2025/10/23/data-collection-consent-changes-for-new-firefox-extensions/
97
+ data_collection_permissions: {
98
+ required: ['authenticationInfo'],
99
+ optional: ['technicalAndInteraction'],
100
+ },
93
101
  },
94
102
  },
95
103
  }
@@ -100,6 +100,10 @@
100
100
  gecko: {
101
101
  // id: 'my-addon@example.com',
102
102
  // strict_min_version: '91.0',
103
+ data_collection_permissions: {
104
+ required: ['authenticationInfo'],
105
+ optional: ['technicalAndInteraction'],
106
+ },
103
107
  },
104
108
  },
105
109
  }
@@ -189,14 +189,6 @@ async function compileManifest(outputDir) {
189
189
  // Add package version to manifest
190
190
  manifest.version = project.version;
191
191
 
192
- // Add Firefox compatibility for background scripts
193
- // Firefox MV3 uses "scripts" array instead of "service_worker"
194
- // Chrome ignores "scripts", Firefox ignores "service_worker"
195
- if (manifest.background?.service_worker && !manifest.background?.scripts) {
196
- manifest.background.scripts = [manifest.background.service_worker];
197
- logger.log(`Added Firefox-compatible background.scripts`);
198
- }
199
-
200
192
  // Save as regular JSON
201
193
  jetpack.write(outputPath, JSON.stringify(manifest, null, 2));
202
194
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-extension-manager",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Browser Extension Manager dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -85,10 +85,10 @@
85
85
  "minimatch": "^10.1.1",
86
86
  "node-powertools": "^2.3.2",
87
87
  "npm-api": "^1.0.1",
88
- "sass": "^1.94.2",
88
+ "sass": "^1.97.0",
89
89
  "through2": "^4.0.2",
90
90
  "web-manager": "^4.0.40",
91
- "webpack": "^5.103.0",
91
+ "webpack": "^5.104.0",
92
92
  "wonderful-fetch": "^1.3.4",
93
93
  "wonderful-version": "^1.3.2",
94
94
  "ws": "^8.18.3",