Skip to content

fix(deps): update go deps#58

Merged
mirpo merged 2 commits into
mainfrom
renovate/go-deps
Jul 4, 2026
Merged

fix(deps): update go deps#58
mirpo merged 2 commits into
mainfrom
renovate/go-deps

Conversation

@renovate

@renovate renovate Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/agentable/go-intl v0.2.5v0.2.11 age confidence
github.com/kaptinlin/go-i18n v0.4.9v0.6.0 age confidence
github.com/kaptinlin/jsonpointer v0.4.26v0.4.27 age confidence
github.com/kaptinlin/jsonschema v0.7.15v0.9.2 age confidence
github.com/kaptinlin/messageformat-go v0.6.5v0.8.2 age confidence
golang.org/x/sys v0.45.0v0.46.0 age confidence
golang.org/x/text v0.37.0v0.38.0 age confidence

Release Notes

agentable/go-intl (github.com/agentable/go-intl)

v0.2.11

Compare Source

v0.2.10

Compare Source

v0.2.9

Compare Source

v0.2.8

Compare Source

v0.2.7

Compare Source

v0.2.6

Compare Source

What's Changed

Fixed
  • Preserve private-use locale subtags during canonicalization.
  • Keep resolved options snapshots immutable.
  • Canonicalize relative-time decimal literal keys.
  • Reject out-of-range UTC offset identifiers.
Changed
  • Align the Intl surface with ECMA-402 ownership.
  • Rename the internal unsigned rounding helper for clearer number-formatting code.
  • Refresh ECMA-402, FormatJS, Node, and Intl reference submodules, including regenerated DurationFormat fixtures.
Tests
  • Improve sizecheck, plural, and helper coverage while keeping consumer-pattern coverage.
kaptinlin/go-i18n (github.com/kaptinlin/go-i18n)

v0.6.0

Compare Source

What's Changed

Changed
  • Redesigned bundle construction to return configuration errors instead of silently accepting invalid locale setup.
  • Made catalog loading atomic: failed loads leave the previous direct catalog untouched.
  • Resolved fallback chains at lookup time instead of storing fallback-populated catalog copies.
  • Replaced TranslationResult.Locale with MatchedLocale and CatalogLocale so direct, fallback, and missing results are unambiguous.
  • Isolated MessageFormat integration and clarified compilation errors.
  • Updated runtime dependencies.
Breaking Changes
  • NewBundle now returns (*I18n, error).
  • Option now configures construction state rather than mutating a live bundle.
  • TranslationResult.Locale was removed; use MatchedLocale and CatalogLocale.
  • Loading an invalid or unconfigured locale now returns an error instead of skipping it.

v0.5.0

Compare Source

v0.4.11

Compare Source

v0.4.10

Compare Source

kaptinlin/jsonpointer (github.com/kaptinlin/jsonpointer)

v0.4.27

Compare Source

kaptinlin/jsonschema (github.com/kaptinlin/jsonschema)

v0.9.2

Compare Source

v0.9.1

Compare Source

v0.9.0

Compare Source

Multi-draft validation

jsonschema now validates Draft 2019-09, Draft-07, Draft-06, and Draft-04 in addition to Draft 2020-12, selected automatically from each schema's $schema. When a schema omits $schema it defaults to Draft 2020-12, so existing code is unaffected.

// Opt a $schema-less schema into a specific draft:
compiler := jsonschema.NewCompiler().SetDefaultDialect(jsonschema.Draft7)

Each dialect's keyword semantics are honored — Draft-04 id, boolean exclusiveMinimum/exclusiveMaximum, dependencies (→ dependentRequired/dependentSchemas), tuple items + additionalItems, and Draft 2019-09 $recursiveRef/$recursiveAnchor (mapped to dynamic refs). Behavior is verified against the official JSON Schema Test Suite for all five drafts.

New API
  • Dialect type with constants Draft202012, Draft201909, Draft7, Draft6, Draft4
  • (*Compiler).SetDefaultDialect(Dialect) — dialect used when a schema has no $schema (default Draft202012)
  • (*Schema).Dialect() — the resolved dialect of a compiled schema
  • Schema.Comment and Schema.Vocabulary typed fields for $comment and $vocabulary
Dialect-aware keyword recognition

A keyword is recognized only under the dialects that define it; anything else is preserved verbatim in Schema.Extra (with SetPreserveExtra(true)) and ignored for validation. $comment and $vocabulary are modeled as fields and round-trip cleanly.

