Skip to content

v1.2.0

Choose a tag to compare

@DavidxDGM DavidxDGM released this 04 Jun 16:18
· 10 commits to main since this release

Changes

  • Raised the default safety limits to 128 MiB input and 512 MiB output for larger Bedrock resource pack JSON files.
  • Treat block comments as whitespace so cleanup cannot merge adjacent JSON tokens.
  • Make FixReader check context cancellation while reading chunked input.
  • Avoid copying input that is already valid UTF-8.
  • Added benchmarks and an optional compatibility test for Mojang's bedrock-samples resource pack JSON files.

Validation

  • go test ./... -count=1
  • go vet ./...
  • BEDROCK_SAMPLES_RESOURCE_PACK_DIR=<bedrock-samples>/resource_pack go test ./bedrockjsonfix -run TestOfficialBedrockSamplesResourcePackJSON -count=1
  • go test ./bedrockjsonfix -run ^$ -bench BenchmarkFixBytes -benchmem -benchtime=100ms