diff --git a/baml_language/Cargo.lock b/baml_language/Cargo.lock
index 54ad1ddd2cd..a3c8727def3 100644
--- a/baml_language/Cargo.lock
+++ b/baml_language/Cargo.lock
@@ -628,7 +628,7 @@ dependencies = [
[[package]]
name = "baml_bridge"
-version = "0.22.1"
+version = "0.22.2"
dependencies = [
"hex",
"indexmap",
@@ -6839,6 +6839,7 @@ dependencies = [
name = "sdk_test_csharp"
version = "0.1.0"
dependencies = [
+ "baml_version",
"base64",
"bex_project",
"bridge_ctypes",
diff --git a/baml_language/crates/baml_version/src/lib.rs b/baml_language/crates/baml_version/src/lib.rs
index 0b15457673f..8f15d376b5e 100644
--- a/baml_language/crates/baml_version/src/lib.rs
+++ b/baml_language/crates/baml_version/src/lib.rs
@@ -1,7 +1,7 @@
//! Stamped BAML language product version.
-pub const CANONICAL_VERSION: &str = "0.22.1";
-pub const PYPI_VERSION: &str = "0.22.1";
+pub const CANONICAL_VERSION: &str = "0.22.2";
+pub const PYPI_VERSION: &str = "0.22.2";
pub const CHANNEL: &str = "canary";
#[allow(dead_code)]
-const STABLE_VERSION: &str = "0.22.1";
+const STABLE_VERSION: &str = "0.22.2";
diff --git a/baml_language/release.toml b/baml_language/release.toml
index 5e716df05bf..d9fe70e2586 100644
--- a/baml_language/release.toml
+++ b/baml_language/release.toml
@@ -1,2 +1,2 @@
[release]
-canary_version = "0.22.1"
+canary_version = "0.22.2"
diff --git a/baml_language/sdk_tests/crates/csharp/Cargo.toml b/baml_language/sdk_tests/crates/csharp/Cargo.toml
index 4189da32d07..2c8953e95bc 100644
--- a/baml_language/sdk_tests/crates/csharp/Cargo.toml
+++ b/baml_language/sdk_tests/crates/csharp/Cargo.toml
@@ -13,6 +13,7 @@ prost = { workspace = true }
[dev-dependencies]
+baml_version = { workspace = true }
sdk_test_harness_runner = { path = "../../harness_runner" }
[package.metadata.ci]
diff --git a/baml_language/sdk_tests/crates/csharp/setup.ps1 b/baml_language/sdk_tests/crates/csharp/setup.ps1
index 5fbe8909e6b..1510d216de1 100644
--- a/baml_language/sdk_tests/crates/csharp/setup.ps1
+++ b/baml_language/sdk_tests/crates/csharp/setup.ps1
@@ -27,6 +27,23 @@ if (-not [System.IO.Path]::IsPathRooted($TargetDir)) {
$TargetDir = [System.IO.Path]::GetFullPath($TargetDir)
$NativeLibrary = Join-Path $TargetDir "debug/bridge_cffi.dll"
+# Exercise the release ABI probe in source CI, before publishing any packages.
+$AbiProbe = Join-Path $WorkspaceRoot "sdks/csharp/bridge_csharp/tests/Baml.Bridge.AbiLifetimeProbe/Baml.Bridge.AbiLifetimeProbe.csproj"
+$AbiBytecode = Join-Path $TargetDir "csharp-abi-probe.bytecode"
+Push-Location $WorkspaceRoot
+try {
+ cargo run --quiet -p sdk_test_codegen -- emit-bytecode --fixture function_calls --out $AbiBytecode
+ if ($LASTEXITCODE -ne 0) {
+ throw "ABI probe bytecode generation failed with exit code $LASTEXITCODE"
+ }
+ dotnet build $AbiProbe --configuration Debug --nologo -p:BamlNativeProbeMode=Direct -p:NuGetAudit=false
+ if ($LASTEXITCODE -ne 0) {
+ throw "ABI probe build failed with exit code $LASTEXITCODE"
+ }
+} finally {
+ Pop-Location
+}
+
# Build every fixture consumer (and the union-generator tool) in ONE
# MSBuild invocation: the projects compile in parallel across cores and the
# shared Baml.Bridge project builds exactly once. The tests then run with
@@ -58,5 +75,6 @@ try {
if ($env:NEXTEST_ENV) {
Add-Content -Path $env:NEXTEST_ENV -Value "SDK_TEST_CSHARP_SETUP=1"
+ Add-Content -Path $env:NEXTEST_ENV -Value "BAML_CSHARP_ABI_PROBE_BYTECODE=$AbiBytecode"
Add-Content -Path $env:NEXTEST_ENV -Value "BAML_BRIDGE_PATH=$NativeLibrary"
}
diff --git a/baml_language/sdk_tests/crates/csharp/setup.sh b/baml_language/sdk_tests/crates/csharp/setup.sh
index 4cddd0c8dd5..705660d1eee 100755
--- a/baml_language/sdk_tests/crates/csharp/setup.sh
+++ b/baml_language/sdk_tests/crates/csharp/setup.sh
@@ -21,6 +21,14 @@ case "$(uname -s)" in
*) native_library="$target_dir/debug/libbridge_cffi.so" ;;
esac
+# Exercise the release ABI probe in source CI, before publishing any packages.
+abi_probe="$workspace_root/sdks/csharp/bridge_csharp/tests/Baml.Bridge.AbiLifetimeProbe/Baml.Bridge.AbiLifetimeProbe.csproj"
+abi_bytecode="$target_dir/csharp-abi-probe.bytecode"
+(cd "$workspace_root" && cargo run --quiet -p sdk_test_codegen -- \
+ emit-bytecode --fixture function_calls --out "$abi_bytecode")
+dotnet build "$abi_probe" --configuration Debug --nologo \
+ -p:BamlNativeProbeMode=Direct -p:NuGetAudit=false
+
# Build every fixture consumer (and the union-generator tool) in ONE
# MSBuild invocation: the projects compile in parallel across cores and the
# shared Baml.Bridge project builds exactly once. The tests then run with
@@ -40,5 +48,6 @@ dotnet build \
if [[ -n "${NEXTEST_ENV:-}" ]]; then
echo "SDK_TEST_CSHARP_SETUP=1" >> "$NEXTEST_ENV"
+ echo "BAML_CSHARP_ABI_PROBE_BYTECODE=$abi_bytecode" >> "$NEXTEST_ENV"
echo "BAML_BRIDGE_PATH=$native_library" >> "$NEXTEST_ENV"
fi
diff --git a/baml_language/sdk_tests/crates/csharp/src/lib.rs b/baml_language/sdk_tests/crates/csharp/src/lib.rs
index e0bf2d88714..b6a029216f5 100644
--- a/baml_language/sdk_tests/crates/csharp/src/lib.rs
+++ b/baml_language/sdk_tests/crates/csharp/src/lib.rs
@@ -58,6 +58,28 @@ mod tests {
);
}
+ // SDK_PARITY_LINT(skip): exercises the C# release ABI probe before publication
+ #[test]
+ fn test_release_abi_lifetimes_match_current_native_library() {
+ let project = manifest_dir().join("../../../sdks/csharp/bridge_csharp/tests/Baml.Bridge.AbiLifetimeProbe/Baml.Bridge.AbiLifetimeProbe.csproj");
+ let native = env::var("BAML_BRIDGE_PATH").expect("native library from C# setup");
+ let bytecode =
+ env::var("BAML_CSHARP_ABI_PROBE_BYTECODE").expect("ABI fixture from C# setup");
+ let output = run_project(
+ &project,
+ &[
+ "-p:BamlNativeProbeMode=Direct",
+ "--",
+ &native,
+ baml_version::CANONICAL_VERSION,
+ &bytecode,
+ ],
+ );
+ assert_stdout_contains(&output, "pre_and_inflight_cancellation=ok");
+ assert_stdout_contains(&output, "media_handle_clone_release=ok");
+ assert_stdout_contains(&output, "callback_boundary=contained");
+ }
+
// SDK_PARITY_LINT(skip): exercises C#-specific native SDK integration coverage
#[test]
fn test_basic_calls_executes_sync_and_async() {
diff --git a/baml_language/sdks/cpp/bridge_cpp/include/baml/version.h b/baml_language/sdks/cpp/bridge_cpp/include/baml/version.h
index a609b034a27..c3d1deb4f40 100644
--- a/baml_language/sdks/cpp/bridge_cpp/include/baml/version.h
+++ b/baml_language/sdks/cpp/bridge_cpp/include/baml/version.h
@@ -4,8 +4,8 @@
namespace baml {
inline constexpr const char* kBridgeRuntimeName = "BAML C++ bridge";
-inline constexpr const char* kToolchainVersion = "0.22.1";
-inline constexpr const char* kBridgeRuntimeVersion = "0.22.1";
+inline constexpr const char* kToolchainVersion = "0.22.2";
+inline constexpr const char* kBridgeRuntimeVersion = "0.22.2";
inline constexpr const char* toolchain_version() { return kToolchainVersion; }
inline constexpr const char* bridge_runtime_version() {
diff --git a/baml_language/sdks/csharp/bridge_csharp/src/Baml.Bridge.csproj b/baml_language/sdks/csharp/bridge_csharp/src/Baml.Bridge.csproj
index a28a1de57d7..f247288c6d4 100644
--- a/baml_language/sdks/csharp/bridge_csharp/src/Baml.Bridge.csproj
+++ b/baml_language/sdks/csharp/bridge_csharp/src/Baml.Bridge.csproj
@@ -14,7 +14,7 @@
Baml.Bridge
Baml
baml-bridge
- 0.22.1
+ 0.22.2
false
BoundaryML
Managed runtime bridge for generated BAML C# clients.
diff --git a/baml_language/sdks/csharp/bridge_csharp/src/RuntimeIdentity.cs b/baml_language/sdks/csharp/bridge_csharp/src/RuntimeIdentity.cs
index 5739c97012d..e0f701b20eb 100644
--- a/baml_language/sdks/csharp/bridge_csharp/src/RuntimeIdentity.cs
+++ b/baml_language/sdks/csharp/bridge_csharp/src/RuntimeIdentity.cs
@@ -3,8 +3,8 @@ namespace Baml;
internal static class RuntimeIdentity
{
internal const string RuntimeName = "baml-bridge";
- internal const string ToolchainVersion = "0.22.1";
- internal const string BridgeRuntimeVersion = "0.22.1";
+ internal const string ToolchainVersion = "0.22.2";
+ internal const string BridgeRuntimeVersion = "0.22.2";
internal const string PackageVersion = BridgeRuntimeVersion;
internal const string RequiredBridgeVersion = ToolchainVersion;
internal const int GeneratedContractVersion = 1;
diff --git a/baml_language/sdks/csharp/bridge_csharp/tests/Baml.Bridge.AbiLifetimeProbe/Program.cs b/baml_language/sdks/csharp/bridge_csharp/tests/Baml.Bridge.AbiLifetimeProbe/Program.cs
index c52efb3db5e..df953c4aeec 100644
--- a/baml_language/sdks/csharp/bridge_csharp/tests/Baml.Bridge.AbiLifetimeProbe/Program.cs
+++ b/baml_language/sdks/csharp/bridge_csharp/tests/Baml.Bridge.AbiLifetimeProbe/Program.cs
@@ -7,7 +7,7 @@
internal static unsafe partial class Program
{
private const string NativeLibraryName = "bridge_cffi";
- private const uint BamlApiV1AbiVersion = 2;
+ private const uint BamlApiV1AbiVersion = 4;
private const uint BamlBridgeLanguageCSharp = 5;
private const uint BamlBridgeLanguageRust = 4;
private const uint StatusOk = 0;
@@ -21,7 +21,7 @@ internal static unsafe partial class Program
private const int HandleTypeMediaAudio = 7;
private static readonly nuint RequiredV1PrefixSize = ApiFieldEnd(
- nameof(BamlApiV1.RegisterBridge));
+ nameof(BamlApiV1.MediaFromFileContent));
private static readonly ConcurrentDictionary<
uint,
@@ -152,8 +152,8 @@ public static int Main(string[] args)
"hello world"),
"hello_world returned an unexpected value");
Require(
- api->CancelFunctionCall(helloCallId) == 0,
- "completed call ID was not reserved against reuse");
+ api->CancelFunctionCall(helloCallId) == 1,
+ "completed call ID was accepted for cancellation");
const string utf8Boundary = "héllo\0雪\u0001";
ulong stringCallId = api->NewFunctionCall();
@@ -247,18 +247,16 @@ private static void VerifyCancellation(BamlApiV1* api)
"pre-registration cancellation was rejected");
byte[] preCancelled = CallFunction(
api,
- "slow_cancel_probe",
- EncodeCallArguments(preCancelledId, null, null));
- RequireNonSuccess(
- preCancelled,
- "pre-cancelled call returned success");
+ "throws_test.SleepMs",
+ EncodeSleepArguments(preCancelledId));
+ RequireCancellation(preCancelled);
ulong inFlightId = api->NewFunctionCall();
Require(inFlightId != 0, "in-flight call ID allocation failed");
Task inFlight = DispatchFunction(
api,
- "slow_cancel_probe",
- EncodeCallArguments(inFlightId, null, null));
+ "throws_test.SleepMs",
+ EncodeSleepArguments(inFlightId));
Thread.Sleep(TimeSpan.FromMilliseconds(100));
var started = System.Diagnostics.Stopwatch.StartNew();
Require(
@@ -269,9 +267,7 @@ private static void VerifyCancellation(BamlApiV1* api)
.GetAwaiter()
.GetResult();
started.Stop();
- RequireNonSuccess(
- cancelled,
- "in-flight cancelled call returned success");
+ RequireCancellation(cancelled);
Require(
started.Elapsed < TimeSpan.FromSeconds(2),
$"in-flight cancellation completed too slowly: {started.Elapsed}");
@@ -324,8 +320,8 @@ private static void VerifyCallIdentifiers(BamlApiV1* api)
api->CancelFunctionCall(0) == 1,
"zero call ID was accepted for cancellation");
Require(
- api->CancelFunctionCall(ulong.MaxValue) == 0,
- "nonzero pre-registration cancellation was rejected");
+ api->CancelFunctionCall(ulong.MaxValue) == 1,
+ "unknown call ID was accepted for cancellation");
var identifiers = new HashSet();
for (int index = 0; index < 1_024; index++)
@@ -335,6 +331,12 @@ private static void VerifyCallIdentifiers(BamlApiV1* api)
Require(
identifiers.Add(identifier),
$"new_function_call repeated {identifier}");
+ Require(
+ api->ReleaseFunctionCall(identifier) == 0,
+ "unused call allocation was not released");
+ Require(
+ api->ReleaseFunctionCall(identifier) == 1,
+ "released call allocation was accepted twice");
}
}
@@ -377,6 +379,19 @@ private static Task DispatchFunction(
return completion.Task;
}
+ private static byte[] EncodeSleepArguments(ulong callId)
+ {
+ var value = new List();
+ WriteTag(value, 3, 0);
+ WriteVarint(value, 10_000); // InboundValue.int_value: milliseconds.
+ var argument = new List();
+ WriteLengthDelimited(argument, 1, Encoding.UTF8.GetBytes("ms"));
+ WriteLengthDelimited(argument, 6, value);
+ var call = new List(EncodeCallArguments(callId, null, null));
+ WriteLengthDelimited(call, 1, argument);
+ return [.. call];
+ }
+
private static byte[] EncodeCallArguments(
ulong callId,
string? argumentName,
@@ -405,6 +420,8 @@ private static byte[] EncodeCallArguments(
WriteTag(output, 2, 0);
WriteVarint(output, callId);
+ // An explicit default InvocationOptions is required; omission is a legacy call.
+ WriteLengthDelimited(output, 6, []);
return [.. output];
}
@@ -443,6 +460,17 @@ private static string DecodeSuccessfulString(byte[] encodedResult)
$"successful result is not a string or string literal: {Convert.ToHexString(encodedResult)}");
}
+ private static void RequireCancellation(byte[] encodedResult)
+ {
+ Require(
+ TryGetLengthDelimited(encodedResult, 3, out var error)
+ && TryGetLengthDelimited(error, 1, out var value)
+ && TryGetLengthDelimited(value, 7, out var errorClass)
+ && TryGetLengthDelimited(errorClass, 1, out var name)
+ && DecodeUtf8(name, "error class") == "baml.panics.Cancelled",
+ $"expected cancellation, received {Convert.ToHexString(encodedResult)}");
+ }
+
private static void RequireNonSuccess(
byte[] encodedResult,
string message)
@@ -888,6 +916,12 @@ private static void ValidateRequiredFunctions(BamlApiV1* api)
api->MediaMimeType is not null,
"media_mime_type is null");
Require(api->RegisterBridge is not null, "register_bridge is null");
+ Require(api->ReleaseFunctionCall is not null, "release_function_call is null");
+ Require(api->InvocationClockNs is not null, "invocation_clock_ns is null");
+ Require(api->InvocationProtocolVersion is not null, "invocation_protocol_version is null");
+ Require(api->InvocationProtocolVersion() == 1, "unexpected invocation protocol");
+ Require(api->MediaName is not null, "media_name is null");
+ Require(api->MediaFromFileContent is not null, "media_from_file_content is null");
}
private static nuint ApiFieldEnd(string field) =>
@@ -1108,6 +1142,18 @@ public readonly delegate* unmanaged[Cdecl]<
public readonly delegate* unmanaged[Cdecl]<
BamlBridgeInfoV1*,
BamlBuffer> RegisterBridge;
+ public readonly delegate* unmanaged[Cdecl], void> RegisterUnhandledSpawnErrorCallback;
+ public readonly delegate* unmanaged[Cdecl] ShutdownRuntime;
+ public readonly delegate* unmanaged[Cdecl] InitializeRuntimeFromBlobWithMetadata;
+ public readonly delegate* unmanaged[Cdecl] InvocationProtocolVersion;
+ public readonly delegate* unmanaged[Cdecl] InvocationClockNs;
+ public readonly delegate* unmanaged[Cdecl] ReleaseFunctionCall;
+ public readonly delegate* unmanaged[Cdecl], void> RegisterHostDispatchV2;
+ public readonly delegate* unmanaged[Cdecl], void> RegisterHostCancelCallback;
+ public readonly delegate* unmanaged[Cdecl] TraceSelection;
+ public readonly delegate* unmanaged[Cdecl] InvocationContext;
+ public readonly delegate* unmanaged[Cdecl] MediaName;
+ public readonly delegate* unmanaged[Cdecl] MediaFromFileContent;
}
private static partial class NativeMethods
diff --git a/baml_language/sdks/go/baml_go/version.go b/baml_language/sdks/go/baml_go/version.go
index 502487dcfa7..b7213ab537d 100644
--- a/baml_language/sdks/go/baml_go/version.go
+++ b/baml_language/sdks/go/baml_go/version.go
@@ -3,8 +3,8 @@ package baml_go
// ToolchainVersion is the canonical BAML toolchain whose generated bytecode
// this module accepts. BridgeRuntimeVersion preserves Go's published v prefix.
const BridgeRuntimeName = "github.com/boundaryml/baml-go"
-const ToolchainVersion = "0.22.1"
-const BridgeRuntimeVersion = "v0.22.1"
+const ToolchainVersion = "0.22.2"
+const BridgeRuntimeVersion = "v0.22.2"
const DefaultRuntimeVersion = ToolchainVersion
func requiredRuntimeVersion() string {
diff --git a/baml_language/sdks/java/baml_bridge/src/main/java/baml_bridge/BamlVersion.java b/baml_language/sdks/java/baml_bridge/src/main/java/baml_bridge/BamlVersion.java
index c1b4d4ca380..3207b73ed9b 100644
--- a/baml_language/sdks/java/baml_bridge/src/main/java/baml_bridge/BamlVersion.java
+++ b/baml_language/sdks/java/baml_bridge/src/main/java/baml_bridge/BamlVersion.java
@@ -1,8 +1,8 @@
package baml_bridge;
final class BamlVersion {
- static final String TOOLCHAIN_VERSION = "0.22.1";
- static final String BRIDGE_RUNTIME_VERSION = "0.22.1";
+ static final String TOOLCHAIN_VERSION = "0.22.2";
+ static final String BRIDGE_RUNTIME_VERSION = "0.22.2";
private BamlVersion() {}
}
diff --git a/baml_language/sdks/python/pyproject.toml b/baml_language/sdks/python/pyproject.toml
index c8c43a2c6f6..f2bee1a0513 100644
--- a/baml_language/sdks/python/pyproject.toml
+++ b/baml_language/sdks/python/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "baml_bridge"
-version = "0.22.1"
+version = "0.22.2"
description = "BAML python bindings (new system, bex_engine)"
authors = [{ "name" = "Boundary", "email" = "contact@boundaryml.com" }]
license = "Apache-2.0"
diff --git a/baml_language/sdks/python/src/baml_bridge/__init__.py b/baml_language/sdks/python/src/baml_bridge/__init__.py
index a61e3ab06ae..c9683c35c7e 100644
--- a/baml_language/sdks/python/src/baml_bridge/__init__.py
+++ b/baml_language/sdks/python/src/baml_bridge/__init__.py
@@ -71,7 +71,7 @@ def _handle_unhandled_spawn_error(error_bytes: bytes, cancelled: bool) -> None:
register_unhandled_spawn_error_callback(_handle_unhandled_spawn_error)
-__version__ = "0.22.1"
+__version__ = "0.22.2"
# ---------------------------------------------------------------------------
diff --git a/baml_language/sdks/python/uv.lock b/baml_language/sdks/python/uv.lock
index 809a3f0833e..8759621aca9 100644
--- a/baml_language/sdks/python/uv.lock
+++ b/baml_language/sdks/python/uv.lock
@@ -22,7 +22,7 @@ wheels = [
[[package]]
name = "baml-bridge"
-version = "0.22.1"
+version = "0.22.2"
source = { editable = "." }
dependencies = [
{ name = "protobuf" },
diff --git a/baml_language/sdks/ruby/bridge_ruby/lib/baml/bridge/version.rb b/baml_language/sdks/ruby/bridge_ruby/lib/baml/bridge/version.rb
index d57dfd10ef5..1e213d600a3 100644
--- a/baml_language/sdks/ruby/bridge_ruby/lib/baml/bridge/version.rb
+++ b/baml_language/sdks/ruby/bridge_ruby/lib/baml/bridge/version.rb
@@ -2,8 +2,8 @@
module Baml
module Bridge
- TOOLCHAIN_VERSION = "0.22.1"
- BRIDGE_RUNTIME_VERSION = "0.22.1"
+ TOOLCHAIN_VERSION = "0.22.2"
+ BRIDGE_RUNTIME_VERSION = "0.22.2"
VERSION = TOOLCHAIN_VERSION
end
end
diff --git a/baml_language/sdks/rust/bridge_rust/Cargo.toml b/baml_language/sdks/rust/bridge_rust/Cargo.toml
index f3bddf723ba..d07d913aa79 100644
--- a/baml_language/sdks/rust/bridge_rust/Cargo.toml
+++ b/baml_language/sdks/rust/bridge_rust/Cargo.toml
@@ -9,7 +9,7 @@ rust-version.workspace = true
# crates.io, so its version must be the canonical BAML language version.
# `scripts/baml-language-version` keeps this equal to the canary version and
# stamps it to the release version at packaging time (`check` guards it).
-version = "0.22.1"
+version = "0.22.2"
authors.workspace = true
license.workspace = true
homepage.workspace = true
diff --git a/baml_language/sdks/rust/bridge_rust/src/version.rs b/baml_language/sdks/rust/bridge_rust/src/version.rs
index d16a4b2d0f5..d307d562193 100644
--- a/baml_language/sdks/rust/bridge_rust/src/version.rs
+++ b/baml_language/sdks/rust/bridge_rust/src/version.rs
@@ -8,5 +8,5 @@
//! development builds too.
pub(crate) const BRIDGE_RUNTIME_NAME: &str = "baml_bridge";
-pub(crate) const TOOLCHAIN_VERSION: &str = "0.22.1";
-pub(crate) const BRIDGE_RUNTIME_VERSION: &str = "0.22.1";
+pub(crate) const TOOLCHAIN_VERSION: &str = "0.22.2";
+pub(crate) const BRIDGE_RUNTIME_VERSION: &str = "0.22.2";
diff --git a/baml_language/sdks/swift/Sources/BamlBridge/RuntimeIdentity.swift b/baml_language/sdks/swift/Sources/BamlBridge/RuntimeIdentity.swift
index caa2291ea4e..066552401a5 100644
--- a/baml_language/sdks/swift/Sources/BamlBridge/RuntimeIdentity.swift
+++ b/baml_language/sdks/swift/Sources/BamlBridge/RuntimeIdentity.swift
@@ -1,5 +1,5 @@
public enum BamlBridgeIdentity {
public static let runtimeName = "baml-swift"
- public static let toolchainVersion = "0.22.1"
- public static let bridgeRuntimeVersion = "0.22.1"
+ public static let toolchainVersion = "0.22.2"
+ public static let bridgeRuntimeVersion = "0.22.2"
}
diff --git a/baml_language/sdks/typescript/bridge_typescript/dist/native.js b/baml_language/sdks/typescript/bridge_typescript/dist/native.js
index e06f268e8f7..fae88a53726 100644
--- a/baml_language/sdks/typescript/bridge_typescript/dist/native.js
+++ b/baml_language/sdks/typescript/bridge_typescript/dist/native.js
@@ -88,8 +88,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-android-arm64')
const bindingPackageVersion = require('@boundaryml/baml-bridge-android-arm64/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -104,8 +104,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-android-arm-eabi')
const bindingPackageVersion = require('@boundaryml/baml-bridge-android-arm-eabi/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -125,8 +125,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-win32-x64-gnu')
const bindingPackageVersion = require('@boundaryml/baml-bridge-win32-x64-gnu/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -141,8 +141,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-win32-x64-msvc')
const bindingPackageVersion = require('@boundaryml/baml-bridge-win32-x64-msvc/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -158,8 +158,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-win32-ia32-msvc')
const bindingPackageVersion = require('@boundaryml/baml-bridge-win32-ia32-msvc/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -174,8 +174,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-win32-arm64-msvc')
const bindingPackageVersion = require('@boundaryml/baml-bridge-win32-arm64-msvc/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -193,8 +193,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-darwin-universal')
const bindingPackageVersion = require('@boundaryml/baml-bridge-darwin-universal/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -209,8 +209,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-darwin-x64')
const bindingPackageVersion = require('@boundaryml/baml-bridge-darwin-x64/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -225,8 +225,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-darwin-arm64')
const bindingPackageVersion = require('@boundaryml/baml-bridge-darwin-arm64/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -245,8 +245,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-freebsd-x64')
const bindingPackageVersion = require('@boundaryml/baml-bridge-freebsd-x64/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -261,8 +261,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-freebsd-arm64')
const bindingPackageVersion = require('@boundaryml/baml-bridge-freebsd-arm64/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -282,8 +282,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-linux-x64-musl')
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-x64-musl/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -298,8 +298,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-linux-x64-gnu')
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-x64-gnu/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -316,8 +316,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-linux-arm64-musl')
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-arm64-musl/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -332,8 +332,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-linux-arm64-gnu')
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-arm64-gnu/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -350,8 +350,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-linux-arm-musleabihf')
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-arm-musleabihf/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -366,8 +366,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-linux-arm-gnueabihf')
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-arm-gnueabihf/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -384,8 +384,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-linux-loong64-musl')
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-loong64-musl/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -400,8 +400,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-linux-loong64-gnu')
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-loong64-gnu/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -418,8 +418,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-linux-riscv64-musl')
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-riscv64-musl/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -434,8 +434,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-linux-riscv64-gnu')
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-riscv64-gnu/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -451,8 +451,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-linux-ppc64-gnu')
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-ppc64-gnu/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -467,8 +467,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-linux-s390x-gnu')
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-s390x-gnu/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -487,8 +487,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-openharmony-arm64')
const bindingPackageVersion = require('@boundaryml/baml-bridge-openharmony-arm64/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -503,8 +503,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-openharmony-x64')
const bindingPackageVersion = require('@boundaryml/baml-bridge-openharmony-x64/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
@@ -519,8 +519,8 @@ function requireNative() {
try {
const binding = require('@boundaryml/baml-bridge-openharmony-arm')
const bindingPackageVersion = require('@boundaryml/baml-bridge-openharmony-arm/package.json').version
- if (bindingPackageVersion !== '0.22.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
- throw new Error(`Native binding package version mismatch, expected 0.22.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ if (bindingPackageVersion !== '0.22.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.22.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
diff --git a/baml_language/sdks/typescript/bridge_typescript/package.json b/baml_language/sdks/typescript/bridge_typescript/package.json
index ab86cc784fb..75294bfb033 100644
--- a/baml_language/sdks/typescript/bridge_typescript/package.json
+++ b/baml_language/sdks/typescript/bridge_typescript/package.json
@@ -1,6 +1,6 @@
{
"name": "@boundaryml/baml-bridge",
- "version": "0.22.1",
+ "version": "0.22.2",
"type": "module",
"repository": {
"type": "git",
diff --git a/baml_language/sdks/typescript/bridge_typescript/src/version.rs b/baml_language/sdks/typescript/bridge_typescript/src/version.rs
index f3a0aad18e4..3eed70efbf7 100644
--- a/baml_language/sdks/typescript/bridge_typescript/src/version.rs
+++ b/baml_language/sdks/typescript/bridge_typescript/src/version.rs
@@ -1,3 +1,3 @@
pub(crate) const BRIDGE_RUNTIME_NAME: &str = "@boundaryml/baml-bridge";
-pub(crate) const TOOLCHAIN_VERSION: &str = "0.22.1";
-pub(crate) const BRIDGE_RUNTIME_VERSION: &str = "0.22.1";
+pub(crate) const TOOLCHAIN_VERSION: &str = "0.22.2";
+pub(crate) const BRIDGE_RUNTIME_VERSION: &str = "0.22.2";
diff --git a/baml_language/sdks/typescript/bridge_typescript_web/package.json b/baml_language/sdks/typescript/bridge_typescript_web/package.json
index 84c343a7670..7b7ac2976e7 100644
--- a/baml_language/sdks/typescript/bridge_typescript_web/package.json
+++ b/baml_language/sdks/typescript/bridge_typescript_web/package.json
@@ -1,6 +1,6 @@
{
"name": "@boundaryml/baml-bridge-web",
- "version": "0.22.1",
+ "version": "0.22.2",
"type": "module",
"repository": {
"type": "git",
diff --git a/baml_language/sdks/typescript/bridge_typescript_web/src/version.rs b/baml_language/sdks/typescript/bridge_typescript_web/src/version.rs
index a842e9eaa3c..3143f96bd8f 100644
--- a/baml_language/sdks/typescript/bridge_typescript_web/src/version.rs
+++ b/baml_language/sdks/typescript/bridge_typescript_web/src/version.rs
@@ -1,3 +1,3 @@
pub(crate) const BRIDGE_RUNTIME_NAME: &str = "@boundaryml/baml-bridge-web";
-pub(crate) const TOOLCHAIN_VERSION: &str = "0.22.1";
-pub(crate) const BRIDGE_RUNTIME_VERSION: &str = "0.22.1";
+pub(crate) const TOOLCHAIN_VERSION: &str = "0.22.2";
+pub(crate) const BRIDGE_RUNTIME_VERSION: &str = "0.22.2";
diff --git a/typescript2/app-vscode-ext/package.json b/typescript2/app-vscode-ext/package.json
index 853faa5f28e..1118a40676d 100644
--- a/typescript2/app-vscode-ext/package.json
+++ b/typescript2/app-vscode-ext/package.json
@@ -128,5 +128,5 @@
"typecheck": "tsc --noEmit"
},
"type": "commonjs",
- "version": "0.22.1"
+ "version": "0.22.2"
}