From 60963553b8ed19a060dcba7a3cdfb5eccbb9a329 Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Mon, 17 Nov 2025 12:10:39 +0100 Subject: [PATCH 01/12] add rollup playground --- playground/.pnpmfile.cjs | 5 +--- playground/nextjs/pnpm-workspace.yaml | 2 +- playground/react-nextjs/pnpm-workspace.yaml | 2 +- playground/rollup/.gitignore | 3 ++ playground/rollup/package.json | 14 ++++++++++ playground/rollup/pnpm-workspace.yaml | 1 + playground/rollup/rollup.config.mjs | 31 +++++++++++++++++++++ playground/rollup/src/index.ts | 5 ++++ playground/rollup/tsconfig.json | 10 +++++++ 9 files changed, 67 insertions(+), 6 deletions(-) create mode 100644 playground/rollup/.gitignore create mode 100644 playground/rollup/package.json create mode 100644 playground/rollup/pnpm-workspace.yaml create mode 100644 playground/rollup/rollup.config.mjs create mode 100644 playground/rollup/src/index.ts create mode 100644 playground/rollup/tsconfig.json diff --git a/playground/.pnpmfile.cjs b/playground/.pnpmfile.cjs index c3d1d25a45..b71f3bdf11 100644 --- a/playground/.pnpmfile.cjs +++ b/playground/.pnpmfile.cjs @@ -25,11 +25,8 @@ module.exports = { }, updateConfig(config) { return Object.assign(config, { - lockfile: false, packages: ['.'], - preferFrozenLockfile: false, - verifyDepsBeforeRun: true, - nodeLinker: 'hoisted', + nodeLinker: 'pnp', }) }, }, diff --git a/playground/nextjs/pnpm-workspace.yaml b/playground/nextjs/pnpm-workspace.yaml index 911b6433b0..b8bb22ff7f 100644 --- a/playground/nextjs/pnpm-workspace.yaml +++ b/playground/nextjs/pnpm-workspace.yaml @@ -1 +1 @@ -# this file is intentionally empty, so that running `pnpm install` in this directory doesn't install dependencies for the workspace at the repo root \ No newline at end of file +pnpmfile: ../.pnpmfile.cjs diff --git a/playground/react-nextjs/pnpm-workspace.yaml b/playground/react-nextjs/pnpm-workspace.yaml index 911b6433b0..b8bb22ff7f 100644 --- a/playground/react-nextjs/pnpm-workspace.yaml +++ b/playground/react-nextjs/pnpm-workspace.yaml @@ -1 +1 @@ -# this file is intentionally empty, so that running `pnpm install` in this directory doesn't install dependencies for the workspace at the repo root \ No newline at end of file +pnpmfile: ../.pnpmfile.cjs diff --git a/playground/rollup/.gitignore b/playground/rollup/.gitignore new file mode 100644 index 0000000000..3045a20699 --- /dev/null +++ b/playground/rollup/.gitignore @@ -0,0 +1,3 @@ +pnpm-lock.yaml +dist +node_modules diff --git a/playground/rollup/package.json b/playground/rollup/package.json new file mode 100644 index 0000000000..7bb7acd5e3 --- /dev/null +++ b/playground/rollup/package.json @@ -0,0 +1,14 @@ +{ + "name": "@posthog-playground/rollup", + "version": "1.0.0", + "type": "module", + "scripts": { + "build": "rollup -c" + }, + "dependencies": { + "@posthog/rollup-plugin": "file:../../target/posthog-rollup-plugin.tgz" + }, + "devDependencies": { + "rollup": "4.53.2" + } +} diff --git a/playground/rollup/pnpm-workspace.yaml b/playground/rollup/pnpm-workspace.yaml new file mode 100644 index 0000000000..b8bb22ff7f --- /dev/null +++ b/playground/rollup/pnpm-workspace.yaml @@ -0,0 +1 @@ +pnpmfile: ../.pnpmfile.cjs diff --git a/playground/rollup/rollup.config.mjs b/playground/rollup/rollup.config.mjs new file mode 100644 index 0000000000..06cadff85d --- /dev/null +++ b/playground/rollup/rollup.config.mjs @@ -0,0 +1,31 @@ +import posthog from '@posthog/rollup-plugin' + +export default { + input: './src/index.ts', + output: [ + { + format: 'es', + dir: 'dist/esm', + }, + { + format: 'cjs', + dir: 'dist/cjs', + }, + { + format: 'iife', + file: 'dist/index.iife.js', + }, + ], + plugins: [ + posthog({ + personalApiKey: process.env.POSTHOG_PERSONAL_API_KEY, + envId: process.env.POSTHOG_API_PROJECT, + host: process.env.POSTHOG_API_HOST, + cliBinaryPath: process.env.POSTHOG_CLI_BINARY_PATH, + sourcemap: { + project: 'my-project', + version: '1.0.0', + }, + }), + ], +} diff --git a/playground/rollup/src/index.ts b/playground/rollup/src/index.ts new file mode 100644 index 0000000000..56d6629088 --- /dev/null +++ b/playground/rollup/src/index.ts @@ -0,0 +1,5 @@ +export default function main() { + throw new Error('Error from rollup playground !') +} + +main() diff --git a/playground/rollup/tsconfig.json b/playground/rollup/tsconfig.json new file mode 100644 index 0000000000..2510f5543f --- /dev/null +++ b/playground/rollup/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "target": "ES2024", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "declaration": true, + "emitDeclarationOnly": true, + "allowImportingTsExtensions": true + } +} From 3747fa77edd2f6fed13b0fd42297ffa497b38ac0 Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Mon, 17 Nov 2025 12:11:31 +0100 Subject: [PATCH 02/12] add rollup plugin package --- .eslintrc.cjs | 1 + examples/example-nextjs/next.config.ts | 1 + packages/core/src/process/index.ts | 2 + packages/nextjs-config/src/config.ts | 4 +- packages/rollup-plugin/package.json | 35 ++ packages/rollup-plugin/rslib.config.mjs | 8 + packages/rollup-plugin/src/index.ts | 139 +++++++ packages/rollup-plugin/tsconfig.json | 15 + pnpm-lock.yaml | 467 +++++++++++------------- pnpm-workspace.yaml | 10 +- 10 files changed, 428 insertions(+), 254 deletions(-) create mode 100644 packages/rollup-plugin/package.json create mode 100644 packages/rollup-plugin/rslib.config.mjs create mode 100644 packages/rollup-plugin/src/index.ts create mode 100644 packages/rollup-plugin/tsconfig.json diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 4d3a245e00..b38a37a618 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -72,6 +72,7 @@ module.exports = { 'packages/react-native/**', 'packages/node/**', 'packages/web/**', + 'packages/rollup-plugin/**', 'examples/**', 'playground/**', ], diff --git a/examples/example-nextjs/next.config.ts b/examples/example-nextjs/next.config.ts index 7c3dc0d2d5..51e90c20af 100644 --- a/examples/example-nextjs/next.config.ts +++ b/examples/example-nextjs/next.config.ts @@ -9,6 +9,7 @@ export default withPostHogConfig(nextConfig, { personalApiKey: process.env.POSTHOG_PERSONAL_API_KEY!, envId: process.env.POSTHOG_API_PROJECT!, host: process.env.NEXT_PUBLIC_POSTHOG_API_HOST!, + cliBinaryPath: process.env.POSTHOG_CLI_PATH, // Optional logLevel: 'debug', sourcemaps: { project: 'example-nextjs', diff --git a/packages/core/src/process/index.ts b/packages/core/src/process/index.ts index 33c1e7e661..57623528c4 100644 --- a/packages/core/src/process/index.ts +++ b/packages/core/src/process/index.ts @@ -1,2 +1,4 @@ export * from './spawn-local' export { resolveBinaryPath } from './utils' + +export type LogLevel = 'debug' | 'info' | 'warn' | 'error' diff --git a/packages/nextjs-config/src/config.ts b/packages/nextjs-config/src/config.ts index e807de24c7..9c519af236 100644 --- a/packages/nextjs-config/src/config.ts +++ b/packages/nextjs-config/src/config.ts @@ -1,14 +1,12 @@ import type { NextConfig } from 'next' import { SourcemapWebpackPlugin } from './webpack-plugin' import { hasCompilerHook, isTurbopackEnabled, processSourceMaps } from './utils' -import { resolveBinaryPath } from '@posthog/core/process' +import { resolveBinaryPath, LogLevel } from '@posthog/core/process' type NextFuncConfig = (phase: string, { defaultConfig }: { defaultConfig: NextConfig }) => NextConfig type NextAsyncConfig = (phase: string, { defaultConfig }: { defaultConfig: NextConfig }) => Promise type UserProvidedConfig = NextConfig | NextFuncConfig | NextAsyncConfig -type LogLevel = 'debug' | 'info' | 'warn' | 'error' - export type PostHogNextConfig = { cliBinaryPath?: string personalApiKey: string diff --git a/packages/rollup-plugin/package.json b/packages/rollup-plugin/package.json new file mode 100644 index 0000000000..2546acbac5 --- /dev/null +++ b/packages/rollup-plugin/package.json @@ -0,0 +1,35 @@ +{ + "name": "@posthog/rollup-plugin", + "version": "1.0.0", + "description": "PostHog Rollup plugin", + "type": "module", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "scripts": { + "build": "rslib build", + "clean": "rimraf dist", + "lint": "eslint src", + "lint:fix": "eslint src --fix", + "test:unit": "jest --passWithNoTests", + "dev": "rslib build --watch", + "package": "pnpm pack --out $PACKAGE_DEST/%s.tgz" + }, + "files": [ + "src", + "dist" + ], + "dependencies": { + "@posthog/cli": "catalog:", + "@posthog/core": "workspace:*", + "magic-string": "^0.30.21", + "uuid": "^11.1.0" + }, + "peerDependencies": { + "rollup": ">= 4.0.0" + }, + "devDependencies": { + "@posthog-tooling/tsconfig-base": "workspace:*", + "@rslib/core": "catalog:", + "rollup": "~4.53.2" + } +} diff --git a/packages/rollup-plugin/rslib.config.mjs b/packages/rollup-plugin/rslib.config.mjs new file mode 100644 index 0000000000..d236b4233f --- /dev/null +++ b/packages/rollup-plugin/rslib.config.mjs @@ -0,0 +1,8 @@ +import { defineConfig } from '@rslib/core' + +export default defineConfig({ + dts: true, + bundle: false, + syntax: 'es6', + lib: [{ format: 'esm' }], +}) diff --git a/packages/rollup-plugin/src/index.ts b/packages/rollup-plugin/src/index.ts new file mode 100644 index 0000000000..053e27172e --- /dev/null +++ b/packages/rollup-plugin/src/index.ts @@ -0,0 +1,139 @@ +import MagicString from 'magic-string' +import { v5 as uuidv5 } from 'uuid' +import type { Plugin, OutputOptions, OutputAsset, OutputChunk } from 'rollup' +import crypto from 'node:crypto' +import { spawnLocal, resolveBinaryPath, LogLevel } from '@posthog/core/process' +import path from 'node:path' + +export type PostHogRollupPluginOptions = { + personalApiKey: string + envId: string + host?: string + cliBinaryPath?: string + logLevel?: LogLevel + sourcemaps: { + enabled?: boolean + project?: string + version?: string + deleteAfterUpload?: boolean + } +} + +export default function posthogRollupPlugin(userOptions: PostHogRollupPluginOptions) { + const posthogOptions = resolveOptions(userOptions) + return { + name: 'posthog-inject-chunk-ids', + outputOptions: { + order: 'post', + handler(options) { + return { + ...options, + sourcemap: true, + } + }, + }, + renderChunk(code, chunk) { + if (isJavascriptFile(chunk.fileName)) { + const chunkId = generateChunkId(code) + const codeToInject = getChunkIdSnippet(chunkId) + const magicCode = new MagicString(code) + // TODO: Inject after use directives + magicCode.prepend(codeToInject) + magicCode.append(`\n//# chunkId=${chunkId}\n`) + return { + code: magicCode.toString(), + map: magicCode.generateMap({ file: chunk.fileName, hires: 'boundary' }), + } + } else { + return null + } + }, + async writeBundle(options: OutputOptions, bundle: { [fileName: string]: OutputAsset | OutputChunk }) { + const args = ['sourcemap', 'upload'] + const cliPath = posthogOptions.cliBinaryPath + if (options.dir) { + const directory = path.resolve(options.dir) + args.push('--directory', directory) + for (const chunk of Object.values(bundle)) { + if (chunk.type === 'chunk') { + args.push('--include', chunk.fileName) + } + } + } else if (options.file) { + const filePath = path.resolve(options.file) + const parentDirectory = path.dirname(filePath) + args.push('--directory', parentDirectory) + args.push('--include', filePath) + } + if (posthogOptions.sourcemaps.deleteAfterUpload) { + args.push('--delete-after') + } + await spawnLocal(cliPath, args, { + env: { + ...process.env, + POSTHOG_CLI_HOST: posthogOptions.host, + POSTHOG_CLI_TOKEN: posthogOptions.personalApiKey, + POSTHOG_CLI_ENV_ID: posthogOptions.envId, + }, + stdio: 'inherit', + cwd: process.cwd(), + }) + }, + } as Plugin +} + +function isJavascriptFile(fileName: string) { + return ['.js', '.mjs', '.cjs'].some((ext) => fileName.endsWith(ext)) +} + +function getChunkIdSnippet(chunkId: string) { + return `;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="${chunkId}")}catch(e){}}();\n` +} + +const debugIdNamespace = '4ed1c858-f40e-4b92-b3ff-541d185bb87f' +function generateChunkId(code: string) { + const hash = crypto.createHash('sha256').update(code).digest('hex') + return uuidv5(hash, debugIdNamespace) +} + +type ResolvedPostHogRollupPluginOptions = { + personalApiKey: string + envId: string + host: string + cliBinaryPath: string + logLevel: LogLevel + sourcemaps: { + enabled: boolean + project?: string + version?: string + deleteAfterUpload: boolean + } +} + +function resolveOptions(userOptions: PostHogRollupPluginOptions): ResolvedPostHogRollupPluginOptions { + if (!userOptions.envId) { + throw new Error('envId is required') + } else if (!userOptions.personalApiKey) { + throw new Error('personalApiKey is required') + } + const userSourcemaps = userOptions.sourcemaps ?? { + enabled: false, + } + const posthogOptions: ResolvedPostHogRollupPluginOptions = { + host: userOptions.host || 'https://us.i.posthog.com', + personalApiKey: userOptions.personalApiKey, + envId: userOptions.envId, + cliBinaryPath: + userOptions.cliBinaryPath ?? + resolveBinaryPath('posthog-cli', { + path: process.env.PATH ?? '', + cwd: process.cwd(), + }), + logLevel: userOptions.logLevel ?? 'info', + sourcemaps: { + enabled: userSourcemaps.enabled ?? false, + deleteAfterUpload: userSourcemaps.deleteAfterUpload ?? true, + }, + } + return posthogOptions +} diff --git a/packages/rollup-plugin/tsconfig.json b/packages/rollup-plugin/tsconfig.json new file mode 100644 index 0000000000..188ae31f82 --- /dev/null +++ b/packages/rollup-plugin/tsconfig.json @@ -0,0 +1,15 @@ +{ + "extends": "@posthog-tooling/tsconfig-base", + "compilerOptions": { + "incremental": false, + "rootDir": "./src", + "baseUrl": "./src", + "target": "ES6", + "module": "node16", + "moduleResolution": "node16", + "skipLibCheck": true, + "declaration": true, + "declarationMap": true, + "lib": ["DOM"] + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ca3ce513be..62f34d2990 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,10 +7,10 @@ settings: catalogs: default: '@posthog/cli': - specifier: ~0.5.8 - version: 0.5.8 + specifier: ~0.5.9 + version: 0.5.11 '@rslib/core': - specifier: ^0.10.5 + specifier: 0.10.6 version: 0.10.6 jest: specifier: ^29.7.0 @@ -417,7 +417,7 @@ importers: dependencies: '@posthog/cli': specifier: 'catalog:' - version: 0.5.8 + version: 0.5.11 '@posthog/core': specifier: workspace:* version: link:../core @@ -476,7 +476,7 @@ importers: version: 4.1.3(magicast@0.3.5) '@posthog/cli': specifier: 'catalog:' - version: 0.5.8 + version: 0.5.11 '@posthog/core': specifier: workspace:* version: link:../core @@ -507,7 +507,7 @@ importers: version: 9.37.0(jiti@2.6.1) nuxt: specifier: ^4.1.2 - version: 4.1.3(@parcel/watcher@2.5.1)(@types/node@20.19.9)(@vue/compiler-sfc@3.5.22)(db0@0.3.4)(eslint@9.37.0(jiti@2.6.1))(ioredis@5.8.1)(magicast@0.3.5)(rollup@4.50.0)(terser@5.27.0)(typescript@5.8.2)(vite@7.1.9(@types/node@20.19.9)(jiti@2.6.1)(terser@5.27.0)(yaml@2.8.0))(yaml@2.8.0) + version: 4.1.3(@parcel/watcher@2.5.1)(@types/node@20.19.9)(@vue/compiler-sfc@3.5.22)(db0@0.3.4)(eslint@9.37.0(jiti@2.6.1))(ioredis@5.8.1)(magicast@0.3.5)(rollup@4.53.2)(terser@5.27.0)(typescript@5.8.2)(vite@7.1.9(@types/node@20.19.9)(jiti@2.6.1)(terser@5.27.0)(yaml@2.8.0))(yaml@2.8.0) packages/react: devDependencies: @@ -657,6 +657,31 @@ importers: specifier: 'catalog:' version: 5.8.2 + packages/rollup: + dependencies: + '@posthog/cli': + specifier: 'catalog:' + version: 0.5.11 + '@posthog/core': + specifier: workspace:* + version: link:../core + magic-string: + specifier: ^0.30.21 + version: 0.30.21 + uuid: + specifier: ^11.1.0 + version: 11.1.0 + devDependencies: + '@posthog-tooling/tsconfig-base': + specifier: workspace:* + version: link:../../tooling/tsconfig-base + '@rslib/core': + specifier: 'catalog:' + version: 0.10.6(@microsoft/api-extractor@7.52.8(@types/node@22.17.0))(typescript@5.8.2) + rollup: + specifier: ~4.53.2 + version: 4.53.2 + packages/web: dependencies: '@posthog/core': @@ -2026,7 +2051,7 @@ packages: '@expo/bunyan@4.0.1': resolution: {integrity: sha512-+Lla7nYSiHZirgK+U/uYzsLv/X+HaJienbD5AKX1UQZHYfWaP+9uuQluRB4GrEVWF0GZ7vEVp/jzaOT9k/SQlg==} - engines: {'0': node >=0.10.0} + engines: {node: '>=0.10.0'} '@expo/cli@0.1.7': resolution: {integrity: sha512-F81fPthpT7QtVu1P7QeZMezGn0tCcalCh3ANIzWBaQZNG4vly7mo2dp3PMGzNdmXq6yt93bJ4HbfS+0/NpKl7g==} @@ -2602,9 +2627,6 @@ packages: '@jridgewell/source-map@0.3.5': resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==} - '@jridgewell/sourcemap-codec@1.5.0': - resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} - '@jridgewell/sourcemap-codec@1.5.5': resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} @@ -3257,8 +3279,8 @@ packages: '@poppinss/exception@1.2.2': resolution: {integrity: sha512-m7bpKCD4QMlFCjA/nKTs23fuvoVFoA83brRKmObCUNmi/9tVu8Ve3w4YQAnJu4q3Tjf5fr685HYIC/IA2zHRSg==} - '@posthog/cli@0.5.8': - resolution: {integrity: sha512-CO+Rl5J29W9jN0bnsr9Ugl/vhMNl17o9i7EC3hSMGf0Dizi2FqNP7hTh9nZTxWs6lOR+XhIXotiakmXF0HE19A==} + '@posthog/cli@0.5.11': + resolution: {integrity: sha512-dd8KDlYgA7rw089X8s4tzI7yfo91Db43tbzWHAzA828/HYR8ALp+1BQjYKdRXlYnt2ihzvtZWtWkcedSUPgjLA==} engines: {node: '>=14', npm: '>=6'} hasBin: true @@ -3507,8 +3529,8 @@ packages: cpu: [arm] os: [android] - '@rollup/rollup-android-arm-eabi@4.52.4': - resolution: {integrity: sha512-BTm2qKNnWIQ5auf4deoetINJm2JzvihvGb9R6K/ETwKLql/Bb3Eg2H1FBp1gUb4YGbydMA3jcmQTR73q7J+GAA==} + '@rollup/rollup-android-arm-eabi@4.53.2': + resolution: {integrity: sha512-yDPzwsgiFO26RJA4nZo8I+xqzh7sJTZIWQOxn+/XOdPE31lAvLIYCKqjV+lNH/vxE2L2iH3plKxDCRK6i+CwhA==} cpu: [arm] os: [android] @@ -3517,8 +3539,8 @@ packages: cpu: [arm64] os: [android] - '@rollup/rollup-android-arm64@4.52.4': - resolution: {integrity: sha512-P9LDQiC5vpgGFgz7GSM6dKPCiqR3XYN1WwJKA4/BUVDjHpYsf3iBEmVz62uyq20NGYbiGPR5cNHI7T1HqxNs2w==} + '@rollup/rollup-android-arm64@4.53.2': + resolution: {integrity: sha512-k8FontTxIE7b0/OGKeSN5B6j25EuppBcWM33Z19JoVT7UTXFSo3D9CdU39wGTeb29NO3XxpMNauh09B+Ibw+9g==} cpu: [arm64] os: [android] @@ -3527,8 +3549,8 @@ packages: cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-arm64@4.52.4': - resolution: {integrity: sha512-QRWSW+bVccAvZF6cbNZBJwAehmvG9NwfWHwMy4GbWi/BQIA/laTIktebT2ipVjNncqE6GLPxOok5hsECgAxGZg==} + '@rollup/rollup-darwin-arm64@4.53.2': + resolution: {integrity: sha512-A6s4gJpomNBtJ2yioj8bflM2oogDwzUiMl2yNJ2v9E7++sHrSrsQ29fOfn5DM/iCzpWcebNYEdXpaK4tr2RhfQ==} cpu: [arm64] os: [darwin] @@ -3537,8 +3559,8 @@ packages: cpu: [x64] os: [darwin] - '@rollup/rollup-darwin-x64@4.52.4': - resolution: {integrity: sha512-hZgP05pResAkRJxL1b+7yxCnXPGsXU0fG9Yfd6dUaoGk+FhdPKCJ5L1Sumyxn8kvw8Qi5PvQ8ulenUbRjzeCTw==} + '@rollup/rollup-darwin-x64@4.53.2': + resolution: {integrity: sha512-e6XqVmXlHrBlG56obu9gDRPW3O3hLxpwHpLsBJvuI8qqnsrtSZ9ERoWUXtPOkY8c78WghyPHZdmPhHLWNdAGEw==} cpu: [x64] os: [darwin] @@ -3547,8 +3569,8 @@ packages: cpu: [arm64] os: [freebsd] - '@rollup/rollup-freebsd-arm64@4.52.4': - resolution: {integrity: sha512-xmc30VshuBNUd58Xk4TKAEcRZHaXlV+tCxIXELiE9sQuK3kG8ZFgSPi57UBJt8/ogfhAF5Oz4ZSUBN77weM+mQ==} + '@rollup/rollup-freebsd-arm64@4.53.2': + resolution: {integrity: sha512-v0E9lJW8VsrwPux5Qe5CwmH/CF/2mQs6xU1MF3nmUxmZUCHazCjLgYvToOk+YuuUqLQBio1qkkREhxhc656ViA==} cpu: [arm64] os: [freebsd] @@ -3557,8 +3579,8 @@ packages: cpu: [x64] os: [freebsd] - '@rollup/rollup-freebsd-x64@4.52.4': - resolution: {integrity: sha512-WdSLpZFjOEqNZGmHflxyifolwAiZmDQzuOzIq9L27ButpCVpD7KzTRtEG1I0wMPFyiyUdOO+4t8GvrnBLQSwpw==} + '@rollup/rollup-freebsd-x64@4.53.2': + resolution: {integrity: sha512-ClAmAPx3ZCHtp6ysl4XEhWU69GUB1D+s7G9YjHGhIGCSrsg00nEGRRZHmINYxkdoJehde8VIsDC5t9C0gb6yqA==} cpu: [x64] os: [freebsd] @@ -3567,8 +3589,8 @@ packages: cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-gnueabihf@4.52.4': - resolution: {integrity: sha512-xRiOu9Of1FZ4SxVbB0iEDXc4ddIcjCv2aj03dmW8UrZIW7aIQ9jVJdLBIhxBI+MaTnGAKyvMwPwQnoOEvP7FgQ==} + '@rollup/rollup-linux-arm-gnueabihf@4.53.2': + resolution: {integrity: sha512-EPlb95nUsz6Dd9Qy13fI5kUPXNSljaG9FiJ4YUGU1O/Q77i5DYFW5KR8g1OzTcdZUqQQ1KdDqsTohdFVwCwjqg==} cpu: [arm] os: [linux] @@ -3577,8 +3599,8 @@ packages: cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.52.4': - resolution: {integrity: sha512-FbhM2p9TJAmEIEhIgzR4soUcsW49e9veAQCziwbR+XWB2zqJ12b4i/+hel9yLiD8pLncDH4fKIPIbt5238341Q==} + '@rollup/rollup-linux-arm-musleabihf@4.53.2': + resolution: {integrity: sha512-BOmnVW+khAUX+YZvNfa0tGTEMVVEerOxN0pDk2E6N6DsEIa2Ctj48FOMfNDdrwinocKaC7YXUZ1pHlKpnkja/Q==} cpu: [arm] os: [linux] @@ -3587,8 +3609,8 @@ packages: cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.52.4': - resolution: {integrity: sha512-4n4gVwhPHR9q/g8lKCyz0yuaD0MvDf7dV4f9tHt0C73Mp8h38UCtSCSE6R9iBlTbXlmA8CjpsZoujhszefqueg==} + '@rollup/rollup-linux-arm64-gnu@4.53.2': + resolution: {integrity: sha512-Xt2byDZ+6OVNuREgBXr4+CZDJtrVso5woFtpKdGPhpTPHcNG7D8YXeQzpNbFRxzTVqJf7kvPMCub/pcGUWgBjA==} cpu: [arm64] os: [linux] @@ -3597,13 +3619,13 @@ packages: cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.52.4': - resolution: {integrity: sha512-u0n17nGA0nvi/11gcZKsjkLj1QIpAuPFQbR48Subo7SmZJnGxDpspyw2kbpuoQnyK+9pwf3pAoEXerJs/8Mi9g==} + '@rollup/rollup-linux-arm64-musl@4.53.2': + resolution: {integrity: sha512-+LdZSldy/I9N8+klim/Y1HsKbJ3BbInHav5qE9Iy77dtHC/pibw1SR/fXlWyAk0ThnpRKoODwnAuSjqxFRDHUQ==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-loong64-gnu@4.52.4': - resolution: {integrity: sha512-0G2c2lpYtbTuXo8KEJkDkClE/+/2AFPdPAbmaHoE870foRFs4pBrDehilMcrSScrN/fB/1HTaWO4bqw+ewBzMQ==} + '@rollup/rollup-linux-loong64-gnu@4.53.2': + resolution: {integrity: sha512-8ms8sjmyc1jWJS6WdNSA23rEfdjWB30LH8Wqj0Cqvv7qSHnvw6kgMMXRdop6hkmGPlyYBdRPkjJnj3KCUHV/uQ==} cpu: [loong64] os: [linux] @@ -3617,8 +3639,8 @@ packages: cpu: [ppc64] os: [linux] - '@rollup/rollup-linux-ppc64-gnu@4.52.4': - resolution: {integrity: sha512-teSACug1GyZHmPDv14VNbvZFX779UqWTsd7KtTM9JIZRDI5NUwYSIS30kzI8m06gOPB//jtpqlhmraQ68b5X2g==} + '@rollup/rollup-linux-ppc64-gnu@4.53.2': + resolution: {integrity: sha512-3HRQLUQbpBDMmzoxPJYd3W6vrVHOo2cVW8RUo87Xz0JPJcBLBr5kZ1pGcQAhdZgX9VV7NbGNipah1omKKe23/g==} cpu: [ppc64] os: [linux] @@ -3627,8 +3649,8 @@ packages: cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.52.4': - resolution: {integrity: sha512-/MOEW3aHjjs1p4Pw1Xk4+3egRevx8Ji9N6HUIA1Ifh8Q+cg9dremvFCUbOX2Zebz80BwJIgCBUemjqhU5XI5Eg==} + '@rollup/rollup-linux-riscv64-gnu@4.53.2': + resolution: {integrity: sha512-fMjKi+ojnmIvhk34gZP94vjogXNNUKMEYs+EDaB/5TG/wUkoeua7p7VCHnE6T2Tx+iaghAqQX8teQzcvrYpaQA==} cpu: [riscv64] os: [linux] @@ -3637,8 +3659,8 @@ packages: cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-riscv64-musl@4.52.4': - resolution: {integrity: sha512-1HHmsRyh845QDpEWzOFtMCph5Ts+9+yllCrREuBR/vg2RogAQGGBRC8lDPrPOMnrdOJ+mt1WLMOC2Kao/UwcvA==} + '@rollup/rollup-linux-riscv64-musl@4.53.2': + resolution: {integrity: sha512-XuGFGU+VwUUV5kLvoAdi0Wz5Xbh2SrjIxCtZj6Wq8MDp4bflb/+ThZsVxokM7n0pcbkEr2h5/pzqzDYI7cCgLQ==} cpu: [riscv64] os: [linux] @@ -3647,8 +3669,8 @@ packages: cpu: [s390x] os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.52.4': - resolution: {integrity: sha512-seoeZp4L/6D1MUyjWkOMRU6/iLmCU2EjbMTyAG4oIOs1/I82Y5lTeaxW0KBfkUdHAWN7j25bpkt0rjnOgAcQcA==} + '@rollup/rollup-linux-s390x-gnu@4.53.2': + resolution: {integrity: sha512-w6yjZF0P+NGzWR3AXWX9zc0DNEGdtvykB03uhonSHMRa+oWA6novflo2WaJr6JZakG2ucsyb+rvhrKac6NIy+w==} cpu: [s390x] os: [linux] @@ -3657,8 +3679,8 @@ packages: cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.52.4': - resolution: {integrity: sha512-Wi6AXf0k0L7E2gteNsNHUs7UMwCIhsCTs6+tqQ5GPwVRWMaflqGec4Sd8n6+FNFDw9vGcReqk2KzBDhCa1DLYg==} + '@rollup/rollup-linux-x64-gnu@4.53.2': + resolution: {integrity: sha512-yo8d6tdfdeBArzC7T/PnHd7OypfI9cbuZzPnzLJIyKYFhAQ8SvlkKtKBMbXDxe1h03Rcr7u++nFS7tqXz87Gtw==} cpu: [x64] os: [linux] @@ -3667,8 +3689,8 @@ packages: cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.52.4': - resolution: {integrity: sha512-dtBZYjDmCQ9hW+WgEkaffvRRCKm767wWhxsFW3Lw86VXz/uJRuD438/XvbZT//B96Vs8oTA8Q4A0AfHbrxP9zw==} + '@rollup/rollup-linux-x64-musl@4.53.2': + resolution: {integrity: sha512-ah59c1YkCxKExPP8O9PwOvs+XRLKwh/mV+3YdKqQ5AMQ0r4M4ZDuOrpWkUaqO7fzAHdINzV9tEVu8vNw48z0lA==} cpu: [x64] os: [linux] @@ -3677,8 +3699,8 @@ packages: cpu: [arm64] os: [openharmony] - '@rollup/rollup-openharmony-arm64@4.52.4': - resolution: {integrity: sha512-1ox+GqgRWqaB1RnyZXL8PD6E5f7YyRUJYnCqKpNzxzP0TkaUh112NDrR9Tt+C8rJ4x5G9Mk8PQR3o7Ku2RKqKA==} + '@rollup/rollup-openharmony-arm64@4.53.2': + resolution: {integrity: sha512-4VEd19Wmhr+Zy7hbUsFZ6YXEiP48hE//KPLCSVNY5RMGX2/7HZ+QkN55a3atM1C/BZCGIgqN+xrVgtdak2S9+A==} cpu: [arm64] os: [openharmony] @@ -3687,8 +3709,8 @@ packages: cpu: [arm64] os: [win32] - '@rollup/rollup-win32-arm64-msvc@4.52.4': - resolution: {integrity: sha512-8GKr640PdFNXwzIE0IrkMWUNUomILLkfeHjXBi/nUvFlpZP+FA8BKGKpacjW6OUUHaNI6sUURxR2U2g78FOHWQ==} + '@rollup/rollup-win32-arm64-msvc@4.53.2': + resolution: {integrity: sha512-IlbHFYc/pQCgew/d5fslcy1KEaYVCJ44G8pajugd8VoOEI8ODhtb/j8XMhLpwHCMB3yk2J07ctup10gpw2nyMA==} cpu: [arm64] os: [win32] @@ -3697,13 +3719,13 @@ packages: cpu: [ia32] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.52.4': - resolution: {integrity: sha512-AIy/jdJ7WtJ/F6EcfOb2GjR9UweO0n43jNObQMb6oGxkYTfLcnN7vYYpG+CN3lLxrQkzWnMOoNSHTW54pgbVxw==} + '@rollup/rollup-win32-ia32-msvc@4.53.2': + resolution: {integrity: sha512-lNlPEGgdUfSzdCWU176ku/dQRnA7W+Gp8d+cWv73jYrb8uT7HTVVxq62DUYxjbaByuf1Yk0RIIAbDzp+CnOTFg==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-gnu@4.52.4': - resolution: {integrity: sha512-UF9KfsH9yEam0UjTwAgdK0anlQ7c8/pWPU2yVjyWcF1I1thABt6WXE47cI71pGiZ8wGvxohBoLnxM04L/wj8mQ==} + '@rollup/rollup-win32-x64-gnu@4.53.2': + resolution: {integrity: sha512-S6YojNVrHybQis2lYov1sd+uj7K0Q05NxHcGktuMMdIQ2VixGwAfbJ23NnlvvVV1bdpR2m5MsNBViHJKcA4ADw==} cpu: [x64] os: [win32] @@ -3712,8 +3734,8 @@ packages: cpu: [x64] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.52.4': - resolution: {integrity: sha512-bf9PtUa0u8IXDVxzRToFQKsNCRz9qLYfR/MpECxl4mRoWYjAeFjgxj1XdZr2M/GNVpT05p+LgQOHopYDlUu6/w==} + '@rollup/rollup-win32-x64-msvc@4.53.2': + resolution: {integrity: sha512-k+/Rkcyx//P6fetPoLMb8pBeqJBNGx81uuf7iljX9++yNBVRDQgD04L+SVXmXmh5ZP4/WOp4mWF0kmi06PW2tA==} cpu: [x64] os: [win32] @@ -6844,14 +6866,6 @@ packages: picomatch: optional: true - fdir@6.4.6: - resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==} - peerDependencies: - picomatch: ^3 || ^4 - peerDependenciesMeta: - picomatch: - optional: true - fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -8458,10 +8472,6 @@ packages: resolution: {integrity: sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==} hasBin: true - jiti@2.4.2: - resolution: {integrity: sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==} - hasBin: true - jiti@2.6.1: resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==} hasBin: true @@ -8905,15 +8915,12 @@ packages: magic-string@0.25.9: resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} - magic-string@0.30.12: - resolution: {integrity: sha512-Ea8I3sQMVXr8JhN4z+H/d8zwo+tYDgHE9+5G4Wnrwhs0gaK9fXTKx0Tw5Xwsd/bCPTTZNRAdpyzvoeORe9LYpw==} - - magic-string@0.30.17: - resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==} - magic-string@0.30.19: resolution: {integrity: sha512-2N21sPY9Ws53PZvsEpVtNuSW+ScYbQdp4b9qUaL+9QkHUrGFKo56Lg9Emg5s9V/qrtNBmiR01sYhUOwu3H+VOw==} + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + magicast@0.3.5: resolution: {integrity: sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==} @@ -11140,8 +11147,8 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true - rollup@4.52.4: - resolution: {integrity: sha512-CLEVl+MnPAiKh5pl4dEWSyMTpuflgNQiLGhMv8ezD5W/qP8AKvmYpCOKRRNOh7oRKnauBZ4SyeYkMS+1VSyKwQ==} + rollup@4.53.2: + resolution: {integrity: sha512-MHngMYwGJVi6Fmnk6ISmnk7JAHRNF0UkuucA0CUW3N3a4KnONPEZz+vUanQP/ZC/iY1Qkf3bwPWzyY84wEks1g==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -11989,10 +11996,6 @@ packages: tinyexec@1.0.1: resolution: {integrity: sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw==} - tinyglobby@0.2.14: - resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==} - engines: {node: '>=12.0.0'} - tinyglobby@0.2.15: resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} engines: {node: '>=12.0.0'} @@ -15870,17 +15873,17 @@ snapshots: '@jridgewell/gen-mapping@0.1.1': dependencies: '@jridgewell/set-array': 1.2.1 - '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/sourcemap-codec': 1.5.5 '@jridgewell/gen-mapping@0.3.13': dependencies: - '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/sourcemap-codec': 1.5.5 '@jridgewell/trace-mapping': 0.3.29 '@jridgewell/gen-mapping@0.3.5': dependencies: '@jridgewell/set-array': 1.2.1 - '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/sourcemap-codec': 1.5.5 '@jridgewell/trace-mapping': 0.3.29 '@jridgewell/remapping@2.3.5': @@ -15897,24 +15900,22 @@ snapshots: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - '@jridgewell/sourcemap-codec@1.5.0': {} - '@jridgewell/sourcemap-codec@1.5.5': {} '@jridgewell/trace-mapping@0.3.25': dependencies: '@jridgewell/resolve-uri': 3.1.1 - '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/sourcemap-codec': 1.5.5 '@jridgewell/trace-mapping@0.3.29': dependencies: '@jridgewell/resolve-uri': 3.1.1 - '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/sourcemap-codec': 1.5.5 '@jridgewell/trace-mapping@0.3.9': dependencies: '@jridgewell/resolve-uri': 3.1.1 - '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/sourcemap-codec': 1.5.5 '@kwsites/file-exists@1.1.1': dependencies: @@ -16442,10 +16443,10 @@ snapshots: transitivePeerDependencies: - magicast - '@nuxt/vite-builder@4.1.3(@types/node@20.19.9)(eslint@9.37.0(jiti@2.6.1))(magicast@0.3.5)(rollup@4.50.0)(terser@5.27.0)(typescript@5.8.2)(vue@3.5.22(typescript@5.8.2))(yaml@2.8.0)': + '@nuxt/vite-builder@4.1.3(@types/node@20.19.9)(eslint@9.37.0(jiti@2.6.1))(magicast@0.3.5)(rollup@4.53.2)(terser@5.27.0)(typescript@5.8.2)(vue@3.5.22(typescript@5.8.2))(yaml@2.8.0)': dependencies: '@nuxt/kit': 4.1.3(magicast@0.3.5) - '@rollup/plugin-replace': 6.0.2(rollup@4.50.0) + '@rollup/plugin-replace': 6.0.2(rollup@4.53.2) '@vitejs/plugin-vue': 6.0.1(vite@7.1.9(@types/node@20.19.9)(jiti@2.6.1)(terser@5.27.0)(yaml@2.8.0))(vue@3.5.22(typescript@5.8.2)) '@vitejs/plugin-vue-jsx': 5.1.1(vite@7.1.9(@types/node@20.19.9)(jiti@2.6.1)(terser@5.27.0)(yaml@2.8.0))(vue@3.5.22(typescript@5.8.2)) autoprefixer: 10.4.21(postcss@8.5.6) @@ -16465,7 +16466,7 @@ snapshots: pathe: 2.0.3 pkg-types: 2.3.0 postcss: 8.5.6 - rollup-plugin-visualizer: 6.0.4(rollup@4.50.0) + rollup-plugin-visualizer: 6.0.4(rollup@4.53.2) std-env: 3.9.0 ufo: 1.6.1 unenv: 2.0.0-rc.21 @@ -16734,7 +16735,7 @@ snapshots: '@poppinss/exception@1.2.2': {} - '@posthog/cli@0.5.8': + '@posthog/cli@0.5.11': dependencies: axios: 1.12.2 axios-proxy-builder: 0.1.2 @@ -17053,13 +17054,9 @@ snapshots: '@rolldown/pluginutils@1.0.0-beta.42': {} - '@rollup/plugin-alias@5.1.1(rollup@4.50.0)': - optionalDependencies: - rollup: 4.50.0 - - '@rollup/plugin-alias@5.1.1(rollup@4.52.4)': + '@rollup/plugin-alias@5.1.1(rollup@4.53.2)': optionalDependencies: - rollup: 4.52.4 + rollup: 4.53.2 '@rollup/plugin-babel@6.0.4(@babel/core@7.27.1)(@types/babel__core@7.1.18)(rollup@4.50.0)': dependencies: @@ -17079,22 +17076,22 @@ snapshots: estree-walker: 2.0.2 fdir: 6.4.2(picomatch@4.0.2) is-reference: 1.2.1 - magic-string: 0.30.12 + magic-string: 0.30.19 picomatch: 4.0.2 optionalDependencies: rollup: 4.50.0 - '@rollup/plugin-commonjs@28.0.6(rollup@4.52.4)': + '@rollup/plugin-commonjs@28.0.6(rollup@4.53.2)': dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.52.4) + '@rollup/pluginutils': 5.1.0(rollup@4.53.2) commondir: 1.0.1 estree-walker: 2.0.2 fdir: 6.4.2(picomatch@4.0.2) is-reference: 1.2.1 - magic-string: 0.30.12 + magic-string: 0.30.19 picomatch: 4.0.2 optionalDependencies: - rollup: 4.52.4 + rollup: 4.53.2 '@rollup/plugin-inject@4.0.4(rollup@2.79.2)': dependencies: @@ -17103,13 +17100,13 @@ snapshots: magic-string: 0.25.9 rollup: 2.79.2 - '@rollup/plugin-inject@5.0.5(rollup@4.52.4)': + '@rollup/plugin-inject@5.0.5(rollup@4.53.2)': dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.52.4) + '@rollup/pluginutils': 5.1.0(rollup@4.53.2) estree-walker: 2.0.2 magic-string: 0.30.19 optionalDependencies: - rollup: 4.52.4 + rollup: 4.53.2 '@rollup/plugin-json@6.1.0(rollup@4.50.0)': dependencies: @@ -17117,11 +17114,11 @@ snapshots: optionalDependencies: rollup: 4.50.0 - '@rollup/plugin-json@6.1.0(rollup@4.52.4)': + '@rollup/plugin-json@6.1.0(rollup@4.53.2)': dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.52.4) + '@rollup/pluginutils': 5.1.0(rollup@4.53.2) optionalDependencies: - rollup: 4.52.4 + rollup: 4.53.2 '@rollup/plugin-node-resolve@16.0.1(rollup@4.50.0)': dependencies: @@ -17133,15 +17130,15 @@ snapshots: optionalDependencies: rollup: 4.50.0 - '@rollup/plugin-node-resolve@16.0.1(rollup@4.52.4)': + '@rollup/plugin-node-resolve@16.0.1(rollup@4.53.2)': dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.52.4) + '@rollup/pluginutils': 5.1.0(rollup@4.53.2) '@types/resolve': 1.20.2 deepmerge: 4.2.2 is-module: 1.0.0 resolve: 1.22.8 optionalDependencies: - rollup: 4.52.4 + rollup: 4.53.2 '@rollup/plugin-replace@2.4.2(rollup@2.79.2)': dependencies: @@ -17149,19 +17146,12 @@ snapshots: magic-string: 0.25.9 rollup: 2.79.2 - '@rollup/plugin-replace@6.0.2(rollup@4.50.0)': + '@rollup/plugin-replace@6.0.2(rollup@4.53.2)': dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.50.0) + '@rollup/pluginutils': 5.1.0(rollup@4.53.2) magic-string: 0.30.19 optionalDependencies: - rollup: 4.50.0 - - '@rollup/plugin-replace@6.0.2(rollup@4.52.4)': - dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.52.4) - magic-string: 0.30.19 - optionalDependencies: - rollup: 4.52.4 + rollup: 4.53.2 '@rollup/plugin-terser@0.4.4(rollup@4.50.0)': dependencies: @@ -17171,13 +17161,13 @@ snapshots: optionalDependencies: rollup: 4.50.0 - '@rollup/plugin-terser@0.4.4(rollup@4.52.4)': + '@rollup/plugin-terser@0.4.4(rollup@4.53.2)': dependencies: serialize-javascript: 6.0.1 smob: 1.4.1 terser: 5.27.0 optionalDependencies: - rollup: 4.52.4 + rollup: 4.53.2 '@rollup/plugin-typescript@12.1.4(rollup@4.50.0)(tslib@2.8.1)(typescript@5.8.2)': dependencies: @@ -17203,91 +17193,83 @@ snapshots: optionalDependencies: rollup: 4.50.0 - '@rollup/pluginutils@5.1.0(rollup@4.52.4)': + '@rollup/pluginutils@5.1.0(rollup@4.53.2)': dependencies: '@types/estree': 1.0.8 estree-walker: 2.0.2 picomatch: 2.3.1 optionalDependencies: - rollup: 4.52.4 + rollup: 4.53.2 - '@rollup/pluginutils@5.3.0(rollup@4.50.0)': + '@rollup/pluginutils@5.3.0(rollup@4.53.2)': dependencies: '@types/estree': 1.0.8 estree-walker: 2.0.2 - picomatch: 4.0.2 - optionalDependencies: - rollup: 4.50.0 - - '@rollup/pluginutils@5.3.0(rollup@4.52.4)': - dependencies: - '@types/estree': 1.0.8 - estree-walker: 2.0.2 - picomatch: 4.0.2 + picomatch: 4.0.3 optionalDependencies: - rollup: 4.52.4 + rollup: 4.53.2 '@rollup/rollup-android-arm-eabi@4.50.0': optional: true - '@rollup/rollup-android-arm-eabi@4.52.4': + '@rollup/rollup-android-arm-eabi@4.53.2': optional: true '@rollup/rollup-android-arm64@4.50.0': optional: true - '@rollup/rollup-android-arm64@4.52.4': + '@rollup/rollup-android-arm64@4.53.2': optional: true '@rollup/rollup-darwin-arm64@4.50.0': optional: true - '@rollup/rollup-darwin-arm64@4.52.4': + '@rollup/rollup-darwin-arm64@4.53.2': optional: true '@rollup/rollup-darwin-x64@4.50.0': optional: true - '@rollup/rollup-darwin-x64@4.52.4': + '@rollup/rollup-darwin-x64@4.53.2': optional: true '@rollup/rollup-freebsd-arm64@4.50.0': optional: true - '@rollup/rollup-freebsd-arm64@4.52.4': + '@rollup/rollup-freebsd-arm64@4.53.2': optional: true '@rollup/rollup-freebsd-x64@4.50.0': optional: true - '@rollup/rollup-freebsd-x64@4.52.4': + '@rollup/rollup-freebsd-x64@4.53.2': optional: true '@rollup/rollup-linux-arm-gnueabihf@4.50.0': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.52.4': + '@rollup/rollup-linux-arm-gnueabihf@4.53.2': optional: true '@rollup/rollup-linux-arm-musleabihf@4.50.0': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.52.4': + '@rollup/rollup-linux-arm-musleabihf@4.53.2': optional: true '@rollup/rollup-linux-arm64-gnu@4.50.0': optional: true - '@rollup/rollup-linux-arm64-gnu@4.52.4': + '@rollup/rollup-linux-arm64-gnu@4.53.2': optional: true '@rollup/rollup-linux-arm64-musl@4.50.0': optional: true - '@rollup/rollup-linux-arm64-musl@4.52.4': + '@rollup/rollup-linux-arm64-musl@4.53.2': optional: true - '@rollup/rollup-linux-loong64-gnu@4.52.4': + '@rollup/rollup-linux-loong64-gnu@4.53.2': optional: true '@rollup/rollup-linux-loongarch64-gnu@4.50.0': @@ -17296,64 +17278,64 @@ snapshots: '@rollup/rollup-linux-ppc64-gnu@4.50.0': optional: true - '@rollup/rollup-linux-ppc64-gnu@4.52.4': + '@rollup/rollup-linux-ppc64-gnu@4.53.2': optional: true '@rollup/rollup-linux-riscv64-gnu@4.50.0': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.52.4': + '@rollup/rollup-linux-riscv64-gnu@4.53.2': optional: true '@rollup/rollup-linux-riscv64-musl@4.50.0': optional: true - '@rollup/rollup-linux-riscv64-musl@4.52.4': + '@rollup/rollup-linux-riscv64-musl@4.53.2': optional: true '@rollup/rollup-linux-s390x-gnu@4.50.0': optional: true - '@rollup/rollup-linux-s390x-gnu@4.52.4': + '@rollup/rollup-linux-s390x-gnu@4.53.2': optional: true '@rollup/rollup-linux-x64-gnu@4.50.0': optional: true - '@rollup/rollup-linux-x64-gnu@4.52.4': + '@rollup/rollup-linux-x64-gnu@4.53.2': optional: true '@rollup/rollup-linux-x64-musl@4.50.0': optional: true - '@rollup/rollup-linux-x64-musl@4.52.4': + '@rollup/rollup-linux-x64-musl@4.53.2': optional: true '@rollup/rollup-openharmony-arm64@4.50.0': optional: true - '@rollup/rollup-openharmony-arm64@4.52.4': + '@rollup/rollup-openharmony-arm64@4.53.2': optional: true '@rollup/rollup-win32-arm64-msvc@4.50.0': optional: true - '@rollup/rollup-win32-arm64-msvc@4.52.4': + '@rollup/rollup-win32-arm64-msvc@4.53.2': optional: true '@rollup/rollup-win32-ia32-msvc@4.50.0': optional: true - '@rollup/rollup-win32-ia32-msvc@4.52.4': + '@rollup/rollup-win32-ia32-msvc@4.53.2': optional: true - '@rollup/rollup-win32-x64-gnu@4.52.4': + '@rollup/rollup-win32-x64-gnu@4.53.2': optional: true '@rollup/rollup-win32-x64-msvc@4.50.0': optional: true - '@rollup/rollup-win32-x64-msvc@4.52.4': + '@rollup/rollup-win32-x64-msvc@4.53.2': optional: true '@rrweb/record@2.0.0-alpha.17(patch_hash=4a974d451d029e3ef6c302f641dfaf41fb0881146b6d5198ccdbe8d50776b64f)': @@ -17377,13 +17359,13 @@ snapshots: '@rspack/lite-tapable': 1.0.1 '@swc/helpers': 0.5.17 core-js: 3.44.0 - jiti: 2.4.2 + jiti: 2.6.1 '@rslib/core@0.10.6(@microsoft/api-extractor@7.52.8(@types/node@20.19.9))(typescript@5.8.2)': dependencies: '@rsbuild/core': 1.4.8 rsbuild-plugin-dts: 0.10.6(@microsoft/api-extractor@7.52.8(@types/node@20.19.9))(@rsbuild/core@1.4.8)(typescript@5.8.2) - tinyglobby: 0.2.14 + tinyglobby: 0.2.15 optionalDependencies: '@microsoft/api-extractor': 7.52.8(@types/node@20.19.9) typescript: 5.8.2 @@ -17392,7 +17374,7 @@ snapshots: dependencies: '@rsbuild/core': 1.4.8 rsbuild-plugin-dts: 0.10.6(@microsoft/api-extractor@7.52.8(@types/node@22.16.5))(@rsbuild/core@1.4.8)(typescript@5.8.2) - tinyglobby: 0.2.14 + tinyglobby: 0.2.15 optionalDependencies: '@microsoft/api-extractor': 7.52.8(@types/node@22.16.5) typescript: 5.8.2 @@ -17401,7 +17383,7 @@ snapshots: dependencies: '@rsbuild/core': 1.4.8 rsbuild-plugin-dts: 0.10.6(@microsoft/api-extractor@7.52.8(@types/node@22.17.0))(@rsbuild/core@1.4.8)(typescript@5.8.2) - tinyglobby: 0.2.14 + tinyglobby: 0.2.15 optionalDependencies: '@microsoft/api-extractor': 7.52.8(@types/node@22.17.0) typescript: 5.8.2 @@ -18213,10 +18195,10 @@ snapshots: graphql: 15.8.0 wonka: 4.0.15 - '@vercel/nft@0.30.2(rollup@4.52.4)': + '@vercel/nft@0.30.2(rollup@4.53.2)': dependencies: '@mapbox/node-pre-gyp': 2.0.0 - '@rollup/pluginutils': 5.3.0(rollup@4.52.4) + '@rollup/pluginutils': 5.3.0(rollup@4.53.2) acorn: 8.15.0 acorn-import-attributes: 1.9.5(acorn@8.15.0) async-sema: 3.1.1 @@ -18225,7 +18207,7 @@ snapshots: glob: 10.4.5 graceful-fs: 4.2.9 node-gyp-build: 4.8.4 - picomatch: 4.0.2 + picomatch: 4.0.3 resolve-from: 5.0.0 transitivePeerDependencies: - encoding @@ -21278,10 +21260,6 @@ snapshots: optionalDependencies: picomatch: 4.0.2 - fdir@6.4.6(picomatch@4.0.2): - optionalDependencies: - picomatch: 4.0.2 - fdir@6.5.0(picomatch@4.0.3): optionalDependencies: picomatch: 4.0.3 @@ -21389,9 +21367,9 @@ snapshots: fix-dts-default-cjs-exports@1.0.1: dependencies: - magic-string: 0.30.17 + magic-string: 0.30.19 mlly: 1.8.0 - rollup: 4.50.0 + rollup: 4.53.2 flat-cache@3.0.4: dependencies: @@ -23524,8 +23502,6 @@ snapshots: jiti@1.21.7: {} - jiti@2.4.2: {} - jiti@2.6.1: {} jju@1.4.0: {} @@ -24057,7 +24033,7 @@ snapshots: magic-regexp@0.10.0: dependencies: estree-walker: 3.0.3 - magic-string: 0.30.17 + magic-string: 0.30.19 mlly: 1.8.0 regexp-tree: 0.1.27 type-level-regexp: 0.1.17 @@ -24072,15 +24048,11 @@ snapshots: dependencies: sourcemap-codec: 1.4.8 - magic-string@0.30.12: - dependencies: - '@jridgewell/sourcemap-codec': 1.5.0 - - magic-string@0.30.17: + magic-string@0.30.19: dependencies: - '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/sourcemap-codec': 1.5.5 - magic-string@0.30.19: + magic-string@0.30.21: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 @@ -24748,14 +24720,14 @@ snapshots: nitropack@2.12.6: dependencies: '@cloudflare/kv-asset-handler': 0.4.0 - '@rollup/plugin-alias': 5.1.1(rollup@4.52.4) - '@rollup/plugin-commonjs': 28.0.6(rollup@4.52.4) - '@rollup/plugin-inject': 5.0.5(rollup@4.52.4) - '@rollup/plugin-json': 6.1.0(rollup@4.52.4) - '@rollup/plugin-node-resolve': 16.0.1(rollup@4.52.4) - '@rollup/plugin-replace': 6.0.2(rollup@4.52.4) - '@rollup/plugin-terser': 0.4.4(rollup@4.52.4) - '@vercel/nft': 0.30.2(rollup@4.52.4) + '@rollup/plugin-alias': 5.1.1(rollup@4.53.2) + '@rollup/plugin-commonjs': 28.0.6(rollup@4.53.2) + '@rollup/plugin-inject': 5.0.5(rollup@4.53.2) + '@rollup/plugin-json': 6.1.0(rollup@4.53.2) + '@rollup/plugin-node-resolve': 16.0.1(rollup@4.53.2) + '@rollup/plugin-replace': 6.0.2(rollup@4.53.2) + '@rollup/plugin-terser': 0.4.4(rollup@4.53.2) + '@vercel/nft': 0.30.2(rollup@4.53.2) archiver: 7.0.1 c12: 3.3.0(magicast@0.3.5) chokidar: 4.0.3 @@ -24797,8 +24769,8 @@ snapshots: pkg-types: 2.3.0 pretty-bytes: 7.1.0 radix3: 1.1.2 - rollup: 4.52.4 - rollup-plugin-visualizer: 6.0.3(rollup@4.52.4) + rollup: 4.53.2 + rollup-plugin-visualizer: 6.0.3(rollup@4.53.2) scule: 1.3.0 semver: 7.7.2 serve-placeholder: 2.0.2 @@ -24938,7 +24910,7 @@ snapshots: nullthrows@1.1.1: {} - nuxt@4.1.3(@parcel/watcher@2.5.1)(@types/node@20.19.9)(@vue/compiler-sfc@3.5.22)(db0@0.3.4)(eslint@9.37.0(jiti@2.6.1))(ioredis@5.8.1)(magicast@0.3.5)(rollup@4.50.0)(terser@5.27.0)(typescript@5.8.2)(vite@7.1.9(@types/node@20.19.9)(jiti@2.6.1)(terser@5.27.0)(yaml@2.8.0))(yaml@2.8.0): + nuxt@4.1.3(@parcel/watcher@2.5.1)(@types/node@20.19.9)(@vue/compiler-sfc@3.5.22)(db0@0.3.4)(eslint@9.37.0(jiti@2.6.1))(ioredis@5.8.1)(magicast@0.3.5)(rollup@4.53.2)(terser@5.27.0)(typescript@5.8.2)(vite@7.1.9(@types/node@20.19.9)(jiti@2.6.1)(terser@5.27.0)(yaml@2.8.0))(yaml@2.8.0): dependencies: '@nuxt/cli': 3.29.0(magicast@0.3.5) '@nuxt/devalue': 2.0.2 @@ -24946,7 +24918,7 @@ snapshots: '@nuxt/kit': 4.1.3(magicast@0.3.5) '@nuxt/schema': 4.1.3 '@nuxt/telemetry': 2.6.6(magicast@0.3.5) - '@nuxt/vite-builder': 4.1.3(@types/node@20.19.9)(eslint@9.37.0(jiti@2.6.1))(magicast@0.3.5)(rollup@4.50.0)(terser@5.27.0)(typescript@5.8.2)(vue@3.5.22(typescript@5.8.2))(yaml@2.8.0) + '@nuxt/vite-builder': 4.1.3(@types/node@20.19.9)(eslint@9.37.0(jiti@2.6.1))(magicast@0.3.5)(rollup@4.53.2)(terser@5.27.0)(typescript@5.8.2)(vue@3.5.22(typescript@5.8.2))(yaml@2.8.0) '@unhead/vue': 2.0.18(vue@3.5.22(typescript@5.8.2)) '@vue/shared': 3.5.22 c12: 3.3.0(magicast@0.3.5) @@ -26782,7 +26754,7 @@ snapshots: rollup-plugin-dts@6.1.1(rollup@4.50.0)(typescript@5.8.2): dependencies: - magic-string: 0.30.12 + magic-string: 0.30.19 rollup: 4.50.0 typescript: 5.8.2 optionalDependencies: @@ -26790,12 +26762,20 @@ snapshots: rollup-plugin-dts@6.2.3(rollup@4.50.0)(typescript@5.8.2): dependencies: - magic-string: 0.30.17 + magic-string: 0.30.19 rollup: 4.50.0 typescript: 5.8.2 optionalDependencies: '@babel/code-frame': 7.27.1 + rollup-plugin-dts@6.2.3(rollup@4.53.2)(typescript@5.8.2): + dependencies: + magic-string: 0.30.19 + rollup: 4.53.2 + typescript: 5.8.2 + optionalDependencies: + '@babel/code-frame': 7.27.1 + rollup-plugin-postcss@4.0.2(postcss@8.5.3)(ts-node@10.9.2(@types/node@22.5.0)(typescript@5.8.2)): dependencies: chalk: 4.1.2 @@ -26824,23 +26804,23 @@ snapshots: optionalDependencies: rollup: 4.50.0 - rollup-plugin-visualizer@6.0.3(rollup@4.52.4): + rollup-plugin-visualizer@6.0.3(rollup@4.53.2): dependencies: open: 8.4.2 picomatch: 4.0.2 source-map: 0.7.4 yargs: 17.7.2 optionalDependencies: - rollup: 4.52.4 + rollup: 4.53.2 - rollup-plugin-visualizer@6.0.4(rollup@4.50.0): + rollup-plugin-visualizer@6.0.4(rollup@4.53.2): dependencies: open: 8.4.2 - picomatch: 4.0.2 + picomatch: 4.0.3 source-map: 0.7.4 yargs: 17.7.2 optionalDependencies: - rollup: 4.50.0 + rollup: 4.53.2 rollup-pluginutils@2.8.2: dependencies: @@ -26877,32 +26857,32 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.50.0 fsevents: 2.3.3 - rollup@4.52.4: + rollup@4.53.2: dependencies: '@types/estree': 1.0.8 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.52.4 - '@rollup/rollup-android-arm64': 4.52.4 - '@rollup/rollup-darwin-arm64': 4.52.4 - '@rollup/rollup-darwin-x64': 4.52.4 - '@rollup/rollup-freebsd-arm64': 4.52.4 - '@rollup/rollup-freebsd-x64': 4.52.4 - '@rollup/rollup-linux-arm-gnueabihf': 4.52.4 - '@rollup/rollup-linux-arm-musleabihf': 4.52.4 - '@rollup/rollup-linux-arm64-gnu': 4.52.4 - '@rollup/rollup-linux-arm64-musl': 4.52.4 - '@rollup/rollup-linux-loong64-gnu': 4.52.4 - '@rollup/rollup-linux-ppc64-gnu': 4.52.4 - '@rollup/rollup-linux-riscv64-gnu': 4.52.4 - '@rollup/rollup-linux-riscv64-musl': 4.52.4 - '@rollup/rollup-linux-s390x-gnu': 4.52.4 - '@rollup/rollup-linux-x64-gnu': 4.52.4 - '@rollup/rollup-linux-x64-musl': 4.52.4 - '@rollup/rollup-openharmony-arm64': 4.52.4 - '@rollup/rollup-win32-arm64-msvc': 4.52.4 - '@rollup/rollup-win32-ia32-msvc': 4.52.4 - '@rollup/rollup-win32-x64-gnu': 4.52.4 - '@rollup/rollup-win32-x64-msvc': 4.52.4 + '@rollup/rollup-android-arm-eabi': 4.53.2 + '@rollup/rollup-android-arm64': 4.53.2 + '@rollup/rollup-darwin-arm64': 4.53.2 + '@rollup/rollup-darwin-x64': 4.53.2 + '@rollup/rollup-freebsd-arm64': 4.53.2 + '@rollup/rollup-freebsd-x64': 4.53.2 + '@rollup/rollup-linux-arm-gnueabihf': 4.53.2 + '@rollup/rollup-linux-arm-musleabihf': 4.53.2 + '@rollup/rollup-linux-arm64-gnu': 4.53.2 + '@rollup/rollup-linux-arm64-musl': 4.53.2 + '@rollup/rollup-linux-loong64-gnu': 4.53.2 + '@rollup/rollup-linux-ppc64-gnu': 4.53.2 + '@rollup/rollup-linux-riscv64-gnu': 4.53.2 + '@rollup/rollup-linux-riscv64-musl': 4.53.2 + '@rollup/rollup-linux-s390x-gnu': 4.53.2 + '@rollup/rollup-linux-x64-gnu': 4.53.2 + '@rollup/rollup-linux-x64-musl': 4.53.2 + '@rollup/rollup-openharmony-arm64': 4.53.2 + '@rollup/rollup-win32-arm64-msvc': 4.53.2 + '@rollup/rollup-win32-ia32-msvc': 4.53.2 + '@rollup/rollup-win32-x64-gnu': 4.53.2 + '@rollup/rollup-win32-x64-msvc': 4.53.2 fsevents: 2.3.3 rrdom@2.0.0-alpha.17: @@ -26928,9 +26908,9 @@ snapshots: dependencies: '@ast-grep/napi': 0.37.0 '@rsbuild/core': 1.4.8 - magic-string: 0.30.17 + magic-string: 0.30.21 picocolors: 1.1.1 - tinyglobby: 0.2.14 + tinyglobby: 0.2.15 tsconfig-paths: 4.2.0 optionalDependencies: '@microsoft/api-extractor': 7.52.8(@types/node@20.19.9) @@ -26940,9 +26920,9 @@ snapshots: dependencies: '@ast-grep/napi': 0.37.0 '@rsbuild/core': 1.4.8 - magic-string: 0.30.17 + magic-string: 0.30.21 picocolors: 1.1.1 - tinyglobby: 0.2.14 + tinyglobby: 0.2.15 tsconfig-paths: 4.2.0 optionalDependencies: '@microsoft/api-extractor': 7.52.8(@types/node@22.16.5) @@ -26952,9 +26932,9 @@ snapshots: dependencies: '@ast-grep/napi': 0.37.0 '@rsbuild/core': 1.4.8 - magic-string: 0.30.17 + magic-string: 0.30.21 picocolors: 1.1.1 - tinyglobby: 0.2.14 + tinyglobby: 0.2.15 tsconfig-paths: 4.2.0 optionalDependencies: '@microsoft/api-extractor': 7.52.8(@types/node@22.17.0) @@ -28079,11 +28059,6 @@ snapshots: tinyexec@1.0.1: {} - tinyglobby@0.2.14: - dependencies: - fdir: 6.4.6(picomatch@4.0.2) - picomatch: 4.0.2 - tinyglobby@0.2.15: dependencies: fdir: 6.5.0(picomatch@4.0.3) @@ -28469,12 +28444,12 @@ snapshots: unbuild@3.6.1(typescript@5.8.2)(vue-sfc-transformer@0.1.17(@vue/compiler-core@3.5.22)(esbuild@0.25.10)(vue@3.5.22(typescript@5.8.2)))(vue@3.5.22(typescript@5.8.2)): dependencies: - '@rollup/plugin-alias': 5.1.1(rollup@4.50.0) - '@rollup/plugin-commonjs': 28.0.6(rollup@4.50.0) - '@rollup/plugin-json': 6.1.0(rollup@4.50.0) - '@rollup/plugin-node-resolve': 16.0.1(rollup@4.50.0) - '@rollup/plugin-replace': 6.0.2(rollup@4.50.0) - '@rollup/pluginutils': 5.3.0(rollup@4.50.0) + '@rollup/plugin-alias': 5.1.1(rollup@4.53.2) + '@rollup/plugin-commonjs': 28.0.6(rollup@4.53.2) + '@rollup/plugin-json': 6.1.0(rollup@4.53.2) + '@rollup/plugin-node-resolve': 16.0.1(rollup@4.53.2) + '@rollup/plugin-replace': 6.0.2(rollup@4.53.2) + '@rollup/pluginutils': 5.3.0(rollup@4.53.2) citty: 0.1.6 consola: 3.4.2 defu: 6.1.4 @@ -28482,16 +28457,16 @@ snapshots: fix-dts-default-cjs-exports: 1.0.1 hookable: 5.5.3 jiti: 2.6.1 - magic-string: 0.30.17 + magic-string: 0.30.19 mkdist: 2.4.1(typescript@5.8.2)(vue-sfc-transformer@0.1.17(@vue/compiler-core@3.5.22)(esbuild@0.25.10)(vue@3.5.22(typescript@5.8.2)))(vue@3.5.22(typescript@5.8.2)) mlly: 1.8.0 pathe: 2.0.3 pkg-types: 2.3.0 pretty-bytes: 7.1.0 - rollup: 4.50.0 - rollup-plugin-dts: 6.2.3(rollup@4.50.0)(typescript@5.8.2) + rollup: 4.53.2 + rollup-plugin-dts: 6.2.3(rollup@4.53.2)(typescript@5.8.2) scule: 1.3.0 - tinyglobby: 0.2.14 + tinyglobby: 0.2.15 untyped: 2.0.0 optionalDependencies: typescript: 5.8.2 @@ -28877,7 +28852,7 @@ snapshots: fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 postcss: 8.5.6 - rollup: 4.50.0 + rollup: 4.53.2 tinyglobby: 0.2.15 optionalDependencies: '@types/node': 20.19.9 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 2ee76d5926..9c018e422b 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,8 +1,8 @@ packages: - packages/* - tooling/* - - "!**/playground/**" - - "!**/examples/**" + - '!**/playground/**' + - '!**/examples/**' catalog: tsup: ^8.5.0 @@ -13,7 +13,7 @@ catalog: jest-environment-jsdom: ^29.7.0 jest-environment-node: ^29.7.0 jest-expo: ^47.0.1 - "@types/jest": ^29.7.0 + '@types/jest': ^29.7.0 ts-jest: 29.4.0 - "@rslib/core": ^0.10.5 - "@posthog/cli": ~0.5.9 + '@rslib/core': 0.10.6 + '@posthog/cli': ~0.5.9 From 4d2838e8710e4c57a24eab616b21cde9adcdd6f0 Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Mon, 17 Nov 2025 12:34:46 +0100 Subject: [PATCH 03/12] use write bundle hook --- packages/rollup-plugin/package.json | 4 +- packages/rollup-plugin/src/index.ts | 72 +++++++++-------------------- playground/rollup/rollup.config.mjs | 7 ++- 3 files changed, 27 insertions(+), 56 deletions(-) diff --git a/packages/rollup-plugin/package.json b/packages/rollup-plugin/package.json index 2546acbac5..450cd8b147 100644 --- a/packages/rollup-plugin/package.json +++ b/packages/rollup-plugin/package.json @@ -20,9 +20,7 @@ ], "dependencies": { "@posthog/cli": "catalog:", - "@posthog/core": "workspace:*", - "magic-string": "^0.30.21", - "uuid": "^11.1.0" + "@posthog/core": "workspace:*" }, "peerDependencies": { "rollup": ">= 4.0.0" diff --git a/packages/rollup-plugin/src/index.ts b/packages/rollup-plugin/src/index.ts index 053e27172e..2bacdccd19 100644 --- a/packages/rollup-plugin/src/index.ts +++ b/packages/rollup-plugin/src/index.ts @@ -1,7 +1,4 @@ -import MagicString from 'magic-string' -import { v5 as uuidv5 } from 'uuid' import type { Plugin, OutputOptions, OutputAsset, OutputChunk } from 'rollup' -import crypto from 'node:crypto' import { spawnLocal, resolveBinaryPath, LogLevel } from '@posthog/core/process' import path from 'node:path' @@ -19,10 +16,24 @@ export type PostHogRollupPluginOptions = { } } +type ResolvedPostHogRollupPluginOptions = { + personalApiKey: string + envId: string + host: string + cliBinaryPath: string + logLevel: LogLevel + sourcemaps: { + enabled: boolean + project?: string + version?: string + deleteAfterUpload: boolean + } +} + export default function posthogRollupPlugin(userOptions: PostHogRollupPluginOptions) { const posthogOptions = resolveOptions(userOptions) return { - name: 'posthog-inject-chunk-ids', + name: 'posthog-rollup-plugin', outputOptions: { order: 'post', handler(options) { @@ -32,31 +43,17 @@ export default function posthogRollupPlugin(userOptions: PostHogRollupPluginOpti } }, }, - renderChunk(code, chunk) { - if (isJavascriptFile(chunk.fileName)) { - const chunkId = generateChunkId(code) - const codeToInject = getChunkIdSnippet(chunkId) - const magicCode = new MagicString(code) - // TODO: Inject after use directives - magicCode.prepend(codeToInject) - magicCode.append(`\n//# chunkId=${chunkId}\n`) - return { - code: magicCode.toString(), - map: magicCode.generateMap({ file: chunk.fileName, hires: 'boundary' }), - } - } else { - return null - } - }, async writeBundle(options: OutputOptions, bundle: { [fileName: string]: OutputAsset | OutputChunk }) { - const args = ['sourcemap', 'upload'] + if (!posthogOptions.sourcemaps.enabled) return + const args = ['sourcemap', 'process'] const cliPath = posthogOptions.cliBinaryPath if (options.dir) { const directory = path.resolve(options.dir) args.push('--directory', directory) - for (const chunk of Object.values(bundle)) { + for (const fileName in bundle) { + const chunk = bundle[fileName] if (chunk.type === 'chunk') { - args.push('--include', chunk.fileName) + args.push('--include', `**/${fileName}`) } } } else if (options.file) { @@ -71,6 +68,7 @@ export default function posthogRollupPlugin(userOptions: PostHogRollupPluginOpti await spawnLocal(cliPath, args, { env: { ...process.env, + RUST_LOG: `posthog_cli=${posthogOptions.logLevel}`, POSTHOG_CLI_HOST: posthogOptions.host, POSTHOG_CLI_TOKEN: posthogOptions.personalApiKey, POSTHOG_CLI_ENV_ID: posthogOptions.envId, @@ -82,34 +80,6 @@ export default function posthogRollupPlugin(userOptions: PostHogRollupPluginOpti } as Plugin } -function isJavascriptFile(fileName: string) { - return ['.js', '.mjs', '.cjs'].some((ext) => fileName.endsWith(ext)) -} - -function getChunkIdSnippet(chunkId: string) { - return `;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="${chunkId}")}catch(e){}}();\n` -} - -const debugIdNamespace = '4ed1c858-f40e-4b92-b3ff-541d185bb87f' -function generateChunkId(code: string) { - const hash = crypto.createHash('sha256').update(code).digest('hex') - return uuidv5(hash, debugIdNamespace) -} - -type ResolvedPostHogRollupPluginOptions = { - personalApiKey: string - envId: string - host: string - cliBinaryPath: string - logLevel: LogLevel - sourcemaps: { - enabled: boolean - project?: string - version?: string - deleteAfterUpload: boolean - } -} - function resolveOptions(userOptions: PostHogRollupPluginOptions): ResolvedPostHogRollupPluginOptions { if (!userOptions.envId) { throw new Error('envId is required') diff --git a/playground/rollup/rollup.config.mjs b/playground/rollup/rollup.config.mjs index 06cadff85d..f4835ba7c4 100644 --- a/playground/rollup/rollup.config.mjs +++ b/playground/rollup/rollup.config.mjs @@ -1,4 +1,5 @@ import posthog from '@posthog/rollup-plugin' +import packageJson from './package.json' export default { input: './src/index.ts', @@ -22,9 +23,11 @@ export default { envId: process.env.POSTHOG_API_PROJECT, host: process.env.POSTHOG_API_HOST, cliBinaryPath: process.env.POSTHOG_CLI_BINARY_PATH, + logLevel: 'info', sourcemap: { - project: 'my-project', - version: '1.0.0', + enabled: true, + project: packageJson.name, + version: packageJson.version, }, }), ], From 0ce85cfd6ba6489516f0a9cc0ecb853f6778ee4d Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Mon, 17 Nov 2025 12:40:31 +0100 Subject: [PATCH 04/12] add codeowners --- .github/CODEOWNERS | 6 +++++ .github/ISSUE_TEMPLATE/bug_report.md | 1 + .github/ISSUE_TEMPLATE/feature_request.md | 1 + .github/workflows/release.yml | 27 ++++++++++++----------- playground/rollup/package.json | 2 +- 5 files changed, 23 insertions(+), 14 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 112bfbff0d..d5d09dee80 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -26,3 +26,9 @@ packages/browser/src/sessionid.ts @PostHog/team-web-analyti packages/browser/src/session-props.ts @PostHog/team-web-analytics packages/browser/src/utils/blocked-uas.ts @PostHog/team-web-analytics packages/browser/src/consent.ts @PostHog/team-web-analytics + +# Error tracking +packages/rollup-plugin/ @PostHog/team-error-tracking +packages/nuxt/ @PostHog/team-error-tracking +packages/nextjs-config/ @PostHog/team-error-tracking +packages/core/src/process/ @PostHog/team-error-tracking diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index c0705e9d48..8e9494d554 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -25,6 +25,7 @@ _Please describe._ - [ ] @posthog/ai - [ ] @posthog/nextjs-config - [ ] @posthog/nuxt +- [ ] @posthog/rollup-plugin ## Additional context diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index ad6df96004..df352766f8 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -23,6 +23,7 @@ _Please describe._ - [ ] @posthog/ai - [ ] @posthog/nextjs-config - [ ] @posthog/nuxt +- [ ] @posthog/rollup-plugin ## Additional context diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da3fcc1183..4ea578d879 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,7 @@ jobs: - name: "@posthog/ai" - name: "@posthog/nextjs-config" - name: "@posthog/nuxt" + - name: "@posthog/rollup-plugin" steps: - name: Checkout the repository @@ -58,7 +59,7 @@ jobs: package_version: ${{ steps.check-package-version.outputs.committed-version }} npm_token: ${{ secrets.NPM_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }} - + - name: Dispatch generate-references for ${{ matrix.package.name }} if: steps.check-package-version.outputs.is-new-version == 'true' env: @@ -104,15 +105,15 @@ jobs: if: ${{ failure() }} uses: PostHog/posthog-github-action@v0.1 with: - posthog-token: '${{ secrets.POSTHOG_API_TOKEN }}' - event: 'posthog-js-github-release-workflow-failure' - properties: >- - { - "commitSha": "${{ github.sha }}", - "jobStatus": "${{ job.status }}", - "commitMessage": "${{ github.event.head_commit.message }}", - "commitAuthor": "${{ github.event.head_commit.author.name }}", - "ref": "${{ github.ref }}", - "matrixPackage": "${{ matrix.package.name }}", - "packageVersion": "${{ steps.check-package-version.outputs.committed-version }}" - } + posthog-token: "${{ secrets.POSTHOG_API_TOKEN }}" + event: "posthog-js-github-release-workflow-failure" + properties: >- + { + "commitSha": "${{ github.sha }}", + "jobStatus": "${{ job.status }}", + "commitMessage": "${{ github.event.head_commit.message }}", + "commitAuthor": "${{ github.event.head_commit.author.name }}", + "ref": "${{ github.ref }}", + "matrixPackage": "${{ matrix.package.name }}", + "packageVersion": "${{ steps.check-package-version.outputs.committed-version }}" + } diff --git a/playground/rollup/package.json b/playground/rollup/package.json index 7bb7acd5e3..6fa6d7ee9e 100644 --- a/playground/rollup/package.json +++ b/playground/rollup/package.json @@ -6,7 +6,7 @@ "build": "rollup -c" }, "dependencies": { - "@posthog/rollup-plugin": "file:../../target/posthog-rollup-plugin.tgz" + "@posthog/rollup-plugin": "*" }, "devDependencies": { "rollup": "4.53.2" From a6b185e5145dc123b93f69f35bd2a2f7f5a67c05 Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Mon, 17 Nov 2025 13:06:37 +0100 Subject: [PATCH 05/12] add project and version args --- packages/rollup-plugin/src/index.ts | 12 +++++++++--- playground/rollup/package.json | 6 ++---- playground/rollup/rollup.config.mjs | 4 ++-- playground/rollup/tsconfig.json | 1 + 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/packages/rollup-plugin/src/index.ts b/packages/rollup-plugin/src/index.ts index 2bacdccd19..bcb5bdd0fa 100644 --- a/packages/rollup-plugin/src/index.ts +++ b/packages/rollup-plugin/src/index.ts @@ -2,13 +2,13 @@ import type { Plugin, OutputOptions, OutputAsset, OutputChunk } from 'rollup' import { spawnLocal, resolveBinaryPath, LogLevel } from '@posthog/core/process' import path from 'node:path' -export type PostHogRollupPluginOptions = { +export interface PostHogRollupPluginOptions { personalApiKey: string envId: string host?: string cliBinaryPath?: string logLevel?: LogLevel - sourcemaps: { + sourcemaps?: { enabled?: boolean project?: string version?: string @@ -16,7 +16,7 @@ export type PostHogRollupPluginOptions = { } } -type ResolvedPostHogRollupPluginOptions = { +interface ResolvedPostHogRollupPluginOptions { personalApiKey: string envId: string host: string @@ -62,6 +62,12 @@ export default function posthogRollupPlugin(userOptions: PostHogRollupPluginOpti args.push('--directory', parentDirectory) args.push('--include', filePath) } + if (posthogOptions.sourcemaps.project) { + args.push('--project', posthogOptions.sourcemaps.project) + } + if (posthogOptions.sourcemaps.version) { + args.push('--version', posthogOptions.sourcemaps.version) + } if (posthogOptions.sourcemaps.deleteAfterUpload) { args.push('--delete-after') } diff --git a/playground/rollup/package.json b/playground/rollup/package.json index 6fa6d7ee9e..77f97140c0 100644 --- a/playground/rollup/package.json +++ b/playground/rollup/package.json @@ -5,10 +5,8 @@ "scripts": { "build": "rollup -c" }, - "dependencies": { - "@posthog/rollup-plugin": "*" - }, "devDependencies": { - "rollup": "4.53.2" + "rollup": "4.53.2", + "@posthog/rollup-plugin": "*" } } diff --git a/playground/rollup/rollup.config.mjs b/playground/rollup/rollup.config.mjs index f4835ba7c4..3dc18319f1 100644 --- a/playground/rollup/rollup.config.mjs +++ b/playground/rollup/rollup.config.mjs @@ -1,5 +1,5 @@ import posthog from '@posthog/rollup-plugin' -import packageJson from './package.json' +import packageJson from './package.json' with { type: 'json' } export default { input: './src/index.ts', @@ -24,7 +24,7 @@ export default { host: process.env.POSTHOG_API_HOST, cliBinaryPath: process.env.POSTHOG_CLI_BINARY_PATH, logLevel: 'info', - sourcemap: { + sourcemaps: { enabled: true, project: packageJson.name, version: packageJson.version, diff --git a/playground/rollup/tsconfig.json b/playground/rollup/tsconfig.json index 2510f5543f..e01837cbaf 100644 --- a/playground/rollup/tsconfig.json +++ b/playground/rollup/tsconfig.json @@ -5,6 +5,7 @@ "moduleResolution": "NodeNext", "declaration": true, "emitDeclarationOnly": true, + "resolveJsonModule": true, "allowImportingTsExtensions": true } } From de3e3edeac3d4645663231609908c903462eaf91 Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Mon, 17 Nov 2025 13:07:51 +0100 Subject: [PATCH 06/12] update lockfile --- pnpm-lock.yaml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 62f34d2990..9531e670bf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -657,7 +657,7 @@ importers: specifier: 'catalog:' version: 5.8.2 - packages/rollup: + packages/rollup-plugin: dependencies: '@posthog/cli': specifier: 'catalog:' @@ -665,12 +665,6 @@ importers: '@posthog/core': specifier: workspace:* version: link:../core - magic-string: - specifier: ^0.30.21 - version: 0.30.21 - uuid: - specifier: ^11.1.0 - version: 11.1.0 devDependencies: '@posthog-tooling/tsconfig-base': specifier: workspace:* @@ -2051,7 +2045,7 @@ packages: '@expo/bunyan@4.0.1': resolution: {integrity: sha512-+Lla7nYSiHZirgK+U/uYzsLv/X+HaJienbD5AKX1UQZHYfWaP+9uuQluRB4GrEVWF0GZ7vEVp/jzaOT9k/SQlg==} - engines: {node: '>=0.10.0'} + engines: {'0': node >=0.10.0} '@expo/cli@0.1.7': resolution: {integrity: sha512-F81fPthpT7QtVu1P7QeZMezGn0tCcalCh3ANIzWBaQZNG4vly7mo2dp3PMGzNdmXq6yt93bJ4HbfS+0/NpKl7g==} @@ -24042,7 +24036,7 @@ snapshots: magic-string-ast@1.0.3: dependencies: - magic-string: 0.30.19 + magic-string: 0.30.21 magic-string@0.25.9: dependencies: From 3af8d020c6f15c3ca1224c7f7df92e2b2f320caf Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Mon, 17 Nov 2025 14:23:57 +0100 Subject: [PATCH 07/12] enable by default --- packages/rollup-plugin/src/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/rollup-plugin/src/index.ts b/packages/rollup-plugin/src/index.ts index bcb5bdd0fa..caec6db8b9 100644 --- a/packages/rollup-plugin/src/index.ts +++ b/packages/rollup-plugin/src/index.ts @@ -92,9 +92,7 @@ function resolveOptions(userOptions: PostHogRollupPluginOptions): ResolvedPostHo } else if (!userOptions.personalApiKey) { throw new Error('personalApiKey is required') } - const userSourcemaps = userOptions.sourcemaps ?? { - enabled: false, - } + const userSourcemaps = userOptions.sourcemaps ?? {} const posthogOptions: ResolvedPostHogRollupPluginOptions = { host: userOptions.host || 'https://us.i.posthog.com', personalApiKey: userOptions.personalApiKey, @@ -107,7 +105,7 @@ function resolveOptions(userOptions: PostHogRollupPluginOptions): ResolvedPostHo }), logLevel: userOptions.logLevel ?? 'info', sourcemaps: { - enabled: userSourcemaps.enabled ?? false, + enabled: userSourcemaps.enabled ?? true, deleteAfterUpload: userSourcemaps.deleteAfterUpload ?? true, }, } From bc358758487d1770b6c15345e008c5fdbb53ef5c Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Mon, 17 Nov 2025 14:26:24 +0100 Subject: [PATCH 08/12] fix jest dep --- packages/rollup-plugin/package.json | 4 +++- pnpm-lock.yaml | 35 ++++++++++++++++------------- pnpm-workspace.yaml | 2 +- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/packages/rollup-plugin/package.json b/packages/rollup-plugin/package.json index 450cd8b147..b829d70d71 100644 --- a/packages/rollup-plugin/package.json +++ b/packages/rollup-plugin/package.json @@ -28,6 +28,8 @@ "devDependencies": { "@posthog-tooling/tsconfig-base": "workspace:*", "@rslib/core": "catalog:", - "rollup": "~4.53.2" + "rollup": "~4.53.2", + "jest": "catalog:", + "@types/jest": "catalog:" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9531e670bf..db98c942d2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,7 +13,7 @@ catalogs: specifier: 0.10.6 version: 0.10.6 jest: - specifier: ^29.7.0 + specifier: 29.7.0 version: 29.7.0 jest-environment-jsdom: specifier: ^29.7.0 @@ -665,6 +665,9 @@ importers: '@posthog/core': specifier: workspace:* version: link:../core + jest: + specifier: 'catalog:' + version: 29.7.0(@types/node@22.17.0)(node-notifier@8.0.2)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.8.2)) devDependencies: '@posthog-tooling/tsconfig-base': specifier: workspace:* @@ -2045,7 +2048,7 @@ packages: '@expo/bunyan@4.0.1': resolution: {integrity: sha512-+Lla7nYSiHZirgK+U/uYzsLv/X+HaJienbD5AKX1UQZHYfWaP+9uuQluRB4GrEVWF0GZ7vEVp/jzaOT9k/SQlg==} - engines: {'0': node >=0.10.0} + engines: {node: '>=0.10.0'} '@expo/cli@0.1.7': resolution: {integrity: sha512-F81fPthpT7QtVu1P7QeZMezGn0tCcalCh3ANIzWBaQZNG4vly7mo2dp3PMGzNdmXq6yt93bJ4HbfS+0/NpKl7g==} @@ -13247,7 +13250,7 @@ snapshots: '@babel/types': 7.28.4 '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.29 - jsesc: 3.0.2 + jsesc: 3.1.0 '@babel/helper-annotate-as-pure@7.27.1': dependencies: @@ -13307,7 +13310,7 @@ snapshots: '@babel/traverse': 7.27.1 debug: 4.4.1 lodash.debounce: 4.0.8 - resolve: 1.22.8 + resolve: 1.22.10 semver: 6.3.1 transitivePeerDependencies: - supports-color @@ -18807,7 +18810,7 @@ snapshots: babel-plugin-jest-hoist@26.6.2: dependencies: '@babel/template': 7.27.2 - '@babel/types': 7.27.1 + '@babel/types': 7.28.4 '@types/babel__core': 7.1.18 '@types/babel__traverse': 7.14.2 @@ -20972,7 +20975,7 @@ snapshots: cross-spawn: 7.0.6 get-stream: 6.0.1 human-signals: 2.1.0 - is-stream: 2.0.0 + is-stream: 2.0.1 merge-stream: 2.0.0 npm-run-path: 4.0.1 onetime: 5.1.2 @@ -21206,7 +21209,7 @@ snapshots: '@nodelib/fs.walk': 1.2.8 glob-parent: 5.1.2 merge2: 1.4.1 - micromatch: 4.0.4 + micromatch: 4.0.8 fast-glob@3.3.3: dependencies: @@ -22635,7 +22638,7 @@ snapshots: istanbul-lib-instrument@6.0.3: dependencies: '@babel/core': 7.27.1 - '@babel/parser': 7.27.2 + '@babel/parser': 7.28.4 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 semver: 7.7.2 @@ -23293,10 +23296,10 @@ snapshots: jest-snapshot@29.7.0: dependencies: '@babel/core': 7.27.1 - '@babel/generator': 7.27.1 + '@babel/generator': 7.28.3 '@babel/plugin-syntax-jsx': 7.27.1(@babel/core@7.27.1) '@babel/plugin-syntax-typescript': 7.27.1(@babel/core@7.27.1) - '@babel/types': 7.27.1 + '@babel/types': 7.28.4 '@jest/expect-utils': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 @@ -24322,7 +24325,7 @@ snapshots: metro-transform-plugins@0.70.4: dependencies: '@babel/core': 7.27.1 - '@babel/generator': 7.27.1 + '@babel/generator': 7.28.3 '@babel/template': 7.27.2 '@babel/traverse': 7.27.1 nullthrows: 1.1.1 @@ -24332,9 +24335,9 @@ snapshots: metro-transform-worker@0.70.4: dependencies: '@babel/core': 7.27.1 - '@babel/generator': 7.27.1 - '@babel/parser': 7.27.2 - '@babel/types': 7.27.1 + '@babel/generator': 7.28.3 + '@babel/parser': 7.28.4 + '@babel/types': 7.28.4 babel-preset-fbjs: 3.4.0(@babel/core@7.27.1) metro: 0.70.4 metro-babel-transformer: 0.70.4 @@ -24354,11 +24357,11 @@ snapshots: dependencies: '@babel/code-frame': 7.27.1 '@babel/core': 7.27.1 - '@babel/generator': 7.27.1 + '@babel/generator': 7.28.3 '@babel/parser': 7.27.2 '@babel/template': 7.27.2 '@babel/traverse': 7.27.1 - '@babel/types': 7.27.1 + '@babel/types': 7.28.4 absolute-path: 0.0.0 accepts: 1.3.8 async: 3.2.6 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 9c018e422b..17e112ff48 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -9,7 +9,7 @@ catalog: typescript: 5.8.2 rollup: ^4.44.1 tslib: ^2.5.0 - jest: ^29.7.0 + jest: 29.7.0 jest-environment-jsdom: ^29.7.0 jest-environment-node: ^29.7.0 jest-expo: ^47.0.1 From 146ccce2cb6d042914cbc755091e571e0ea5c23c Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Mon, 17 Nov 2025 14:29:13 +0100 Subject: [PATCH 09/12] fix jest dep --- pnpm-lock.yaml | 14 ++++++++++---- pnpm-workspace.yaml | 10 +++++----- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index db98c942d2..e3c5d32c90 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,6 +12,9 @@ catalogs: '@rslib/core': specifier: 0.10.6 version: 0.10.6 + '@types/jest': + specifier: ^29.5.14 + version: 29.5.14 jest: specifier: 29.7.0 version: 29.7.0 @@ -665,9 +668,6 @@ importers: '@posthog/core': specifier: workspace:* version: link:../core - jest: - specifier: 'catalog:' - version: 29.7.0(@types/node@22.17.0)(node-notifier@8.0.2)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.8.2)) devDependencies: '@posthog-tooling/tsconfig-base': specifier: workspace:* @@ -675,6 +675,12 @@ importers: '@rslib/core': specifier: 'catalog:' version: 0.10.6(@microsoft/api-extractor@7.52.8(@types/node@22.17.0))(typescript@5.8.2) + '@types/jest': + specifier: 'catalog:' + version: 29.5.14 + jest: + specifier: 'catalog:' + version: 29.7.0(@types/node@22.17.0)(node-notifier@8.0.2)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.8.2)) rollup: specifier: ~4.53.2 version: 4.53.2 @@ -2048,7 +2054,7 @@ packages: '@expo/bunyan@4.0.1': resolution: {integrity: sha512-+Lla7nYSiHZirgK+U/uYzsLv/X+HaJienbD5AKX1UQZHYfWaP+9uuQluRB4GrEVWF0GZ7vEVp/jzaOT9k/SQlg==} - engines: {node: '>=0.10.0'} + engines: {'0': node >=0.10.0} '@expo/cli@0.1.7': resolution: {integrity: sha512-F81fPthpT7QtVu1P7QeZMezGn0tCcalCh3ANIzWBaQZNG4vly7mo2dp3PMGzNdmXq6yt93bJ4HbfS+0/NpKl7g==} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 17e112ff48..fdcfaba2ee 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,8 +1,8 @@ packages: - packages/* - tooling/* - - '!**/playground/**' - - '!**/examples/**' + - "!**/playground/**" + - "!**/examples/**" catalog: tsup: ^8.5.0 @@ -13,7 +13,7 @@ catalog: jest-environment-jsdom: ^29.7.0 jest-environment-node: ^29.7.0 jest-expo: ^47.0.1 - '@types/jest': ^29.7.0 + "@types/jest": ^29.5.14 ts-jest: 29.4.0 - '@rslib/core': 0.10.6 - '@posthog/cli': ~0.5.9 + "@rslib/core": 0.10.6 + "@posthog/cli": ~0.5.9 From 0289a0b6d7e4a04fc5980ec482ea22ab9bdd249c Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Mon, 17 Nov 2025 14:31:33 +0100 Subject: [PATCH 10/12] add changeset --- .changeset/evil-heads-heal.md | 5 +++++ .changeset/stale-lies-taste.md | 5 +++++ packages/rollup-plugin/package.json | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .changeset/evil-heads-heal.md create mode 100644 .changeset/stale-lies-taste.md diff --git a/.changeset/evil-heads-heal.md b/.changeset/evil-heads-heal.md new file mode 100644 index 0000000000..5989051339 --- /dev/null +++ b/.changeset/evil-heads-heal.md @@ -0,0 +1,5 @@ +--- +'@posthog/core': patch +--- + +export log level type diff --git a/.changeset/stale-lies-taste.md b/.changeset/stale-lies-taste.md new file mode 100644 index 0000000000..c6c60148c2 --- /dev/null +++ b/.changeset/stale-lies-taste.md @@ -0,0 +1,5 @@ +--- +'@posthog/rollup-plugin': major +--- + +first version diff --git a/packages/rollup-plugin/package.json b/packages/rollup-plugin/package.json index b829d70d71..c548e8fd82 100644 --- a/packages/rollup-plugin/package.json +++ b/packages/rollup-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@posthog/rollup-plugin", - "version": "1.0.0", + "version": "0.0.0", "description": "PostHog Rollup plugin", "type": "module", "main": "dist/index.js", From 6b01e83db4df4c2e08a27eab51d71401b12b232a Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Mon, 17 Nov 2025 14:32:57 +0100 Subject: [PATCH 11/12] add changelog and readme --- packages/rollup-plugin/CHANGELOG.md | 1 + packages/rollup-plugin/README.md | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 packages/rollup-plugin/CHANGELOG.md create mode 100644 packages/rollup-plugin/README.md diff --git a/packages/rollup-plugin/CHANGELOG.md b/packages/rollup-plugin/CHANGELOG.md new file mode 100644 index 0000000000..804389ee24 --- /dev/null +++ b/packages/rollup-plugin/CHANGELOG.md @@ -0,0 +1 @@ +# @posthog/rollup-plugin diff --git a/packages/rollup-plugin/README.md b/packages/rollup-plugin/README.md new file mode 100644 index 0000000000..4967b06244 --- /dev/null +++ b/packages/rollup-plugin/README.md @@ -0,0 +1,3 @@ +# PostHog Rollup Plugin + +Please see the main [PostHog docs](https://www.posthog.com/docs). From d9ed1b82b66ae3ca6a759d4c260f3106f1b718a4 Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Wed, 19 Nov 2025 14:17:59 +0100 Subject: [PATCH 12/12] upgrade posthog-cli --- pnpm-workspace.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index fdcfaba2ee..da1fb5f7a1 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -16,4 +16,4 @@ catalog: "@types/jest": ^29.5.14 ts-jest: 29.4.0 "@rslib/core": 0.10.6 - "@posthog/cli": ~0.5.9 + "@posthog/cli": ~0.5.13