Releases: mozilla/web-ext
7.0.0
⚠️ BREAKING CHANGES ⚠️
-
web-ext
npm package is now a pure ESM package (#2405), and so it breaks backward compatibility for requiringweb-ext
from nodejs CommonJS modules. SeeUsing web-ext in NodeJS code
README section for some more updated details about the web-ext APIs exported as web-ext ES Modules. -
Dropped support for NodeJS 12 👋
Features
web-ext lint
: Updated to use addons-linter v5.7.0 (#2400, #2404, #2425)- Imported Firefox 99.0b8, Firefox 100 and Firefox 101.0b6 API Schema data
- Updated @mdn/browser-compat-data to v5
- Added detection and reporting of privileged permissions and properties based on the extension manifest.json file
- Allow
wasm-unsafe-eval
keyword in the custom extension CSP - See all addons-linter changes: 4.14.0...5.7.0
web-ext lint
: Added a new--privileged
CLI flag to enableprivileged extensions
linting mode (#2398)
Bug Fixes
- Dependencies updates:
- camelcase to v7 (#2414, #2419)
- chrome-launcher to v0.15.1 (#2410)
- debounce to v1.2.1 (#2190)
- decamelize to v6 (#2325, #2420)
- fs-extra to v10 (#2237)
- multimatch to v6 (#2421)
- node-notifier to v10 (#2194, #2255)
- open to v8 (#2175)
- parse-json to v6 (#2422)
- promise-toolbox to v0.21.0 (#2415)
- sign-addon to v5 (#2423, #2426)
- source-map-support to v0.5.21 (#2411)
- strip-bom to v5 (#2224)
- strip-json-comments to v4 (#2301)
- watchpack to v2.4.0 (#2253)
- ws to v8 (#2270, #2288)
- yargs to v17 (#2235)
- @devicefarmer/adbkit to v3.2.3 (#2397)
See all changes 6.8.0...7.0.0
6.8.0
Features
web-ext lint
: Updated to use addons-linter v4.14.0 (#2386)- Imported Firefox 98.0b10 API schema
- Updated browser-compat-data
- Fixed TypeError raised in opendialog-remote-uri rule
- See all addons-linter changes: 4.9.0...4.14.0
Bug Fixes
web-ext run
:- Replaced deprecated dependency event-to-promise with promise-toolbox/fromEvent (#2367) (2cfd843)
See all changes 6.7.0...6.8.0
6.7.0
Features
web-ext lint
: Updated to use addons-linter v4.9.0 (#2374, #2376)- Imported Firefox 96.0b7 and 97.0b8 API schema
- Updated known libraries hashes (added new DOMPurify versions)
- Updated browser-compat-data
- Improved memory usage and performance on linting big js files
- See all addons-linter changes: 4.4.0...4.9.0
Bug Fixes
web-ext lint
: Fixed unexpected linting failures triggered by conflicting eslint versions
when web-ext is included as a dev dependency (#2245, fixed in #2374)web-ext run -t chromium
: Applied fix to reload extensions already enabled (#2365)web-ext sign
: Updated dependency sign-addon to v3.11.0 (#2377)
See all changes 6.6.0...6.7.0
6.6.0
Features
web-ext lint
: updated to use addons-linter v4.4.0 (#2346, #2350)- Imported Firefox 94.0b8 and Firefox 95.0b8 API schema
- Updated browser-compat-data
- Updated to use eslint v8, which enables ECMAScript 2022 syntax (e.g. public field declaration and top-level await)
- See all addons-linter changes: 3.20.0...4.4.0
Bug Fixes
web-ext run
:- fixed issues related to the nodejs 17 dns resolution behavior on systems where
localhost
is resolved to an ipv6 address (#2337) - fixed issue with removing temporary profile on nodejs <= 14.4 (#2344, saadtazi/firefox-profile-js#128)
- deps: update dependency fx-runner to v1.2.0 (#2351)
- fixed issues related to the nodejs 17 dns resolution behavior on systems where
- Fixed yargs module resolution issue on yarn 3.x + pnp (#2348)
- Wrap web-ext usage output at terminal width (#2329)
See all changes: 6.5.0...6.6.0
6.5.0
Features
web-ext lint
: Updated to use addons-linter v3.20.0 (#2318)- Imported Firefox 93.0b7 API schema (mozilla/addons-linter#3919)
- Updated browser compat data (mozilla/addons-linter#3918, mozilla/addons-linter#3930)
- Detect and report
INVALID_ZIPFILE
linting error on zip files with invalid chars in filenames (mozilla/addons-linter#3940) - Report
RESTRICTED_PERMISSION
linting error on permissions that requiresstrict_min_version
set to a specific Firefox version
(e.g.proxy
permissions requiresstrict_min_version
set to 91.1.0 or above) - See all addons-linter changes: 3.14.0...3.20.0
Bug Fixes
- Updated dependencies:
See all changes: 6.4.0...6.5.0
6.4.0
Features
web-ext lint
: updated to use addons-linter v3.14.0 (#2308, #2315)- Imported Firefox 92.0b7 (mozilla/addons-linter#3872, mozilla/addons-linter#3888)
- Updated browser compat data (mozilla/addons-linter#3870, mozilla/addons-linter#3887)
- See all addons-linter changes: 3.12.0...3.14.0
Bug Fixes
-
web-ext run -t firefox-android
: Fixed issue on running recent Firefox for Android builds (also known with the internal code name "Fenix") due to theWRITE_EXTERNAL_STORAGE
android permission not being granted (#2304) -
web-ext sign
: updated to use sign-addon v3.8.0 (#2313)
See all changes: 6.3.0...6.4.0
6.3.0
Features
web-ext lint
: updated to use addons-linter v3.12.0 (#2274)- Imported Firefox 91.0b5 API Schema (mozilla/addons-linter#3844)
- Imported Firefox 90.0b5 API Schema (mozilla/addons-linter#3763)
- Updated browser compat data (mozilla/addons-linter#3775, mozilla/addons-linter#3809, mozilla/addons-linter#3833, mozilla/addons-linter#3857)
- See all addons-linter changes: 3.8.0...3.12.0
Bug Fixes
web-ext sign
: updated to use sign-addon 3.7.0 (#2290)
See all changes: 6.2.0...6.3.0
6.2.0
Bug Fixes
-
Removed npm engine compatibility restriction < npm v7 (#2271)
- Fixes
EBADENGINE
warning logged when installing web-ext using npm v7
- Fixes
-
Updated dependencies:
Features
web-ext lint
: updated to use addons-linter v3.8.0 (#2234, #2258)- Imported Firefox 89.0b8 API schema (mozilla/addons-linter#3710)
- Updated browser compat data (mozilla/addons-linter#3688, mozilla/addons-linter#3698, mozilla/addons-linter#3708, mozilla/addons-linter#3736, mozilla/addons-linter#3748, mozilla/addons-linter#3758)
- See all addons-linter changes: 3.2.0...3.8.0
See all changes: 6.1.0...6.2.0
6.1.0
Bug Fixes
-
web-ext run -t firefox
: Fixed installed Firefox lookup on Windows to include bothHKEY_CURRENT_USER
andHKEY_LOCAL_MACHINE
windows registry keys (introduced by updating fx-runner dependency to v1.1.0 - #2227) -
web-ext run -t firefox-android
: Fixed issue when using web-ext to run an extension on Android 11 (#2200) -
web-ext build
: Fixed filename sanitizing issue when using a--filename
option including arbitrary manifest property to be interpolated (#2222, fixes #2119)
Features
web-ext lint
: Updated to use addons-linter v3.2.0 (#2204)- Imported Firefox 88.0b5 API schema (mozilla/addons-linter#3651)
- Updated browser compat data (mozilla/addons-linter#3664, mozilla/addons-linter#3628, mozilla/addons-linter#3609)
- Updated parsing logic to prefer parsing as ESM module any js scripts with .mjs (mozilla/addons-linter#3641, fixes mozilla/addons-linter#3639)
- Updated linting message collected on js parsing errors to include more details (mozilla/addons-linter#3556)
- See all addons-linter changes: 2.21.0...3.2.0
See all changes: 6.0.0...6.1.0
6.0.0
⚠ BREAKING CHANGES ⚠
-
Dropped support for node.js 10 👋
-
The
filename
option has been moved in thebuild
options (where it does actually belong), if you were setting thefilename
option value from a config file you'll need to update the config file:
module.exports = {
build: { filename: "...." },
};
Bug Fixes
-
web-ext build
: Movedfilename
option into thebuild
command options (#2178) -
Various dependencies updated to their last released versions: bunyan v1.8.15 (#2114), camelcase v6.2.0 (#2046), decamelize v5 (#2117), firefox-profile v4.1.0 (#2170), fs-extra v9.1.0 (#2132), multimatch v5 (#2048), node-notifier v9 (#2103), open v7.4.2 (#2111 / #2140 / #2158 / #2161), parse-json v5.2.0 (#2005), update-notifier to v5.1.0 (#2063 / #2139), watchpack v2 (#2024), ws v7.4.3 (#2141), yargs v16 (#2015), zip-dir v2 (#2080)
Features
-
web-ext run
:--watch-file
can now be used to watch more than one file (#2125), and--watch-files
is now an additional alias for this option (#2182) -
web-ext lint
: updated to use addons-linter v2.21.0 (#2087 / #2131 / #2152 / #2162 / #2176 / #2189):- Imported Firefox 85.0b5, 86.0b5 and 87.0b6 API schema (mozilla/addons-linter#3538 / mozilla/addons-linter#3562 / mozilla/addons-linter#3598)
- Updated browser compat data (mozilla/addons-linter#3587 / mozilla/addons-linter#3597)
- Enabled support for Numeric Separators (mozilla/addons-linter#3543)
- See all addons-linter changes: 2.13.1...2.21.0
-
web-ext
does now exports some adb utility methods, they are meant to be used in third party nodejs scripts that are includingweb-ext
as a library (#2116), more details about how to use the newly exported utilities have been added in the "Using web-ext in NodeJS code" section of the README file
See all changes: 5.5.0...6.0.0