Back to Explore

Borewit/text-codec

GitHub
1 watchersOpen source

Last release:

A lightweight, dependency-free polyfill that provides reliable TextEncoder/TextDecoder-like encode and decode functions for a small set of encodings, including UTF-8, UTF-16LE, ASCII, Latin-1, and Windows-1252. Useful for JavaScript environments where native text encoding support is limited or inconsistent, such as some React Native Hermes setups or Node.js builds with restricted ICU support.

Project status

  • Maintenance status: The source appears actively maintained, with the most recent upstream push on 2026-06-01 and an updates entry as recent as v0.2.2 on 2026-03-11, which is only about 2 months before today (2026-08-13).
  • Update cadence: The pattern suggests a roughly quarterly cadence in the newer period (v0.2.1 on 2025-12-29, v0.2.2 on 2026-03-11), after a shorter burst around 2025-08-13 to 2025-08-14 (v0.1.0 to v0.2.0 timeframe).

AI summary generated

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

Recent updates

  • v0.2.2

    v0.2.2 is primarily a bug fix release focused on encoding correctness, with README documentation adjustments. The implementation change is largely contained in the core codec logic (lib/index.ts), plus expanded automated tests to cover malformed input and surrogate edge cases.

  • v0.2.1

    v0.2.1 adds support for the "us-ascii" encoding and includes an optimization to avoid using String.fromCharCode spread when decoding ASCII. The implementation includes additional internal refactors around decoding performance (chunking, cached TextDecoder/TextEncoder instances) that go beyond what the release notes mention.

    Features
  • v0.2.0

    Release v0.2.0 is documented as adding polyfill classes for TextDecoder and TextEncoder, and the README is updated with a broader encoding support table. However, the provided code diff shows no functional implementation changes related to TextDecoder/TextEncoder, and changes appear limited to documentation and package metadata/script adjustments.

    Features
  • v0.1.1

    Release v0.1.1 primarily claims documentation improvements. The provided diff, however, shows multiple repo-level changes (CI workflow rename, adding Bun-based testing) and updates to README API documentation, including a potential change in the stated default parameter for encoding.

  • v0.1.0

    This release is an initial NPM publication for @borewit/text-codec version 0.1.0. No release notes or changelog details are provided beyond the package version itself.