50cb8cc9e9
fix(zig-0.16): BREAKING adapt to std.json.ObjectMap becoming unmanaged
...
Remove JsonObjectExtractor because extract(&obj) for ObjectMap cannot work
without a stored allocator
Migration: replace extract(&obj) with extractAlloc(&obj, allocator)
2026-04-15 11:42:26 +02:00
1b7cd31925
build: port to zig-0.16.0-dev.3133+5ec8e45f3
2026-04-09 18:50:30 +02:00
e444415cd9
refactor: make the panic in fmt explicit to avoid UB
2026-03-12 21:43:47 +01:00
46e7709232
feat: add slightly more robust fmtBuf API
2026-03-12 21:42:13 +01:00
0b1c94eae2
fix: short read bug in matchStructScalar and matchStructAlloc
2026-03-12 21:18:23 +01:00
45277e05a0
feat: add support for json objects and arrays to writeJsonValue
2026-03-12 21:06:15 +01:00
9461fea5a8
refactor: thread a single allocator through json writing functions
2026-03-12 20:45:24 +01:00
36bf0aea8f
fix: extractAlloc of json.Values from arrays
2026-03-12 20:32:05 +01:00
be1e1f551e
refactor: reduce write calls in float writing functions
...
Also using std.mem.writeInt.
2026-03-12 20:18:05 +01:00
30e260bcea
refactor: reduce writeTypedVal to a single write call
...
Also, use the very cool std.mem.writeInt to avoid endianess issues.
2026-03-12 20:16:49 +01:00
cc32dd2075
refactor: optimize decodeUIntLength to iterate instead of recursing
2026-03-12 20:08:19 +01:00
bda7980757
feat: add support for matching of non-u8 slices
2026-03-12 20:01:31 +01:00
2edec49b7f
fix: writing of large unsigned integers
2026-03-12 19:52:10 +01:00
ddb7015695
fix: add json.Value decoding of floats
2026-03-12 19:40:45 +01:00
5b856423d1
fix: extractAlloc should correctly handle optional values that are null
2026-03-12 19:35:36 +01:00
00c1e4a130
fix: panic on a short read of a float in skipValue
2026-03-12 19:32:10 +01:00
d7c87d0562
fix: panic on decode of a large negative integer
2026-03-12 19:27:48 +01:00
Vlad Panazan
defb24a36a
fix for 0.16.0-dev.2623
2026-02-22 12:52:18 +01:00
b6fc137250
feat: support cborExtract members in enum types
2026-01-22 14:50:21 +01:00
7d2eeb68c8
fix: more zig-0.15 API fixes
2025-09-24 22:31:38 +02:00
7886ab288d
feat: update fromJsonAlloc to zig-0.15
2025-09-16 21:44:42 +02:00
Loris Cro
0708420594
update to zig 0.15
2025-08-20 21:25:09 +02:00
ba2955fe3a
fix: extraction of null optional values
2025-08-08 12:45:58 +02:00
Lumor Sunil
3bdf25183e
Added struct and union cases in extract and extractAlloc and match (except for structs). Added tests for enums, unions and structs.
2025-07-22 17:18:59 +02:00
5ea4b73191
feat: add support for allocating extraction of arrays
2025-07-14 13:07:37 +02:00
1fccb83c70
fix: error return type in decodeMapHeader
2025-03-24 10:10:38 +01:00
18f6438865
fix: add missing NotAnObject error
2025-03-22 21:51:08 +01:00
769bff078f
feat: add support for allocating extractors
2025-03-22 21:49:19 +01:00
285f64ede6
feat: add support for extractor members
2025-03-22 21:48:50 +01:00
b32ffa3a52
fix: matchArray should not return an error on match failure
2025-03-22 21:46:55 +01:00
183248d7f2
fix: build of writeArray with zig-0.14
2025-03-22 21:45:58 +01:00
32505ed465
feat: more explicit error handling
2025-03-22 21:43:58 +01:00
37021a266b
feat: add support for encoder members
2025-03-22 21:42:24 +01:00
05c594e552
build: update to 0.14.0-dev.3039
2025-02-04 21:05:33 +01:00
53ddddbaa9
Merge branch 'master' into zig-0.14
2025-01-30 18:25:08 +01:00
34b2bf28d9
feat: support matching and extracting enums
2025-01-29 15:32:34 +01:00
f0cf0e7aac
feat: add message formatter
2025-01-24 12:42:33 +01:00
d0a05b80f6
build: update to zig-0.14.0-dev.2546
2024-12-21 20:51:51 +01:00
298b2b5e95
feat: make cbor.writeJsonValue public
2024-11-17 22:15:56 +01:00
b8c5be3656
fix: be more conservative with stack space to avoid stack overflows on macos
2024-10-21 18:52:00 +02:00
33a0c4d176
feat: prevent some more json encode/decode errors and clean-up error sets
2024-09-19 20:58:39 +02:00
95d31a7697
feat: use a dynamic buffer to prohibit error.Overflow in jsonScanUntil
...
Also, clean-up the definition of CborJsonError
2024-09-18 21:29:41 +02:00
ae54c014aa
fix: fix windows build of flow
2024-08-31 21:00:43 +02:00
2838ee23e0
feat: add support for floats to cbor
2024-06-25 21:04:51 +02:00
c220c79e97
fix: cbor write of errorsets
2024-04-21 00:26:21 +02:00
71367c963b
fix: use correct error type for cbor.writeErrorSet
2024-04-08 21:49:15 +02:00
a1040f0b5c
feat: add cbor.toJsonOptsAlloc
2024-04-05 17:26:42 +02:00
2e19486363
feat: add support for cbor extracting to optionals
2024-04-02 23:01:48 +02:00
08dd84ef20
feat: add allocating json encode/decode functions to cbor
2024-04-02 23:01:20 +02:00
9ec12966c1
fix: don't fail to consume input iterator in cbor match more operations
2024-03-21 22:43:34 +01:00