Compare commits

..

7 Commits

Author SHA1 Message Date
github-actions[bot] f32cdafdf6 chore(release): @wxt-dev/analytics v0.5.2
📼 VHS / Create VHS (push) Cancelled after 0s
2026-02-12 21:08:03 +00:00
Honwhy Wang 2e2272d07a fix: Allow custom API URL in Google Analytics 4 provider options (#1653)
Co-authored-by: Patryk Kuniczak <p.kuniczak@gmail.com>
2026-02-12 13:34:05 -06:00
github-actions[bot] 27ffff7e0a chore(release): wxt v0.20.16
📼 VHS / Create VHS (push) Cancelled after 0s
2026-02-12 19:16:33 +00:00
Aaron 305cebe0d0 fix: Revert "rename name to names prop of rollup to fix deprecated warning (#2106)"
This reverts commit 9470d2b696.
2026-02-12 13:11:36 -06:00
Aaron 4602a068f8 Update contributor in changelog 2026-02-12 13:06:06 -06:00
Aaron 3a947d72c6 chore: Include doc updates in wxt changelog 2026-02-12 13:03:58 -06:00
Aaron 1940e3530f chore: Speed up E2E tests by skipping pnpm install when possible (#2113) 2026-02-11 12:24:36 -06:00
14 changed files with 82 additions and 22 deletions
+27
View File
@@ -1,5 +1,32 @@
# Changelog
## v0.5.2
[compare changes](https://github.com/wxt-dev/wxt/compare/analytics-v0.5.1...analytics-v0.5.2)
### 🩹 Fixes
- Normalize path for createAnalytics of analytics/index.ts ([#2013](https://github.com/wxt-dev/wxt/pull/2013))
- Allow custom API URL in Google Analytics 4 provider options ([#1653](https://github.com/wxt-dev/wxt/pull/1653))
### 💅 Refactors
- Code cleanup in analytics package ([#2084](https://github.com/wxt-dev/wxt/pull/2084))
### 🏡 Chore
- Fix other type error after `chrome` types update ([31ebf966](https://github.com/wxt-dev/wxt/commit/31ebf966))
- Upgrade dev and non-major prod dependencies ([#2000](https://github.com/wxt-dev/wxt/pull/2000))
- Use `tsdown` to build packages ([#2006](https://github.com/wxt-dev/wxt/pull/2006))
- Move script-only dev dependencies to top-level `package.json` ([#2007](https://github.com/wxt-dev/wxt/pull/2007))
- Update dependencies ([#2069](https://github.com/wxt-dev/wxt/pull/2069))
### ❤️ Contributors
- Honwhy Wang <honwhy.wang@gmail.com>
- Aaron ([@aklinker1](https://github.com/aklinker1))
- Patryk Kuniczak ([@PatrykKuniczak](https://github.com/PatrykKuniczak))
## v0.5.1
[compare changes](https://github.com/wxt-dev/wxt/compare/analytics-v0.5.0...analytics-v0.5.1)
@@ -4,6 +4,7 @@ import type { BaseAnalyticsEvent } from '../types';
const DEFAULT_ENGAGEMENT_TIME_IN_MSEC = 100;
export interface GoogleAnalytics4ProviderOptions {
apiUrl?: string;
apiSecret: string;
measurementId: string;
}
@@ -18,7 +19,7 @@ export const googleAnalytics4 =
): Promise<void> => {
const url = new URL(
config?.debug ? '/debug/mp/collect' : '/mp/collect',
'https://www.google-analytics.com',
options.apiUrl ?? 'https://www.google-analytics.com',
);
if (options.apiSecret)
url.searchParams.set('api_secret', options.apiSecret);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@wxt-dev/analytics",
"version": "0.5.1",
"version": "0.5.2",
"description": "Add analytics to your web extension",
"repository": {
"type": "git",
+17 -1
View File
@@ -1,5 +1,21 @@
# Changelog
## v0.20.16
[compare changes](https://github.com/wxt-dev/wxt/compare/wxt-v0.20.15...wxt-v0.20.16)
### 🩹 Fixes
- Revert "rename `name` to `names` prop of `rollup` to fix deprecated warning " ([#2106](https://github.com/wxt-dev/wxt/pull/2106))
### 🏡 Chore
- Speed up E2E tests by skipping `pnpm install` when possible ([#2113](https://github.com/wxt-dev/wxt/pull/2113))
### ❤️ Contributors
- Aaron ([@aklinker1](https://github.com/aklinker1))
## v0.20.15
[compare changes](https://github.com/wxt-dev/wxt/compare/wxt-v0.20.14...wxt-v0.20.15)
@@ -78,7 +94,7 @@
- Dareka ([@darekadareka](https://github.com/darekadareka))
- Mark ([@mjfaga](https://github.com/mjfaga))
- Ariasuni <aria@ariasuni.eu>
- ariasuni ([@ariasuni](https://github.com/ariasuni))
- Aaron ([@aklinker1](https://github.com/aklinker1))
- Patryk Kuniczak ([@PatrykKuniczak](https://github.com/PatrykKuniczak))
- Bohuslavsemenov ([@bohuslavsemenov](https://github.com/bohuslavsemenov))
+19 -6
View File
@@ -1,7 +1,8 @@
import { dirname, relative, resolve } from 'path';
import fs, { mkdir } from 'fs-extra';
import glob from 'fast-glob';
import fs, { mkdir } from 'fs-extra';
import merge from 'lodash.merge';
import spawn from 'nano-spawn';
import { dirname, relative, resolve } from 'path';
import {
InlineConfig,
UserConfig,
@@ -11,7 +12,6 @@ import {
zip,
} from '../src';
import { normalizePath } from '../src/core/utils';
import merge from 'lodash.merge';
// Run "pnpm wxt" to use the "wxt" dev script, not the "wxt" binary from the
// wxt package. This uses the TS files instead of the compiled JS package
@@ -24,6 +24,7 @@ export class TestProject {
files: Array<[string, string]> = [];
config: UserConfig | undefined;
readonly root: string;
readonly hasCustomDependencies: boolean;
constructor(packageJson: any = {}) {
// We can't put each test's project inside e2e/dist directly, otherwise the wxt.config.ts
@@ -31,6 +32,13 @@ export class TestProject {
// end to make each test's path unique.
const id = Math.random().toString(32).substring(3);
this.root = resolve(E2E_DIR, 'dist', id);
this.hasCustomDependencies =
Object.keys({
...packageJson.dependencies,
...packageJson.devDependencies,
}).length > 0;
this.files.push([
'package.json',
JSON.stringify(
@@ -119,9 +127,14 @@ export class TestProject {
await fs.writeFile(filePath, content ?? '', 'utf-8');
}
await spawn('pnpm', ['--ignore-workspace', 'i', '--ignore-scripts'], {
cwd: this.root,
});
// Only install dependencies if the project has custom ones - otherwise the
// project will reuse the ones in `packages/wxt/node_modules`!
if (this.hasCustomDependencies) {
await spawn('pnpm', ['--ignore-workspace', 'i', '--ignore-scripts'], {
cwd: this.root,
});
}
await mkdir(resolve(this.root, 'public'), { recursive: true }).catch(
() => {},
);
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "wxt",
"type": "module",
"version": "0.20.15",
"version": "0.20.16",
"description": "⚡ Next-gen Web Extension Framework",
"license": "MIT",
"scripts": {
+2 -2
View File
@@ -146,10 +146,10 @@ export async function createViteBuilder(
),
// Output content script CSS to `content-scripts/`, but all other scripts are written to
// `assets/`.
assetFileNames: ({ names }) => {
assetFileNames: ({ name }) => {
if (
entrypoint.type === 'content-script' &&
names[0].endsWith('css')
name?.endsWith('css')
) {
return `content-scripts/${entrypoint.name}.[ext]`;
} else {
+4 -3
View File
@@ -5,11 +5,11 @@ import {
parseChangelogMarkdown,
parseCommits,
} from 'changelogen';
import spawn from 'nano-spawn';
import { getPkgTag, grabPackageDetails, listCommitsInDir } from './git';
import { consola } from 'consola';
import fs from 'fs-extra';
import spawn from 'nano-spawn';
import path from 'node:path';
import { getPkgTag, grabPackageDetails, listCommitsInDir } from './git';
const pkg = process.argv[2];
if (!pkg) {
@@ -24,7 +24,8 @@ consola.info('Bumping:', { pkg, pkgDir, pkgName, currentVersion });
// Get commits
const config = await loadChangelogConfig(process.cwd());
consola.info('Config:', config);
const rawCommits = await listCommitsInDir(pkgDir, prevTag);
const additionalDirs = pkg === 'wxt' ? ['docs'] : [];
const rawCommits = await listCommitsInDir(pkgDir, prevTag, additionalDirs);
const commits = parseCommits(rawCommits, config);
// Bump version
+4 -2
View File
@@ -25,15 +25,17 @@ export function getPkgTag(pkg: string, version: string | undefined) {
export async function listCommitsInDir(
dir: string,
lastTag: string,
additionalDirs: string[] = [],
): Promise<RawGitCommit[]> {
consola.info('Listing commits:', { lastTag, dir });
const allDirs = [dir, ...additionalDirs];
consola.info('Listing commits:', { lastTag, dirs: allDirs });
const commits = await getGitDiff(lastTag);
consola.info('All commits:', commits.length);
consola.debug(commits);
// commit.body contains all the files that were modified/added. So just check to make sure "\t" + "packages/storage" + "/" is in the body to include
// '"\n\nM\tpackages/wxt/vitest.config.ts\n"'
const filtered = commits.filter((commit) =>
commit.body.includes(`\t${dir}/`),
allDirs.some((dir) => commit.body.includes(`\t${dir}/`)),
);
consola.info('Filtered:', filtered.length);
consola.debug(filtered);
+1 -1
View File
@@ -23,6 +23,6 @@
"@types/react-dom": "^19.2.3",
"@wxt-dev/module-react": "^1.1.5",
"typescript": "^5.9.3",
"wxt": "^0.20.15"
"wxt": "^0.20.16"
}
}
+1 -1
View File
@@ -20,6 +20,6 @@
"devDependencies": {
"@wxt-dev/module-solid": "^1.1.4",
"typescript": "^5.9.3",
"wxt": "^0.20.15"
"wxt": "^0.20.16"
}
}
+1 -1
View File
@@ -21,6 +21,6 @@
"svelte-check": "^4.3.6",
"tslib": "^2.8.1",
"typescript": "^5.9.3",
"wxt": "^0.20.15"
"wxt": "^0.20.16"
}
}
+1 -1
View File
@@ -16,6 +16,6 @@
},
"devDependencies": {
"typescript": "^5.9.3",
"wxt": "^0.20.15"
"wxt": "^0.20.16"
}
}
+1 -1
View File
@@ -21,6 +21,6 @@
"@wxt-dev/module-vue": "^1.0.3",
"typescript": "^5.9.3",
"vue-tsc": "^3.2.4",
"wxt": "^0.20.15"
"wxt": "^0.20.16"
}
}