From 50145dd17690aed9c8e28dff78a5f751d45dfdb7 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Mon, 14 Jul 2025 13:12:40 +0200 Subject: [PATCH] feat: update cbor to add support for allocating extraction of arrays --- build.zig.zon | 4 ++-- src/Project.zig | 1 + src/renderer/vaxis/renderer.zig | 1 + src/shell.zig | 1 + src/syntax/src/ts_serializer.zig | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index d54aeec..176daeb 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -15,8 +15,8 @@ .hash = "dizzy-1.0.0-AAAAAM1wAAAiDbx_6RwcVEOBk8p2XOu8t9WPNc3K7kBK", }, .thespian = .{ - .url = "https://github.com/neurocyte/thespian/archive/b3176b32e62b7615908fa58c99167abbeb58bbc6.tar.gz", - .hash = "thespian-0.0.1-owFOjocZBgBvhsxDpjQoy0vRKrkP1S2HsxSNAnF8LRk2", + .url = "https://github.com/neurocyte/thespian/archive/539846236452b7ca89c3dada933f9b74ea82c654.tar.gz", + .hash = "thespian-0.0.1-owFOjocZBgC5hsHDnPI032IhcGg_SEpiVJe4O0spqfz7", }, .themes = .{ .url = "https://github.com/neurocyte/flow-themes/releases/download/master-952f9f630ea9544088fd30293666ee0650b7a690/flow-themes.tar.gz", diff --git a/src/Project.zig b/src/Project.zig index 489c328..19e4399 100644 --- a/src/Project.zig +++ b/src/Project.zig @@ -230,6 +230,7 @@ pub fn restore_state_v0(self: *Self, data: []const u8) error{ InvalidPIntType, JsonIncompatibleType, NotAnObject, + BadArrayAllocExtract, }!void { tp.trace(tp.channel.debug, .{"restore_state_v0"}); defer self.sort_files_by_mtime(); diff --git a/src/renderer/vaxis/renderer.zig b/src/renderer/vaxis/renderer.zig index f2a33ab..055a946 100644 --- a/src/renderer/vaxis/renderer.zig +++ b/src/renderer/vaxis/renderer.zig @@ -57,6 +57,7 @@ pub const Error = error{ InvalidPIntType, JsonIncompatibleType, NotAnObject, + BadArrayAllocExtract, } || std.Thread.SpawnError; pub fn init(allocator: std.mem.Allocator, handler_ctx: *anyopaque, no_alternate: bool, _: *const fn (ctx: *anyopaque) void) Error!Self { diff --git a/src/shell.zig b/src/shell.zig index 69746cb..cb27221 100644 --- a/src/shell.zig +++ b/src/shell.zig @@ -26,6 +26,7 @@ pub const Error = error{ InvalidPIntType, JsonIncompatibleType, NotAnObject, + BadArrayAllocExtract, }; pub const OutputHandler = fn (context: usize, parent: tp.pid_ref, arg0: []const u8, output: []const u8) void; diff --git a/src/syntax/src/ts_serializer.zig b/src/syntax/src/ts_serializer.zig index 973c1f7..90c5865 100644 --- a/src/syntax/src/ts_serializer.zig +++ b/src/syntax/src/ts_serializer.zig @@ -280,6 +280,7 @@ pub const DeserializeError = error{ JsonIncompatibleType, InvalidQueryCbor, NotAnObject, + BadArrayAllocExtract, }; pub fn fromCbor(cb: []const u8, allocator: std.mem.Allocator) DeserializeError!struct { *TSQuery, *std.heap.ArenaAllocator } {