wxt 0.8.7 → 0.9.1-alpha1

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/README.md CHANGED
@@ -4,18 +4,14 @@
4
4
  </h1>
5
5
 
6
6
  <p align="center">
7
- <a href="https://www.npmjs.com/package/wxt" target="_blank">
8
- <img alt="npm" src="https://img.shields.io/npm/v/wxt?labelColor=black&color=%234fa048">
9
- </a>
7
+ <a href="https://www.npmjs.com/package/wxt" target="_blank"><img alt="npm" src="https://img.shields.io/npm/v/wxt?labelColor=black&color=%234fa048"></a>
10
8
  <span> </span>
11
- <img alt="npm" src="https://img.shields.io/npm/dm/wxt?labelColor=black&color=%234fa048">
9
+ <a href="https://www.npmjs.com/package/wxt" target="_blank"><img alt="npm" src="https://img.shields.io/npm/dm/wxt?labelColor=black&color=%234fa048"></a>
12
10
  <span> </span>
13
- <img alt="NPM" src="https://img.shields.io/npm/l/wxt?labelColor=black&color=%234fa048">
11
+ <a href="https://github.com/wxt-dev/wxt/blob/main/LICENSE" target="_blank"><img alt="NPM" src="https://img.shields.io/npm/l/wxt?labelColor=black&color=%234fa048"></a>
14
12
  <!-- Hide code coverage while it's broken -->
15
13
  <!-- <span> </span>
16
- <a href="https://codecov.io/github/wxt-dev/wxt" target="_blank">
17
- <img alt="Codecov" src="https://img.shields.io/codecov/c/github/wxt-dev/wxt?labelColor=black&color=%234fa048">
18
- </a> -->
14
+ <a href="https://codecov.io/github/wxt-dev/wxt" target="_blank"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/wxt-dev/wxt?labelColor=black&color=%234fa048"></a> -->
19
15
  </p>
20
16
 
21
17
  <p align="center">
@@ -38,6 +34,10 @@
38
34
 
39
35
  ![Example CLI Output](./docs/assets/cli-output.png)
40
36
 
37
+ ## Demo
38
+
39
+ https://github.com/wxt-dev/wxt/assets/10101283/07359e53-f491-43b6-8e8f-fae94aec8063
40
+
41
41
  ## Quick Start
42
42
 
43
43
  Bootstrap a new project:
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.8.7";
2
+ var version = "0.9.1-alpha1";
3
3
 
4
4
  // src/core/utils/entrypoints.ts
5
5
  import path, { relative, resolve } from "node:path";
