zig/lib/std/json
Andrew Kelley 0e37ff0d59 std.fmt: breaking API changes
added adapter to AnyWriter and GenericWriter to help bridge the gap
between old and new API

make std.testing.expectFmt work at compile-time

std.fmt no longer has a dependency on std.unicode. Formatted printing
was never properly unicode-aware. Now it no longer pretends to be.

Breakage/deprecations:
* std.fs.File.reader -> std.fs.File.deprecatedReader
* std.fs.File.writer -> std.fs.File.deprecatedWriter
* std.io.GenericReader -> std.io.Reader
* std.io.GenericWriter -> std.io.Writer
* std.io.AnyReader -> std.io.Reader
* std.io.AnyWriter -> std.io.Writer
* std.fmt.format -> std.fmt.deprecatedFormat
* std.fmt.fmtSliceEscapeLower -> std.ascii.hexEscape
* std.fmt.fmtSliceEscapeUpper -> std.ascii.hexEscape
* std.fmt.fmtSliceHexLower -> {x}
* std.fmt.fmtSliceHexUpper -> {X}
* std.fmt.fmtIntSizeDec -> {B}
* std.fmt.fmtIntSizeBin -> {Bi}
* std.fmt.fmtDuration -> {D}
* std.fmt.fmtDurationSigned -> {D}
* {} -> {f} when there is a format method
* format method signature
  - anytype -> *std.io.Writer
  - inferred error set -> error{WriteFailed}
  - options -> (deleted)
* std.fmt.Formatted
  - now takes context type explicitly
  - no fmt string
2025-07-07 22:43:51 -07:00
..
dynamic.zig std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
dynamic_test.zig Add std.json.ParseOptions.parse_numbers to preserve float precision (#20744) 2024-07-25 20:55:06 -04:00
fmt.zig std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
hashmap.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
hashmap_test.zig x86_64: fix behavior of getValue 2023-10-26 21:45:58 -04:00
JSONTestSuite_test.zig x86_64: fix behavior of getValue 2023-10-26 21:45:58 -04:00
scanner.zig std.io: deprecated Reader/Writer; introduce new API 2025-07-07 22:43:51 -07:00
scanner_test.zig std.ArrayList: initial capacity based on cache line size 2025-02-13 00:19:03 -08:00
static.zig std.meta.intToEnum -> std.enums.fromInt 2025-05-13 07:28:41 +02:00
static_test.zig std.mem.bytesAsSlice: fix to support zero-bytes sized types 2025-03-24 22:08:05 +01:00
stringify.zig std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
stringify_test.zig std.io: deprecated Reader/Writer; introduce new API 2025-07-07 22:43:51 -07:00
test.zig json: respect duplicate_field_behavior in std.json.Value.jsonParse 2024-07-03 15:34:59 -04:00