wxt 0.20.6 → 0.20.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.
@@ -39,6 +39,7 @@ export function createWebExtRunner() {
39
39
  ),
40
40
  args: [
41
41
  "--unsafely-disable-devtools-self-xss-warnings",
42
+ "--disable-features=DisableLoadExtensionCommandLineSwitch",
42
43
  ...wxtUserConfig?.chromiumArgs ?? []
43
44
  ]
44
45
  }
@@ -13,7 +13,7 @@ export declare const fakeContentScriptEntrypoint: (overrides?: {
13
13
  options?: {
14
14
  world?: "MAIN" | "ISOLATED" | undefined;
15
15
  matches?: (string | undefined)[] | undefined;
16
- runAt?: "document_start" | "document_end" | "document_idle" | undefined;
16
+ runAt?: Browser.extensionTypes.RunAt | undefined;
17
17
  matchAboutBlank?: boolean | undefined;
18
18
  excludeMatches?: (string | undefined)[] | undefined;
19
19
  includeGlobs?: (string | undefined)[] | undefined;
@@ -8921,7 +8921,7 @@ export declare const fakeWxt: (overrides?: {
8921
8921
  options?: {
8922
8922
  world?: "MAIN" | "ISOLATED" | undefined;
8923
8923
  matches?: (string | undefined)[] | undefined;
8924
- runAt?: "document_start" | "document_end" | "document_idle" | undefined;
8924
+ runAt?: Browser.extensionTypes.RunAt | undefined;
8925
8925
  matchAboutBlank?: boolean | undefined;
8926
8926
  excludeMatches?: (string | undefined)[] | undefined;
8927
8927
  includeGlobs?: (string | undefined)[] | undefined;
@@ -9009,7 +9009,7 @@ export declare const fakeWxt: (overrides?: {
9009
9009
  options?: {
9010
9010
  world?: "MAIN" | "ISOLATED" | undefined;
9011
9011
  matches?: (string | undefined)[] | undefined;
9012
- runAt?: "document_start" | "document_end" | "document_idle" | undefined;
9012
+ runAt?: Browser.extensionTypes.RunAt | undefined;
9013
9013
  matchAboutBlank?: boolean | undefined;
9014
9014
  excludeMatches?: (string | undefined)[] | undefined;
9015
9015
  includeGlobs?: (string | undefined)[] | undefined;
@@ -9673,7 +9673,7 @@ export declare const fakeWxtDevServer: (overrides?: {
9673
9673
  options?: {
9674
9674
  world?: "MAIN" | "ISOLATED" | undefined;
9675
9675
  matches?: (string | undefined)[] | undefined;
9676
- runAt?: "document_start" | "document_end" | "document_idle" | undefined;
9676
+ runAt?: Browser.extensionTypes.RunAt | undefined;
9677
9677
  matchAboutBlank?: boolean | undefined;
9678
9678
  excludeMatches?: (string | undefined)[] | undefined;
9679
9679
  includeGlobs?: (string | undefined)[] | undefined;
@@ -9761,7 +9761,7 @@ export declare const fakeWxtDevServer: (overrides?: {
9761
9761
  options?: {
9762
9762
  world?: "MAIN" | "ISOLATED" | undefined;
9763
9763
  matches?: (string | undefined)[] | undefined;
9764
- runAt?: "document_start" | "document_end" | "document_idle" | undefined;
9764
+ runAt?: Browser.extensionTypes.RunAt | undefined;
9765
9765
  matchAboutBlank?: boolean | undefined;
9766
9766
  excludeMatches?: (string | undefined)[] | undefined;
9767
9767
  includeGlobs?: (string | undefined)[] | undefined;
@@ -10416,7 +10416,7 @@ export declare const fakeBuildOutput: (overrides?: {
10416
10416
  options?: {
10417
10417
  world?: "MAIN" | "ISOLATED" | undefined;
10418
10418
  matches?: (string | undefined)[] | undefined;
10419
- runAt?: "document_start" | "document_end" | "document_idle" | undefined;
10419
+ runAt?: Browser.extensionTypes.RunAt | undefined;
10420
10420
  matchAboutBlank?: boolean | undefined;
10421
10421
  excludeMatches?: (string | undefined)[] | undefined;
10422
10422
  includeGlobs?: (string | undefined)[] | undefined;
@@ -10504,7 +10504,7 @@ export declare const fakeBuildOutput: (overrides?: {
10504
10504
  options?: {
10505
10505
  world?: "MAIN" | "ISOLATED" | undefined;
10506
10506
  matches?: (string | undefined)[] | undefined;
10507
- runAt?: "document_start" | "document_end" | "document_idle" | undefined;
10507
+ runAt?: Browser.extensionTypes.RunAt | undefined;
10508
10508
  matchAboutBlank?: boolean | undefined;
10509
10509
  excludeMatches?: (string | undefined)[] | undefined;
10510
10510
  includeGlobs?: (string | undefined)[] | undefined;
@@ -10604,7 +10604,7 @@ export declare const fakeBuildStepOutput: (overrides?: {
10604
10604
  options?: {
10605
10605
  world?: "MAIN" | "ISOLATED" | undefined;
10606
10606
  matches?: (string | undefined)[] | undefined;
10607
- runAt?: "document_start" | "document_end" | "document_idle" | undefined;
10607
+ runAt?: Browser.extensionTypes.RunAt | undefined;
10608
10608
  matchAboutBlank?: boolean | undefined;
10609
10609
  excludeMatches?: (string | undefined)[] | undefined;
10610
10610
  includeGlobs?: (string | undefined)[] | undefined;
@@ -10692,7 +10692,7 @@ export declare const fakeBuildStepOutput: (overrides?: {
10692
10692
  options?: {
10693
10693
  world?: "MAIN" | "ISOLATED" | undefined;
10694
10694
  matches?: (string | undefined)[] | undefined;
10695
- runAt?: "document_start" | "document_end" | "document_idle" | undefined;
10695
+ runAt?: Browser.extensionTypes.RunAt | undefined;
10696
10696
  matchAboutBlank?: boolean | undefined;
10697
10697
  excludeMatches?: (string | undefined)[] | undefined;
10698
10698
  includeGlobs?: (string | undefined)[] | undefined;
@@ -11254,7 +11254,7 @@ export declare const fakeDevServer: (overrides?: {
11254
11254
  options?: {
11255
11255
  world?: "MAIN" | "ISOLATED" | undefined;
11256
11256
  matches?: (string | undefined)[] | undefined;
11257
- runAt?: "document_start" | "document_end" | "document_idle" | undefined;
11257
+ runAt?: Browser.extensionTypes.RunAt | undefined;
11258
11258
  matchAboutBlank?: boolean | undefined;
11259
11259
  excludeMatches?: (string | undefined)[] | undefined;
11260
11260
  includeGlobs?: (string | undefined)[] | undefined;
@@ -11342,7 +11342,7 @@ export declare const fakeDevServer: (overrides?: {
11342
11342
  options?: {
11343
11343
  world?: "MAIN" | "ISOLATED" | undefined;
11344
11344
  matches?: (string | undefined)[] | undefined;
11345
- runAt?: "document_start" | "document_end" | "document_idle" | undefined;
11345
+ runAt?: Browser.extensionTypes.RunAt | undefined;
11346
11346
  matchAboutBlank?: boolean | undefined;
11347
11347
  excludeMatches?: (string | undefined)[] | undefined;
11348
11348
  includeGlobs?: (string | undefined)[] | undefined;
@@ -7,7 +7,7 @@ export async function createShadowRootUi(ctx, options) {
7
7
  const instanceId = Math.random().toString(36).substring(2, 15);
8
8
  const css = [];
9
9
  if (!options.inheritStyles) {
10
- css.push(`/* WXT Shadow Root Reset */ body{all:initial;}`);
10
+ css.push(`/* WXT Shadow Root Reset */ :host{all:initial !important;}`);
11
11
  }
12
12
  if (options.css) {
13
13
  css.push(options.css);
@@ -1,7 +1,7 @@
1
1
  export function splitShadowRootCss(css) {
2
2
  let shadowCss = css;
3
3
  let documentCss = "";
4
- const rulesRegex = /(\s*@property[\s\S]*?{[\s\S]*?})/gm;
4
+ const rulesRegex = /(\s*@(property|font-face)[\s\S]*?{[\s\S]*?})/gm;
5
5
  let match;
6
6
  while ((match = rulesRegex.exec(css)) !== null) {
7
7
  documentCss += match[1];
package/dist/version.mjs CHANGED
@@ -1 +1 @@
1
- export const version = "0.20.6";
1
+ export const version = "0.20.7";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.20.6",
4
+ "version": "0.20.7",
5
5
  "description": "⚡ Next-gen Web Extension Framework",
6
6
  "license": "MIT",
7
7
  "dependencies": {
@@ -18,8 +18,8 @@
18
18
  "ci-info": "^4.2.0",
19
19
  "consola": "^3.4.2",
20
20
  "defu": "^6.1.4",
21
- "dotenv": "^16.4.7",
22
- "dotenv-expand": "^12.0.1",
21
+ "dotenv": "^16.5.0",
22
+ "dotenv-expand": "^12.0.2",
23
23
  "esbuild": "^0.25.0",
24
24
  "fast-glob": "^3.3.3",
25
25
  "filesize": "^10.1.6",
@@ -31,14 +31,14 @@
31
31
  "is-wsl": "^3.1.0",
32
32
  "json5": "^2.2.3",
33
33
  "jszip": "^3.10.1",
34
- "linkedom": "^0.18.9",
34
+ "linkedom": "^0.18.10",
35
35
  "magicast": "^0.3.5",
36
36
  "minimatch": "^10.0.1",
37
37
  "nano-spawn": "^0.2.0",
38
38
  "normalize-path": "^3.0.0",
39
39
  "nypm": "^0.6.0",
40
40
  "ohash": "^2.0.11",
41
- "open": "^10.1.0",
41
+ "open": "^10.1.2",
42
42
  "ora": "^8.2.0",
43
43
  "perfect-debounce": "^1.0.0",
44
44
  "picocolors": "^1.1.1",
@@ -46,27 +46,27 @@
46
46
  "publish-browser-extension": "^2.3.0 || ^3.0.0",
47
47
  "scule": "^1.3.0",
48
48
  "unimport": "^3.13.1 || ^4.0.0 || ^5.0.0",
49
- "vite": "^5.4.17 || ^6.2.5",
50
- "vite-node": "^2.1.4 || ^3.0.0",
49
+ "vite": "^5.4.19 || ^6.3.4",
50
+ "vite-node": "^2.1.4 || ^3.1.2",
51
51
  "web-ext-run": "^0.2.3",
52
- "@wxt-dev/browser": "0.0.317"
52
+ "@wxt-dev/browser": "^0.0.326"
53
53
  },
54
54
  "devDependencies": {
55
- "@aklinker1/check": "^1.4.5",
56
- "@faker-js/faker": "^9.6.0",
55
+ "@aklinker1/check": "2.0.0",
56
+ "@faker-js/faker": "^9.7.0",
57
57
  "@types/fs-extra": "^11.0.4",
58
58
  "@types/lodash.merge": "^4.6.9",
59
59
  "@types/node": "^20.17.6",
60
60
  "@types/normalize-path": "^3.0.2",
61
61
  "@types/prompts": "^2.4.9",
62
62
  "extract-zip": "^2.0.1",
63
- "happy-dom": "^17.4.4",
63
+ "happy-dom": "^17.4.6",
64
64
  "lodash.merge": "^4.6.2",
65
- "oxlint": "^0.16.5",
66
- "publint": "^0.3.10",
65
+ "oxlint": "^0.16.8",
66
+ "publint": "^0.3.12",
67
67
  "typescript": "^5.8.3",
68
68
  "unbuild": "^3.5.0",
69
- "vitest": "^3.1.1",
69
+ "vitest": "^3.1.2",
70
70
  "vitest-plugin-random-seed": "^1.1.1"
71
71
  },
72
72
  "peerDependenciesMeta": {},