Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

backOpen Source→is-language-code→Changelog

Changelog

All notable changes to this project will be documented in this file.
See Conventional Commits opens in a new tab for commit guidelines.

5.2.1

1 Sept 2026

🔧 Fixed

  • clarify invalid language subtags (a2ddf70)
  • set input arg type back to string and obligatory one at that (636bf2f)
  • type defensive language validation (0f5123e)

Performance Improvements

  • optimise package hot paths and JSON editing (f3112bd)
  • reduce complete tag lookups (682371a)

5.2.0

19 Aug 2026

Performance Improvements

  • Recorded a 6.09% higher normalized benchmark score than v5.1.3 (4,586,651 → 4,865,837).

🔧 Fixed

  • resolve various review findings (b60e9ee)
  • retire direct publish aliases (f98e31e)

✨ Features

  • add codsen-glob and migrate glob consumers (5595a2b)

  • fix memory leak, rebase and update all data (2ffb629)

  • refresh the tooling and generate with the latest dependencies (781f802)

  • Replace the positional parser with an RFC 5646 cursor parser.

  • Eliminate per-call RegExp retention; lookup sets and ranges are initialized once.

  • Fix grandfathered casing, extlang prefixes/count, script→variant parsing, duplicate variants/singletons, extension/private-use handling, and private script endpoints.

  • Update the registry from 2019 to the official IANA 2026–06–14 snapshot.

  • Make runme.js (line 1) deterministic, cwd-independent, and prefix-aware.

  • Fix the vacuous Datahub assertions and added regressions through test 65.

  • Remove the now-unused codsen-utils dependency and synchronized the lockfile.

  • Remove obsolete debug logging, resolving the line-label violations.

Thank you https://github.com/DamilojuVeriff for alerting about the leak and raising a POC PR.

5.0.0

1 Dec 2022

💥 BREAKING CHANGES

  • Minimum supported Node version is v14.18; we’re dropping v12 support

4.1.2

5 Sept 2022

🔧 Fixed

  • address memory leaks related to arrays not being garbage-collected (7001193)

4.1.0

12 Aug 2022

✨ Features

  • export types (11b5fb9)

4.0.0

9 Sept 2021

✨ Features

  • migrate to ES Modules (8c9d95d)

💥 BREAKING CHANGES

  • programs now are in ES Modules and won’t work with Common JS require()

3.1.0

24 May 2021

✨ Features

  • config file based major bump blacklisting (e15f9bb)

3.0.15

11 Apr 2021

⏪ Reverts

  • Revert “chore: setup refresh” (23cf206)

3.0.1

28 Jan 2021

🔧 Fixed

  • add testStats to npmignore (f3c84e9)

3.0.0

23 Jan 2021

✨ Features

  • rewrite in TS, start using named exports (5b05e0c)

💥 BREAKING CHANGES

  • previously, you’d consume like: import isLangCode from ... — now import { isLangCode } from ...

2.0.0

28 Nov 2020

Accidental version bump during migration to SourceHut. Sorry about that.

1.0.0

5 Jan 2020

✨ Features

  • init (00776db)

💥 BREAKING CHANGES

  • init

1.0.0

5 Jan 2020
  • First public release
back 

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab