Back to Explore

sindresorhus/unicorn-magic

GitHub
1 updates · last 90 daysOpen source

Last release:

unicorn-magic is a JavaScript utility package that provides small helpers, such as a delay function for pausing execution for a given number of seconds. It also offers Node.js-specific utilities via a /node sub-export, which can help with bundler compatibility.

Project status

  • The source appears actively maintained, with the most recent updates on 2026-09-24 and prior updates also arriving in ongoing bursts (next most recent noted update in 2025-11-15, then 2024 and 2023).
  • Update cadence looks moderate rather than constant, with roughly daily proximity between the last upstream push and the latest tagged update (v0.4.1), but larger gaps between major versions (for example, v0.4.1 in 2026, v0.4.0 in 2025).

AI summary generated

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

Recent updates

  • v0.4.1

    v0.4.1 makes a change to the package.json module export conditions and updates the security policy document. The release notes only mention an exports fix, but the code diff shows a more specific change to how ESM entrypoints are conditionally exposed.

  • v0.4.0

    v0.4.0 raises the minimum Node.js requirement to Node 20 and adds a dedicated `/node` sub-export for bundler compatibility. The code changes also include an export map restructuring and CI toolchain updates that are not mentioned in the release notes.

    BreakingFeatures
  • v0.3.0

    v0.3.0 adds new child-process utility wrappers, execFile (Promise-based) and execFileSync (sync) under unicorn-magic. The wrappers mainly differ from Node's built-ins by using a larger default maxBuffer (10 MB) and using string output (stdout/stderr as strings). The diff also includes TypeScript definition restructuring and new tests for the added APIs.

    Features
  • v0.2.0

    v0.2.0 adds two new path utility exports, `rootDirectory` and `traversePathUp`, and updates the TypeScript definitions and tests accordingly. It also includes a minor documentation-only adjustment in `index.d.ts` and adds a security policy file.

    Features
  • v0.1.0

    Release v0.1.0 was published on 2023-11-09. The provided release notes contain no actionable information about features, fixes, breaking changes, or dependencies (only an emoji).