fix(deps): update dependency @inlang/paraglide-js to v2.12.0#4045
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
fix(deps): update dependency @inlang/paraglide-js to v2.12.0#4045renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
f01eb9c to
c221446
Compare
cc0532c to
83a1a2c
Compare
46d1fce to
8c853b8
Compare
fc45546 to
aa40e7e
Compare
aa40e7e to
31843cc
Compare
f8aa3fa to
b3ec1a4
Compare
b3ec1a4 to
4bc4c63
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.7.1→2.12.0Release Notes
opral/paraglide-js (@inlang/paraglide-js)
v2.12.0Minor Changes
af0084e: Add route-level locale strategy overrides viarouteStrategies.You can now define per-route strategy behavior (first match wins), including:
strategyoverrides for paths like/dashboard/*and/rpc/*exclude: trueto skip i18n middleware behavior for paths like/api/*v2.11.0Minor Changes
d1c86fb: Improve emitted message-module output by gating middleware locale-splitting hooks behindexperimentalMiddlewareLocaleSplitting.When the option is disabled (default), generated message functions no longer emit:
if (experimentalMiddlewareLocaleSplitting && isServer === false) { ...__paraglide_ssr... }trackMessageCall(...)experimentalMiddlewareLocaleSplitting,isServer,trackMessageCall)When
experimentalMiddlewareLocaleSplittingis enabled, the existing SSR/middleware injection flow is preserved.90a1580: Add compiler support for markup messages with a newmessage.parts()API.Messages that contain markup now compile to framework-neutral parts (
text,markup-start,markup-end, andmarkup-standalone) whilemessage()continues to return plain strings.v2.10.0Minor Changes
fc66ee1: Add type-safe literal unions for match variants in generated message typings #538.For example, the following minimal message definition:
{ "auth_password_error": [ { "match": { "type=empty": "You must provide a password" } } ] }Before:
After:
v2.9.1Patch Changes
c43effb: Update@inlang/sdkto v2.6.2, which removes a file queue settlement that could prevent the compiler from exiting in some environments. See #598.v2.9.0Minor Changes
badca6a: Add the experimentalexperimentalStaticLocalecompiler option for per-locale tree-shaking (see #88 (comment)).a0c5665: Prune async_hooks import from generated server output when async local storage is disabled (fixes #539).Patch Changes
9ae2381: Add@seedocumentation links to runtime and server APIs, making it easier for developers to find relevant documentation directly from their IDE.867ea44: Avoid cyclic fallback maps when a language-only locale exists alongside a regional base locale.Previously, a setup like
locales: ["it", "it-IT"]withbaseLocale: "it-IT"could create a fallback cycle (it → it-IT → it) and throw a runtime error. The compiler now breaks that cycle by making thebaseLocaleterminal, soit-ITno longer falls back toitwhileitstill falls back toit-IT.Issue: #544
3cbdd75: Fix message compilation for input names with non-identifier characters (likehalf!).Before: i18next-style placeholders with symbols produced invalid JS because we emitted
i.half!in patterns, local variables, and match conditions (syntax error).Now: Paraglide quotes the key in JSDoc and uses bracket access in generated code (e.g.
i["half!"]), so the same message compiles and runs correctly.Issue: #514
deb9877: Avoid locale/message name collisions in the locale-modules output structure by prefixing locale imports.Previously, a locale like
nocould collide with a message keyno, causing duplicate symbol errors in the generatedmessages/_index.js.Now, locale imports are prefixed (e.g.
__no), keeping message exports intact and avoiding the conflict.Issue: #492
v2.8.0Minor Changes
07e17c0: Emit aREADME.mdin the compiled output to help LLMs understand the generated code. The README includes usage examples, runtime API documentation, and links to further resources. Can be disabled withemitReadme: false.991c314: Improve watch mode to monitor directories so newly added translation files trigger recompiles in the CLI and bundler plugin.4a75259: Update inlang SDK to v2.6.0 with improved project structure and forward-compatibility.New
.meta.jsonfile in inlang projects:The SDK now writes a
.meta.jsonfile to track which SDK version last modified the project. This enables safe forward migrations and prevents accidental downgrades when switching between SDK versions.Updated
.gitignorehandling:Inlang projects now manage their own
.gitignorethat ignores everything exceptsettings.json. If you see the.gitignorefile inside your.inlangproject folder showing up as changed in git, run these commands to fix it:This is a one-time fix. The inlang SDK handles the
.gitignoreautomatically starting with v2.5.Patch Changes
ec7f3e3: Add a--watchflag to the CLIcompilecommand to recompile on changes.be10228: Strip sourcemap references from generated runtime and server outputs to avoid missing map warnings. (#581)e75e2a3: Add documentation for avoiding redirect loops with frameworks that handle URL localization themselves (e.g., TanStack Router).paraglideMiddleware()explaining when to use the original request vs the modified requestv2.7.2Patch Changes
983d893: Added a defensive try catch request cloning inparaglideMiddlewarefor runtimes with customRequestwrappers (TanStack Start 1.143+: TanStack/router#6089, #573).Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.