mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
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:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "bun",
|
||||
"version": "1.2.24",
|
||||
"version": "1.3.0",
|
||||
"workspaces": [
|
||||
"./packages/bun-types",
|
||||
"./packages/@types/bun"
|
||||
|
||||
@@ -279,7 +279,7 @@ fn genericExtend(this: *ScopeFunctions, globalThis: *JSGlobalObject, cfg: bun_te
|
||||
|
||||
fn errorInCI(globalThis: *jsc.JSGlobalObject, signature: []const u8) bun.JSError!void {
|
||||
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});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -747,7 +747,7 @@ pub const Expect = struct {
|
||||
if (bun.detectCI()) |_| {
|
||||
if (!update) {
|
||||
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 {
|
||||
|
||||
@@ -137,7 +137,7 @@ error: Hello World`,
|
||||
},
|
||||
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) {
|
||||
itBundled("bun/ExportsConditionsDevelopment" + backend.toUpperCase(), {
|
||||
files: {
|
||||
|
||||
@@ -55,7 +55,7 @@ test.only("should fail in CI", () => {
|
||||
|
||||
expect(exitCode).toBe(1);
|
||||
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(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]);
|
||||
|
||||
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 () => {
|
||||
|
||||
Reference in New Issue
Block a user