Skip to content

Commit 01c69d6

Browse files
Version Packages
1 parent a15b7ab commit 01c69d6

File tree

37 files changed

+206
-62
lines changed

37 files changed

+206
-62
lines changed

.changeset/fix-cli-create-require.md

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

.changeset/incremental-lix-sync.md

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

.changeset/parse5-portability.md

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

.changeset/sherlock-logging-output.md

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

.changeset/sherlock-observe-message-view.md

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

inlang/packages/cli/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# @inlang/cli
22

3+
## 3.1.0
4+
5+
### Minor Changes
6+
7+
- 7791be7: Upgraded the [inlang SDK](https://github.com/opral/inlang-sdk) to [Lix](https://lix.dev/) v0.5 🎉
8+
9+
## Highlights
10+
11+
### Writing directly to Lix state
12+
13+
State is now written straight into Lix instead of the SDK’s private in-memory SQLite snapshot. Every bundle, message, and variant change becomes a first-class Lix commit, unlocking:
14+
15+
- history and branching,
16+
- writer-key aware workflows,
17+
- change proposals and subscriptions, and
18+
- a single source of truth for downstream tools.
19+
20+
### Per-file filesystem sync
21+
22+
Any inlang-based tooling that opens a project from disk (IDE extensions, CLIs, custom apps) used to patch the entire locale tree whenever a single message changed. That behaviour is at the heart of [opral/inlang-sherlock#173](https://github.com/opral/inlang-sherlock/issues/173) where editing one key in `en.json` would re-export every other locale file, destroying manual formatting or reintroducing stale content.
23+
24+
Thanks to Lix v0.5’s observable state and writer-key APIs we can now react to per-commit metadata and suppress our own writes. When `happy_elephant` in `en.json` is updated, the SDK marks only `en.json` as dirty, leaving `de.json` and friends untouched. Drift is still possible if another tool rewrites `en.json`, yet the blast radius falls from “the whole project just changed” to “only the file you touched,” making reviews and merges manageable across all inlang integrations.
25+
26+
### Patch Changes
27+
28+
- 930df2d: Fix CLI build banner to avoid duplicate `createRequire` declarations when bundling SQLite from [lix](https://lix.dev).
29+
- Updated dependencies [7791be7]
30+
- @inlang/sdk@3.0.0
31+
332
## 3.0.12
433

534
### Patch Changes

inlang/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": "@inlang/cli",
3-
"version": "3.0.12",
3+
"version": "3.1.0",
44
"private": false,
55
"publishConfig": {
66
"access": "public"

inlang/packages/paraglide/paraglide-js/CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# @inlang/paraglide-js
22

3+
## 2.5.0
4+
5+
### Minor Changes
6+
7+
- 7791be7: Upgraded the [inlang SDK](https://github.com/opral/inlang-sdk) to [Lix](https://lix.dev/) v0.5 🎉
8+
9+
## Highlights
10+
11+
### Writing directly to Lix state
12+
13+
State is now written straight into Lix instead of the SDK’s private in-memory SQLite snapshot. Every bundle, message, and variant change becomes a first-class Lix commit, unlocking:
14+
15+
- history and branching,
16+
- writer-key aware workflows,
17+
- change proposals and subscriptions, and
18+
- a single source of truth for downstream tools.
19+
20+
### Per-file filesystem sync
21+
22+
Any inlang-based tooling that opens a project from disk (IDE extensions, CLIs, custom apps) used to patch the entire locale tree whenever a single message changed. That behaviour is at the heart of [opral/inlang-sherlock#173](https://github.com/opral/inlang-sherlock/issues/173) where editing one key in `en.json` would re-export every other locale file, destroying manual formatting or reintroducing stale content.
23+
24+
Thanks to Lix v0.5’s observable state and writer-key APIs we can now react to per-commit metadata and suppress our own writes. When `happy_elephant` in `en.json` is updated, the SDK marks only `en.json` as dirty, leaving `de.json` and friends untouched. Drift is still possible if another tool rewrites `en.json`, yet the blast radius falls from “the whole project just changed” to “only the file you touched,” making reviews and merges manageable across all inlang integrations.
25+
26+
### Patch Changes
27+
28+
- Updated dependencies [7791be7]
29+
- @inlang/sdk@3.0.0
30+
331
## 2.4.0
432

533
### Minor Changes
@@ -52,6 +80,7 @@
5280
This change introduces a new `extractLocaleFromRequestAsync` function that supports asynchronous custom server strategies, enabling use cases like fetching user locale preferences from databases.
5381

5482
## What's Changed
83+
5584
- **New Function**: Added `extractLocaleFromRequestAsync` that supports async custom server strategies
5685
- **Middleware Update**: Server middleware now uses the async version to support async custom strategies
5786
- **Breaking Change**: The synchronous `extractLocaleFromRequest` no longer supports custom server strategies
@@ -120,6 +149,7 @@
120149
```
121150

122151
**Migration**:
152+
123153
- If you want the previous behavior (subdomain sharing), explicitly set `cookieDomain` in your configuration:
124154

125155
```diff
@@ -137,6 +167,7 @@
137167
- 4255bd5: Provide functions for getting the preferred language on server and client.
138168

139169
This defines two new functions for getting the preferred language:
170+
140171
- `extractLocaleFromHeader`: Extracts the locale from the accept-language header on the server.
141172
- `extractLocaleFromNavigator`: Extracts the locale from the navigator.languages array on the client.
142173

@@ -148,10 +179,12 @@
148179
This introduces a new way to define custom locale resolution strategies alongside built-in strategies. Custom strategies provide a cleaner, more composable approach compared to overwriting `getLocale()` and `setLocale()` functions directly.
149180

150181
**New APIs:**
182+
151183
- `defineCustomClientStrategy()`: Define custom strategies for client-side locale resolution
152184
- `defineCustomServerStrategy()`: Define custom strategies for server-side locale resolution
153185

154186
**Key features:**
187+
155188
- Custom strategies must follow the pattern `custom-<name>` where `<name>` contains only alphanumeric characters
156189
- Can be combined with built-in strategies in the strategy array
157190
- Respect strategy order for fallback handling
@@ -274,6 +307,7 @@
274307
- 698b9a9: add `cookieMaxAge` option to compiler and runtime
275308
276309
Closes https://github.com/opral/inlang-paraglide-js/issues/483
310+
277311
- Introduced `cookieMaxAge` option to `CompilerOptions`, allowing configuration of cookie expiration time.
278312
- Adjusted tests to verify `max-age` in cookies.
279313
@@ -992,6 +1026,7 @@ await compile({
9921026
- 14d80b3: Removed the "Which tech-stack are you using?" prompt from the `init` command as it was not providing any real value. All it did was link you to the appropriate documentation.
9931027
9941028
From now on we rely on the docuemntation site to guide people to the correct documenation for their framework.
1029+
9951030
- SvelteKit: https://inlang.com/m/dxnzrydw/paraglide-sveltekit-i18n
9961031
- NextJs: https://inlang.com/m/osslbuzt/paraglide-next-i18n
9971032
- Astro: https://inlang.com/m/iljlwzfs/paraglide-astro-i18n

inlang/packages/paraglide/paraglide-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@inlang/paraglide-js",
33
"type": "module",
4-
"version": "2.4.0",
4+
"version": "2.5.0",
55
"license": "MIT",
66
"publishConfig": {
77
"access": "public",

inlang/packages/plugins/i18next/CHANGELOG.md

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

3+
## 6.0.12
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [7791be7]
8+
- @inlang/sdk@3.0.0
9+
310
## 6.0.11
411

512
### Patch Changes

0 commit comments

Comments
 (0)