wxt 0.18.0 → 0.18.2

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.
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-VBXJIVYU.js";
13
13
 
14
14
  // package.json
15
- var version = "0.17.12";
15
+ var version = "0.18.1";
16
16
 
17
17
  // src/core/utils/paths.ts
18
18
  import systemPath from "node:path";
@@ -2373,6 +2373,7 @@ function addEntrypoints(manifest, entrypoints, buildOutput) {
2373
2373
  manifest.side_panel = {
2374
2374
  default_path: page
2375
2375
  };
2376
+ addPermission(manifest, "sidePanel");
2376
2377
  } else {
2377
2378
  wxt.logger.warn(
2378
2379
  "Side panel not supported by Chromium using MV2. side_panel.default_path was not added to the manifest"
package/dist/cli.js CHANGED
@@ -2515,7 +2515,7 @@ function getChunkSortWeight(filename) {
2515
2515
  import pc4 from "picocolors";
2516
2516
 
2517
2517
  // package.json
2518
- var version = "0.17.12";
2518
+ var version = "0.18.1";
2519
2519
 
2520
2520
  // src/core/utils/log/printHeader.ts
2521
2521
  function printHeader() {
@@ -2881,6 +2881,7 @@ function addEntrypoints(manifest, entrypoints, buildOutput) {
2881
2881
  manifest.side_panel = {
2882
2882
  default_path: page
2883
2883
  };
2884
+ addPermission(manifest, "sidePanel");
2884
2885
  } else {
2885
2886
  wxt.logger.warn(
2886
2887
  "Side panel not supported by Chromium using MV2. side_panel.default_path was not added to the manifest"
@@ -3429,6 +3430,7 @@ function createWebExtRunner() {
3429
3430
  console: wxtUserConfig?.openConsole,
3430
3431
  devtools: wxtUserConfig?.openDevtools,
3431
3432
  startUrl: wxtUserConfig?.startUrls,
3433
+ keepProfileChanges: wxtUserConfig?.keepProfileChanges,
3432
3434
  ...wxt.config.browser === "firefox" ? {
3433
3435
  firefox: wxtUserConfig?.binaries?.firefox,
3434
3436
  firefoxProfile: wxtUserConfig?.firefoxProfile,
@@ -926,6 +926,10 @@ interface ExtensionRunnerConfig {
926
926
  * @see https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#start-url
927
927
  */
928
928
  startUrls?: string[];
929
+ /**
930
+ * @see https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#keep-profile-changes
931
+ */
932
+ keepProfileChanges?: boolean;
929
933
  }
930
934
  interface WxtBuilder {
931
935
  /**
@@ -926,6 +926,10 @@ interface ExtensionRunnerConfig {
926
926
  * @see https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#start-url
927
927
  */
928
928
  startUrls?: string[];
929
+ /**
930
+ * @see https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#keep-profile-changes
931
+ */
932
+ keepProfileChanges?: boolean;
929
933
  }
930
934
  interface WxtBuilder {
931
935
  /**
package/dist/index.cjs CHANGED
@@ -6805,7 +6805,7 @@ function getChunkSortWeight(filename) {
6805
6805
  var import_picocolors4 = __toESM(require("picocolors"), 1);
6806
6806
 
6807
6807
  // package.json
6808
- var version = "0.17.12";
6808
+ var version = "0.18.1";
6809
6809
 
6810
6810
  // src/core/utils/building/internal-build.ts
6811
6811
  var import_fast_glob3 = __toESM(require("fast-glob"), 1);
@@ -7165,6 +7165,7 @@ function addEntrypoints(manifest, entrypoints, buildOutput) {
7165
7165
  manifest.side_panel = {
7166
7166
  default_path: page
7167
7167
  };
7168
+ addPermission(manifest, "sidePanel");
7168
7169
  } else {
7169
7170
  wxt.logger.warn(
7170
7171
  "Side panel not supported by Chromium using MV2. side_panel.default_path was not added to the manifest"
@@ -7723,6 +7724,7 @@ function createWebExtRunner() {
7723
7724
  console: wxtUserConfig?.openConsole,
7724
7725
  devtools: wxtUserConfig?.openDevtools,
7725
7726
  startUrl: wxtUserConfig?.startUrls,
7727
+ keepProfileChanges: wxtUserConfig?.keepProfileChanges,
7726
7728
  ...wxt.config.browser === "firefox" ? {
7727
7729
  firefox: wxtUserConfig?.binaries?.firefox,
7728
7730
  firefoxProfile: wxtUserConfig?.firefoxProfile,
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './index-DKN-8I90.cjs';
2
- export { x as BackgroundDefinition, n as BackgroundEntrypoint, i as BackgroundEntrypointOptions, j as BaseContentScriptEntrypointOptions, m as BaseEntrypoint, h as BaseEntrypointOptions, e as BuildStepOutput, J as ConfigEnv, w as ContentScriptDefinition, C as ContentScriptEntrypoint, a5 as Dependency, r as Entrypoint, s as EntrypointGroup, $ as EslintGlobalsPropValue, a0 as Eslintrc, _ as ExtensionRunner, Z as FsCache, G as GenericEntrypoint, X as HookResult, u as IsolatedWorldContentScriptDefinition, k as IsolatedWorldContentScriptEntrypointOptions, L as Logger, v as MainWorldContentScriptDefinition, M as MainWorldContentScriptEntrypointOptions, t as OnContentScriptStopped, p as OptionsEntrypoint, l as OptionsEntrypointOptions, d as OutputAsset, c as OutputChunk, O as OutputFile, A as PerBrowserMap, z as PerBrowserOption, o as PopupEntrypoint, P as PopupEntrypointOptions, f as ReloadContentScriptPayload, R as ResolvedConfig, a1 as ResolvedEslintrc, D as ResolvedPerBrowserOptions, V as ServerInfo, q as SidepanelEntrypoint, S as SidepanelEntrypointOptions, T as TargetBrowser, g as TargetManifestVersion, y as UnlistedScriptDefinition, F as UserManifest, H as UserManifestFn, Y as Wxt, N as WxtBuilder, Q as WxtBuilderServer, K as WxtCommand, b as WxtHooks, a4 as WxtPackageManager, a3 as WxtResolvedUnimportOptions, a2 as WxtUnimportOptions, a as WxtViteConfig } from './index-DKN-8I90.cjs';
1
+ import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './index-xOGXP3vY.cjs';
2
+ export { x as BackgroundDefinition, n as BackgroundEntrypoint, i as BackgroundEntrypointOptions, j as BaseContentScriptEntrypointOptions, m as BaseEntrypoint, h as BaseEntrypointOptions, e as BuildStepOutput, J as ConfigEnv, w as ContentScriptDefinition, C as ContentScriptEntrypoint, a5 as Dependency, r as Entrypoint, s as EntrypointGroup, $ as EslintGlobalsPropValue, a0 as Eslintrc, _ as ExtensionRunner, Z as FsCache, G as GenericEntrypoint, X as HookResult, u as IsolatedWorldContentScriptDefinition, k as IsolatedWorldContentScriptEntrypointOptions, L as Logger, v as MainWorldContentScriptDefinition, M as MainWorldContentScriptEntrypointOptions, t as OnContentScriptStopped, p as OptionsEntrypoint, l as OptionsEntrypointOptions, d as OutputAsset, c as OutputChunk, O as OutputFile, A as PerBrowserMap, z as PerBrowserOption, o as PopupEntrypoint, P as PopupEntrypointOptions, f as ReloadContentScriptPayload, R as ResolvedConfig, a1 as ResolvedEslintrc, D as ResolvedPerBrowserOptions, V as ServerInfo, q as SidepanelEntrypoint, S as SidepanelEntrypointOptions, T as TargetBrowser, g as TargetManifestVersion, y as UnlistedScriptDefinition, F as UserManifest, H as UserManifestFn, Y as Wxt, N as WxtBuilder, Q as WxtBuilderServer, K as WxtCommand, b as WxtHooks, a4 as WxtPackageManager, a3 as WxtResolvedUnimportOptions, a2 as WxtUnimportOptions, a as WxtViteConfig } from './index-xOGXP3vY.cjs';
3
3
  import 'vite';
4
4
  import 'webextension-polyfill';
5
5
  import 'unimport';
@@ -65,6 +65,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
65
65
  */
66
66
  declare function zip(config?: InlineConfig): Promise<string[]>;
67
67
 
68
- var version = "0.17.12";
68
+ var version = "0.18.1";
69
69
 
70
70
  export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './index-DKN-8I90.js';
2
- export { x as BackgroundDefinition, n as BackgroundEntrypoint, i as BackgroundEntrypointOptions, j as BaseContentScriptEntrypointOptions, m as BaseEntrypoint, h as BaseEntrypointOptions, e as BuildStepOutput, J as ConfigEnv, w as ContentScriptDefinition, C as ContentScriptEntrypoint, a5 as Dependency, r as Entrypoint, s as EntrypointGroup, $ as EslintGlobalsPropValue, a0 as Eslintrc, _ as ExtensionRunner, Z as FsCache, G as GenericEntrypoint, X as HookResult, u as IsolatedWorldContentScriptDefinition, k as IsolatedWorldContentScriptEntrypointOptions, L as Logger, v as MainWorldContentScriptDefinition, M as MainWorldContentScriptEntrypointOptions, t as OnContentScriptStopped, p as OptionsEntrypoint, l as OptionsEntrypointOptions, d as OutputAsset, c as OutputChunk, O as OutputFile, A as PerBrowserMap, z as PerBrowserOption, o as PopupEntrypoint, P as PopupEntrypointOptions, f as ReloadContentScriptPayload, R as ResolvedConfig, a1 as ResolvedEslintrc, D as ResolvedPerBrowserOptions, V as ServerInfo, q as SidepanelEntrypoint, S as SidepanelEntrypointOptions, T as TargetBrowser, g as TargetManifestVersion, y as UnlistedScriptDefinition, F as UserManifest, H as UserManifestFn, Y as Wxt, N as WxtBuilder, Q as WxtBuilderServer, K as WxtCommand, b as WxtHooks, a4 as WxtPackageManager, a3 as WxtResolvedUnimportOptions, a2 as WxtUnimportOptions, a as WxtViteConfig } from './index-DKN-8I90.js';
1
+ import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './index-xOGXP3vY.js';
2
+ export { x as BackgroundDefinition, n as BackgroundEntrypoint, i as BackgroundEntrypointOptions, j as BaseContentScriptEntrypointOptions, m as BaseEntrypoint, h as BaseEntrypointOptions, e as BuildStepOutput, J as ConfigEnv, w as ContentScriptDefinition, C as ContentScriptEntrypoint, a5 as Dependency, r as Entrypoint, s as EntrypointGroup, $ as EslintGlobalsPropValue, a0 as Eslintrc, _ as ExtensionRunner, Z as FsCache, G as GenericEntrypoint, X as HookResult, u as IsolatedWorldContentScriptDefinition, k as IsolatedWorldContentScriptEntrypointOptions, L as Logger, v as MainWorldContentScriptDefinition, M as MainWorldContentScriptEntrypointOptions, t as OnContentScriptStopped, p as OptionsEntrypoint, l as OptionsEntrypointOptions, d as OutputAsset, c as OutputChunk, O as OutputFile, A as PerBrowserMap, z as PerBrowserOption, o as PopupEntrypoint, P as PopupEntrypointOptions, f as ReloadContentScriptPayload, R as ResolvedConfig, a1 as ResolvedEslintrc, D as ResolvedPerBrowserOptions, V as ServerInfo, q as SidepanelEntrypoint, S as SidepanelEntrypointOptions, T as TargetBrowser, g as TargetManifestVersion, y as UnlistedScriptDefinition, F as UserManifest, H as UserManifestFn, Y as Wxt, N as WxtBuilder, Q as WxtBuilderServer, K as WxtCommand, b as WxtHooks, a4 as WxtPackageManager, a3 as WxtResolvedUnimportOptions, a2 as WxtUnimportOptions, a as WxtViteConfig } from './index-xOGXP3vY.js';
3
3
  import 'vite';
4
4
  import 'webextension-polyfill';
5
5
  import 'unimport';
@@ -65,6 +65,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
65
65
  */
66
66
  declare function zip(config?: InlineConfig): Promise<string[]>;
67
67
 
68
- var version = "0.17.12";
68
+ var version = "0.18.1";
69
69
 
70
70
  export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  unnormalizePath,
20
20
  version,
21
21
  wxt
22
- } from "./chunk-A7YRDAFI.js";
22
+ } from "./chunk-7EUSM4KG.js";
23
23
  import "./chunk-5X3S6AWF.js";
24
24
  import {
25
25
  consola
@@ -117,6 +117,7 @@ function createWebExtRunner() {
117
117
  console: wxtUserConfig?.openConsole,
118
118
  devtools: wxtUserConfig?.openDevtools,
119
119
  startUrl: wxtUserConfig?.startUrls,
120
+ keepProfileChanges: wxtUserConfig?.keepProfileChanges,
120
121
  ...wxt.config.browser === "firefox" ? {
121
122
  firefox: wxtUserConfig?.binaries?.firefox,
122
123
  firefoxProfile: wxtUserConfig?.firefoxProfile,
@@ -1,6 +1,6 @@
1
1
  export { FakeBrowser, fakeBrowser } from '@webext-core/fake-browser';
2
2
  import * as vite from 'vite';
3
- import { I as InlineConfig } from './index-DKN-8I90.cjs';
3
+ import { I as InlineConfig } from './index-xOGXP3vY.cjs';
4
4
  import 'webextension-polyfill';
5
5
  import 'unimport';
6
6
  import 'consola';
package/dist/testing.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { FakeBrowser, fakeBrowser } from '@webext-core/fake-browser';
2
2
  import * as vite from 'vite';
3
- import { I as InlineConfig } from './index-DKN-8I90.js';
3
+ import { I as InlineConfig } from './index-xOGXP3vY.js';
4
4
  import 'webextension-polyfill';
5
5
  import 'unimport';
6
6
  import 'consola';
package/dist/testing.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  tsconfigPaths,
6
6
  unimport,
7
7
  webextensionPolyfillMock
8
- } from "./chunk-A7YRDAFI.js";
8
+ } from "./chunk-7EUSM4KG.js";
9
9
  import "./chunk-5X3S6AWF.js";
10
10
  import "./chunk-ZZCTFNQ5.js";
11
11
  import "./chunk-VBXJIVYU.js";
@@ -154,9 +154,10 @@ if (import.meta.env.COMMAND === "serve") {
154
154
  }
155
155
  });
156
156
  }
157
+ var result;
157
158
  try {
158
- const res = definition.main();
159
- if (res instanceof Promise) {
159
+ result = definition.main();
160
+ if (result instanceof Promise) {
160
161
  console.warn(
161
162
  "The background's main() function return a promise, but it must be synchronous"
162
163
  );
@@ -165,3 +166,7 @@ try {
165
166
  logger.error("The background crashed on startup!");
166
167
  throw err;
167
168
  }
169
+ var background_entrypoint_default = result;
170
+ export {
171
+ background_entrypoint_default as default
172
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.18.0",
4
+ "version": "0.18.2",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -139,6 +139,11 @@
139
139
  "tsx": "^4.6.2",
140
140
  "typescript": "^5.3.2"
141
141
  },
142
+ "changelog": {
143
+ "excludeAuthors": [
144
+ "aaronklinker1@gmail.com"
145
+ ]
146
+ },
142
147
  "scripts": {
143
148
  "wxt": "tsx src/cli/index.ts",
144
149
  "build": "tsx scripts/build.ts",
@@ -147,6 +152,6 @@
147
152
  "check:tsc-virtual": "tsc --noEmit -p src/virtual",
148
153
  "test": "vitest",
149
154
  "test:e2e": "vitest -r e2e",
150
- "test:e2e:2": "vitest --config e2e/vitest.config.ts"
155
+ "sync-releases": "pnpx changelogen@latest gh release"
151
156
  }
152
157
  }