Performance

The compile/parse path was reworked: schema objects decode in a single pass, the dialect walk allocates nothing, and unknown keywords are decoded lazily. newSchema allocations dropped ~73% and bytes ~55% on a representative schema.

Compatibility

Purely additive. Default Draft 2020-12 validation is unchanged for valid schemas, and the Schema.Extra contract matches v0.8.x. No breaking changes.

Full Changelog: kaptinlin/jsonschema@v0.8.1...v0.9.0

v0.8.1

Compare Source

v0.8.0

Compare Source

Localization moved to the optional i18n subpackage

The root package no longer imports any translation framework. Pure validation users pay zero Intl compile, link, and binary cost — 28 transitive packages dropped from the root import graph, and not a single byte of locale data ends up in your binary unless you opt in.

Localization is now opt-in through the consumer-side Translator interface:

type Translator interface {
    Translate(code string, params map[string]any) (message string, ok bool)
}

The i18n subpackage provides the built-in 9-locale implementation (backed by go-i18n); or implement the one-method interface yourself with any backend.

Migration
Before After
jsonschema.I18n() + bundle.NewLocalizer("zh-Hans") i18n.New("zh-Hans") — import github.com/kaptinlin/jsonschema/i18n
err.Localize(localizer) err.Localize(translator)
result.ToLocalizeList(localizer, ...) result.ToLocalizedList(translator, ...)
result.DetailedErrors(localizer) result.LocalizedDetailedErrors(translator)
result.DetailedErrors() unchanged — always English, no arguments
import (
    "github.com/kaptinlin/jsonschema"
    "github.com/kaptinlin/jsonschema/i18n"
)

zh, err := i18n.New("zh-Hans") // one translator per locale; unknown locale errors here
if err != nil { ... }

for path, msg := range result.LocalizedDetailedErrors(zh) {
    fmt.Println(path, msg)
}
Behavior
  • Fallback semantics unchanged: a nil translator or a missing translation falls back to the built-in English message — localization never fails.
  • Same 9 built-in locales: en, de-DE, es-ES, fr-FR, ja-JP, ko-KR, pt-BR, zh-Hans, zh-Hant.
  • i18n.New rejects unknown locales with ErrUnsupportedLocale instead of silently falling back to English.
Dependencies
  • go-i18n upgraded to v0.5.0 (now uses messageformat-go/mf1 v0.7.0).

Full Changelog: kaptinlin/jsonschema@v0.7.18...v0.8.0

v0.7.18

Compare Source

v0.7.17

Compare Source

What's Changed

Security
  • Require Go 1.26.4 so CI and downstream builds use standard-library vulnerability fixes for GO-2026-5037 and GO-2026-5039.

v0.7.16

Compare Source

kaptinlin/messageformat-go (github.com/kaptinlin/messageformat-go)

v0.8.2

Compare Source

v0.8.1

Compare Source

What's Changed

Changed
  • Upgrade go-intl to v0.2.8 and refresh the Go toolchain baseline to 1.26.4.
  • Align MessageFormat 2 and mf1 runtime adapters with the current go-intl locale, number, and datetime APIs.
  • Preserve arbitrary-precision decimal formatting through the go-intl decimal bridge.

v0.8.0

Compare Source

v0.7.0

Compare Source

v0.6.6

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "on the first day of the month"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies label Jul 1, 2026
@renovate

renovate Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.26.3 -> 1.26.4
github.com/go-json-experiment/json v0.0.0-20260520185125-572e7c383686 -> v0.0.0-20260623181947-01eb4420fa68

@renovate renovate Bot force-pushed the renovate/go-deps branch 3 times, most recently from 96b36dc to 126c438 Compare July 3, 2026 11:08
@renovate renovate Bot force-pushed the renovate/go-deps branch from 126c438 to d1cbc78 Compare July 4, 2026 08:41
jsonschema v0.9.2 requires jsonpointer v0.4.26; the auto-bumped v0.4.27
dropped Validate/Format and changed Parse's signature, breaking the build.
Also drop go-intl, go-i18n, messageformat-go and x/text, which jsonschema
no longer pulls in after moving localization to an optional subpackage.
@renovate

renovate Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@mirpo mirpo merged commit e8a4046 into main Jul 4, 2026
3 checks passed
@mirpo mirpo deleted the renovate/go-deps branch July 4, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant