unstale

npm / bundlewatch

bundlewatch

What changed in bundlewatch 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

23 breaking3 security12 new APIs and options4 behavior and defaults1 tooling17 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

bundlewatch 160 changes

Breaking changes 23

  • Self-hosted services must return { "baselinePrefix": 1 } before prefixed clients can run; clients stop if support cannot be confirmed and never fall back to an unprefixed baseline.

    1.1.0release notes

  • Deep imports into bundlewatch/lib no longer work, except for lib/app.

    1.0.0release notes

  • Deep imports no longer work except bundlewatch/lib/app and bundlewatch/lib/app/index.js; use the package's main export.

    1.0.0upgrade guide

  • Discovered config files now take precedence over the package.json bundlewatch key; the first matching file wins, and a broken config fails without falling back.

    1.0.0upgrade guide

  • Basic auth credentials in service URLs continue to work but no longer appear in results links or GitHub status details links.

    1.0.0upgrade guide

  • ci.trackBranches replaces its defaults instead of merging with them index by index.

    1.0.0release notes

  • files replaces its defaults instead of merging with them index by index.

    1.0.0release notes

  • Configured files arrays replace the defaults instead of merging index by index.

    1.0.0upgrade guide

  • Pushes and other non-pull-request builds compare with the repository's default branch instead of master; CI_BRANCH_BASE and ci.repoBranchBase still override this.

    1.0.0upgrade guide

  • Statuses are reported on the pull request's head commit instead of GITHUB_SHA, the temporary merge commit.

    1.0.0upgrade guide

  • Proxy variables HTTP_PROXY, HTTPS_PROXY, and NO_PROXY are no longer read.

    1.0.0release notes

  • BundleWatch no longer reads HTTP_PROXY, HTTPS_PROXY, NO_PROXY or similar variables for proxy configuration.

    1.0.0upgrade guide

  • Numeric maxSize values are now enforced; 0 still means no limit.

    1.0.0release notes

  • Numeric maxSize limits are now enforced instead of silently ignored; zero still means no limit.

    1.0.0upgrade guide

  • BundleWatch 1.0 requires Node.js 22.17 or later, including in CI.

    1.0.0release notes

  • Node.js 22.17 or later is required, including in CI.

    1.0.0upgrade guide

  • For users migrating from 0.3.x, the first 1.0 run reports files previously saved under an empty name as new until a tracked branch saves a new baseline.

    1.0.0release notes

  • Pull request builds no longer save baselines, preventing a fork's master from overwriting the repository's baseline; branch builds still save.

    1.0.0release notes

  • Pull request builds still compare with the baseline but no longer save one, preventing pull request branches from overwriting tracked branch baselines.

    1.0.0upgrade guide

  • When the service accepts a token for writing, results use a short service link; creating it adds a request and falls back to the long link after 5 seconds.

    1.0.0upgrade guide

  • The service is introducing stricter authorization for saving baselines and creating short links: public-repository tokens must belong to a user with push access or be an installation token for that repository.

    1.0.0release notes

  • The default tracked branches are now master, main and develop, plus the repository's default branch on GitHub Actions.

    1.0.0upgrade guide

  • Configured trackBranches arrays replace the defaults instead of merging index by index.

    1.0.0upgrade guide

Security 3

  • Basic Auth credentials in bundlewatchServiceHost URLs continue to work and are omitted from results links, CI logs, and GitHub statuses.

    1.0.0release notes

  • Results pages escape every value and allow no scripts.

    1.0.0release notes

  • The setup page checks an OAuth state and recommends a fine-grained token.

    1.0.0release notes

