wxt 0.19.9 → 0.19.10

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/modules.d.ts CHANGED
@@ -30,7 +30,7 @@ export declare function defineWxtModule<TOptions extends WxtModuleOptions>(modul
30
30
  * type: "content-script",
31
31
  * name: "some-name",
32
32
  * inputPath: entrypointPath,
33
- * outputDir: wxt.config.outputDir,
33
+ * outputDir: wxt.config.outDir,
34
34
  * options: await wxt.builder.importEntrypoint(entrypointPath),
35
35
  * });
36
36
  * });
package/dist/types.d.ts CHANGED
@@ -747,7 +747,9 @@ export type ResolvedPerBrowserOptions<T, TOmitted extends keyof T = never> = {
747
747
  * Manifest customization available in the `wxt.config.ts` file. You cannot configure entrypoints
748
748
  * here, they are configured inline.
749
749
  */
750
- export type UserManifest = Partial<Omit<chrome.runtime.ManifestV3, 'action' | 'background' | 'chrome_url_overrides' | 'devtools_page' | 'manifest_version' | 'options_page' | 'options_ui' | 'sandbox'>> & {
750
+ export type UserManifest = {
751
+ [key in keyof chrome.runtime.ManifestV3 as key extends 'action' | 'background' | 'chrome_url_overrides' | 'devtools_page' | 'manifest_version' | 'options_page' | 'options_ui' | 'permissions' | 'sandbox' | 'web_accessible_resources' ? never : key]?: chrome.runtime.ManifestV3[key];
752
+ } & {
751
753
  action?: chrome.runtime.ManifestV3['action'] & {
752
754
  browser_style?: boolean;
753
755
  };
@@ -773,6 +775,8 @@ export type UserManifest = Partial<Omit<chrome.runtime.ManifestV3, 'action' | 'b
773
775
  strict_max_version?: string;
774
776
  };
775
777
  };
778
+ permissions?: (chrome.runtime.ManifestPermissions | (string & Record<never, never>))[];
779
+ web_accessible_resources?: string[] | chrome.runtime.ManifestV3['web_accessible_resources'];
776
780
  };
777
781
  export type UserManifestFn = (env: ConfigEnv) => UserManifest | Promise<UserManifest>;
778
782
  export interface ConfigEnv {
@@ -856,7 +860,7 @@ export interface ExtensionRunnerConfig {
856
860
  * }
857
861
  * }
858
862
  */
859
- chromiumPref?: string;
863
+ chromiumPref?: Record<string, any>;
860
864
  /**
861
865
  * By default, chrome opens a random port for debugging. Set this value to use a specific port.
862
866
  */
@@ -1152,6 +1156,25 @@ export interface ResolvedConfig {
1152
1156
  server?: {
1153
1157
  port: number;
1154
1158
  hostname: string;
1159
+ /**
1160
+ * The milliseconds to debounce when a file is saved before reloading.
1161
+ * The only way to set this option is to set the `WXT_WATCH_DEBOUNCE`
1162
+ * environment variable, either globally (like in `.bashrc` file) or
1163
+ * per-project (in `.env` file).
1164
+ *
1165
+ * For example:
1166
+ * ```
1167
+ * # ~/.zshrc
1168
+ * export WXT_WATCH_DEBOUNCE=1000
1169
+ * ```
1170
+ * or
1171
+ * ```
1172
+ * # .env
1173
+ * WXT_WATCH_DEBOUNCE=1000
1174
+ * ```
1175
+ * @default 800
1176
+ */
1177
+ watchDebounce: number;
1155
1178
  };
1156
1179
  reloadCommand: string | false;
1157
1180
  };
package/dist/version.mjs CHANGED
@@ -1 +1 @@
1
- export const version = "0.19.9";
1
+ export const version = "0.19.10";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.19.9",
4
+ "version": "0.19.10",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -70,8 +70,8 @@
70
70
  }
71
71
  },
72
72
  "dependencies": {
73
- "@types/chrome": "^0.0.269",
74
73
  "@aklinker1/rollup-plugin-visualizer": "5.12.0",
74
+ "@types/chrome": "^0.0.269",
75
75
  "@types/webextension-polyfill": "^0.10.7",
76
76
  "@webext-core/fake-browser": "^1.3.1",
77
77
  "@webext-core/isolated-element": "^1.1.2",
@@ -84,6 +84,7 @@
84
84
  "consola": "^3.2.3",
85
85
  "defu": "^6.1.4",
86
86
  "dequal": "^2.0.3",
87
+ "dotenv": "^16.4.5",
87
88
  "esbuild": "^0.23.0",
88
89
  "execa": "^9.3.1",
89
90
  "fast-glob": "^3.3.2",
@@ -105,6 +106,7 @@
105
106
  "ohash": "^1.1.3",
106
107
  "open": "^10.1.0",
107
108
  "ora": "^8.1.0",
109
+ "perfect-debounce": "^1.0.0",
108
110
  "picocolors": "^1.0.1",
109
111
  "prompts": "^2.4.2",
110
112
  "publish-browser-extension": "^2.1.3",