Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .changeset/thirty-yaks-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@codecov/rollup-plugin": minor
"@codecov/bundle-analyzer": minor
"@codecov/bundler-plugin-core": minor
"@codecov/nextjs-webpack-plugin": minor
"@codecov/nuxt-plugin": minor
"@codecov/remix-vite-plugin": minor
"@codecov/solidstart-plugin": minor
"@codecov/sveltekit-plugin": minor
"@codecov/vite-plugin": minor
"@codecov/webpack-plugin": minor
---

Bumping minor version for Rollup updates
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ jobs:
url: ${{ secrets.CODECOV_STAGING_URL }}

integration-test:
name: Run integration tests (Node ${{ matrix.node-version }})
name: Run integration tests (Node ${{ matrix.node-version }}, Plugin ${{ matrix.plugin }})
needs: install
runs-on: ubuntu-latest
services:
Expand All @@ -233,6 +233,18 @@ jobs:
fail-fast: false
matrix:
node-version: ["18.x", "20.x"]
plugin:
[
"bundle-analyzer",
"nextjs",
"nuxt",
"remix",
"rollup",
"sveltekit",
"vite",
"webpack",
"solidstart",
]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -273,7 +285,8 @@ jobs:
run: pnpm run build

- name: Run e2e tests
run: pnpm run test:e2e
working-directory: ./integration-tests
run: pnpm run test:e2e:${{ matrix.plugin }}

upload-example-stats-production:
name: "Production: upload ${{ matrix.example }} stats"
Expand Down
6 changes: 3 additions & 3 deletions examples/bundle-analyzer-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"devDependencies": {
"@codecov/bundle-analyzer": "workspace:^",
"@codecov/rollup-plugin": "workspace:^",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-node-resolve": "^15.3.0",
"npm-run-all": "^4.1.5",
"rollup": "^4.9.6",
"rollup": "^4.24.0",
"serve": "^14.2.1"
},
"volta": {
Expand Down
2 changes: 1 addition & 1 deletion examples/next-js-15/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"next": "15.0.0-rc.0",
"next": "^15.0.1",
"react": "19.0.0-rc-b57d2823-20240822",
"react-dom": "19.0.0-rc-b57d2823-20240822"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/oidc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"rollup": "^4.9.6",
"rollup": "^4.24.0",
"typescript": "^5.3.3",
"vite": "^5.2.10"
},
Expand Down
6 changes: 3 additions & 3 deletions examples/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
},
"devDependencies": {
"@codecov/rollup-plugin": "workspace:^",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-node-resolve": "^15.3.0",
"npm-run-all": "^4.1.5",
"rollup": "^4.9.6",
"rollup": "^4.24.0",
"serve": "^14.2.1"
},
"volta": {
Expand Down
2 changes: 1 addition & 1 deletion examples/tokenless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"rollup": "^4.9.6",
"rollup": "^4.24.0",
"typescript": "^5.3.3",
"vite": "^5.2.10"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"rollup": "^4.9.6",
"rollup": "^4.24.0",
"typescript": "^5.3.3",
"vite": "^5.2.10"
"vite": "^5.4.10"
},
"volta": {
"extends": "../../package.json"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Bun Snapshot v1, https://goo.gl/fbAQLP

exports[`Generating nextjs stats 14 matches the snapshot 1`] = `
exports[`Generating nextjs stats 15 matches the snapshot 1`] = `
{
"assets": ExpectArrayContaining {},
"builtAt": Any<Number>,
"bundleName": StringContaining "test-nextjs-v14-client-array-push",
"bundleName": StringContaining "test-nextjs-v15-client-array-push",
"bundler": {
"name": Any<String>,
"version": Any<String>,
Expand All @@ -21,11 +21,11 @@ exports[`Generating nextjs stats 14 matches the snapshot 1`] = `
}
`;

exports[`Generating nextjs stats 14 matches the snapshot 2`] = `
exports[`Generating nextjs stats 15 matches the snapshot 2`] = `
{
"assets": ExpectArrayContaining {},
"builtAt": Any<Number>,
"bundleName": StringContaining "test-nextjs-v14-server-cjs",
"bundleName": StringContaining "test-nextjs-v15-server-cjs",
"bundler": {
"name": Any<String>,
"version": Any<String>,
Expand All @@ -42,11 +42,11 @@ exports[`Generating nextjs stats 14 matches the snapshot 2`] = `
}
`;

exports[`Generating nextjs stats 14 matches the snapshot 3`] = `
exports[`Generating nextjs stats 15 matches the snapshot 3`] = `
{
"assets": ExpectArrayContaining {},
"builtAt": Any<Number>,
"bundleName": StringContaining "test-nextjs-v14-edge-server-array-push",
"bundleName": StringContaining "test-nextjs-v15-edge-server-array-push",
"bundler": {
"name": Any<String>,
"version": Any<String>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
config.plugins.push(
codecovNextJSWebpackPlugin({
enableBundleAnalysis: true,
bundleName: "test-nextjs-v14",
bundleName: "test-nextjs-v15",
uploadToken: "test-token",
apiUrl: process.env.API_URL,
webpack: options.webpack,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { GenerateConfig } from "../../../scripts/gen-config";

const nextjsApp = "test-apps/nextjs";

const VERSIONS = [14];
const VERSIONS = [15];

describe("Generating nextjs stats", () => {
describe.each(VERSIONS)("%d", (version) => {
Expand All @@ -15,8 +15,8 @@ describe("Generating nextjs stats", () => {
configFileName: "next",
format: "esm",
detectFormat: "esm",
version: `v14`,
detectVersion: "v14",
version: `v15`,
detectVersion: "v15",
file_format: "mjs",
enableSourceMaps: false,
overrideOutputPath: `${nextjsApp}/next.config.mjs`,
Expand All @@ -39,7 +39,7 @@ describe("Generating nextjs stats", () => {
const API_URL = `http://localhost:8000/test-url/${id}/200/false`;

// prepare and build the app
await $`cd test-apps/nextjs && API_URL=${API_URL} pnpm run build`;
await $`cd test-apps/nextjs && npx --no-install next info && API_URL=${API_URL} pnpm run build`;

const serverBundleName = `test-nextjs-v${version}-server-cjs`;
const edgeBundleName = `test-nextjs-v${version}-edge-server-array-push`;
Expand Down Expand Up @@ -185,15 +185,15 @@ describe("Generating nextjs stats", () => {
configFileName: "next",
format: "esm",
detectFormat: "esm",
version: `v14`,
detectVersion: "v14",
version: `v15`,
detectVersion: "v15",
file_format: "mjs",
enableSourceMaps: false,
overrideOutputPath: `${nextjsApp}/next.config.mjs`,
});

await config.createConfig();
config.removeBundleName(`test-nextjs-v14`);
config.removeBundleName(`test-nextjs-v15`);
await config.writeConfig();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`Generating nuxt stats 3 {"format":"amd","expected":"amd"} matches the s
"bundleName": StringContaining "test-nuxt-v3-client-amd",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -28,7 +28,7 @@ exports[`Generating nuxt stats 3 {"format":"amd","expected":"amd"} matches the s
"bundleName": StringContaining "test-nuxt-v3-server-esm",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -49,7 +49,7 @@ exports[`Generating nuxt stats 3 {"format":"cjs","expected":"cjs"} matches the s
"bundleName": StringContaining "test-nuxt-v3-client-cjs",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -70,7 +70,7 @@ exports[`Generating nuxt stats 3 {"format":"cjs","expected":"cjs"} matches the s
"bundleName": StringContaining "test-nuxt-v3-server-esm",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -91,7 +91,7 @@ exports[`Generating nuxt stats 3 {"format":"es","expected":"esm"} matches the sn
"bundleName": StringContaining "test-nuxt-v3-client-esm",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -112,7 +112,7 @@ exports[`Generating nuxt stats 3 {"format":"es","expected":"esm"} matches the sn
"bundleName": StringContaining "test-nuxt-v3-server-esm",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -133,7 +133,7 @@ exports[`Generating nuxt stats 3 {"format":"esm","expected":"esm"} matches the s
"bundleName": StringContaining "test-nuxt-v3-client-esm",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -154,7 +154,7 @@ exports[`Generating nuxt stats 3 {"format":"esm","expected":"esm"} matches the s
"bundleName": StringContaining "test-nuxt-v3-server-esm",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -175,7 +175,7 @@ exports[`Generating nuxt stats 3 {"format":"module","expected":"esm"} matches th
"bundleName": StringContaining "test-nuxt-v3-client-esm",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -196,7 +196,7 @@ exports[`Generating nuxt stats 3 {"format":"module","expected":"esm"} matches th
"bundleName": StringContaining "test-nuxt-v3-server-esm",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -217,7 +217,7 @@ exports[`Generating nuxt stats 3 {"format":"iife","expected":"iife"} matches the
"bundleName": StringContaining "test-nuxt-v3-client-iife",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -238,7 +238,7 @@ exports[`Generating nuxt stats 3 {"format":"iife","expected":"iife"} matches the
"bundleName": StringContaining "test-nuxt-v3-server-esm",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -259,7 +259,7 @@ exports[`Generating nuxt stats 3 {"format":"umd","expected":"umd"} matches the s
"bundleName": StringContaining "test-nuxt-v3-client-umd",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -280,7 +280,7 @@ exports[`Generating nuxt stats 3 {"format":"umd","expected":"umd"} matches the s
"bundleName": StringContaining "test-nuxt-v3-server-esm",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -301,7 +301,7 @@ exports[`Generating nuxt stats 3 {"format":"system","expected":"system"} matches
"bundleName": StringContaining "test-nuxt-v3-client-system",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -322,7 +322,7 @@ exports[`Generating nuxt stats 3 {"format":"system","expected":"system"} matches
"bundleName": StringContaining "test-nuxt-v3-server-esm",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -343,7 +343,7 @@ exports[`Generating nuxt stats 3 {"format":"systemjs","expected":"system"} match
"bundleName": StringContaining "test-nuxt-v3-client-system",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand All @@ -364,7 +364,7 @@ exports[`Generating nuxt stats 3 {"format":"systemjs","expected":"system"} match
"bundleName": StringContaining "test-nuxt-v3-server-esm",
"bundler": {
"name": "rollup",
"version": "4.21.2",
"version": "4.24.0",
},
"chunks": ExpectArrayContaining {},
"duration": Any<Number>,
Expand Down
3 changes: 3 additions & 0 deletions integration-tests/test-apps/nextjs/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next/core-web-vitals", "next/typescript"]
}
Loading
Loading