diff --git a/.changeset/polite-dots-pump.md b/.changeset/polite-dots-pump.md deleted file mode 100644 index bc18e2cd..00000000 --- a/.changeset/polite-dots-pump.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -"@codecov/astro-plugin": major -"@codecov/bundle-analyzer": major -"@codecov/bundler-plugin-core": major -"@codecov/nextjs-webpack-plugin": major -"@codecov/nuxt-plugin": major -"@codecov/remix-vite-plugin": major -"@codecov/rollup-plugin": major -"@codecov/solidstart-plugin": major -"@codecov/sveltekit-plugin": major -"@codecov/vite-plugin": major -"@codecov/webpack-plugin": major ---- - -Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 - -Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). - -**@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) - -- **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. -- **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). - -**@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) - -- **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. -- **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). -- **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). - -**Impact here** - -- Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. -- **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. -- **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). diff --git a/.changeset/purple-bikes-jam.md b/.changeset/purple-bikes-jam.md deleted file mode 100644 index 7f13f307..00000000 --- a/.changeset/purple-bikes-jam.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@codecov/astro-plugin": patch -"@codecov/bundle-analyzer": patch -"@codecov/bundler-plugin-core": patch -"@codecov/nextjs-webpack-plugin": patch -"@codecov/nuxt-plugin": patch -"@codecov/remix-vite-plugin": patch -"@codecov/rollup-plugin": patch -"@codecov/solidstart-plugin": patch -"@codecov/sveltekit-plugin": patch -"@codecov/vite-plugin": patch -"@codecov/webpack-plugin": patch ---- - -update GitHub Actions workflow permissions diff --git a/integration-tests/fixtures/generate-bundle-stats/astro/__snapshots__/astro-integration.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/astro/__snapshots__/astro-integration.test.ts.snap index 7b98040b..5de99e15 100644 --- a/integration-tests/fixtures/generate-bundle-stats/astro/__snapshots__/astro-integration.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/astro/__snapshots__/astro-integration.test.ts.snap @@ -1,4 +1,4 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating astro stats 4 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { @@ -15,7 +15,7 @@ exports[`Generating astro stats 4 {"format":"es","expected":"esm"} matches the s "outputPath": StringContaining "dist", "plugin": { "name": StringMatching "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -36,7 +36,7 @@ exports[`Generating astro stats 4 {"format":"es","expected":"esm"} matches the s "outputPath": StringContaining "dist", "plugin": { "name": StringMatching "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -57,7 +57,7 @@ exports[`Generating astro stats 4 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "dist", "plugin": { "name": StringMatching "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -78,7 +78,7 @@ exports[`Generating astro stats 4 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "dist", "plugin": { "name": StringMatching "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -99,7 +99,7 @@ exports[`Generating astro stats 4 {"format":"module","expected":"esm"} matches t "outputPath": StringContaining "dist", "plugin": { "name": StringMatching "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -120,7 +120,7 @@ exports[`Generating astro stats 4 {"format":"module","expected":"esm"} matches t "outputPath": StringContaining "dist", "plugin": { "name": StringMatching "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -141,7 +141,7 @@ exports[`Generating astro stats 5 {"format":"es","expected":"esm"} matches the s "outputPath": StringContaining "dist", "plugin": { "name": StringMatching "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -162,7 +162,7 @@ exports[`Generating astro stats 5 {"format":"es","expected":"esm"} matches the s "outputPath": StringContaining "dist", "plugin": { "name": StringMatching "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -183,7 +183,7 @@ exports[`Generating astro stats 5 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "dist", "plugin": { "name": StringMatching "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -204,7 +204,7 @@ exports[`Generating astro stats 5 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "dist", "plugin": { "name": StringMatching "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -225,7 +225,7 @@ exports[`Generating astro stats 5 {"format":"module","expected":"esm"} matches t "outputPath": StringContaining "dist", "plugin": { "name": StringMatching "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -246,7 +246,7 @@ exports[`Generating astro stats 5 {"format":"module","expected":"esm"} matches t "outputPath": StringContaining "dist", "plugin": { "name": StringMatching "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } diff --git a/integration-tests/fixtures/generate-bundle-stats/bundle-analyzer/dotenv-vercel/__snapshots__/bundle-analyzer.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/bundle-analyzer/dotenv-vercel/__snapshots__/bundle-analyzer.test.ts.snap index 3dd428a2..3ed6bfb7 100644 --- a/integration-tests/fixtures/generate-bundle-stats/bundle-analyzer/dotenv-vercel/__snapshots__/bundle-analyzer.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/bundle-analyzer/dotenv-vercel/__snapshots__/bundle-analyzer.test.ts.snap @@ -1,4 +1,4 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Bundle Analyzer Integration Tests should generate a report and match the snapshot 1`] = ` { diff --git a/integration-tests/fixtures/generate-bundle-stats/bundle-stats-snapshot-hints.ts b/integration-tests/fixtures/generate-bundle-stats/bundle-stats-snapshot-hints.ts new file mode 100644 index 00000000..ba9e9198 --- /dev/null +++ b/integration-tests/fixtures/generate-bundle-stats/bundle-stats-snapshot-hints.ts @@ -0,0 +1,16 @@ +import { expect } from "bun:test"; + +/** + * Use inside `toMatchSnapshot({ ... })` for bundle stats payloads that include `assets[]`. + * Compressed size (`gzipSize`) varies by OS and Node.js zlib, so snapshots must not pin it. + */ +export function bundleStatsAssetsHint() { + return expect.arrayContaining([ + expect.objectContaining({ + gzipSize: expect.any(Number), + name: expect.any(String), + normalized: expect.any(String), + size: expect.any(Number), + }), + ]); +} diff --git a/integration-tests/fixtures/generate-bundle-stats/nextjs/__snapshots__/nextjs-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/nextjs/__snapshots__/nextjs-plugin.test.ts.snap index 990daacd..1f338488 100644 --- a/integration-tests/fixtures/generate-bundle-stats/nextjs/__snapshots__/nextjs-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/nextjs/__snapshots__/nextjs-plugin.test.ts.snap @@ -1,4 +1,4 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating nextjs stats 14 matches the snapshot 1`] = ` { diff --git a/integration-tests/fixtures/generate-bundle-stats/nuxt/__snapshots__/nuxt-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/nuxt/__snapshots__/nuxt-plugin.test.ts.snap index 619f4e96..5b0cf117 100644 --- a/integration-tests/fixtures/generate-bundle-stats/nuxt/__snapshots__/nuxt-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/nuxt/__snapshots__/nuxt-plugin.test.ts.snap @@ -1,4 +1,4 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating nuxt stats 3 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { diff --git a/integration-tests/fixtures/generate-bundle-stats/remix/__snapshots__/remix-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/remix/__snapshots__/remix-plugin.test.ts.snap index 786d68c0..6d585f39 100644 --- a/integration-tests/fixtures/generate-bundle-stats/remix/__snapshots__/remix-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/remix/__snapshots__/remix-plugin.test.ts.snap @@ -1,4 +1,4 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating remix stats 2 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { @@ -15,7 +15,7 @@ exports[`Generating remix stats 2 {"format":"amd","expected":"amd"} matches the "outputPath": StringContaining "build", "plugin": { "name": StringMatching "@codecov/remix-vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -36,7 +36,7 @@ exports[`Generating remix stats 2 {"format":"amd","expected":"amd"} matches the "outputPath": StringContaining "build", "plugin": { "name": StringMatching "@codecov/remix-vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -57,7 +57,7 @@ exports[`Generating remix stats 2 {"format":"cjs","expected":"cjs"} matches the "outputPath": StringContaining "build", "plugin": { "name": StringMatching "@codecov/remix-vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -78,7 +78,7 @@ exports[`Generating remix stats 2 {"format":"cjs","expected":"cjs"} matches the "outputPath": StringContaining "build", "plugin": { "name": StringMatching "@codecov/remix-vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -99,7 +99,7 @@ exports[`Generating remix stats 2 {"format":"es","expected":"esm"} matches the s "outputPath": StringContaining "build", "plugin": { "name": StringMatching "@codecov/remix-vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -120,7 +120,7 @@ exports[`Generating remix stats 2 {"format":"es","expected":"esm"} matches the s "outputPath": StringContaining "build", "plugin": { "name": StringMatching "@codecov/remix-vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -141,7 +141,7 @@ exports[`Generating remix stats 2 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "build", "plugin": { "name": StringMatching "@codecov/remix-vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -162,7 +162,7 @@ exports[`Generating remix stats 2 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "build", "plugin": { "name": StringMatching "@codecov/remix-vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -183,7 +183,7 @@ exports[`Generating remix stats 2 {"format":"module","expected":"esm"} matches t "outputPath": StringContaining "build", "plugin": { "name": StringMatching "@codecov/remix-vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -204,7 +204,7 @@ exports[`Generating remix stats 2 {"format":"module","expected":"esm"} matches t "outputPath": StringContaining "build", "plugin": { "name": StringMatching "@codecov/remix-vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } diff --git a/integration-tests/fixtures/generate-bundle-stats/remix/remix-plugin.test.ts b/integration-tests/fixtures/generate-bundle-stats/remix/remix-plugin.test.ts index b16fbe3c..80eeb4bb 100644 --- a/integration-tests/fixtures/generate-bundle-stats/remix/remix-plugin.test.ts +++ b/integration-tests/fixtures/generate-bundle-stats/remix/remix-plugin.test.ts @@ -168,7 +168,7 @@ describe("Generating remix stats", () => { afterEach(async () => { await $`rm -rf ${remixApp}/vite.config.ts`; - await $`rm -rf ${remixApp}/vite.config.ts.timestamp-*`; + await $`rm -rf ${remixApp}/vite.config.ts.timestamp-*`.nothrow(); await $`rm -rf ${remixApp}/build`; await $`rm -rf ./fixtures/generate-bundle-stats/remix/build`; }); diff --git a/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap index 5efe18c7..41089627 100644 --- a/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap @@ -1,15 +1,8 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating rollup stats 3 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98808, - "name": "main-1cbfd464.js", - "normalized": "main-*.js", - "size": 577073, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-amd", "bundler": { @@ -72,7 +65,7 @@ exports[`Generating rollup stats 3 {"format":"amd","expected":"amd"} matches the "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -80,14 +73,7 @@ exports[`Generating rollup stats 3 {"format":"amd","expected":"amd"} matches the exports[`Generating rollup stats 3 {"format":"cjs","expected":"cjs"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98252, - "name": "main-420d8aeb.js", - "normalized": "main-*.js", - "size": 560888, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-cjs", "bundler": { @@ -150,7 +136,7 @@ exports[`Generating rollup stats 3 {"format":"cjs","expected":"cjs"} matches the "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -158,14 +144,7 @@ exports[`Generating rollup stats 3 {"format":"cjs","expected":"cjs"} matches the exports[`Generating rollup stats 3 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98243, - "name": "main-6ff1e9ca.js", - "normalized": "main-*.js", - "size": 560873, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-esm", "bundler": { @@ -228,7 +207,7 @@ exports[`Generating rollup stats 3 {"format":"es","expected":"esm"} matches the "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -236,14 +215,7 @@ exports[`Generating rollup stats 3 {"format":"es","expected":"esm"} matches the exports[`Generating rollup stats 3 {"format":"esm","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98243, - "name": "main-6ff1e9ca.js", - "normalized": "main-*.js", - "size": 560873, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-esm", "bundler": { @@ -306,7 +278,7 @@ exports[`Generating rollup stats 3 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -314,14 +286,7 @@ exports[`Generating rollup stats 3 {"format":"esm","expected":"esm"} matches the exports[`Generating rollup stats 3 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98243, - "name": "main-6ff1e9ca.js", - "normalized": "main-*.js", - "size": 560873, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-esm", "bundler": { @@ -384,7 +349,7 @@ exports[`Generating rollup stats 3 {"format":"module","expected":"esm"} matches "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -392,14 +357,7 @@ exports[`Generating rollup stats 3 {"format":"module","expected":"esm"} matches exports[`Generating rollup stats 3 {"format":"iife","expected":"iife"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98804, - "name": "main-cc182ba1.js", - "normalized": "main-*.js", - "size": 577068, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-iife", "bundler": { @@ -462,7 +420,7 @@ exports[`Generating rollup stats 3 {"format":"iife","expected":"iife"} matches t "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -470,14 +428,7 @@ exports[`Generating rollup stats 3 {"format":"iife","expected":"iife"} matches t exports[`Generating rollup stats 3 {"format":"umd","expected":"umd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98845, - "name": "main-cdb2522f.js", - "normalized": "main-*.js", - "size": 577167, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-umd", "bundler": { @@ -540,7 +491,7 @@ exports[`Generating rollup stats 3 {"format":"umd","expected":"umd"} matches the "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -548,14 +499,7 @@ exports[`Generating rollup stats 3 {"format":"umd","expected":"umd"} matches the exports[`Generating rollup stats 3 {"format":"system","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 99908, - "name": "main-b7135d24.js", - "normalized": "main-*.js", - "size": 609446, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-system", "bundler": { @@ -618,7 +562,7 @@ exports[`Generating rollup stats 3 {"format":"system","expected":"system"} match "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -626,14 +570,7 @@ exports[`Generating rollup stats 3 {"format":"system","expected":"system"} match exports[`Generating rollup stats 3 {"format":"systemjs","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 99908, - "name": "main-b7135d24.js", - "normalized": "main-*.js", - "size": 609446, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-system", "bundler": { @@ -696,7 +633,7 @@ exports[`Generating rollup stats 3 {"format":"systemjs","expected":"system"} mat "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -704,14 +641,7 @@ exports[`Generating rollup stats 3 {"format":"systemjs","expected":"system"} mat exports[`Generating rollup stats 3 source maps are enabled does not include any source maps 1`] = ` { - "assets": [ - { - "gzipSize": 98275, - "name": "main-6ff1e9ca.js", - "normalized": "main-*.js", - "size": 560915, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringNotContaining ".map", "bundler": { @@ -774,7 +704,7 @@ exports[`Generating rollup stats 3 source maps are enabled does not include any "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -782,14 +712,7 @@ exports[`Generating rollup stats 3 source maps are enabled does not include any exports[`Generating rollup stats 4 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98808, - "name": "main-Bz9ahex4.js", - "normalized": "main-*.js", - "size": 577073, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-amd", "bundler": { @@ -852,7 +775,7 @@ exports[`Generating rollup stats 4 {"format":"amd","expected":"amd"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -860,14 +783,7 @@ exports[`Generating rollup stats 4 {"format":"amd","expected":"amd"} matches the exports[`Generating rollup stats 4 {"format":"cjs","expected":"cjs"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98252, - "name": "main-xb59kfqA.js", - "normalized": "main-*.js", - "size": 560888, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-cjs", "bundler": { @@ -930,7 +846,7 @@ exports[`Generating rollup stats 4 {"format":"cjs","expected":"cjs"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -938,14 +854,7 @@ exports[`Generating rollup stats 4 {"format":"cjs","expected":"cjs"} matches the exports[`Generating rollup stats 4 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98243, - "name": "main-DTMU6eC0.js", - "normalized": "main-*.js", - "size": 560873, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-esm", "bundler": { @@ -1008,7 +917,7 @@ exports[`Generating rollup stats 4 {"format":"es","expected":"esm"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1016,14 +925,7 @@ exports[`Generating rollup stats 4 {"format":"es","expected":"esm"} matches the exports[`Generating rollup stats 4 {"format":"esm","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98243, - "name": "main-DTMU6eC0.js", - "normalized": "main-*.js", - "size": 560873, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-esm", "bundler": { @@ -1086,7 +988,7 @@ exports[`Generating rollup stats 4 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1094,14 +996,7 @@ exports[`Generating rollup stats 4 {"format":"esm","expected":"esm"} matches the exports[`Generating rollup stats 4 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98243, - "name": "main-DTMU6eC0.js", - "normalized": "main-*.js", - "size": 560873, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-esm", "bundler": { @@ -1164,7 +1059,7 @@ exports[`Generating rollup stats 4 {"format":"module","expected":"esm"} matches "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1172,14 +1067,7 @@ exports[`Generating rollup stats 4 {"format":"module","expected":"esm"} matches exports[`Generating rollup stats 4 {"format":"iife","expected":"iife"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98804, - "name": "main-B7VbaLUG.js", - "normalized": "main-*.js", - "size": 577068, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-iife", "bundler": { @@ -1242,7 +1130,7 @@ exports[`Generating rollup stats 4 {"format":"iife","expected":"iife"} matches t "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1250,14 +1138,7 @@ exports[`Generating rollup stats 4 {"format":"iife","expected":"iife"} matches t exports[`Generating rollup stats 4 {"format":"umd","expected":"umd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98845, - "name": "main-DXhL8JQx.js", - "normalized": "main-*.js", - "size": 577167, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-umd", "bundler": { @@ -1320,7 +1201,7 @@ exports[`Generating rollup stats 4 {"format":"umd","expected":"umd"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1328,14 +1209,7 @@ exports[`Generating rollup stats 4 {"format":"umd","expected":"umd"} matches the exports[`Generating rollup stats 4 {"format":"system","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 99908, - "name": "main-DwblAVj_.js", - "normalized": "main-*.js", - "size": 609446, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-system", "bundler": { @@ -1398,7 +1272,7 @@ exports[`Generating rollup stats 4 {"format":"system","expected":"system"} match "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1406,14 +1280,7 @@ exports[`Generating rollup stats 4 {"format":"system","expected":"system"} match exports[`Generating rollup stats 4 {"format":"systemjs","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 99908, - "name": "main-DwblAVj_.js", - "normalized": "main-*.js", - "size": 609446, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-system", "bundler": { @@ -1476,7 +1343,7 @@ exports[`Generating rollup stats 4 {"format":"systemjs","expected":"system"} mat "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1484,14 +1351,7 @@ exports[`Generating rollup stats 4 {"format":"systemjs","expected":"system"} mat exports[`Generating rollup stats 4 source maps are enabled does not include any source maps 1`] = ` { - "assets": [ - { - "gzipSize": 98277, - "name": "main-DTMU6eC0.js", - "normalized": "main-*.js", - "size": 560915, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringNotContaining ".map", "bundler": { @@ -1554,7 +1414,7 @@ exports[`Generating rollup stats 4 source maps are enabled does not include any "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } diff --git a/integration-tests/fixtures/generate-bundle-stats/rollup/rollup-plugin.test.ts b/integration-tests/fixtures/generate-bundle-stats/rollup/rollup-plugin.test.ts index 76c3a175..9dc40fdf 100644 --- a/integration-tests/fixtures/generate-bundle-stats/rollup/rollup-plugin.test.ts +++ b/integration-tests/fixtures/generate-bundle-stats/rollup/rollup-plugin.test.ts @@ -2,6 +2,7 @@ import { $ } from "bun"; import { describe, it, expect, afterEach, beforeEach } from "bun:test"; import { GenerateConfig } from "../../../scripts/gen-config"; +import { bundleStatsAssetsHint } from "../bundle-stats-snapshot-hints"; const rollupPath = (version: number) => `node_modules/rollupV${version}/dist/bin/rollup`; @@ -70,6 +71,7 @@ describe("Generating rollup stats", () => { bundleName: expect.stringContaining( `test-rollup-v${version}-${expected}`, ), + assets: bundleStatsAssetsHint(), plugin: { name: expect.stringMatching("@codecov/rollup-plugin"), }, @@ -119,6 +121,7 @@ describe("Generating rollup stats", () => { duration: expect.any(Number), outputPath: expect.stringContaining(`/distV${version}`), bundleName: expect.not.stringContaining(".map"), + assets: bundleStatsAssetsHint(), plugin: { name: expect.stringMatching("@codecov/rollup-plugin"), }, diff --git a/integration-tests/fixtures/generate-bundle-stats/solidstart/__snapshots__/solidstart-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/solidstart/__snapshots__/solidstart-plugin.test.ts.snap index f3c0c536..d948178b 100644 --- a/integration-tests/fixtures/generate-bundle-stats/solidstart/__snapshots__/solidstart-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/solidstart/__snapshots__/solidstart-plugin.test.ts.snap @@ -1,4 +1,4 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating solidstart stats 1 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { diff --git a/integration-tests/fixtures/generate-bundle-stats/sveltekit/__snapshots__/sveltekit-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/sveltekit/__snapshots__/sveltekit-plugin.test.ts.snap index a2460528..6f35d69b 100644 --- a/integration-tests/fixtures/generate-bundle-stats/sveltekit/__snapshots__/sveltekit-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/sveltekit/__snapshots__/sveltekit-plugin.test.ts.snap @@ -1,4 +1,4 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating sveltekit stats 2 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { @@ -15,7 +15,7 @@ exports[`Generating sveltekit stats 2 {"format":"es","expected":"esm"} matches t "outputPath": StringContaining ".svelte-kit", "plugin": { "name": StringMatching "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -36,7 +36,7 @@ exports[`Generating sveltekit stats 2 {"format":"es","expected":"esm"} matches t "outputPath": StringContaining ".svelte-kit", "plugin": { "name": StringMatching "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -57,7 +57,7 @@ exports[`Generating sveltekit stats 2 {"format":"esm","expected":"esm"} matches "outputPath": StringContaining ".svelte-kit", "plugin": { "name": StringMatching "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -78,7 +78,7 @@ exports[`Generating sveltekit stats 2 {"format":"esm","expected":"esm"} matches "outputPath": StringContaining ".svelte-kit", "plugin": { "name": StringMatching "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -99,7 +99,7 @@ exports[`Generating sveltekit stats 2 {"format":"module","expected":"esm"} match "outputPath": StringContaining ".svelte-kit", "plugin": { "name": StringMatching "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -120,7 +120,7 @@ exports[`Generating sveltekit stats 2 {"format":"module","expected":"esm"} match "outputPath": StringContaining ".svelte-kit", "plugin": { "name": StringMatching "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } diff --git a/integration-tests/fixtures/generate-bundle-stats/sveltekit/sveltekit-plugin.test.ts b/integration-tests/fixtures/generate-bundle-stats/sveltekit/sveltekit-plugin.test.ts index 00af7f06..ef776c2a 100644 --- a/integration-tests/fixtures/generate-bundle-stats/sveltekit/sveltekit-plugin.test.ts +++ b/integration-tests/fixtures/generate-bundle-stats/sveltekit/sveltekit-plugin.test.ts @@ -165,7 +165,7 @@ describe("Generating sveltekit stats", () => { afterEach(async () => { await $`rm -rf ${sveltekitApp}/vite.config.ts`; await $`rm -rf ${sveltekitApp}/.svelte-kit`; - await $`rm -rf ${sveltekitApp}/vite.config.ts.timestamp-*`; + await $`rm -rf ${sveltekitApp}/vite.config.ts.timestamp-*`.nothrow(); await $`rm -rf ./fixtures/generate-bundle-stats/sveltekit/.svelte-kit`; }); diff --git a/integration-tests/fixtures/generate-bundle-stats/vite/.gitignore b/integration-tests/fixtures/generate-bundle-stats/vite/.gitignore new file mode 100644 index 00000000..2da76002 --- /dev/null +++ b/integration-tests/fixtures/generate-bundle-stats/vite/.gitignore @@ -0,0 +1 @@ +vite-*.config.ts.timestamp-* diff --git a/integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-plugin.test.ts.snap index 6d7000cc..ff14caa8 100644 --- a/integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-plugin.test.ts.snap @@ -1,15 +1,8 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating vite stats v4 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26821, - "name": "assets/index-b7a309be.js", - "normalized": "assets/index-*.js", - "size": 72360, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-amd", "bundler": { @@ -86,7 +79,7 @@ exports[`Generating vite stats v4 {"format":"amd","expected":"amd"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -94,14 +87,7 @@ exports[`Generating vite stats v4 {"format":"amd","expected":"amd"} matches the exports[`Generating vite stats v4 {"format":"cjs","expected":"cjs"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26812, - "name": "assets/index-7de22500.js", - "normalized": "assets/index-*.js", - "size": 72342, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-cjs", "bundler": { @@ -178,7 +164,7 @@ exports[`Generating vite stats v4 {"format":"cjs","expected":"cjs"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -186,14 +172,7 @@ exports[`Generating vite stats v4 {"format":"cjs","expected":"cjs"} matches the exports[`Generating vite stats v4 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 27169, - "name": "assets/index-320c8eaf.js", - "normalized": "assets/index-*.js", - "size": 73071, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-esm", "bundler": { @@ -270,7 +249,7 @@ exports[`Generating vite stats v4 {"format":"es","expected":"esm"} matches the s "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -278,14 +257,7 @@ exports[`Generating vite stats v4 {"format":"es","expected":"esm"} matches the s exports[`Generating vite stats v4 {"format":"esm","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 27169, - "name": "assets/index-320c8eaf.js", - "normalized": "assets/index-*.js", - "size": 73071, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-esm", "bundler": { @@ -362,7 +334,7 @@ exports[`Generating vite stats v4 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -370,14 +342,7 @@ exports[`Generating vite stats v4 {"format":"esm","expected":"esm"} matches the exports[`Generating vite stats v4 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 27169, - "name": "assets/index-320c8eaf.js", - "normalized": "assets/index-*.js", - "size": 73071, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-esm", "bundler": { @@ -454,7 +419,7 @@ exports[`Generating vite stats v4 {"format":"module","expected":"esm"} matches t "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -462,14 +427,7 @@ exports[`Generating vite stats v4 {"format":"module","expected":"esm"} matches t exports[`Generating vite stats v4 {"format":"iife","expected":"iife"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26821, - "name": "assets/index-646c8a11.js", - "normalized": "assets/index-*.js", - "size": 72356, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-iife", "bundler": { @@ -546,7 +504,7 @@ exports[`Generating vite stats v4 {"format":"iife","expected":"iife"} matches th "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -554,14 +512,7 @@ exports[`Generating vite stats v4 {"format":"iife","expected":"iife"} matches th exports[`Generating vite stats v4 {"format":"umd","expected":"umd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26850, - "name": "assets/index-5458a54a.js", - "normalized": "assets/index-*.js", - "size": 72423, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-umd", "bundler": { @@ -638,7 +589,7 @@ exports[`Generating vite stats v4 {"format":"umd","expected":"umd"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -646,14 +597,7 @@ exports[`Generating vite stats v4 {"format":"umd","expected":"umd"} matches the exports[`Generating vite stats v4 {"format":"system","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26850, - "name": "assets/index-2fd1a797.js", - "normalized": "assets/index-*.js", - "size": 72405, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-system", "bundler": { @@ -730,7 +674,7 @@ exports[`Generating vite stats v4 {"format":"system","expected":"system"} matche "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -738,14 +682,7 @@ exports[`Generating vite stats v4 {"format":"system","expected":"system"} matche exports[`Generating vite stats v4 {"format":"systemjs","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26850, - "name": "assets/index-2fd1a797.js", - "normalized": "assets/index-*.js", - "size": 72405, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-system", "bundler": { @@ -822,7 +759,7 @@ exports[`Generating vite stats v4 {"format":"systemjs","expected":"system"} matc "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -830,14 +767,7 @@ exports[`Generating vite stats v4 {"format":"systemjs","expected":"system"} matc exports[`Generating vite stats v4 source maps are enabled does not include any source maps 1`] = ` { - "assets": [ - { - "gzipSize": 27198, - "name": "assets/index-320c8eaf.js", - "normalized": "assets/index-*.js", - "size": 73114, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringNotContaining ".map", "bundler": { @@ -914,7 +844,7 @@ exports[`Generating vite stats v4 source maps are enabled does not include any s "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -922,14 +852,7 @@ exports[`Generating vite stats v4 source maps are enabled does not include any s exports[`Generating vite stats v5 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26821, - "name": "assets/index-D0r0olUW.js", - "normalized": "assets/index-*.js", - "size": 72360, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-amd", "bundler": { @@ -1006,7 +929,7 @@ exports[`Generating vite stats v5 {"format":"amd","expected":"amd"} matches the "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1014,14 +937,7 @@ exports[`Generating vite stats v5 {"format":"amd","expected":"amd"} matches the exports[`Generating vite stats v5 {"format":"cjs","expected":"cjs"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26812, - "name": "assets/index-_9bu_Rar.js", - "normalized": "assets/index-*.js", - "size": 72342, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-cjs", "bundler": { @@ -1098,7 +1014,7 @@ exports[`Generating vite stats v5 {"format":"cjs","expected":"cjs"} matches the "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1106,14 +1022,7 @@ exports[`Generating vite stats v5 {"format":"cjs","expected":"cjs"} matches the exports[`Generating vite stats v5 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 27169, - "name": "assets/index-Cq3U4pkx.js", - "normalized": "assets/index-*.js", - "size": 73071, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-esm", "bundler": { @@ -1190,7 +1099,7 @@ exports[`Generating vite stats v5 {"format":"es","expected":"esm"} matches the s "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1198,14 +1107,7 @@ exports[`Generating vite stats v5 {"format":"es","expected":"esm"} matches the s exports[`Generating vite stats v5 {"format":"esm","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 27169, - "name": "assets/index-Cq3U4pkx.js", - "normalized": "assets/index-*.js", - "size": 73071, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-esm", "bundler": { @@ -1282,7 +1184,7 @@ exports[`Generating vite stats v5 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1290,14 +1192,7 @@ exports[`Generating vite stats v5 {"format":"esm","expected":"esm"} matches the exports[`Generating vite stats v5 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 27169, - "name": "assets/index-Cq3U4pkx.js", - "normalized": "assets/index-*.js", - "size": 73071, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-esm", "bundler": { @@ -1374,7 +1269,7 @@ exports[`Generating vite stats v5 {"format":"module","expected":"esm"} matches t "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1382,14 +1277,7 @@ exports[`Generating vite stats v5 {"format":"module","expected":"esm"} matches t exports[`Generating vite stats v5 {"format":"iife","expected":"iife"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26821, - "name": "assets/index-B31DUBuo.js", - "normalized": "assets/index-*.js", - "size": 72356, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-iife", "bundler": { @@ -1466,7 +1354,7 @@ exports[`Generating vite stats v5 {"format":"iife","expected":"iife"} matches th "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1474,14 +1362,7 @@ exports[`Generating vite stats v5 {"format":"iife","expected":"iife"} matches th exports[`Generating vite stats v5 {"format":"umd","expected":"umd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26850, - "name": "assets/index-BFgpG9Ne.js", - "normalized": "assets/index-*.js", - "size": 72423, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-umd", "bundler": { @@ -1558,7 +1439,7 @@ exports[`Generating vite stats v5 {"format":"umd","expected":"umd"} matches the "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1566,14 +1447,7 @@ exports[`Generating vite stats v5 {"format":"umd","expected":"umd"} matches the exports[`Generating vite stats v5 {"format":"system","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26850, - "name": "assets/index-Cn9uVtOh.js", - "normalized": "assets/index-*.js", - "size": 72405, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-system", "bundler": { @@ -1650,7 +1524,7 @@ exports[`Generating vite stats v5 {"format":"system","expected":"system"} matche "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1658,14 +1532,7 @@ exports[`Generating vite stats v5 {"format":"system","expected":"system"} matche exports[`Generating vite stats v5 {"format":"systemjs","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26850, - "name": "assets/index-Cn9uVtOh.js", - "normalized": "assets/index-*.js", - "size": 72405, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-system", "bundler": { @@ -1742,7 +1609,7 @@ exports[`Generating vite stats v5 {"format":"systemjs","expected":"system"} matc "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1750,14 +1617,7 @@ exports[`Generating vite stats v5 {"format":"systemjs","expected":"system"} matc exports[`Generating vite stats v5 source maps are enabled does not include any source maps 1`] = ` { - "assets": [ - { - "gzipSize": 27198, - "name": "assets/index-Cq3U4pkx.js", - "normalized": "assets/index-*.js", - "size": 73114, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringNotContaining ".map", "bundler": { @@ -1834,7 +1694,7 @@ exports[`Generating vite stats v5 source maps are enabled does not include any s "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1842,14 +1702,7 @@ exports[`Generating vite stats v5 source maps are enabled does not include any s exports[`Generating vite stats v6 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26835, - "name": "assets/index-BQsq0t7E.js", - "normalized": "assets/index-*.js", - "size": 72422, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-amd", "bundler": { @@ -1933,7 +1786,7 @@ exports[`Generating vite stats v6 {"format":"amd","expected":"amd"} matches the "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1941,14 +1794,7 @@ exports[`Generating vite stats v6 {"format":"amd","expected":"amd"} matches the exports[`Generating vite stats v6 {"format":"cjs","expected":"cjs"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26852, - "name": "assets/index-C4o0PbSK.js", - "normalized": "assets/index-*.js", - "size": 72402, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-cjs", "bundler": { @@ -2032,7 +1878,7 @@ exports[`Generating vite stats v6 {"format":"cjs","expected":"cjs"} matches the "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2040,14 +1886,7 @@ exports[`Generating vite stats v6 {"format":"cjs","expected":"cjs"} matches the exports[`Generating vite stats v6 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 27189, - "name": "assets/index-Cc5984px.js", - "normalized": "assets/index-*.js", - "size": 73131, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-esm", "bundler": { @@ -2131,7 +1970,7 @@ exports[`Generating vite stats v6 {"format":"es","expected":"esm"} matches the s "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2139,14 +1978,7 @@ exports[`Generating vite stats v6 {"format":"es","expected":"esm"} matches the s exports[`Generating vite stats v6 {"format":"esm","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 27189, - "name": "assets/index-Cc5984px.js", - "normalized": "assets/index-*.js", - "size": 73131, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-esm", "bundler": { @@ -2230,7 +2062,7 @@ exports[`Generating vite stats v6 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2238,14 +2070,7 @@ exports[`Generating vite stats v6 {"format":"esm","expected":"esm"} matches the exports[`Generating vite stats v6 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 27189, - "name": "assets/index-Cc5984px.js", - "normalized": "assets/index-*.js", - "size": 73131, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-esm", "bundler": { @@ -2329,7 +2154,7 @@ exports[`Generating vite stats v6 {"format":"module","expected":"esm"} matches t "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2337,14 +2162,7 @@ exports[`Generating vite stats v6 {"format":"module","expected":"esm"} matches t exports[`Generating vite stats v6 {"format":"iife","expected":"iife"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26836, - "name": "assets/index-C2FevV0y.js", - "normalized": "assets/index-*.js", - "size": 72418, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-iife", "bundler": { @@ -2428,7 +2246,7 @@ exports[`Generating vite stats v6 {"format":"iife","expected":"iife"} matches th "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2436,14 +2254,7 @@ exports[`Generating vite stats v6 {"format":"iife","expected":"iife"} matches th exports[`Generating vite stats v6 {"format":"umd","expected":"umd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26875, - "name": "assets/index-CaYdJAO0.js", - "normalized": "assets/index-*.js", - "size": 72485, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-umd", "bundler": { @@ -2527,7 +2338,7 @@ exports[`Generating vite stats v6 {"format":"umd","expected":"umd"} matches the "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2535,14 +2346,7 @@ exports[`Generating vite stats v6 {"format":"umd","expected":"umd"} matches the exports[`Generating vite stats v6 {"format":"system","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26874, - "name": "assets/index-CZb5YUA8.js", - "normalized": "assets/index-*.js", - "size": 72467, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-system", "bundler": { @@ -2626,7 +2430,7 @@ exports[`Generating vite stats v6 {"format":"system","expected":"system"} matche "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2634,14 +2438,7 @@ exports[`Generating vite stats v6 {"format":"system","expected":"system"} matche exports[`Generating vite stats v6 {"format":"systemjs","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26874, - "name": "assets/index-CZb5YUA8.js", - "normalized": "assets/index-*.js", - "size": 72467, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-system", "bundler": { @@ -2725,7 +2522,7 @@ exports[`Generating vite stats v6 {"format":"systemjs","expected":"system"} matc "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2733,14 +2530,7 @@ exports[`Generating vite stats v6 {"format":"systemjs","expected":"system"} matc exports[`Generating vite stats v6 source maps are enabled does not include any source maps 1`] = ` { - "assets": [ - { - "gzipSize": 27219, - "name": "assets/index-Cc5984px.js", - "normalized": "assets/index-*.js", - "size": 73174, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringNotContaining ".map", "bundler": { @@ -2824,7 +2614,7 @@ exports[`Generating vite stats v6 source maps are enabled does not include any s "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } diff --git a/integration-tests/fixtures/generate-bundle-stats/vite/vite-plugin.test.ts b/integration-tests/fixtures/generate-bundle-stats/vite/vite-plugin.test.ts index 467af41f..c8095ff4 100644 --- a/integration-tests/fixtures/generate-bundle-stats/vite/vite-plugin.test.ts +++ b/integration-tests/fixtures/generate-bundle-stats/vite/vite-plugin.test.ts @@ -2,11 +2,12 @@ import { $ } from "bun"; import { describe, it, expect, afterEach, beforeEach } from "bun:test"; import { GenerateConfig } from "../../../scripts/gen-config"; +import { bundleStatsAssetsHint } from "../bundle-stats-snapshot-hints"; const vitePath = (version: number) => `node_modules/viteV${version}/bin/vite.js`; const viteConfig = (version: number, format: string) => - `fixtures/generate-bundle-stats/vite/vite-v${version}-${format}.config.*`; + `fixtures/generate-bundle-stats/vite/vite-v${version}-${format}.config.ts`; const viteApp = "test-apps/vite"; const VERSIONS = [4, 5, 6]; @@ -69,6 +70,7 @@ describe("Generating vite stats", () => { bundleName: expect.stringContaining( `test-vite-v${version}-${expected}`, ), + assets: bundleStatsAssetsHint(), plugin: { name: expect.stringMatching("@codecov/vite-plugin"), }, @@ -118,6 +120,7 @@ describe("Generating vite stats", () => { duration: expect.any(Number), outputPath: expect.stringContaining(`/distV${version}`), bundleName: expect.not.stringContaining(".map"), + assets: bundleStatsAssetsHint(), plugin: { name: expect.stringMatching("@codecov/vite-plugin"), }, diff --git a/integration-tests/fixtures/generate-bundle-stats/webpack/__snapshots__/webpack-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/webpack/__snapshots__/webpack-plugin.test.ts.snap index 29b03d18..0f7805e1 100644 --- a/integration-tests/fixtures/generate-bundle-stats/webpack/__snapshots__/webpack-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/webpack/__snapshots__/webpack-plugin.test.ts.snap @@ -1,15 +1,8 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating webpack stats 5 {"format":"array-push","expected":"array-push"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 25250, - "name": "main-2c458a0c7e378af1ec1a.js", - "normalized": "main-*.js", - "size": 70959, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-webpack-v5-array-push", "bundler": { @@ -70,7 +63,7 @@ exports[`Generating webpack stats 5 {"format":"array-push","expected":"array-pus "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/webpack-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -78,14 +71,7 @@ exports[`Generating webpack stats 5 {"format":"array-push","expected":"array-pus exports[`Generating webpack stats 5 {"format":"commonjs","expected":"cjs"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 25250, - "name": "main-2c458a0c7e378af1ec1a.js", - "normalized": "main-*.js", - "size": 70959, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-webpack-v5-cjs", "bundler": { @@ -146,7 +132,7 @@ exports[`Generating webpack stats 5 {"format":"commonjs","expected":"cjs"} match "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/webpack-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -154,14 +140,7 @@ exports[`Generating webpack stats 5 {"format":"commonjs","expected":"cjs"} match exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 25250, - "name": "main-2c458a0c7e378af1ec1a.js", - "normalized": "main-*.js", - "size": 70959, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-webpack-v5-esm", "bundler": { @@ -222,7 +201,7 @@ exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/webpack-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -230,14 +209,7 @@ exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches exports[`Generating webpack stats 5 source maps are enabled does not include any source maps 1`] = ` { - "assets": [ - { - "gzipSize": 25250, - "name": "main-2c458a0c7e378af1ec1a.js", - "normalized": "main-*.js", - "size": 70959, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringNotContaining ".map", "bundler": { @@ -298,7 +270,7 @@ exports[`Generating webpack stats 5 source maps are enabled does not include any "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/webpack-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } diff --git a/integration-tests/fixtures/generate-bundle-stats/webpack/webpack-plugin.test.ts b/integration-tests/fixtures/generate-bundle-stats/webpack/webpack-plugin.test.ts index ddcac89d..01db3bf0 100644 --- a/integration-tests/fixtures/generate-bundle-stats/webpack/webpack-plugin.test.ts +++ b/integration-tests/fixtures/generate-bundle-stats/webpack/webpack-plugin.test.ts @@ -2,11 +2,12 @@ import { $ } from "bun"; import { describe, it, expect, afterEach, beforeEach } from "bun:test"; import { GenerateConfig } from "../../../scripts/gen-config"; +import { bundleStatsAssetsHint } from "../bundle-stats-snapshot-hints"; const webpackPath = (version: number) => `node_modules/webpackV${version}/bin/webpack.js`; const webpackConfig = (version: number, format: string) => - `fixtures/generate-bundle-stats/webpack/webpack-v${version}-${format}.config.*`; + `fixtures/generate-bundle-stats/webpack/webpack-v${version}-${format}.config.cjs`; const webpackApp = "test-apps/webpack"; const VERSIONS = [5]; @@ -62,6 +63,7 @@ describe("Generating webpack stats", () => { bundleName: expect.stringContaining( `test-webpack-v${version}-${expected}`, ), + assets: bundleStatsAssetsHint(), plugin: { name: expect.stringMatching("@codecov/webpack-plugin"), }, @@ -110,6 +112,7 @@ describe("Generating webpack stats", () => { duration: expect.any(Number), outputPath: expect.stringContaining(`/distV${version}`), bundleName: expect.not.stringContaining(".map"), + assets: bundleStatsAssetsHint(), plugin: { name: expect.stringMatching("@codecov/webpack-plugin"), }, diff --git a/integration-tests/package.json b/integration-tests/package.json index fa493a12..52d0d451 100644 --- a/integration-tests/package.json +++ b/integration-tests/package.json @@ -7,7 +7,7 @@ "type": "module", "scripts": { "test:e2e": "bun test fixtures/*", - "test:e2e:update": "bun test --update-snapshots", + "test:e2e:update": "bun test fixtures/* --update-snapshots", "test:e2e:astro": "bun test fixtures/**/astro/*", "test:e2e:bundle-analyzer": "bun test fixtures/**/bundle-analyzer/*", "test:e2e:nextjs": "bun test fixtures/**/nextjs/*", diff --git a/packages/astro-plugin/CHANGELOG.md b/packages/astro-plugin/CHANGELOG.md index 8d6e5319..9ddf8ec7 100644 --- a/packages/astro-plugin/CHANGELOG.md +++ b/packages/astro-plugin/CHANGELOG.md @@ -1,5 +1,38 @@ # @codecov/astro-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + - @codecov/vite-plugin@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/astro-plugin/package.json b/packages/astro-plugin/package.json index d558de51..ba131a0a 100644 --- a/packages/astro-plugin/package.json +++ b/packages/astro-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Astro Plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/astro-plugin/src/astro-bundle-analysis/__tests__/__snapshots__/astroBundleAnalysisPlugin.test.ts.snap b/packages/astro-plugin/src/astro-bundle-analysis/__tests__/__snapshots__/astroBundleAnalysisPlugin.test.ts.snap index e54af077..ab5cbc23 100644 --- a/packages/astro-plugin/src/astro-bundle-analysis/__tests__/__snapshots__/astroBundleAnalysisPlugin.test.ts.snap +++ b/packages/astro-plugin/src/astro-bundle-analysis/__tests__/__snapshots__/astroBundleAnalysisPlugin.test.ts.snap @@ -3,7 +3,7 @@ exports[`astroBundleAnalysisPlugin > when called > returns a plugin object 1`] = ` { "name": "@codecov/astro-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "vite": { "generateBundle": [Function], diff --git a/packages/bundle-analyzer/CHANGELOG.md b/packages/bundle-analyzer/CHANGELOG.md index 41923022..07a0aaeb 100644 --- a/packages/bundle-analyzer/CHANGELOG.md +++ b/packages/bundle-analyzer/CHANGELOG.md @@ -1,5 +1,37 @@ # @codecov/bundle-analyzer +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/bundle-analyzer/package.json b/packages/bundle-analyzer/package.json index 12f12fad..44cafdad 100644 --- a/packages/bundle-analyzer/package.json +++ b/packages/bundle-analyzer/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/bundle-analyzer", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Bundle Analyzer", "author": "Codecov", "license": "MIT", diff --git a/packages/bundler-plugin-core/CHANGELOG.md b/packages/bundler-plugin-core/CHANGELOG.md index 49d72acc..a53aad0b 100644 --- a/packages/bundler-plugin-core/CHANGELOG.md +++ b/packages/bundler-plugin-core/CHANGELOG.md @@ -1,5 +1,34 @@ # @codecov/bundler-plugin-core +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions + ## 1.9.1 ### Patch Changes diff --git a/packages/bundler-plugin-core/package.json b/packages/bundler-plugin-core/package.json index 4139e70d..e9802879 100644 --- a/packages/bundler-plugin-core/package.json +++ b/packages/bundler-plugin-core/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/bundler-plugin-core", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Bundler Plugin Core", "author": "Codecov", "license": "MIT", diff --git a/packages/nextjs-webpack-plugin/CHANGELOG.md b/packages/nextjs-webpack-plugin/CHANGELOG.md index 5cdffda6..f3d7b232 100644 --- a/packages/nextjs-webpack-plugin/CHANGELOG.md +++ b/packages/nextjs-webpack-plugin/CHANGELOG.md @@ -1,5 +1,38 @@ # @codecov/nextjs-webpack-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + - @codecov/webpack-plugin@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/nextjs-webpack-plugin/package.json b/packages/nextjs-webpack-plugin/package.json index 153a124b..44a12b0b 100644 --- a/packages/nextjs-webpack-plugin/package.json +++ b/packages/nextjs-webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/nextjs-webpack-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov NextJS (Webpack) plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/nextjs-webpack-plugin/src/nextjs-webpack-bundle-analysis/__tests__/__snapshots__/nextJSWebpackBundleAnalysisPlugin.test.ts.snap b/packages/nextjs-webpack-plugin/src/nextjs-webpack-bundle-analysis/__tests__/__snapshots__/nextJSWebpackBundleAnalysisPlugin.test.ts.snap index 42f2b86d..8bc41663 100644 --- a/packages/nextjs-webpack-plugin/src/nextjs-webpack-bundle-analysis/__tests__/__snapshots__/nextJSWebpackBundleAnalysisPlugin.test.ts.snap +++ b/packages/nextjs-webpack-plugin/src/nextjs-webpack-bundle-analysis/__tests__/__snapshots__/nextJSWebpackBundleAnalysisPlugin.test.ts.snap @@ -5,7 +5,7 @@ exports[`webpackBundleAnalysisPlugin > when called > returns a plugin object 1`] "buildEnd": [Function], "buildStart": [Function], "name": "@codecov/nextjs-webpack-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "webpack": [Function], "writeBundle": [Function], diff --git a/packages/nuxt-plugin/CHANGELOG.md b/packages/nuxt-plugin/CHANGELOG.md index 69959bac..b878c293 100644 --- a/packages/nuxt-plugin/CHANGELOG.md +++ b/packages/nuxt-plugin/CHANGELOG.md @@ -1,5 +1,38 @@ # @codecov/nuxt-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + - @codecov/vite-plugin@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/nuxt-plugin/package.json b/packages/nuxt-plugin/package.json index a2325762..2a498349 100644 --- a/packages/nuxt-plugin/package.json +++ b/packages/nuxt-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/nuxt-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Nuxt plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/nuxt-plugin/src/nuxt-bundle-analysis/__tests__/__snapshots__/nuxtBundleAnalysisPlugin.test.ts.snap b/packages/nuxt-plugin/src/nuxt-bundle-analysis/__tests__/__snapshots__/nuxtBundleAnalysisPlugin.test.ts.snap index 175d320f..70252ac1 100644 --- a/packages/nuxt-plugin/src/nuxt-bundle-analysis/__tests__/__snapshots__/nuxtBundleAnalysisPlugin.test.ts.snap +++ b/packages/nuxt-plugin/src/nuxt-bundle-analysis/__tests__/__snapshots__/nuxtBundleAnalysisPlugin.test.ts.snap @@ -3,7 +3,7 @@ exports[`nuxtBundleAnalysisPlugin > when called > returns a plugin object 1`] = ` { "name": "@codecov/nuxt-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "vite": { "generateBundle": [Function], diff --git a/packages/remix-vite-plugin/CHANGELOG.md b/packages/remix-vite-plugin/CHANGELOG.md index 75188ae0..cf175301 100644 --- a/packages/remix-vite-plugin/CHANGELOG.md +++ b/packages/remix-vite-plugin/CHANGELOG.md @@ -1,5 +1,38 @@ # @codecov/remix-vite-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + - @codecov/vite-plugin@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/remix-vite-plugin/package.json b/packages/remix-vite-plugin/package.json index 458778f6..48d93405 100644 --- a/packages/remix-vite-plugin/package.json +++ b/packages/remix-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/remix-vite-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Remix plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/remix-vite-plugin/src/remix-bundle-analysis/__tests__/__snapshots__/remixBundleAnalysisPlugin.test.ts.snap b/packages/remix-vite-plugin/src/remix-bundle-analysis/__tests__/__snapshots__/remixBundleAnalysisPlugin.test.ts.snap index 92c40e42..fa2709bb 100644 --- a/packages/remix-vite-plugin/src/remix-bundle-analysis/__tests__/__snapshots__/remixBundleAnalysisPlugin.test.ts.snap +++ b/packages/remix-vite-plugin/src/remix-bundle-analysis/__tests__/__snapshots__/remixBundleAnalysisPlugin.test.ts.snap @@ -3,7 +3,7 @@ exports[`remixBundleAnalysisPlugin > when called > returns a plugin object 1`] = ` { "name": "@codecov/remix-vite-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "vite": { "generateBundle": [Function], diff --git a/packages/rollup-plugin/CHANGELOG.md b/packages/rollup-plugin/CHANGELOG.md index 0d66918f..edb0f405 100644 --- a/packages/rollup-plugin/CHANGELOG.md +++ b/packages/rollup-plugin/CHANGELOG.md @@ -1,5 +1,37 @@ # @codecov/rollup-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/rollup-plugin/package.json b/packages/rollup-plugin/package.json index b7ae3277..f553e42a 100644 --- a/packages/rollup-plugin/package.json +++ b/packages/rollup-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Rollup plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/rollup-plugin/src/rollup-bundle-analysis/__tests__/__snapshots__/rollupBundleAnalysisPlugin.test.ts.snap b/packages/rollup-plugin/src/rollup-bundle-analysis/__tests__/__snapshots__/rollupBundleAnalysisPlugin.test.ts.snap index 9bb203c2..2dc2bc3a 100644 --- a/packages/rollup-plugin/src/rollup-bundle-analysis/__tests__/__snapshots__/rollupBundleAnalysisPlugin.test.ts.snap +++ b/packages/rollup-plugin/src/rollup-bundle-analysis/__tests__/__snapshots__/rollupBundleAnalysisPlugin.test.ts.snap @@ -5,7 +5,7 @@ exports[`rollupBundleAnalysisPlugin > when called > returns a plugin object 1`] "buildEnd": [Function], "buildStart": [Function], "name": "@codecov/rollup-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "rollup": { "generateBundle": [Function], }, diff --git a/packages/solidstart-plugin/CHANGELOG.md b/packages/solidstart-plugin/CHANGELOG.md index 1fd49c71..6db65fc6 100644 --- a/packages/solidstart-plugin/CHANGELOG.md +++ b/packages/solidstart-plugin/CHANGELOG.md @@ -1,5 +1,38 @@ # @codecov/solidstart-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + - @codecov/vite-plugin@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/solidstart-plugin/package.json b/packages/solidstart-plugin/package.json index f377362e..05a8dc6d 100644 --- a/packages/solidstart-plugin/package.json +++ b/packages/solidstart-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/solidstart-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov SolidStart plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/solidstart-plugin/src/solidstart-bundle-analysis/__tests__/__snapshots__/solidstartBundleAnalysisPlugin.test.ts.snap b/packages/solidstart-plugin/src/solidstart-bundle-analysis/__tests__/__snapshots__/solidstartBundleAnalysisPlugin.test.ts.snap index 76662787..9d6b595f 100644 --- a/packages/solidstart-plugin/src/solidstart-bundle-analysis/__tests__/__snapshots__/solidstartBundleAnalysisPlugin.test.ts.snap +++ b/packages/solidstart-plugin/src/solidstart-bundle-analysis/__tests__/__snapshots__/solidstartBundleAnalysisPlugin.test.ts.snap @@ -3,18 +3,7 @@ exports[`solidstartBundleAnalysisPlugin > when called > returns a plugin object 1`] = ` { "name": "@codecov/solidstart-plugin", - "pluginVersion": "1.9.1", - "version": "3", - "vite": { - "generateBundle": [Function], - }, -} -`; - -exports[`sveltekitBundleAnalysisPlugin > when called > returns a plugin object 1`] = ` -{ - "name": "@codecov/sveltekit-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "vite": { "generateBundle": [Function], diff --git a/packages/sveltekit-plugin/CHANGELOG.md b/packages/sveltekit-plugin/CHANGELOG.md index cbb56bee..860d9272 100644 --- a/packages/sveltekit-plugin/CHANGELOG.md +++ b/packages/sveltekit-plugin/CHANGELOG.md @@ -1,5 +1,38 @@ # @codecov/sveltekit-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + - @codecov/vite-plugin@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/sveltekit-plugin/package.json b/packages/sveltekit-plugin/package.json index 5180205e..f60a9554 100644 --- a/packages/sveltekit-plugin/package.json +++ b/packages/sveltekit-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov SvelteKit plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/sveltekit-plugin/src/sveltekit-bundle-analysis/__tests__/__snapshots__/sveltekitBundleAnalysisPlugin.test.ts.snap b/packages/sveltekit-plugin/src/sveltekit-bundle-analysis/__tests__/__snapshots__/sveltekitBundleAnalysisPlugin.test.ts.snap index 27626d75..5d6d13de 100644 --- a/packages/sveltekit-plugin/src/sveltekit-bundle-analysis/__tests__/__snapshots__/sveltekitBundleAnalysisPlugin.test.ts.snap +++ b/packages/sveltekit-plugin/src/sveltekit-bundle-analysis/__tests__/__snapshots__/sveltekitBundleAnalysisPlugin.test.ts.snap @@ -3,7 +3,7 @@ exports[`sveltekitBundleAnalysisPlugin > when called > returns a plugin object 1`] = ` { "name": "@codecov/sveltekit-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "vite": { "generateBundle": [Function], diff --git a/packages/vite-plugin/CHANGELOG.md b/packages/vite-plugin/CHANGELOG.md index c01a6430..ce2ac6fb 100644 --- a/packages/vite-plugin/CHANGELOG.md +++ b/packages/vite-plugin/CHANGELOG.md @@ -1,5 +1,37 @@ # @codecov/vite-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/vite-plugin/package.json b/packages/vite-plugin/package.json index dc950b70..4615a721 100644 --- a/packages/vite-plugin/package.json +++ b/packages/vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Vite plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/vite-plugin/src/vite-bundle-analysis/__tests__/__snapshots__/viteBundleAnalysisPlugin.test.ts.snap b/packages/vite-plugin/src/vite-bundle-analysis/__tests__/__snapshots__/viteBundleAnalysisPlugin.test.ts.snap index 8b60e2ec..c5c2e7a8 100644 --- a/packages/vite-plugin/src/vite-bundle-analysis/__tests__/__snapshots__/viteBundleAnalysisPlugin.test.ts.snap +++ b/packages/vite-plugin/src/vite-bundle-analysis/__tests__/__snapshots__/viteBundleAnalysisPlugin.test.ts.snap @@ -5,7 +5,7 @@ exports[`viteBundleAnalysisPlugin > when called > returns a plugin object 1`] = "buildEnd": [Function], "buildStart": [Function], "name": "@codecov/vite-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "vite": { "generateBundle": [Function], diff --git a/packages/webpack-plugin/CHANGELOG.md b/packages/webpack-plugin/CHANGELOG.md index f9bdc092..52aecb23 100644 --- a/packages/webpack-plugin/CHANGELOG.md +++ b/packages/webpack-plugin/CHANGELOG.md @@ -1,5 +1,37 @@ # @codecov/webpack-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/webpack-plugin/package.json b/packages/webpack-plugin/package.json index 3203e0d6..3d845f35 100644 --- a/packages/webpack-plugin/package.json +++ b/packages/webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/webpack-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Webpack plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/webpack-plugin/src/webpack-bundle-analysis/__tests__/__snapshots__/webpackBundleAnalysisPlugin.test.ts.snap b/packages/webpack-plugin/src/webpack-bundle-analysis/__tests__/__snapshots__/webpackBundleAnalysisPlugin.test.ts.snap index 71e9c5c2..902b08da 100644 --- a/packages/webpack-plugin/src/webpack-bundle-analysis/__tests__/__snapshots__/webpackBundleAnalysisPlugin.test.ts.snap +++ b/packages/webpack-plugin/src/webpack-bundle-analysis/__tests__/__snapshots__/webpackBundleAnalysisPlugin.test.ts.snap @@ -5,7 +5,7 @@ exports[`webpackBundleAnalysisPlugin > when called > returns a plugin object 1`] "buildEnd": [Function], "buildStart": [Function], "name": "@codecov/webpack-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "webpack": [Function], "writeBundle": [Function],