From 92f9d1f1ea43b8ee47bd351dc707c42fd4b3c85a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2026 12:42:16 +0000 Subject: [PATCH] update version --- .changeset/importable-api.md | 11 ----------- CHANGELOG.md | 12 ++++++++++++ package.json | 2 +- 3 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 .changeset/importable-api.md diff --git a/.changeset/importable-api.md b/.changeset/importable-api.md deleted file mode 100644 index 433b308..0000000 --- a/.changeset/importable-api.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@labdigital/intl-extractor": minor ---- - -Expose the extractor as a library, not just a CLI. - -- Declare an `exports` map, so `@labdigital/intl-extractor` can be imported. `dist/index.js` was already built and shipped; nothing referenced it. -- Add `buildLabels({ input, source, fallback, onFile })`, which returns the label tree without touching the output file. `processFiles` becomes the read-merge-write wrapper around it. -- Add a `fallback` option for labels with no value in the source. It receives the full key path and defaults to the label name, so existing behaviour is unchanged. - -Two fixes while in there: `processFiles` did not `await` its write, and its "no existing source file" branch was unreachable because the read threw first. diff --git a/CHANGELOG.md b/CHANGELOG.md index d04fca9..a232388 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # @labd/intl-extractor +## 2.5.0 + +### Minor Changes + +- 3ad1490: Expose the extractor as a library, not just a CLI. + + - Declare an `exports` map, so `@labdigital/intl-extractor` can be imported. `dist/index.js` was already built and shipped; nothing referenced it. + - Add `buildLabels({ input, source, fallback, onFile })`, which returns the label tree without touching the output file. `processFiles` becomes the read-merge-write wrapper around it. + - Add a `fallback` option for labels with no value in the source. It receives the full key path and defaults to the label name, so existing behaviour is unchanged. + + Two fixes while in there: `processFiles` did not `await` its write, and its "no existing source file" branch was unreachable because the read threw first. + ## 2.4.0 ### Minor Changes diff --git a/package.json b/package.json index 064769c..11d8eae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@labdigital/intl-extractor", - "version": "2.4.0", + "version": "2.5.0", "license": "MIT", "author": "Lab Digital", "type": "module",