Repository navigation
Upgrade notes
-
A production build that passed on 4.4.2 with a "shipped uncompiled" Sass warning, or with a Tailwind PostCSS plugin that could not be resolved, now fails. Install the package the error names.
extension devstill warns and keeps running. -
An env file value that holds
$NAMEor${NAME}of a variable that is set is now replaced by that variable's value, and\$becomes a literal$. Write\$or use single quotes to keep a dollar sign as written. A reference nothing sets stays as written, and a public value that holds one warns with the new codeW_ENV_REFERENCE_UNRESOLVED. -
Every command except
dev,startandpreviewexits as soon as its work is done. A config file that relied on an open handle to keepbuildalive no longer does. -
events.ndjsoncan carry a newbrowser_reopenedevent afterbrowser_exited, andready.jsonthen describes the new browser. -
Under
--output json, eachzip_artifactsentry gainsfiles_count, and the source entry gainsfiles. -
On Linux with neither
DISPLAYnorWAYLAND_DISPLAYset,startandpreviewexit 1 with the new codeE_NO_DISPLAYbefore any browser is started, unless the launch is headless. SetEXTENSION_HEADLESS=1or run under a display server. -
Under WSL,
--chromium-binaryor--gecko-binarypointing at a Windows.exeis refused withE_BROWSER_BINARY_INVALID. Install a Linux browser in the distribution. -
--silenttogether with--debugis now an error. Pass one, or--verbosity. -
The zip file name keeps a hyphen or underscore the extension name has:
tab-managernow givestab-manager-1.0.0-chrome.zipwhere it gavetabmanager-1.0.0-chrome.zip. Update a script that reads the old name. -
Tailwind v4 renders in a content script shadow root: shadows, rings, gradients, transforms and borders that depend on
@propertyrules work inside a shadow root, where they computed to nothing. Docs -
Press Enter to reopen a closed browser: when the browser that
extension devopened closes, Enter in the terminal launches it again with the current build and reload attached, where the whole command had to be restarted. -
extension devworks under WSL: a Linux browser inside the distribution is launched with WSLg or headless, where the CLI started a Windows browser it could not control and the session crashed or sat silent. -
A source zip a reviewer can rebuild:
build --zip-sourcein a workspace packs the workspace packages, the root manifest and the lockfile the build needs, and--zip-source-includeand--zip-source-excludecontrol the rest. Docs -
Security:
cross-spawn7.1.2: closes a command injection on Windows when a batch file such asnpm.cmdis run with crafted arguments.
Also in 4.4.3 (23)
extension buildstops whensassor the Tailwind PostCSS plugin is missing and names the package to install, where it shipped the file uncompiled or without Tailwind's styles and only warned.- A production build no longer emits a script or stylesheet that Chrome refuses with "It isn't UTF-8 encoded" when a string holds an escape such as
"\uFFFF". - A value in an env file can refer to another variable with
${NAME},$NAMEor${NAME:-fallback}. extension buildends when the build is done even whenextension.config.jsleaves a timer or a server open, where it never exited.- A project that installs
@types/chrome0.3 type checks withskipLibCheckoff, wherebrowserwas declared twice. extension create --no-gitleaves git alone, andcreateinside an existing repository never makes a nested one.extension dev --strict-portfails withE_PORT_TAKENwhen the port is in use, for setups that depend on the exact port.- Safari builds take
--app-category,--uses-non-exempt-encryptionand--build-numberfor App Store submission. --zip-filenametakes the tokens{name},{version},{versionName}and{browser}, and the "Packaged" line gives the file count.- Stable Google Chrome launched through
--chromium-binaryshows no "unsupported command-line flag" bar. - Two saves in quick succession can no longer leave an older content script registered in dev.
- A Safari build keeps a page that a script opens when the manifest key that named it is one Safari drops.
- The welcome page updates when your extension is reloaded, turned on or off, or removed.
- A failed build prints a loader's report without the loader's file path and without a second "Warning" or "Error" label.
- A
.svelteor.vuefile in a project withoutsvelteorvuefails the build with "The svelte package isn't installed" and the command to install it, where it failed with "JavaScript parse error: Unexpected token '<'". --verbosity <silent|error|warn|info|debug>on every command that prints chooses how much it prints, andverbosityinextension.config.jssets the default.- On Linux with no display, a headed launch ends with
E_NO_DISPLAYand how to continue, where the browser crashed.extension devkeeps its server running. - A Snap Firefox or Chromium loads the extension when the CLI runs through
npx, and a project outside the home folder or in a hidden folder of it is refused with one message that names the cause. - A Snap browser asked to run a project under
/mnt,/mediaor/run/mediawithout itsremovable-mediaplug is refused with thesudo snap connectcommand that fixes it. - Under WSL1, a Chrome or Edge that dies at startup is reported with the cause and the command that moves the distribution to WSL2.
- Stable Google Chrome launched through
--chromium-binaryopens the welcome page and loads the developer tools companion, like the managed browser. - A Safari conversion that fails with "Error opening project" is retried once.
extension docssaves the Extension.js docs into the project, with an index and a section inAGENTS.mdthat points a coding agent at them. A second run on the same version needs no network.
Dependencies: cross-spawn 7.0.6 to 7.1.2, ws 8.20.1 to 8.23.0.
Tested before publishing on Chrome, Firefox, Edge and Safari: this build compiled every buildable sample of extension-js/corpus and passed the extension-js/templates suite (run).