# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 5.2.1 (2026-09-01)

### Bug Fixes

- clarify invalid language subtags ([a2ddf70](https://github.com/codsen/codsen/commit/a2ddf704ec4b8c396aa0cf4fe1f57571470ab6df))
- set input arg type back to string and obligatory one at that ([636bf2f](https://github.com/codsen/codsen/commit/636bf2f20baa2e853e1d288c02ea3720c9631605))
- type defensive language validation ([0f5123e](https://github.com/codsen/codsen/commit/0f5123e1ce72d3854071b5e481e76ed5fa8d6c57))

### Performance Improvements

- optimise package hot paths and JSON editing ([f3112bd](https://github.com/codsen/codsen/commit/f3112bd7fc0d7c9bc09312d3744c950691d72ca5))
- reduce complete tag lookups ([682371a](https://github.com/codsen/codsen/commit/682371a329d57281aea5eb34972b50efd83776a9))

## 5.2.0 (2026-08-19)

### Bug Fixes

- resolve various review findings ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
- retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))

### Features

- add codsen-glob and migrate glob consumers ([5595a2b](https://github.com/codsen/codsen/commit/5595a2b267eaa6cb60072d037aef00b7a28edd42))
- fix memory leak, rebase and update all data ([2ffb629](https://github.com/codsen/codsen/commit/2ffb6298ec337ec13c270e8d6e00afde161548a3))
- refresh the tooling and generate with the latest dependencies ([781f802](https://github.com/codsen/codsen/commit/781f802911066a82a4533b0e5a3fcbd742d0dd83))

### Reverts

- Revert "Merge pull request #128 from codsen/release/npm-32198404552-1" ([5baeeaa](https://github.com/codsen/codsen/commit/5baeeaaa677b86f1eaa6396cadf3aea32b06416e)), closes [#128](https://github.com/codsen/codsen/issues/128)
- Revert "Merge pull request #127 from codsen/release/npm-32194020886-1" ([5f1e94d](https://github.com/codsen/codsen/commit/5f1e94deef910ce735266b16aeee08a76de7a862)), closes [#127](https://github.com/codsen/codsen/issues/127)

## 5.2.0 (2026-08-05)

### Features

- 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)](/Users/royrevelt/Documents/__PROJECTS/_____mono/packages/is-language-code/reference/runme.js: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 (2022-12-01)

### BREAKING CHANGES

- Minimum supported Node version is v14.18; we're dropping v12 support

## 4.1.2 (2022-09-05)

### Fixed

- address memory leaks related to arrays not being garbage-collected ([7001193](https://github.com/codsen/codsen/commit/7001193ba3f6eec5015b5f1199f6ae296ae31204))

## 4.1.0 (2022-08-12)

### Features

- export types ([11b5fb9](https://github.com/codsen/codsen/commit/11b5fb936ce20e0a77c3a09806773e1cd7695c50))

## 4.0.0 (2021-09-09)

### Features

- migrate to ES Modules ([8c9d95d](https://github.com/codsen/codsen/commit/8c9d95d5dea0b769c2f070397141918a4893d575))

### BREAKING CHANGES

- programs now are in ES Modules and won't work with Common JS `require()`

## 3.1.0 (2021-05-24)

### Features

- config file based major bump blacklisting ([e15f9bb](https://github.com/codsen/codsen/commit/e15f9bba1c4fd5f847ac28b3f38fa6ee633f5dca))

## 3.0.15 (2021-04-11)

### Reverts

- Revert "chore: setup refresh" ([23cf206](https://github.com/codsen/codsen/commit/23cf206970a087ff0fa04e61f94d919f59ab3881))

## 3.0.1 (2021-01-28)

### Fixed

- add `testStats` to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))

## 3.0.0 (2021-01-23)

### Features

- rewrite in TS, start using named exports ([5b05e0c](https://github.com/codsen/codsen/commit/5b05e0c8e2be7d24cfee72393303ffd7572dcac1))

### BREAKING CHANGES

- previously, you'd consume like: `import isLangCode from ...` - now `import { isLangCode } from ...`

## 2.0.0 (2020-11-28)

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

## 1.0.0 (2020-01-05)

### Features

- init ([00776db](https://gitlab.com/codsen/codsen/commit/00776db3a81ecd9a683580fd459a756c462338f5))

### BREAKING CHANGES

- init

## 1.0.0 (2020-01-05)

- First public release
