Back to Explore

JedWatson/classnames

GitHub
1 watchersOpen source

Last release:

classnames is a simple JavaScript utility for conditionally joining classNames together. It takes strings, arrays, and objects of truthy or falsy values, and produces a single space-separated className string useful for building dynamic UI class names (including React className props).

Project status

  • Maintenance status: The GitHub repo shows an upstream push on 2026-09-28, but the most recent documented package updates in the provided data are v2.5.2 (2024-01-08), suggesting largely low-frequency maintenance rather than continuous releases.
  • Update cadence: The shown updates are sparse (v2.5.2 in 2024, previous ones in late 2023), and there is a long gap from 2024-01-08 to today (2026-10-02) with no additional version updates reflected in the supplied summaries.

AI summary generated

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

Recent updates

  • v2.5.2

    Release v2.5.2 updates the package version metadata and includes a small internal performance optimization in the dedupe logic. No API surface changes are shown in the diff, and the lockfile updates reflect the version bump and a related dev dependency resolution update.

  • v2.5.1

    No release notes were provided for v2.5.1, so the actual changes can only be inferred from the code diff. This release primarily restructures how the project’s benchmarks are set up and run, including removing npm workspaces and renaming benchmark scripts used by CI and contributors.

    Breaking
  • v2.5.0

    Release v2.5.0 was published on 2023-12-27, but the publisher provided no release notes. As a result, there is no documented information about new features, breaking changes, bug fixes, security updates, performance improvements, or required migrations.

  • v2.4.0

    v2.4.0 refactors the core `classNames` and `bind` implementations to build class strings using direct string concatenation instead of building arrays and joining them. The repo also modernizes its test and CI tooling (Node test runner, tsd type tests, and updated benchmark setup). No release notes were provided by the publisher for this version.

    Breaking
  • v2.3.3

    No release notes were provided for v2.3.3. The code diff shows this release is primarily focused on TypeScript declaration changes (default export interop and readonly array support), along with some non-functional repo maintenance (README, CI workflow branch rename) and a dev dependency lockfile update.

    BreakingFeatures