PageSourceSearch

https://inlang.com/assets/CHANGELOG-zSTPp9hB.js

js inlang.com collected 2026-09-25 20:53:07 UTC 12,593 bytes, 391 lines download raw bytes

1const n=`# @inlang/sdk
2
3## 3.0.6
4
5### Patch Changes
6
7- 924dd7e: Upgrade Lix to v0.17.0.
8
9## 3.0.5
10
11### Patch Changes
12
13- c73ed13: Upgrade Lix to 0.16.1 to fix importing alphabetically sorted messages when a transaction exceeds 512 tracked-state rows.
14- 59715d2: Preserve the original error when a Lix transaction commit fails. Serialize Kysely connection leases so unrelated queries cannot join another caller's transaction and concurrent transactions execute independently. Beginning, committing, or rolling back a controlled transaction now releases its connection if it fails. Consumed transactions reject further queries instead of executing outside the transaction.
15
16  Restoring an in-memory project snapshot replaces file content at snapshot-owned paths, including files initialized by Lix, while preserving unrelated destination files.
17
18## 3.0.4
19
20### Patch Changes
21
22- c81ef61: Upgrade to Lix SDK 0.15.1 and migrate query results to plain JavaScript rows. Use the engine fix for transaction-local message and variant lookups, including CTE reads, without rewriting their SQL predicates. Safely encode locales containing NUL characters or the reserved identity prefix during writes and snapshot restoration.
23
24## 3.0.3
25
26### Patch Changes
27
28- 3c1fbc6: Remove the obsolete SQLite WASM dependency, public schema initializer, and special handling for unsupported legacy database artifacts. The SDK database API uses Lix through Kysely's PostgreSQL query compiler.
29
30## 3.0.2
31
32### Patch Changes
33
34- b012f5e: Update the SDK's Lix engine dependency to 0.12.3, fixing Node.js worker startup when hosts provide worker-incompatible runtime flags.
35
36## 3.0.1
37
38### Patch Changes
39
40- 78ad386: Update the SDK's Lix engine dependency to 0.12.2, including the Node.js WASM fallback for musl-based environments.
41
42## 3.0.0
43
44### Major Changes
45
46- aaf4e05: Add \`openProject({ lix })\` so applications can provide and own the Lix used by an Inlang project.
47
48  Legacy v1 messages now preserve selectors and variant matches when converted to v2. In-memory project blobs serialize messages and variants as nested bundles and remain able to restore the previous flat snapshot format.
49
50  BREAKING: Inlang's registered Lix schema keys are now namespaced as \`inlang_bundle\`, \`inlang_message\`, and \`inlang_variant\`. Existing Lix data stored under the previous unprefixed schema keys is not migrated automatically.
51
52  BREAKING: Inlang no longer registers or exposes its own key-value and active-account schemas. \`project.id\` uses Lix's built-in \`lix_id\`. The Inlang-specific \`account\`, \`lixKeyValues\`, \`Account\`, and \`NewKeyValue\` compatibility APIs have been removed; callers own account selection through Lix.
53
54  \`project.lix\` is the unmodified \`Lix\` instance itself. Inlang does not add a \`db\` facade or define any APIs under \`project.lix\`.
55
56### Minor Changes
57
58- 5d7b021: Add a browser-safe \`@inlang/sdk/browser\` entrypoint for caller-owned Lix projects. It exposes \`openProject\`, project and message types, nested-bundle query utilities, and atomic Lix batches without exporting Node.js directory APIs.
59- 7ea66f8: Upgrade to \`@lix-js/sdk\` 0.11 and store inlang bundles, messages, and variants in the Lix in-memory engine.
60
61### Patch Changes
62
63- fb46551: Batch fresh-project imports to reduce SQLite round trips during compilation.
64
65## 2.10.2
66
67### Patch Changes
68
69- eccea01: Fix Windows project sync path normalization to avoid rewriting unchanged files.
70
71## 2.10.1
72
73### Patch Changes
74
75- bf2af52: Add new import/export API support with namespace path patterns while keeping legacy next-intl project settings and \`{languageTag}\` path patterns compatible.
76
77  Allow export files to override the configured path pattern via metadata so plugins can safely route individual files without mutating project settings.
78
79## 2.10.0
80
81### Minor Changes
82
83- 6680ac1: fix \`saveProjectToDirectory\` throwing \`pathPattern.replace is not a function\` when a plugin's \`pathPattern\` is a namespace object (https://github.com/opral/inlang/issues/4356)
84
85  - \`ExportFile\` has a new optional \`metadata\` field — the counterpart of \`ImportFile.toBeImportedFilesMetadata\`. Plugins can use it to pass information to the writer, e.g. the namespace an exported file belongs to.
86  - \`saveProjectToDirectory\` resolves namespaced \`pathPattern\` objects (\`Record<namespace, pattern>\`) via \`ExportFile.metadata.namespace\` and writes each exported file to the path its namespace pattern describes. Files without a resolvable namespace fall back to being written by \`file.name\` instead of throwing.
87  - \`@inlang/plugin-i18next\` now provides \`metadata: { namespace }\` for namespaced export files. Saving a multi-namespace i18next project requires this plugin version (older plugin versions no longer crash but fall back to writing \`{namespace}-{locale}.json\` files relative to the project directory).
88
89## 2.9.3
90
91### Patch Changes
92
93- a853d5f: Clarify the SDK README and generated project README positioning for \`.inlang\` as the canonical localization file format with version control via lix.
94
95## 2.9.2
96
97### Patch Changes
98
99- b292999: Update \`@lix-js/sdk\` to \`0.4.10\` and \`uuid\` to \`^14.0.0\` to address GHSA-w5hq-g745-h8pq.
100
101## 2.9.1
102
103### Patch Changes
104
105- bcd4335: Update \`@lix-js/sdk\` to \`0.4.9\` and remove the noisy deprecated Kysely \`orderBy("... asc|desc")\` usage from the SDK path.
106
107## 2.9.0
108
109### Minor Changes
110
111- f1dfc25: Update \`@lix-js/sdk\` to \`0.4.8\`, bump \`kysely\` to \`^0.28.12\`, and raise the advertised Node.js support range to \`>=20.0.0\` to match the updated dependency requirements.
112
113## 2.8.0
114
115### Minor Changes
116
117- 6e6ee7f: Remove the remaining telemetry code from the SDK. Project loading and project creation no longer ship or persist telemetry-related logic, and the \`telemetry\` project setting has been removed from the SDK schema and docs.
118
119## 2.7.0
120
121### Minor Changes
122
123- 6defee0: Extend the SDK pattern AST with richer markup metadata.
124
125  Added support for markup \`options\` and \`attributes\` on:
126
127  - \`markup-start\`
128  - \`markup-end\`
129  - \`markup-standalone\`
130
131  Also introduced an \`Attribute\` schema type (\`Literal | true\`) for flag-style and valued attributes.
132
133  This is additive and keeps existing markup patterns compatible while enabling richer MF2-aligned markup data in the SDK model.
134
135## 2.6.2
136
137### Patch Changes
138
139- 9553df6: Remove the \`fileQueueSettled\` wait after the initial filesystem sync in \`loadProjectFromDirectory\` to avoid hangs when file operations never settle.
140
141## 2.6.1
142
143### Patch Changes
144
145- c6708ee: Update documentation links to the latest lix.dev and GitHub repository locations.
146
147## 2.6.0
148
149### Minor Changes
150
151- c1d8e5a: The SDK now writes \`.meta.json\` with the highest SDK version that has touched a
152  project and uses it to safely handle forward migrations.
153
154  On load, if the stored version is older, metadata + generated files are refreshed without exporting;if it's newer, they are left untouched to avoid downgrades.
155
156  Directory change:
157
158  \`\`\`txt
159  project.inlang/
160    settings.json
161    README.md
162    .gitignore
163    .meta.json   <-- new
164  \`\`\`
165
166## 2.5.0
167
168### Minor Changes
169
170- e9d7a74: Update generated \`.inlang\` gitignore to ignore everything except \`settings.json\`.
171- 65c33c2: emit a README.md in .inlang project folders to help coding agents understand the folder
172- 323295a: Stop writing \`project_id\` to unpacked project directories and document unstable ids for unpacked projects.
173
174### Patch Changes
175
176- 9d73b90: Await the Lix file queue before closing or exiting to avoid "DB has been closed" errors in CLI workflows.
177
178  Refs: https://github.com/opral/paraglide-js/issues/526
179
180- 2e8318b: Fix jsonb result parsing to avoid coercing JSON-looking text in patterns. References https://github.com/opral/paraglide-js/issues/571.
181
182## 2.4.9
183
184### Patch Changes
185
186- 22089a2: Fix error when running the machine translate using \`pathPattern\` as an array
187
188  ***
189
190  When running command \`{npx|pnpm} inlang machine translate ...\` is throwing an error when the \`pathPattern\` value is Array like this:
191
192  \`\`\`json
193  {
194  	"$schema": "https://inlang.com/schema/project-settings",
195  	"baseLocale": "es",
196  	"locales": ["es", "en"],
197  	"modules": [
198  		"https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@4/dist/index.js",
199  		"https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@2/dist/index.js"
200  	],
201  	"plugin.inlang.messageFormat": {
202  		// In this example, "pathPattern" is array
203  		"pathPattern": [
204  			"./messages/{locale}/home.json",
205  			"./messages/{locale}/shopping-cart.json"
206  		]
207  	}
208  }
209  \`\`\`
210
211  ### Error message
212
213  \`\`\`bash
214  deriancordoba@DerianCordoba project % pnpm machine-translate
215
216  > [email protected] machine-translate /Users/deriancordoba/Developer/project
217  > inlang machine translate --project project.inlang
218
219  ✔ Machine translate complete.
220
221   ERROR   pathPattern.replace is not a function
222
223    at saveProjectToDirectory (node_modules/.pnpm/@[email protected]/node_modules/@inlang/cli/dist/main.js:56516:81)
224    at async _Command.<anonymous> (node_modules/.pnpm/@[email protected]/node_modules/@inlang/cli/dist/main.js:56647:5)
225
226   ELIFECYCLE  Command failed with exit code 1.
227  \`\`\`
228
229## 2.4.8
230
231### Patch Changes
232
233- 56acb22: fix: loading plugins from cache in directory mode https://github.com/opral/inlang-paraglide-js/issues/498
234- Updated dependencies [aa4d69e]
235  - @lix-js/[email protected]
236
237## 2.4.7
238
239### Patch Changes
240
241- bd2c366: improve: sample telemetry event to reduce number of events
242- Updated dependencies [f634538]
243  - @lix-js/[email protected]
244
245## 2.4.6
246
247### Patch Changes
248
249- 49a7880: improve: forward telemetry settings to lix
250
251## 2.4.5
252
253### Patch Changes
254
255- 083ff1f: fix: \`loadProjectFromDirectory()\` should return errors from \`loadProject()\`
256- Updated dependencies [275d87e]
257- Updated dependencies [dc92f56]
258- Updated dependencies [c1ed545]
259  - @lix-js/[email protected]
260
261## 2.4.4
262
263### Patch Changes
264
265- Updated dependencies [85478f8]
266  - @lix-js/[email protected]
267
268## 2.4.3
269
270### Patch Changes
271
272- Updated dependencies [8ce6666]
273  - @lix-js/[email protected]
274
275## 2.4.2
276
277### Patch Changes
278
279- Updated dependencies [59f6c92]
280  - @lix-js/[email protected]
281
282## 2.4.1
283
284### Patch Changes
285
286- 5a991cd: fix sdk&sherlock on win
287
288## 2.4.0
289
290### Minor Changes
291
292- f01927c: bugfixing
293
294## 2.3.0
295
296### Minor Changes
297
298- c0b857a: stable lix ids when opening a project with \`loadProjectFromDirectory()\` https://github.com/opral/inlang/issues/228
299
300### Patch Changes
301
302- 91ba4eb: fix: Cannot mkdir project.inlang/cache/puligns in window OSS using git bash terminal
303
304  https://github.com/opral/inlang-paraglide-js/issues/377
305
306- Updated dependencies [c0b857a]
307  - @lix-js/[email protected]
308
309## 2.2.2
310
311### Patch Changes
312
313- c53b1a9: fix: type of LocalVariable
314
315## 2.2.1
316
317### Patch Changes
318
319- f51736f: fix: plugin imports on Bun
320- adf7d6c: fix \`saveProjectToDirectory\` to have proper backwards compatibility and respect \`pathPattern\` file location\`
321
322## 2.2.0
323
324### Minor Changes
325
326- fc41e71: remove sentry
327
328  the overhead of sentry is too high for the inlang sdk. errors that occur are eventually reported by apps.
329
330## 2.1.3
331
332### Patch Changes
333
334- Updated dependencies [1c84afb]
335- Updated dependencies [175f7f9]
336  - @lix-js/[email protected]
337
338## 2.1.2
339
340### Patch Changes
341
342- 61b9782: update the description of depreacted settings props \`sourceLanguageTag\` and \`languageTags\` to clarify that the properties should be kept in place as long as inlang apps are used that have the inlang SDK v1 as a dependency
343- Updated dependencies [b87f8a8]
344  - [email protected]
345  - @lix-js/[email protected]
346
347## 2.1.1
348
349### Patch Changes
350
351- Updated dependencies [31e8fb8]
352  - [email protected]
353  - @lix-js/[email protected]
354
355## 2.1.0
356
357### Minor Changes
358
359- 57f9e7f: adds a gitignore when calling \`saveProjectToDirectory\`
360
361### Patch Changes
362
363- 8af8ba9: improve performance: only write db changes to lix on close
364- 4444034: fix: replaced wrong variable
365
366  closes https://github.com/opral/inlang-paraglide-js/issues/310
367
368  This bug prevented the SDK from working on Windows due to a POSIX path conversion being performed but not used later.
369
370  \`\`\`diff
371  // inlang/packages/sdk/src/project/loadProjectFromDirectory.ts:550
372  await args.lix.db
373      .insertInto("file") // change queue
374      .values({
375  -       path: path,
376  +       path: posixPath,
377          data: new Uint8Array(data),
378      })
379  \`\`\`
380
381- fa94c1f: improve: beautified json when creating a new project
382- Updated dependencies [7fd8092]
383  - @lix-js/[email protected]
384
385## 2.0.0
386
387### Patch Changes
388
389- Updated dependencies [d71b3c7]
390  - @lix-js/[email protected]
391`;export{n as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.