Back to Explore

unjs/confbox

GitHub
1 watchersOpen source

Last release: 4 months ago

confbox is a compact set of parsing and serialization utilities for YAML, TOML, JSONC, JSON5, INI, and JSON. It helps developers convert between text formats and JavaScript values, including stringifiers that can preserve indentation and whitespace for JSON when using data parsed by confbox.

Project status

  • Actively maintained, with very recent upstream activity (last push on 2026-06-07) and multiple published updates in early 2026.
  • Update cadence appears irregular, with v0.2.3 and v0.2.4 both dated 2026-02-06 (suggesting short-term momentum), followed by the next earlier update at v0.2.2 on 2025-04-03 (a longer gap).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v0.2.4

    4 months ago

    v0.2.4 mostly contains build and housekeeping changes. The only user-facing notes are a README adjustment and a build-tooling dependency bump (obuild 0.4.25 to 0.4.26), while the release notes claim a JSONC fix.

  • v0.2.3

    4 months ago

    v0.2.3 primarily focuses on build system and tooling changes, migrating from unbuild to obuild and updating project dependencies and linting/formatting tooling. The release notes only mention the build migration and adding a reference to THIRD-PARTY-LICENSES in dist, but the code and package metadata show additional behavior and TypeScript-related changes.

  • v0.2.2

    4/3/2025

    v0.2.2 introduces a default JSON indentation of 2 and updates development dependencies. The code change behind the indentation update affects the shared formatting logic used by serializers when the input object does not carry internal formatting metadata. The release also changes the package export conditions in package.json to use the Node "default" condition instead of "import" for subpath entry points.

    Breaking
  • v0.2.1

    3/2/2025

    This release (v0.2.1) is primarily documented as a build/packaging change to improve CommonJS interoperability by using the Node.js `default` condition (to allow `require(esm)`). The provided code diff, however, shows only README and package metadata updates, with no explicit diff of build configuration.

  • v0.2.0

    3/1/2025

    v0.2.0 adds basic INI parsing and serialization to confbox, exposing new `parseINI` and `stringifyINI` APIs. It also ships an ESM-only distribution, removing CommonJS entry points. Build/CI and dependency versions were updated as part of the release.

    BreakingFeatures
  • v0.1.8

    10/6/2024

    The v0.1.8 release notes provided are effectively empty (only a compare link). The actual diff shows mostly tooling and documentation updates, plus significant development dependency upgrades and a change to the benchmark harness.

  • v0.1.7

    4/17/2024

    v0.1.7 adds JSON utilities and introduces format preservation so that indentation and leading/trailing whitespace can be retained when converting parsed values back to strings. The implementation adds new parse/stringify entry points (notably JSON) and updates existing stringify functions to reuse formatting metadata stored during parsing.

    BreakingFeatures
  • v0.1.6

    4/10/2024

    v0.1.6 is described as a small type fix for the TOML stringify helper. However, the code changes show an API rename for the exported TOML stringify function, which can break existing imports.

  • v0.1.5

    4/10/2024

    v0.1.5 primarily adds TOML stringification support by exporting a new `stringifyToml` API. While the release notes mention only this enhancement, the code diff also includes significant dev tooling and dependency updates, plus an apparent mismatch in the TypeScript signature for the new `stringifyToml` function.

    Features
  • v0.1.2

    2/20/2024

    v0.1.2 updates confbox to use smol-toml as the TOML parsing backend. The code diff also changes how the package re-exports its parser APIs from src/index.ts by moving from wildcard re-exports to an explicit export list.

    Features