Skip to content

Commit 433e2fe

Browse files
chore: bump package versions (#1611)
* chore: bump package version * fix(locales): add TypeScript type guard for filter result The filter() method could return undefined values, causing TypeScript error TS18048: 'code' is possibly 'undefined'. Added a type guard predicate to filter(): .filter((code): code is string => Boolean(code)) This ensures TypeScript knows the filtered array only contains strings. --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Max Prilutskiy <5614659+maxprilutskiy@users.noreply.github.com> Co-authored-by: maxprilutskiy <maks.prilutskiy@gmail.com>
1 parent 0f6ffbf commit 433e2fe

10 files changed

Lines changed: 32 additions & 37 deletions

File tree

.changeset/fix-prettier-formatter-loaders.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/remove-prettier-commands.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

.changeset/rude-spies-smoke.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

demo/adonisjs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# adonis
22

3+
## 0.0.34
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`c0aa906`](https://github.com/lingodotdev/lingo.dev/commit/c0aa906880d26c5d01748e0d72b9f61ec989606d), [`5d808bd`](https://github.com/lingodotdev/lingo.dev/commit/5d808bd33eb3a0b5c685e3a3a6cb079ba86eb6e2)]:
8+
- lingo.dev@0.116.0
9+
310
## 0.0.33
411

512
### Patch Changes

demo/adonisjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "adonis",
3-
"version": "0.0.33",
3+
"version": "0.0.34",
44
"private": true,
55
"type": "module",
66
"license": "UNLICENSED",

demo/next-app/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# next-app
22

3+
## 0.2.86
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`c0aa906`](https://github.com/lingodotdev/lingo.dev/commit/c0aa906880d26c5d01748e0d72b9f61ec989606d), [`5d808bd`](https://github.com/lingodotdev/lingo.dev/commit/5d808bd33eb3a0b5c685e3a3a6cb079ba86eb6e2)]:
8+
- lingo.dev@0.116.0
9+
310
## 0.2.85
411

512
### Patch Changes

demo/next-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-app",
3-
"version": "0.2.85",
3+
"version": "0.2.86",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

packages/cli/CHANGELOG.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# lingo.dev
22

3+
## 0.116.0
4+
5+
### Minor Changes
6+
7+
- [#1519](https://github.com/lingodotdev/lingo.dev/pull/1519) [`5d808bd`](https://github.com/lingodotdev/lingo.dev/commit/5d808bd33eb3a0b5c685e3a3a6cb079ba86eb6e2) Thanks [@Dishantydv7](https://github.com/Dishantydv7)! - fix(status): prevent NaN% when totalWordsToTranslate is 0
8+
9+
### Patch Changes
10+
11+
- [`c0aa906`](https://github.com/lingodotdev/lingo.dev/commit/c0aa906880d26c5d01748e0d72b9f61ec989606d) Thanks [@maxprilutskiy](https://github.com/maxprilutskiy)! - Fix prettier formatter loaders after prettier config removal
12+
13+
Restores prettier as a runtime dependency for the CLI package and restores the `.prettierrc` config file needed by the formatter loaders. This fixes failing tests for HTML, JSON, and Markdown bucket loaders that depend on prettier for formatting translation files.
14+
315
## 0.115.0
416

517
### Minor Changes
@@ -259,7 +271,6 @@
259271
### Patch Changes
260272

261273
- [#1149](https://github.com/lingodotdev/lingo.dev/pull/1149) [`bd3f69d`](https://github.com/lingodotdev/lingo.dev/commit/bd3f69dde76814146f775bc87241fa2fad012ab0) Thanks [@maxprilutskiy](https://github.com/maxprilutskiy)! - Fix CI command hanging due to process.exit calls
262-
263274
- Remove PostHog shutdown() call that was causing process to hang
264275
- Replace process.exit() with proper exception throwing in i18n and run commands
265276
- Upgrade posthog-node from 5.5.1 to 5.8.1 for better stability
@@ -546,7 +557,6 @@
546557
- [#966](https://github.com/lingodotdev/lingo.dev/pull/966) [`8b306bc`](https://github.com/lingodotdev/lingo.dev/commit/8b306bcd0a3231ffd8bde283414b6d069b7a5b99) Thanks [@VAIBHAVSING](https://github.com/VAIBHAVSING)! - Add watch mode to CLI for automatic retranslation on file changes
547558

548559
This release introduces a new watch mode feature that automatically triggers retranslation when changes are detected in source files:
549-
550560
- **New `--watch` flag**: Enables file watching mode that monitors source files for changes
551561
- **New `--debounce` flag**: Configurable debounce delay (default: 5 seconds) to prevent excessive retranslations
552562
- **Intelligent file pattern detection**: Automatically determines which files to watch based on i18n.json bucket configurations
@@ -567,7 +577,6 @@
567577
```
568578

569579
**Technical Implementation:**
570-
571580
- Uses `chokidar` for robust cross-platform file watching
572581
- Integrates seamlessly with existing CLI pipeline (setup → plan → execute)
573582
- Maintains full compatibility with all existing CLI options and workflows
@@ -584,7 +593,6 @@
584593
### Minor Changes
585594

586595
- [#958](https://github.com/lingodotdev/lingo.dev/pull/958) [`84fd214`](https://github.com/lingodotdev/lingo.dev/commit/84fd214a21766e7683c5d645fcb8c4c0162eb0b6) Thanks [@chrissiwaffler](https://github.com/chrissiwaffler)! - feat: add Mistral AI as a supported LLM provider
587-
588596
- Added Mistral AI provider support across the entire lingo.dev ecosystem
589597
- Users can now use Mistral models for localization by setting MISTRAL_API_KEY
590598
- Supports all Mistral models available through the @ai-sdk/mistral package
@@ -612,7 +620,6 @@
612620
### Minor Changes
613621

614622
- [#956](https://github.com/lingodotdev/lingo.dev/pull/956) [`ce8c75c`](https://github.com/lingodotdev/lingo.dev/commit/ce8c75c7fc1a2124d3e18444bc356c4dfce26434) Thanks [@VAIBHAVSING](https://github.com/VAIBHAVSING)! - feat: add EJS (Embedded JavaScript) templating engine support
615-
616623
- Added EJS loader to support parsing and translating EJS template files
617624
- EJS loader extracts translatable text while preserving EJS tags and expressions
618625
- Updated spec package to include "ejs" in supported bucket types
@@ -1198,7 +1205,6 @@
11981205
- [#700](https://github.com/lingodotdev/lingo.dev/pull/700) [`c5ccf81`](https://github.com/lingodotdev/lingo.dev/commit/c5ccf81e9c2bd27bae332306da2a41e41bbeb87d) Thanks [@devin-ai-integration](https://github.com/apps/devin-ai-integration)! - Add support for locked patterns in MDX loader
11991206

12001207
This change adds support for preserving specific patterns in MDX files during translation, including:
1201-
12021208
- !params syntax for parameter documentation
12031209
- !! parameter_name headings
12041210
- !type declarations

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lingo.dev",
3-
"version": "0.115.0",
3+
"version": "0.116.0",
44
"description": "Lingo.dev CLI",
55
"private": false,
66
"publishConfig": {

packages/locales/src/validation.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ const VALID_LANGUAGE_CODES = new Set(
1414
lang.iso6392B, // 3-letter bibliographic code (ISO 639-2)
1515
lang.iso6392T, // 3-letter terminologic code (ISO 639-2)
1616
lang.iso6393, // 3-letter code (ISO 639-3)
17-
].filter(Boolean).map((code) => code.toLowerCase()),
17+
]
18+
.filter((code): code is string => Boolean(code))
19+
.map((code) => code.toLowerCase()),
1820
),
1921
);
2022

0 commit comments

Comments
 (0)