From 8e0264fa5c8c9f903af6bacb8b8ccd7b16b4f504 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 7 Aug 2026 07:45:06 +0000 Subject: [PATCH] Version Packages --- .changeset/tall-pugs-tickle.md | 11 ----------- packages/common/CHANGELOG.md | 10 ++++++++++ packages/common/package.json | 2 +- packages/rspack-plugin/CHANGELOG.md | 15 +++++++++++++++ packages/rspack-plugin/package.json | 2 +- packages/vite-plugin/CHANGELOG.md | 15 +++++++++++++++ packages/vite-plugin/package.json | 2 +- packages/webpack-plugin/CHANGELOG.md | 7 +++++++ packages/webpack-plugin/package.json | 2 +- 9 files changed, 51 insertions(+), 15 deletions(-) delete mode 100644 .changeset/tall-pugs-tickle.md diff --git a/.changeset/tall-pugs-tickle.md b/.changeset/tall-pugs-tickle.md deleted file mode 100644 index c2ece0e..0000000 --- a/.changeset/tall-pugs-tickle.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'agoda-devfeedback-common': minor -'agoda-devfeedback-vite2': minor -'agoda-devfeedback-rsbuild': minor ---- - -Make the Vite and Rsbuild build-time metrics apples-to-apples. - -- **Vite production builds now measure the whole build.** The reported `timeTaken` was `buildEnd - buildStart`, and Rollup's `buildEnd` fires when the module graph is complete — before `renderChunk`, `generateBundle` and `writeBundle`. Minification and emitting assets were excluded: 18% of the build under esbuild, 64% under terser, on a 301-module project. It is now measured through `closeBundle`, matching what Rsbuild's `stats.endTime - stats.startTime` already covered. The transform phase is still reported, as a new `transformTimeMs` field, instead of being the headline number. -- **Rsbuild now emits `phase: 'clientready'` as a `command` event**, timed from dev server start so it shares an origin with Vite's. It previously existed only as a `clientReady` entry inside `devFeedback[]`, timed with `performance.now()` — i.e. from page navigation, excluding everything before the browser opened the page — which was not comparable with Vite's number. The browser-relative values are unchanged and still in `devFeedback[]`, and are also attached to the new event as `domContentLoadedMs` / `firstContentfulPaintMs`. -- **Vite's `prebundled` flag can now actually report `true`.** It compared the mtime of `node_modules/.vite/deps/_metadata.json` at `listening`, but dependency prebundling is triggered by the first browser request and has not run at that point — so it reported `false` on a warm cache and nothing on a cold one, never observing the cost it exists to measure. It is now sampled on the `clientready` report, and moves from the `devserver` event to the `clientready` event with it. diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index 416521c..22db97f 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,15 @@ # agoda-devfeedback-common +## 2.2.0 + +### Minor Changes + +- 83413f6: Make the Vite and Rsbuild build-time metrics apples-to-apples. + + - **Vite production builds now measure the whole build.** The reported `timeTaken` was `buildEnd - buildStart`, and Rollup's `buildEnd` fires when the module graph is complete — before `renderChunk`, `generateBundle` and `writeBundle`. Minification and emitting assets were excluded: 18% of the build under esbuild, 64% under terser, on a 301-module project. It is now measured through `closeBundle`, matching what Rsbuild's `stats.endTime - stats.startTime` already covered. The transform phase is still reported, as a new `transformTimeMs` field, instead of being the headline number. + - **Rsbuild now emits `phase: 'clientready'` as a `command` event**, timed from dev server start so it shares an origin with Vite's. It previously existed only as a `clientReady` entry inside `devFeedback[]`, timed with `performance.now()` — i.e. from page navigation, excluding everything before the browser opened the page — which was not comparable with Vite's number. The browser-relative values are unchanged and still in `devFeedback[]`, and are also attached to the new event as `domContentLoadedMs` / `firstContentfulPaintMs`. + - **Vite's `prebundled` flag can now actually report `true`.** It compared the mtime of `node_modules/.vite/deps/_metadata.json` at `listening`, but dependency prebundling is triggered by the first browser request and has not run at that point — so it reported `false` on a warm cache and nothing on a cold one, never observing the cost it exists to measure. It is now sampled on the `clientready` report, and moves from the `devserver` event to the `clientready` event with it. + ## 2.1.0 ### Minor Changes diff --git a/packages/common/package.json b/packages/common/package.json index 91adb51..ffac00f 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "agoda-devfeedback-common", - "version": "2.1.0", + "version": "2.2.0", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", diff --git a/packages/rspack-plugin/CHANGELOG.md b/packages/rspack-plugin/CHANGELOG.md index 5e3bca8..51d95c6 100644 --- a/packages/rspack-plugin/CHANGELOG.md +++ b/packages/rspack-plugin/CHANGELOG.md @@ -1,5 +1,20 @@ # agoda-devfeedback-rsbuild +## 2.2.0 + +### Minor Changes + +- 83413f6: Make the Vite and Rsbuild build-time metrics apples-to-apples. + + - **Vite production builds now measure the whole build.** The reported `timeTaken` was `buildEnd - buildStart`, and Rollup's `buildEnd` fires when the module graph is complete — before `renderChunk`, `generateBundle` and `writeBundle`. Minification and emitting assets were excluded: 18% of the build under esbuild, 64% under terser, on a 301-module project. It is now measured through `closeBundle`, matching what Rsbuild's `stats.endTime - stats.startTime` already covered. The transform phase is still reported, as a new `transformTimeMs` field, instead of being the headline number. + - **Rsbuild now emits `phase: 'clientready'` as a `command` event**, timed from dev server start so it shares an origin with Vite's. It previously existed only as a `clientReady` entry inside `devFeedback[]`, timed with `performance.now()` — i.e. from page navigation, excluding everything before the browser opened the page — which was not comparable with Vite's number. The browser-relative values are unchanged and still in `devFeedback[]`, and are also attached to the new event as `domContentLoadedMs` / `firstContentfulPaintMs`. + - **Vite's `prebundled` flag can now actually report `true`.** It compared the mtime of `node_modules/.vite/deps/_metadata.json` at `listening`, but dependency prebundling is triggered by the first browser request and has not run at that point — so it reported `false` on a warm cache and nothing on a cold one, never observing the cost it exists to measure. It is now sampled on the `clientready` report, and moves from the `devserver` event to the `clientready` event with it. + +### Patch Changes + +- Updated dependencies [83413f6] + - agoda-devfeedback-common@2.2.0 + ## 2.1.0 ### Minor Changes diff --git a/packages/rspack-plugin/package.json b/packages/rspack-plugin/package.json index 778a8e4..8dbb9f3 100644 --- a/packages/rspack-plugin/package.json +++ b/packages/rspack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "agoda-devfeedback-rsbuild", - "version": "2.1.0", + "version": "2.2.0", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", diff --git a/packages/vite-plugin/CHANGELOG.md b/packages/vite-plugin/CHANGELOG.md index 441eba2..0019bf3 100644 --- a/packages/vite-plugin/CHANGELOG.md +++ b/packages/vite-plugin/CHANGELOG.md @@ -1,5 +1,20 @@ # agoda-devfeedback-vite2 +## 2.2.0 + +### Minor Changes + +- 83413f6: Make the Vite and Rsbuild build-time metrics apples-to-apples. + + - **Vite production builds now measure the whole build.** The reported `timeTaken` was `buildEnd - buildStart`, and Rollup's `buildEnd` fires when the module graph is complete — before `renderChunk`, `generateBundle` and `writeBundle`. Minification and emitting assets were excluded: 18% of the build under esbuild, 64% under terser, on a 301-module project. It is now measured through `closeBundle`, matching what Rsbuild's `stats.endTime - stats.startTime` already covered. The transform phase is still reported, as a new `transformTimeMs` field, instead of being the headline number. + - **Rsbuild now emits `phase: 'clientready'` as a `command` event**, timed from dev server start so it shares an origin with Vite's. It previously existed only as a `clientReady` entry inside `devFeedback[]`, timed with `performance.now()` — i.e. from page navigation, excluding everything before the browser opened the page — which was not comparable with Vite's number. The browser-relative values are unchanged and still in `devFeedback[]`, and are also attached to the new event as `domContentLoadedMs` / `firstContentfulPaintMs`. + - **Vite's `prebundled` flag can now actually report `true`.** It compared the mtime of `node_modules/.vite/deps/_metadata.json` at `listening`, but dependency prebundling is triggered by the first browser request and has not run at that point — so it reported `false` on a warm cache and nothing on a cold one, never observing the cost it exists to measure. It is now sampled on the `clientready` report, and moves from the `devserver` event to the `clientready` event with it. + +### Patch Changes + +- Updated dependencies [83413f6] + - agoda-devfeedback-common@2.2.0 + ## 2.1.0 ### Minor Changes diff --git a/packages/vite-plugin/package.json b/packages/vite-plugin/package.json index f25b450..9bdb296 100644 --- a/packages/vite-plugin/package.json +++ b/packages/vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "agoda-devfeedback-vite2", - "version": "2.1.0", + "version": "2.2.0", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", diff --git a/packages/webpack-plugin/CHANGELOG.md b/packages/webpack-plugin/CHANGELOG.md index fcf41e7..27710a1 100644 --- a/packages/webpack-plugin/CHANGELOG.md +++ b/packages/webpack-plugin/CHANGELOG.md @@ -1,5 +1,12 @@ # agoda-devfeedback-webpack +## 2.0.11 + +### Patch Changes + +- Updated dependencies [83413f6] + - agoda-devfeedback-common@2.2.0 + ## 2.0.10 ### Patch Changes diff --git a/packages/webpack-plugin/package.json b/packages/webpack-plugin/package.json index 5af3ac2..5fcb752 100644 --- a/packages/webpack-plugin/package.json +++ b/packages/webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "agoda-devfeedback-webpack", - "version": "2.0.10", + "version": "2.0.11", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js",