@@ -971,7 +971,7 @@ declare module "wxt/browser" {
971
971
  const overrides = messages.map((message) => {
972
972
  return ` /**
973
973
  * ${message.description ?? "No message description."}
974
- *
974
+ *
975
975
  * "${message.message}"
976
976
  */
977
977
  getMessage(
@@ -1032,7 +1032,6 @@ async function writeTsConfigFile(mainReference, config) {
1032
1032
  "forceConsistentCasingInFileNames": true,
1033
1033
  "resolveJsonModule": true,
1034
1034
  "strict": true,
1035
- "lib": ["DOM", "WebWorker"],
1036
1035
  "skipLibCheck": true,
1037
1036
  "paths": {
1038
1037
  "@": ["${srcPath}"],
package/dist/cli.cjs CHANGED
@@ -2415,7 +2415,7 @@ var init_execa = __esm({
2415
2415
  var import_cac = __toESM(require("cac"), 1);
2416
2416
 
2417
2417
  // package.json
2418
- var version = "0.8.7";
2418
+ var version = "0.9.1-alpha1";
2419
2419
 
2420
2420
  // src/core/utils/building/build-entrypoints.ts
2421
2421
  var vite2 = __toESM(require("vite"), 1);
@@ -3649,7 +3649,7 @@ declare module "wxt/browser" {
3649
3649
  const overrides = messages.map((message) => {
3650
3650
  return ` /**
3651
3651
  * ${message.description ?? "No message description."}
3652
- *
3652
+ *
3653
3653
  * "${message.message}"
3654
3654
  */
3655
3655
  getMessage(
@@ -3710,7 +3710,6 @@ async function writeTsConfigFile(mainReference, config) {
3710
3710
  "forceConsistentCasingInFileNames": true,
3711
3711
  "resolveJsonModule": true,
3712
3712
  "strict": true,
3713
- "lib": ["DOM", "WebWorker"],
3714
3713
  "skipLibCheck": true,
3715
3714
  "paths": {
3716
3715
  "@": ["${srcPath}"],
package/dist/index.cjs CHANGED
@@ -3659,7 +3659,7 @@ declare module "wxt/browser" {
3659
3659
  const overrides = messages.map((message) => {
3660
3660
  return ` /**
3661
3661
  * ${message.description ?? "No message description."}
3662
- *
3662
+ *
3663
3663
  * "${message.message}"
3664
3664
  */
3665
3665
  getMessage(
@@ -3720,7 +3720,6 @@ async function writeTsConfigFile(mainReference, config) {
3720
3720
  "forceConsistentCasingInFileNames": true,
3721
3721
  "resolveJsonModule": true,
3722
3722
  "strict": true,
3723
- "lib": ["DOM", "WebWorker"],
3724
3723
  "skipLibCheck": true,
3725
3724
  "paths": {
3726
3725
  "@": ["${srcPath}"],
@@ -4185,7 +4184,7 @@ function getChunkSortWeight(filename) {
4185
4184
  var import_picocolors3 = __toESM(require("picocolors"), 1);
4186
4185
 
4187
4186
  // package.json
4188
- var version = "0.8.7";
4187
+ var version = "0.9.1-alpha1";
4189
4188
 
4190
4189
  // src/core/utils/log/printHeader.ts
4191
4190
  var import_consola2 = require("consola");
package/dist/index.d.cts CHANGED
@@ -61,6 +61,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
61
61
  */
62
62
  declare function zip(config?: InlineConfig): Promise<string[]>;
63
63
 
64
- var version = "0.8.7";
64
+ var version = "0.9.1-alpha1";
65
65
 
66
66
  export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
package/dist/index.d.ts CHANGED
@@ -61,6 +61,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
61
61
  */
62
62
  declare function zip(config?: InlineConfig): Promise<string[]>;
63
63
 
64
- var version = "0.8.7";
64
+ var version = "0.9.1-alpha1";
65
65
 
66
66
  export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  rebuild,
16
16
  resolvePerBrowserOption,
17
17
  version
18
- } from "./chunk-2M222CNK.js";
18
+ } from "./chunk-QV4KO4GO.js";
19
19
  import "./chunk-YUG22S6W.js";
20
20
 
21
21
  // src/core/build.ts
package/dist/testing.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  unimport,
7
7
  webextensionPolyfillAlias,
8
8
  webextensionPolyfillInlineDeps
9
- } from "./chunk-2M222CNK.js";
9
+ } from "./chunk-QV4KO4GO.js";
10
10
  import "./chunk-YUG22S6W.js";
11
11
 
12
12
  // src/testing/fake-browser.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.8.7",
4
+ "version": "0.9.1-alpha1",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "engines": {
7
7
  "node": ">=18",
@@ -59,7 +59,6 @@
59
59
  }
60
60
  },
61
61
  "dependencies": {
62
- "@types/webextension-polyfill": "^0.10.5",
63
62
  "@webext-core/fake-browser": "^1.2.2",
64
63
  "@webext-core/isolated-element": "^1.0.4",
65
64
  "@webext-core/match-patterns": "^1.0.2",
@@ -86,7 +85,6 @@
86
85
  "unimport": "^3.4.0",
87
86
  "vite": "^4.5.0",
88
87
  "web-ext-run": "^0.1.0",
89
- "webextension-polyfill": "^0.10.0",
90
88
  "zip-dir": "^2.0.0"
91
89
  },
92
90
  "devDependencies": {
@@ -95,6 +93,7 @@
95
93
  "@types/lodash.merge": "^4.6.8",
96
94
  "@types/node": "^20.8.10",
97
95
  "@types/prompts": "^2.4.7",
96
+ "@types/webextension-polyfill": "^0.10.5",
98
97
  "@vitest/coverage-v8": "^0.34.6",
99
98
  "execa": "^8.0.1",
100
99
  "happy-dom": "^12.4.0",
@@ -117,7 +116,7 @@
117
116
  "webextension-polyfill": "^0.10.0"
118
117
  },
119
118
  "peerDependencies": {
120
- "webextension-polyfill": ">=0.10.0"
119
+ "webextension-polyfill": "^0.10.0"
121
120
  },
122
121
  "packageManager": "pnpm@8.6.3",
123
122
  "simple-git-hooks": {