New APIs and options 12

  • Run bundlewatch with --no-compare to check maxSize without requesting or comparing with the base branch's baseline.

    1.2.0release notes

  • Set compare: false to check maxSize without requesting or comparing with the base branch's baseline. Files over maxSize still fail the run.

    1.2.0release notes

  • An optional top-level prefix gives each application its own GitHub statuses and baseline history. Prefixes must be 1–64 lowercase ASCII letters, digits, hyphens, or underscores, starting with a letter or digit.

    1.1.0release notes

  • BundleWatch discovers supported config files automatically, searching upward to the nearest package.json; a discovered config takes precedence over the package.json bundlewatch key.

    1.0.0release notes

  • Adds a service endpoint that renders a short results link.

    1.0.0release notes

  • GitHub Actions can use the workflow's GITHUB_TOKEN for saving baselines and creating short links by granting statuses: write, keeping contents: read, and passing the token as BUNDLEWATCH_GITHUB_TOKEN.

    1.0.0upgrade guide

  • On GitHub Enterprise Server, commit statuses are sent to GITHUB_API_URL; comparisons require a self-hosted service because service.bundlewatch.io only accepts github.com tokens.

    1.0.0release notes

  • Commit statuses are sent to the GitHub API at GITHUB_API_URL when it is set, supporting GitHub Enterprise Server.

    1.0.0upgrade guide

  • Adds a service endpoint that creates a short results link.

    1.0.0release notes

  • -V now prints the version.

    1.0.0upgrade guide

  • Adds a flag that prints the version.

    1.0.0release notes

  • --version now prints the version.

    1.0.0upgrade guide

Behavior and default changes 4

  • Newly generated short-link IDs are 22 characters; existing result links continue to work.

    1.1.0release notes

  • Brotli compression now works without installing brotli-size, using Node's built-in zlib to produce identical sizes.

    1.0.0upgrade guide

  • Defaults to master, main, and develop, plus the repository's default branch on GitHub Actions.

    1.0.0release notes

  • TypeScript configuration files load natively on Node.js 22.18 and later.

    1.0.0release notes

Tooling 1

  • The new command raises exceeded maxSize limits to fit built files, optionally adding --headroom. It previews by default; --write saves JSON config and package.json changes in place.

    1.2.0release notes

Fixes and other changes 17

  • Results pages stay steady when file sections are toggled.

    1.1.0release notes

  • Runs with missing or unreadable files no longer send a baseline and log the reason.

    1.0.0release notes

  • The service writes baselines before sending the response, preventing a write from being lost when the Lambda freezes.

    1.0.0release notes

  • The 0.x entry point bundlewatch/lib/app continues to work.

    1.0.0release notes

  • The 0.x entry point lib/bin/index.js continues to work.

    1.0.0release notes

  • Config discovery checks .mjs, .js, .cjs, .mts, .ts, .cts and .json in that order in each directory, searching upward from the current directory.

    1.0.0upgrade guide

  • Config loading supports .mjs files and configs with only named exports via import(); .ts, .mts and .cts load on Node.js 22.18 and later.

    1.0.0upgrade guide

  • Setting bundlewatchServiceHost to null prints no results link, and the Node.js API returns url: undefined.

    1.0.0release notes

  • Empty files with compression set to none measure 0 B instead of failing with Could not read file.

    1.0.0release notes

  • The --config flag accepts absolute paths.

    1.0.0release notes

  • An explicit --config path overrides config discovery and accepts absolute paths.

    1.0.0upgrade guide

  • When CI is set but CI_REPO_OWNER and CI_REPO_NAME are missing, the repository is read from GIT_URL.

    1.0.0release notes

  • Failing files with paths sharing the same final 37 characters no longer share a status; the second gets a (2) suffix.

    1.0.0release notes

  • Malformed results links return 400, GitHub failures return 503, and baselines too large to store return 413.

    1.0.0release notes

  • Removed files named after Object.prototype properties show as removed, and a file named __proto__ is measured instead of dropped.

    1.0.0release notes

  • Service results links now render for files without maxSize, and accept size strings such as 100KB sent by 0.x CLIs for numeric maxSize values.

    1.0.0release notes

  • Descriptions exceeding GitHub's 140-character limit are truncated instead of leaving the status pending.

    1.0.0release notes