Bump version to 1.3.0 (#23401)

## What does this PR do?

Bumps Bun version from 1.2.24 to 1.3.0, marking the start of the 1.3.x
release series.

## Changes

- **`package.json`**: Updated version from `1.2.24` to `1.3.0`
- **`LATEST`**: Updated from `1.2.23` to `1.3.0` (used by installation
scripts)
- **`test/bundler/bundler_bun.test.ts`**: Updated version check to
include `1.3.x` so export conditions tests continue to run

## Verification

 Debug build successful showing version `1.3.0-debug`
 All platforms compile successfully via `bun run zig:check-all` (49/49
steps)
 Bundler tests pass with updated version check

## Additional Notes

- CI workflow Bun versions (e.g., `1.2.3`, `1.2.0` in
`.github/workflows/release.yml`) are intentionally left unchanged -
these are pinned versions used to run the release tooling, not the
version being released
- Docker images use `ARG BUN_VERSION` passed at build time and don't
need updates
- The actual release version comes from git tags via `${{
env.BUN_VERSION }}`

---

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude Bot <claude-bot@bun.sh>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
robobun
2025-10-09 06:30:35 -07:00
committed by GitHub
parent 3f0d16d181
commit 6e3359dd16
6 changed files with 8 additions and 8 deletions

2
LATEST
View File

@@ -1 +1 @@
1.2.23 1.3.0

View File

@@ -1,7 +1,7 @@
{ {
"private": true, "private": true,
"name": "bun", "name": "bun",
"version": "1.2.24", "version": "1.3.0",
"workspaces": [ "workspaces": [
"./packages/bun-types", "./packages/bun-types",
"./packages/@types/bun" "./packages/@types/bun"

View File

@@ -279,7 +279,7 @@ fn genericExtend(this: *ScopeFunctions, globalThis: *JSGlobalObject, cfg: bun_te
fn errorInCI(globalThis: *jsc.JSGlobalObject, signature: []const u8) bun.JSError!void { fn errorInCI(globalThis: *jsc.JSGlobalObject, signature: []const u8) bun.JSError!void {
if (bun.detectCI()) |_| { if (bun.detectCI()) |_| {
return globalThis.throwPretty("{s} is not allowed in CI environments.\nIf this is not a CI environment, set the environment variable CI=false to force allow.", .{signature}); return globalThis.throwPretty("{s} is disabled in CI environments to prevent accidentally skipping tests. To override, set the environment variable CI=false.", .{signature});
} }
} }

View File

@@ -747,7 +747,7 @@ pub const Expect = struct {
if (bun.detectCI()) |_| { if (bun.detectCI()) |_| {
if (!update) { if (!update) {
const signature = comptime getSignature(fn_name, "", false); const signature = comptime getSignature(fn_name, "", false);
return this.throw(globalThis, signature, "\n\n<b>Matcher error<r>: Inline snapshot updates are not allowed in CI environments unless --update-snapshots is used\nIf this is not a CI environment, set the environment variable CI=false to force allow.", .{}); return this.throw(globalThis, signature, "\n\n<b>Matcher error<r>: Updating inline snapshots is disabled in CI environments unless --update-snapshots is used.\nTo override, set the environment variable CI=false.", .{});
} }
} }
var buntest_strong = this.bunTest() orelse { var buntest_strong = this.bunTest() orelse {

View File

@@ -137,7 +137,7 @@ error: Hello World`,
}, },
run: { stdout: "" }, run: { stdout: "" },
}); });
if (Bun.version.startsWith("1.2")) { if (Bun.version.startsWith("1.3") || Bun.version.startsWith("1.2")) {
for (const backend of ["api", "cli"] as const) { for (const backend of ["api", "cli"] as const) {
itBundled("bun/ExportsConditionsDevelopment" + backend.toUpperCase(), { itBundled("bun/ExportsConditionsDevelopment" + backend.toUpperCase(), {
files: { files: {

View File

@@ -55,7 +55,7 @@ test.only("should fail in CI", () => {
expect(exitCode).toBe(1); expect(exitCode).toBe(1);
expect(stderr).toContain( expect(stderr).toContain(
"error: test.only is not allowed in CI environments\nIf this is not a CI environment, set the environment variable CI=false to force allow.", "error: .only is disabled in CI environments to prevent accidentally skipping tests. To override, set the environment variable CI=false.",
); );
}); });
@@ -84,7 +84,7 @@ describe.only("CI test", () => {
expect(exitCode).toBe(1); expect(exitCode).toBe(1);
expect(stderr).toContain( expect(stderr).toContain(
"error: describe.only is not allowed in CI environments\nIf this is not a CI environment, set the environment variable CI=false to force allow.", "error: .only is disabled in CI environments to prevent accidentally skipping tests. To override, set the environment variable CI=false.",
); );
}); });
}); });
@@ -246,7 +246,7 @@ test("new inline snapshot", () => {
const [stdout, stderr, exitCode] = await Promise.all([proc.stdout.text(), proc.stderr.text(), proc.exited]); const [stdout, stderr, exitCode] = await Promise.all([proc.stdout.text(), proc.stderr.text(), proc.exited]);
expect(exitCode).toBe(1); expect(exitCode).toBe(1);
expect(stderr).toContain("Inline snapshot updates are not allowed in CI environments"); expect(stderr).toContain("Updating inline snapshots is disabled in CI environments");
}); });
test("toMatchInlineSnapshot should work for new inline snapshots when CI=false", async () => { test("toMatchInlineSnapshot should work for new inline snapshots when CI=false", async () => {