Files
wxt/CHANGELOG.md
T
2023-10-07 14:59:25 +00:00

29 KiB

Changelog

v0.7.3

compare changes

🚀 Enhancements

  • Support JS entrypoints (#155)

v0.7.2

compare changes

🚀 Enhancements

  • Allow customizing entrypoint options per browser (#154)

🩹 Fixes

  • Default safari to MV2 (5807931)
  • Add missing persistent type to defineBackgroundScript (d9fdcb5)

📖 Documentation

  • Restructure website to improve UX (#149)
  • Add docs for development and testing (f58d69d)

🏡 Chore

  • deps-dev: Bump @types/fs-extra from 11.0.1 to 11.0.2 (#144)
  • deps-dev: Bump @faker-js/faker from 8.0.2 to 8.1.0 (#146)
  • deps-dev: Bump vitest-mock-extended from 1.2.1 to 1.3.0 (#147)
  • deps-dev: Bump vitest from 0.34.3 to 0.34.6 (#145)
  • deps-dev: Bump typescript from 5.1 to 5.2 (#148)

v0.7.1

compare changes

🚀 Enhancements

  • createContentScriptUi helper (#143)

📖 Documentation

  • Add docs for createContentScriptUi (65fcfc0)

🏡 Chore

v0.7.0

compare changes

🚀 Enhancements

  • Content script cssInjectionMode (#141)

🩹 Fixes

  • Validate transformed manifest correctly (4b2012c)
  • ⚠️ Output content script CSS to content-scripts/<name>.css (#140)
  • Reorder typescript paths to give priority to @ and ~ over @@ and ~~ (#142)

🏡 Chore

  • Store user config metadata in memory (0591050)

⚠️ Breaking Changes

  • ⚠️ Content script CSS used to be output to assets/<name>.css, but is now content-scripts/<name>.css to match the docs. (#140)

v0.6.6

compare changes

🚀 Enhancements

  • Disable opening browser automatically during dev mode (#136)

v0.6.5

compare changes

🩹 Fixes

  • Don't crash when <all_urls> matches is used in dev mode (b48cee9)
  • Support loading tsx entrypoints (#134)

📖 Documentation

  • Add tags for SEO and socials (96be879)
  • Add more content to the homepage (5570793)
  • Fix DX section sizing (41e1549)
  • Add link to update extensions using WXT (24e69fe)

🏡 Chore

  • Code coverage improvements (#131)

v0.6.4

compare changes

🩹 Fixes

  • content-scripts: Don't throw an error when including include or exclude options on a content script (455e7f3)
  • Use execaCommand instead of node:child_process (#130)

🏡 Chore

  • templates: Add .wxt directory to gitignore (#129)
  • Increase E2E test timeout (5482b2f)

v0.6.3

compare changes

🚀 Enhancements

  • client: Add block and addEventListener utils to ContentScriptContext (#128)

v0.6.2

compare changes

🚀 Enhancements

  • --analyze build flag (#125)
  • Show spinner when building entrypoints (#126)

📖 Documentation

  • Fix import typo (4c43072)
  • Update vite docs to use function (e0929a6)

v0.6.1

compare changes

🚀 Enhancements

  • Add transformManifest option (#124)

🩹 Fixes

  • Don't open browser during development when using WSL (#123)

📖 Documentation

  • Load extension details from CWS (8e0a189)

v0.6.0

compare changes

🚀 Enhancements

  • Export ContentScriptContext from wxt/client (1f448d1)
  • ⚠️ Require a function for vite configuration (#121)

🩹 Fixes

  • Use the same mode for each build step (1f6a931)
  • Disable dev logs in production (3f260ee)

⚠️ Breaking Changes

  • ⚠️ The vite config option must now be a function. If you were using an object before, change it from vite: { ... } to vite: () => ({ ... }). (#121)

v0.5.6

compare changes

🚀 Enhancements

  • Add ContentScriptContext util for stopping invalidated content scripts (#120)

v0.5.5

compare changes

🩹 Fixes

  • Automatically replace vite's process.env.NODE_ENV output in lib mode with the mode (92039b8)

v0.5.4

compare changes

🩹 Fixes

  • Recognize background/index.ts as an entrypoint (419fab8)
  • Don't warn about deep entrypoint subdirectories not being recognized (87e8df9)

v0.5.3

compare changes

🩹 Fixes

  • Allow function for vite config (4ec904e)

🏡 Chore

  • Refactor how config is resolved (#118)

v0.5.2

compare changes

🩹 Fixes

  • Import client utils when getting entrypoint config (#117)

v0.5.1

compare changes

🚀 Enhancements

  • Allow disabling auto-imports (#114)
  • Include/exclude entrypoints based on target browser (#115)

🩹 Fixes

  • Allow any string for target browser (b4de93d)

v0.5.0

compare changes

🩹 Fixes

  • types: Don't write to files if nothing changes (#107)
  • ⚠️ Change default publicDir to <srcDir>/public (5f15f9c)

📖 Documentation

🏡 Chore

  • Move repo to wxt-dev org (ac7cbfc)
  • deps-dev: Bump prettier from 3.0.1 to 3.0.3 (#111)
  • deps-dev: Bump tsx from 3.12.7 to 3.12.8 (#109)
  • deps-dev: Bump @types/node from 20.5.0 to 20.5.9 (#110)
  • Add entrypoints debug log (dbd84c8)

⚠️ Breaking Changes

  • ⚠️ Change default publicDir to <srcDir>/public (5f15f9c)

v0.4.1

compare changes

🚀 Enhancements

  • cli: Add wxt clean command to delete generated files (#106)

🩹 Fixes

  • init: Don't show cd . when initializing the current directory (e086374)

v0.4.0

compare changes

🚀 Enhancements

  • Add --debug flag for printing debug logs for all CLI commands (#75)
  • Replace web-ext with web-ext-run (#101)
  • Generate types for browser.i18n.getMessage (#103)

🩹 Fixes

  • Allow adding custom content scripts (b428a62)
  • Don't overwrite wxt.config.ts content scripts, append entrypoints to it (5f5f1d9)
  • ⚠️ Use relative path aliases inside .wxt/tsconfig.json (#102)

📖 Documentation

  • Add contribution guide (#76)

🏡 Chore

  • Setup dependabot for upgrading dependencies (d66293c)
  • Update social preview (e164bd5)
  • Setup bug and feature issue templates (2bde917)
  • Upgrade to prettier 3 (#77)
  • deps-dev: Bump vitest from 0.32.4 to 0.34.1 (#81)
  • deps-dev: Bump ora from 6.3.1 to 7.0.1 (#79)
  • deps-dev: Bump @types/node from 20.4.5 to 20.5.0 (#78)
  • deps-dev: Bump tsup from 7.1.0 to 7.2.0 (#80)
  • deps-dev: Bump @vitest/coverage-v8 from 0.32.4 to 0.34.1 (#84)
  • deps-dev: Bump vitepress from 1.0.0-beta.5 to 1.0.0-rc.4 (#85)
  • deps-dev: Bump vitest-mock-extended from 1.1.4 to 1.2.0 (#87)
  • deps-dev: Bump lint-staged from 13.3.0 to 14.0.0 (#89)
  • Fix remote code E2E test (83e62a1)
  • Fix failing demo build (b58a15e)
  • deps-dev: Bump vitest-mock-extended from 1.2.0 to 1.2.1 (#97)
  • deps-dev: Bump lint-staged from 14.0.0 to 14.0.1 (#100)
  • deps-dev: Bump vitest from 0.34.1 to 0.34.3 (#99)
  • Increase E2E test timeout because GitHub Actions Window runner is slow (2a0842b)
  • deps-dev: Bump vitepress from 1.0.0-rc.4 to 1.0.0-rc.10 (#96)
  • Fix test watcher restarting indefinetly (2c7922c)
  • Remove explict icon config from templates (93bfee0)
  • Use import aliases in Vue template (#104)

⚠️ Breaking Changes

  • ⚠️ Use relative path aliases inside .wxt/tsconfig.json (#102)

v0.3.2

compare changes

🚀 Enhancements

  • Discover icons from the public directory (#72)
  • Don't allow auto-importing from subdirectories (d54d611)

📖 Documentation

  • Document the url: import prefix for remote code (323045a)
  • Fix typos (97f0938)
  • Fix capitalization (39467d1)
  • Generate markdown for config reference (#74)

🏡 Chore

  • Upgrade dependencies (798f02f)
  • Upgrade vite (v4.3v4.4) (547c185)
  • Update templates to work with CSS entrypoints (7f15305)
  • Improve file list output in CI (#73)

🤖 CI

  • Validate templates against main (#66)
  • List vite version when validating project templates (ef140dc)
  • Validate templates using tarball to avoid version conflicts within the wxt/node_modules directory (edfa075)

v0.3.1

compare changes

🚀 Enhancements

  • CSS entrypoints (#61)
  • init command for bootstrapping new projects (#65)

📖 Documentation

  • Add zip command to installation scripts (94a1097)
  • Add output paths to entrypoint docs (3a336eb)
  • Update installation docs (aea866c)
  • Add publishing docs (4184b05)
  • Add a section for extensions using WXT (709b61a)
  • Add a comparison page to compare and contrast against Plasmo (38d4f9c)

🏡 Chore

  • Update template projects to v0.3 (#56)
  • Branding and logo (#60)
  • Simplify binary setup (#62)
  • Add Solid template (#63)
  • Increate E2E test timeout to fix flakey test (dfe424f)

🤖 CI

  • Speed up demo validation (3a9fd39)
  • Fix flakey failure when validating templates (25677ba)

❤️ Contributors

v0.3.0

compare changes

🚀 Enhancements

  • ⚠️ Add type safety to browser.runtime.getURL (58a84ec)
  • ⚠️ Change default publicDir to <rootDir>/public (19c0948)
  • Windows support (#50)

🩹 Fixes

  • Add WebWorker lib to generated tsconfig (2c70246)

📖 Documentation

  • Update entrypoint directory links (0aebb67)

🌊 Types

  • Allow any string for the __BROWSER__ global (6092235)

🤖 CI

  • Improve checks against demo/ extension (9cc464f)

⚠️ Breaking Changes

  • ⚠️ Add type safety to browser.runtime.getURL (58a84ec)
  • ⚠️ Change default publicDir to <rootDir>/public (19c0948)

v0.2.5

compare changes

🚀 Enhancements

  • Auto-import from subdirectories (547fee0)
  • Include background script in dev mode if user doesn't define one (ca20a21)

🩹 Fixes

  • Don't crash when generating types in dev mode (d8c1903)
  • Properly load entrypoints that reference import.meta (54b18cc)

🏡 Chore

  • Update templates to wxt@0.2 (9d00eb2)

🤖 CI

  • Validate project templates (9ac756f)

v0.2.4

compare changes

🚀 Enhancements

  • Add wxt zip command (#47)

v0.2.3

compare changes

🩹 Fixes

  • Correctly lookup open port (#45)
  • Read boolean maniest options from meta tags correctly (495c5c8)
  • Some fields cannot be overridden from config.manifest (#46)

v0.2.2

compare changes

🩹 Fixes

  • Register content scripts correctly in dev mode (2fb5a54)

v0.2.1

compare changes

🚀 Enhancements

  • Support all content script options (6f5bf89)

🩹 Fixes

v0.2.0

compare changes

🚀 Enhancements

  • ⚠️ Rename defineBackgroundScript to defineBackground (5b48ae9)
  • Recongize unnamed content scripts (content.ts and content/index.ts) (3db5cec)

📖 Documentation

  • Update templates (f28a29e)
  • Add docs for each type of entrypoint (77cbfc1)
  • Add inline JSDoc for public types (375a2a6)

🏡 Chore

  • Run wxt prepare on postinstall (c1ea9ba)
  • Don't format lockfile (5c7e041)

⚠️ Breaking Changes

  • ⚠️ Rename defineBackgroundScript to defineBackground (5b48ae9)

v0.1.6

compare changes

🩹 Fixes

  • Resolve tsconfig paths in vite (ea92a27)
  • Add logs when a hot reload happens (977246f)

🏡 Chore

  • React and Vue starter templates (#33)
  • Svelte template (#34)

v0.1.5

compare changes

🩹 Fixes

  • Include vite/client types (371be99)

v0.1.4

compare changes

🩹 Fixes

  • Fix regression where manifest was not listed first in build summary (fa2b656)
  • Fix config hook implementations for vite plugins (49965e7)

📖 Documentation

🏡 Chore

v0.1.3

compare changes

🚀 Enhancements

  • Add tsconfig path aliases (#32)

🩹 Fixes

  • Merge manifest option from both inline and user config (05ca998)
  • Cleanup build summary with sourcemaps (ac0b28e)

📖 Documentation

  • Create documentation site (#31)

🏡 Chore

v0.1.2

compare changes

🚀 Enhancements

  • Accept a function for config.manifest (ee49837)

🩹 Fixes

  • Add missing types for webextension-polyfill and the manifest option (636aa48)
  • Only add imports to JS files (b29c3c6)
  • Generate valid type for EntrypointPath when there are no entrypoints (6e7184d)

🌊 Types

  • Change config.vite to UserConfig (ef6001e)

v0.1.1

compare changes

🩹 Fixes

  • Allow dashes in entrypoint names (2e51e73)
  • Unable to read entrypoint options (#28)

v0.1.0

Initial release of WXT. Full support for production builds and initial toolkit for development:

  • HMR support when HTML page dependencies change
  • Reload extension when background changes
  • Reload HTML pages when saving them directly
  • Re-register and reload tabs when content scripts change

compare changes

🚀 Enhancements

  • Content scripts reloading (#25)

📖 Documentation

🤖 CI

v0.0.2

compare changes

🚀 Enhancements

  • Reload extension when source code is changed (#17)
  • Setup background script web socket/reload (#22)
  • Reload HTML files individually (#23)

🩹 Fixes

  • Output chunks to a chunks directory (2dd7a99)
  • Remove hash from content script css outputs (#20)
  • Overwrite files with the same name when renaming entrypoints in dev mode (37986bf)
  • Separate template builds to prevent sharing chunks (7f3a1e8)
  • Show Vite warnings and errors (c51f0e0)

📖 Documentation

  • Add milestone progress badge to README (684197d)
  • Fix milestone link in README (e14f81d)

🏡 Chore

  • Refactor build output type (#19)
  • Refactor build outputs to support transpiled templates (a78aada)
  • Rename templates to virtual-modules (#24)
  • Update cli screenshot (54eb118)

v0.0.1

compare changes

🚀 Enhancements

  • Add logger to config (232ff7a)
  • Export and bootstrap the /client package (5b07c95)
  • Resolve entrypoints based on filesystem (a63f061)
  • Separate output directories for each browser/manifest version (f09ffbb)
  • Build entrypoints and output manfiest.json (1e7c738)
  • Automatically add CSS files to content scripts (047ce04)
  • Download and bundle remote URL imports (523c7df)
  • Generate type declarations and config for project types and auto-imports (21debad)
  • Good looking console output (e2cc995)
  • Dev server working and a valid extension is built (505e419)
  • Virtualized content script entrypoint (ca29537)
  • Provide custom, typed globals defined by Vite (8c59a1c)
  • Copy public directory to outputs (1a25f2b)
  • Support browser and chrome styles for mv2 popups (7945c94)
  • Support browser and chrome styles for mv2 popups (7abb577)
  • Support more CLI flags for build and dev (#9)
  • Add more supported browser types (f114c5b)
  • Open browser when starting dev server (#11)

🩹 Fixes

  • Support srcDir config (739d19f)
  • Root path customization now works (4faa3b3)
  • Print durations as ms/s based on total time (3e37de9)
  • Don't print error twice when background crashes (407627c)
  • Load package.json from root not cwd (3ca16ee)
  • Only allow a single entrypoint with a given name (8eb4e86)
  • Respect the mv2 popup type (0f37ceb)
  • Respect background type and persistent manifest options (573ef80)
  • Make content script array orders consistent (f380378)
  • Firefox manifest warnings in dev mode (50bb845)

📖 Documentation

🏡 Chore

  • Refactor cli files into their own directory (e6c0d84)
  • Simplify BuildOutput type (1f6c4a0)
  • Move .exvite directory into srcDir instead of root (53fb805)
  • Refactor CLI commands (b8952b6)
  • Improve build summary sorting (ec57e8c)
  • Remove comments (e3e9c0d)
  • Refactor internal config creation (7c634f4)
  • Check virtual entrypoints feature in README (70208f4)
  • Add E2E tests and convert to vitest workspace (5813302)
  • Rename package to wxt (51a1072)
  • Fix header log's timestamp (8ca5657)
  • Fix demo global usage (1ecfedd)
  • Refactor folder structure (9ab3953)
  • Fix release workflow (2e94f2a)

🤖 CI

  • Create validation workflow (#12)
  • Create release workflow (#13)