Skip to content

chore(deps): update json to v3.12.0#16198

Open
renovate-bot wants to merge 1 commit into
googleapis:mainfrom
renovate-bot:renovate/json
Open

chore(deps): update json to v3.12.0#16198
renovate-bot wants to merge 1 commit into
googleapis:mainfrom
renovate-bot:renovate/json

Conversation

@renovate-bot

@renovate-bot renovate-bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
nlohmann/json minor v3.11.3v3.12.0
nlohmann_json bazel_dep patch 3.12.0.bcr.13.12.0
nlohmann_json http_archive minor v3.11.3v3.12.0

Release Notes

nlohmann/json (nlohmann/json)

v3.12.0: JSON for Modern C++ version 3.12.0

Compare Source

Release date: 2025-04-11
SHA-256: aaf127c04cb31c406e5b04a63f1ae89369fccde6d8fa7cdda1ed4f32dfc5de63 (json.hpp), b8cb0ef2dd7f57f18933997c9934bb1fa962594f701cd5a8d3c2c80541559372 (include.zip), 42f6e95cad6ec532fd372391373363b62a14af6d771056dbfc86160e6dfff7aa (json.tar.xz)

Summary

This release fixes some bugs found in the 3.11.3 release and adds some new features.

All changes are backward-compatible.

💰 Note you can support this project via GitHub sponsors or PayPal.

Key updates and enhancements
Changes and fixes
Warnings

The quality assurance page gives an overview of the warning flags used during the tests.

Compiler warnings
Clang-Tidy
  • Suppress warnings modernize-use-std-numbers,
    readability-redundant-member-init, and bugprone-unused-local-non-trivial-variable. #​4276
  • Suppress warnings modernize-type-traits and modernize-avoid-c-arrays in NLOHMANN_JSON_SERIALIZE_ENUM. #​4497 #​3924
  • Suppress warning boost-use-ranges as we do not want to rely on Boost. #​4489
  • Suppress warning modernize-use-designated-initializers as designated initializers are a C++20 feature. #​4489
  • Suppress warning modernize-use-ranges as ranges are a C++20 feature. #​4489
  • Suppress warning clang-analyzer-webkit.NoUncountedMemberChecker as we are using pointers internally. #​4701
  • Fix warning modernize-use-integer-sign-comparison . #​4558
Build
CMake
  • Adjust CMake minimal version to 3.5. #​4709
  • Allow overriding the CMake target name via variable NLOHMANN_JSON_TARGET_NAME. #​4483
  • Add CPack support. #​4459
  • Adjust CMake to generate a pkg-config file that follows the pkg-config conventions. #​4456
Package Managers
  • Remove alwayslink=True Bazel flag. #​4396
  • Improve Bazel support by switching to Bzlmod. #​4584
  • Add VisionOS support to Swift Package Manager Package.swift definition file. #​4611
  • Remove wsjcpp package manager support. #​4623
CI
Tests
Infrastructure
Indentation and amalgamation
Documentation

The documentation website contains all project documentation.

Fixed documentation
Added documentation
Improved documentation
Package Manager documentation
Documentation implementation
  • Replace PlantUML by Mermaid. #​4026
  • Serve assets (fonts, CSS) locally. #​4560
  • Update Python requirements. #​4516

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Monday through Friday (* * * * 1-5)
  • 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.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


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

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

@renovate-bot renovate-bot requested a review from a team as a code owner June 25, 2026 19:49
@dpebot

dpebot commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the nlohmann_json dependency version from 3.11.3 (and 3.12.0.bcr.1 in Bazel) to 3.12.0 across Bazel configuration files, Dockerfiles, and documentation. The reviewer feedback suggests defining the duplicated version string using a Docker ARG instruction in the Dockerfiles to improve maintainability.

# ```bash
WORKDIR /var/tmp/build/json
RUN curl -fsSL https://github.com/nlohmann/json/archive/v3.11.3.tar.gz | \
RUN curl -fsSL https://github.com/nlohmann/json/archive/v3.12.0.tar.gz | \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve maintainability and adhere to the repository's best practices, use an ARG instruction to define version strings that are duplicated across multiple Dockerfiles.

ARG JSON_VERSION=3.12.0
RUN curl -fsSL https://github.com/nlohmann/json/archive/v${JSON_VERSION}.tar.gz | \\
References
  1. In Dockerfiles, use ARG to define version strings that are duplicated across multiple files to improve maintainability.

# ```bash
WORKDIR /var/tmp/build/json
RUN curl -fsSL https://github.com/nlohmann/json/archive/v3.11.3.tar.gz | \
RUN curl -fsSL https://github.com/nlohmann/json/archive/v3.12.0.tar.gz | \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve maintainability and adhere to the repository's best practices, use an ARG instruction to define version strings that are duplicated across multiple Dockerfiles.

ARG JSON_VERSION=3.12.0
RUN curl -fsSL https://github.com/nlohmann/json/archive/v${JSON_VERSION}.tar.gz | \\
References
  1. In Dockerfiles, use ARG to define version strings that are duplicated across multiple files to improve maintainability.

@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.24%. Comparing base (243f00e) to head (971bde9).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16198      +/-   ##
==========================================
- Coverage   92.24%   92.24%   -0.01%     
==========================================
  Files        2265     2265              
  Lines      210211   210211              
==========================================
- Hits       193910   193902       -8     
- Misses      16301    16309       +8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dpebot

dpebot commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants