Back to Explore

tinylibs/tinyrainbow

GitHub
3 updates · last 90 days1 watchersOpen source

Last release:

tinyrainbow is a small JavaScript library for printing colorful messages in the terminal or the browser console, with ANSI color support in Chrome engines. It is an ESM-only fork of picocolors (about 6 kB unpacked) that supports the exports field.

Project status

  • Actively maintained: The repo shows recent updates (up to 2026-07-28) including a maintenance release (v3.1.1), plus matching pre-release and workflow changes, suggesting ongoing development rather than dormancy.
  • Update cadence: There were updates on 2026-07-28 (v3.1.1 and pre-release series) and the prior version was v3.1.0 on 2026-03-12, so the cadence appears bursty, with a few-month gap between larger changes.

AI summary generated

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

Recent updates

  • v3.1.1

    v3.1.1 is described as a small maintenance release, primarily adding publishing/test workflow work and setting the package metadata for better bundler behavior. In the provided code diff, the only functional package change is adding `sideEffects: false` in `package.json`, while the rest is README documentation edits.

  • v3.1.1-pre.1

    This pre-release updates the GitHub Actions release workflow used to publish v3.1.1-pre.1. The documented change is that the workflow uses `clean-publish` for cleaning, but the code diff shows additional, more specific staging and directory-handling changes.

  • v3.1.1-pre.0

    This pre-release mainly updates development and CI tooling, including a new automated publish workflow for npm and new browser-based (Chromium) tests. Release notes also mention a devDependency bump, but they do not detail any changes to local test execution behavior or build configuration.

    Features
  • v3.1.0

    Release v3.1.0 primarily adds new exported helper functions, `disableDefaultColors` and `enabledDefaultColors`, intended to toggle the library's default color behavior. The code changes also introduce a new option to `createColors` to override environment support detection.

    Features
  • v3.0.3

    v3.0.3 is a small patch release focused on fixing the output of getDefaultColors in tinyrainbow. The change ensures the returned colors object includes isColorSupported (and initializes a reset value) so callers do not receive an incomplete default configuration.

  • v3.0.2

    v3.0.2 is a small bug-fix release focused on improving how tinyrainbow decides whether to assume a TTY. The main functional change is in TTY detection logic, plus a package version bump.

  • v3.0.1

    Release v3.0.1 is a small change that adds a default export to the package entry point. The package version is bumped from 3.0.0 to 3.0.1, with no other code changes reflected in the diff.

  • v3.0.0

    v3.0.0 consolidates the library’s Node and browser entry points into a single implementation, and changes TTY detection logic. The release notes only mention a breaking change related to isatty usage, but the code diff shows additional API surface and packaging changes that are likely to affect existing consumers.

    Breaking
  • v2.0.0

    v2.0.0 adds support for overriding TTY detection via the environment variable FORCE_TTY. The change primarily affects the node entrypoint behavior, and the repo also updates CI to include a build step. The code diff also shows several API surface changes in the browser and node entrypoints that are not described in the release notes.

    BreakingFeatures
  • v1.2.0

    v1.2.0 adds support for bright foreground and background colors to tinyrainbow. It also updates color support detection so that colors are not disabled by default when running inside GitHub Actions. The code diff only reflects these two changes plus the version bump.

    Features
  • v1.1.2

    v1.1.2 contains a bug fix aimed at preventing a maximum call stack error when processing large strings. The implementation changes the internal delimiter replacement logic in src/index.ts to use an iterative approach instead of recursion, and adds a regression test that exercises very large inputs.

  • v1.1.1

    v1.1.1 adds test coverage (Vitest) and updates behavior related to ANSI color support in different environments, including browser-related changes. The code diff also modifies the core environment detection logic for whether colors are supported and tweaks the public TypeScript types for formatter functions.

    Features
  • v1.1.0

    v1.1.0 introduces an automatic environment detection capability, reducing the need for manual setup. The release notes do not mention any API changes, bug fixes, or security updates.

    Features