diff options
| author | 2022-10-09 19:04:25 -0700 | |
|---|---|---|
| committer | 2022-10-09 19:04:25 -0700 | |
| commit | 27ad376071bcea6f130db1118cd4717086101e23 (patch) | |
| tree | 2a2ff1915ed59cf5ee29e15f2ead0a5c58f3c7ab /src | |
| parent | eebcd300678aa6c022ee19f2504246e16e984947 (diff) | |
| download | bun-27ad376071bcea6f130db1118cd4717086101e23.tar.gz bun-27ad376071bcea6f130db1118cd4717086101e23.tar.zst bun-27ad376071bcea6f130db1118cd4717086101e23.zip | |
Bump version
Diffstat (limited to 'src')
| -rw-r--r-- | src/__global.zig | 12 | ||||
| -rw-r--r-- | src/bun.js/webcore/response.zig | 2 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/__global.zig b/src/__global.zig index e728d66ac..ceabb12d9 100644 --- a/src/__global.zig +++ b/src/__global.zig @@ -5,18 +5,20 @@ const Output = @import("output.zig"); const use_mimalloc = @import("./global.zig").use_mimalloc; const StringTypes = @import("./string_types.zig"); +const BASE_VERSION = "0.2"; + pub const build_id = std.fmt.parseInt(u64, std.mem.trim(u8, @embedFile("../build-id"), "\n \r\t"), 10) catch unreachable; pub const package_json_version = if (Environment.isDebug) - std.fmt.comptimePrint("0.1.{d}_debug", .{build_id}) + std.fmt.comptimePrint(BASE_VERSION ++ ".{d}_debug", .{build_id}) else - std.fmt.comptimePrint("0.1.{d}", .{build_id}); + std.fmt.comptimePrint(BASE_VERSION ++ ".{d}", .{build_id}); pub const package_json_version_with_sha = if (Environment.git_sha.len == 0) package_json_version else if (Environment.isDebug) - std.fmt.comptimePrint("0.1.{d}_debug ({s})", .{ build_id, Environment.git_sha[0..@minimum(Environment.git_sha.len, 8)] }) + std.fmt.comptimePrint(BASE_VERSION ++ ".{d}_debug ({s})", .{ build_id, Environment.git_sha[0..@minimum(Environment.git_sha.len, 8)] }) else - std.fmt.comptimePrint("0.1.{d} ({s})", .{ build_id, Environment.git_sha[0..@minimum(Environment.git_sha.len, 8)] }); + std.fmt.comptimePrint(BASE_VERSION ++ ".{d} ({s})", .{ build_id, Environment.git_sha[0..@minimum(Environment.git_sha.len, 8)] }); pub const os_name = if (Environment.isWindows) "win32" @@ -45,7 +47,7 @@ pub inline fn getStartTime() i128 { pub const version: @import("./install/semver.zig").Version = .{ .major = 0, - .minor = 1, + .minor = 2, .patch = build_id, }; diff --git a/src/bun.js/webcore/response.zig b/src/bun.js/webcore/response.zig index b6b608763..6a3885963 100644 --- a/src/bun.js/webcore/response.zig +++ b/src/bun.js/webcore/response.zig @@ -1566,7 +1566,7 @@ pub const Blob = struct { unreachable; }; - var truncate = needs_open or remain.len == 0; + var truncate = needs_open or bytes.len == 0; var written: usize = 0; defer { if (truncate) { |
