Skip to content

v4.5.0 — JSON is v2

Choose a tag to compare

@andygeiss andygeiss released this 05 Sep 14:38
· 4 commits to main since this release

Mirrors baseline v4.5.0 (rules commit 9035558): the two decisions v4.4.0 left open.

  • Every encoding/json import is encoding/json/v2, seven files. The /api decoder is one UnmarshalRead with RejectUnknownMembers; the trailing-content check is gone because v2 refuses a second object itself, and an oversized body is still a 413.
  • The refusal test gains the two cases the move makes new: a field in the wrong case is a 400 where v1 took it; a body over the cap is a 413.
  • htmx stays at 2.0.10; the baseline adopts 4.x in a release of its own once 4.0.1 ships.

GOTOOLCHAIN=go1.27.1 ./verify.sh: 79 gates, exit 0. make ci green on this commit.