wxt 0.8.5 → 0.8.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.
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.5";
64
+ var version = "0.8.7";
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.5";
64
+ var version = "0.8.7";
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-NTYO6B6Y.js";
18
+ } from "./chunk-2M222CNK.js";
19
19
  import "./chunk-YUG22S6W.js";
20
20
 
21
21
  // src/core/build.ts
package/dist/testing.cjs CHANGED
@@ -490,6 +490,25 @@ function webextensionPolyfillAlias(config) {
490
490
  };
491
491
  }
492
492
 
493
+ // src/core/vite-plugins/webextensionPolyfillInlineDeps.ts
494
+ function webextensionPolyfillInlineDeps() {
495
+ return {
496
+ name: "wxt:testing-inline-deps",
497
+ config() {
498
+ const wxtModules = ["wxt/browser", "wxt/client"];
499
+ return {
500
+ test: {
501
+ server: {
502
+ deps: {
503
+ inline: [...wxtModules]
504
+ }
505
+ }
506
+ }
507
+ };
508
+ }
509
+ };
510
+ }
511
+
493
512
  // src/core/utils/building/build-entrypoints.ts
494
513
  var vite2 = __toESM(require("vite"), 1);
495
514
 
@@ -826,6 +845,7 @@ var vite4 = __toESM(require("vite"), 1);
826
845
  function WxtVitest(inlineConfig) {
827
846
  return getInternalConfig(inlineConfig ?? {}, "serve").then((config) => [
828
847
  webextensionPolyfillAlias(config),
848
+ webextensionPolyfillInlineDeps(),
829
849
  unimport(config),
830
850
  globals(config),
831
851
  download(config),
package/dist/testing.js CHANGED
@@ -4,8 +4,9 @@ import {
4
4
  globals,
5
5
  tsconfigPaths,
6
6
  unimport,
7
- webextensionPolyfillAlias
8
- } from "./chunk-NTYO6B6Y.js";
7
+ webextensionPolyfillAlias,
8
+ webextensionPolyfillInlineDeps
9
+ } from "./chunk-2M222CNK.js";
9
10
  import "./chunk-YUG22S6W.js";
10
11
 
11
12
  // src/testing/fake-browser.ts
@@ -15,6 +16,7 @@ import { fakeBrowser } from "@webext-core/fake-browser";
15
16
  function WxtVitest(inlineConfig) {
16
17
  return getInternalConfig(inlineConfig ?? {}, "serve").then((config) => [
17
18
  webextensionPolyfillAlias(config),
19
+ webextensionPolyfillInlineDeps(),
18
20
  unimport(config),
19
21
  globals(config),
20
22
  download(config),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.8.5",
4
+ "version": "0.8.7",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "engines": {
7
7
  "node": ">=18",
@@ -59,46 +59,46 @@
59
59
  }
60
60
  },
61
61
  "dependencies": {
62
- "@types/webextension-polyfill": "^0.10.1",
62
+ "@types/webextension-polyfill": "^0.10.5",
63
63
  "@webext-core/fake-browser": "^1.2.2",
64
64
  "@webext-core/isolated-element": "^1.0.4",
65
65
  "@webext-core/match-patterns": "^1.0.2",
66
66
  "async-mutex": "^0.4.0",
67
- "c12": "^1.4.2",
67
+ "c12": "^1.5.1",
68
68
  "cac": "^6.7.14",
69
69
  "consola": "^3.2.3",
70
- "esbuild": "^0.19.4",
70
+ "esbuild": "^0.19.5",
71
71
  "fast-glob": "^3.3.1",
72
72
  "filesize": "^10.0.8",
73
73
  "fs-extra": "^11.1.1",
74
74
  "get-port": "^7.0.0",
75
- "giget": "^1.1.2",
76
- "immer": "^10.0.2",
75
+ "giget": "^1.1.3",
76
+ "immer": "^10.0.3",
77
77
  "is-wsl": "^3.0.0",
78
- "jiti": "^1.19.1",
78
+ "jiti": "^1.21.0",
79
79
  "json5": "^2.2.3",
80
- "linkedom": "^0.15.1",
80
+ "linkedom": "^0.16.1",
81
81
  "minimatch": "^9.0.3",
82
82
  "ora": "^7.0.1",
83
83
  "picocolors": "^1.0.0",
84
84
  "prompts": "^2.4.2",
85
85
  "rollup-plugin-visualizer": "^5.9.2",
86
- "unimport": "^3.1.0",
87
- "vite": "^4.4.11",
86
+ "unimport": "^3.4.0",
87
+ "vite": "^4.5.0",
88
88
  "web-ext-run": "^0.1.0",
89
89
  "webextension-polyfill": "^0.10.0",
90
90
  "zip-dir": "^2.0.0"
91
91
  },
92
92
  "devDependencies": {
93
- "@faker-js/faker": "^8.0.2",
94
- "@types/fs-extra": "^11.0.1",
95
- "@types/lodash.merge": "^4.6.7",
96
- "@types/node": "^20.8.6",
97
- "@types/prompts": "^2.4.4",
93
+ "@faker-js/faker": "^8.2.0",
94
+ "@types/fs-extra": "^11.0.3",
95
+ "@types/lodash.merge": "^4.6.8",
96
+ "@types/node": "^20.8.10",
97
+ "@types/prompts": "^2.4.7",
98
98
  "@vitest/coverage-v8": "^0.34.6",
99
- "execa": "^7.2.0",
99
+ "execa": "^8.0.1",
100
100
  "happy-dom": "^12.4.0",
101
- "lint-staged": "^14.0.0",
101
+ "lint-staged": "^15.0.2",
102
102
  "lodash.merge": "^4.6.2",
103
103
  "npm-run-all": "^4.1.5",
104
104
  "p-map": "^6.0.0",
@@ -106,14 +106,14 @@
106
106
  "simple-git-hooks": "^2.9.0",
107
107
  "tsup": "^7.2.0",
108
108
  "tsx": "^3.12.7",
109
- "typedoc": "^0.25.2",
109
+ "typedoc": "^0.25.3",
110
110
  "typedoc-plugin-markdown": "4.0.0-next.23",
111
111
  "typedoc-vitepress-theme": "1.0.0-next.3",
112
112
  "typescript": "^5.2.2",
113
- "vitepress": "1.0.0-rc.10",
113
+ "vitepress": "1.0.0-rc.24",
114
114
  "vitest": "^0.34.6",
115
115
  "vitest-mock-extended": "^1.3.1",
116
- "vue": "^3.3.4",
116
+ "vue": "^3.3.7",
117
117
  "webextension-polyfill": "^0.10.0"
118
118
  },
119
119
  "peerDependencies": {
@@ -124,7 +124,7 @@
124
124
  "pre-commit": "pnpm lint-staged"
125
125
  },
126
126
  "lint-staged": {
127
- "*": "prettier --write"
127
+ "*": "prettier --ignore-unknown --write"
128
128
  },
129
129
  "changelog": {
130
130
  "excludeAuthors": [