Skip to content

fix(deps): update dependency @inlang/paraglide-js to v2.12.0#4045

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/inlang-paraglide-js-2.x
Open

fix(deps): update dependency @inlang/paraglide-js to v2.12.0#4045
renovate[bot] wants to merge 1 commit intomainfrom
renovate/inlang-paraglide-js-2.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 2, 2026

This PR contains the following updates:

Package Change Age Confidence
@inlang/paraglide-js (source) 2.7.12.12.0 age confidence

Release Notes

opral/paraglide-js (@​inlang/paraglide-js)

v2.12.0

Minor Changes
  • af0084e: Add route-level locale strategy overrides via routeStrategies.

    You can now define per-route strategy behavior (first match wins), including:

    • strategy overrides for paths like /dashboard/* and /rpc/*
    • exclude: true to skip i18n middleware behavior for paths like /api/*

v2.11.0

Minor Changes
  • d1c86fb: Improve emitted message-module output by gating middleware locale-splitting hooks behind experimentalMiddlewareLocaleSplitting.

    When the option is disabled (default), generated message functions no longer emit:

    • if (experimentalMiddlewareLocaleSplitting && isServer === false) { ...__paraglide_ssr... }
    • trackMessageCall(...)
    • related runtime imports (experimentalMiddlewareLocaleSplitting, isServer, trackMessageCall)

    When experimentalMiddlewareLocaleSplitting is enabled, the existing SSR/middleware injection flow is preserved.

  • 90a1580: Add compiler support for markup messages with a new message.parts() API.

    Messages that contain markup now compile to framework-neutral parts (text, markup-start, markup-end, and markup-standalone) while message() continues to return plain strings.

v2.10.0

Minor 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:

    m.auth_password_error({ type: "typo" }); // ✅ OK (typed as NonNullable<unknown>)

    After:

    m.auth_password_error({ type: "typo" }); // 💥 Type error

v2.9.1

Patch Changes
  • c43effb: Update @inlang/sdk to v2.6.2, which removes a file queue settlement that could prevent the compiler from exiting in some environments. See #​598.

v2.9.0

Minor Changes
  • badca6a: Add the experimental experimentalStaticLocale compiler 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 @see documentation 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"] with baseLocale: "it-IT" could create a fallback cycle (it → it-IT → it) and throw a runtime error. The compiler now breaks that cycle by making the baseLocale terminal, so it-IT no longer falls back to it while it still falls back to it-IT.

    Issue: #​544

  • 3cbdd75: Fix message compilation for input names with non-identifier characters (like half!).

    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.

    -// before (invalid JS)
    -// input: { "half!": "1st" }
    -return `${i.half!} Half - Corner Handicap`
    +// after (valid JS)
    +// input: { "half!": "1st" }
    +return `${i["half!"]} Half - Corner Handicap`

    Issue: #​514

  • deb9877: Avoid locale/message name collisions in the locale-modules output structure by prefixing locale imports.

    Previously, a locale like no could collide with a message key no, causing duplicate symbol errors in the generated messages/_index.js.
    Now, locale imports are prefixed (e.g. __no), keeping message exports intact and avoiding the conflict.

    Issue: #​492

v2.8.0

Minor Changes
  • 07e17c0: Emit a README.md in 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 with emitReadme: 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.json file in inlang projects:

    The SDK now writes a .meta.json file to track which SDK version last modified the project. This enables safe forward migrations and prevents accidental downgrades when switching between SDK versions.

    project.inlang/
      settings.json
      README.md
      .gitignore
      .meta.json   <-- new
    

    Updated .gitignore handling:

    Inlang projects now manage their own .gitignore that ignores everything except settings.json. If you see the .gitignore file inside your .inlang project folder showing up as changed in git, run these commands to fix it:

    # Remove the tracked .gitignore from git's index
    git rm --cached '**/*.inlang/.gitignore'
    
    # Commit the change
    git commit -m "fix: remove tracked .gitignore from inlang project"

    This is a one-time fix. The inlang SDK handles the .gitignore automatically starting with v2.5.

Patch Changes
  • ec7f3e3: Add a --watch flag to the CLI compile command 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).
    • Added JSDoc example in paraglideMiddleware() explaining when to use the original request vs the modified request
    • Added troubleshooting section in SSR docs explaining the redirect loop issue and solution
    • Updated TanStack Start example README with an important callout about using the original request

v2.7.2

Patch Changes
  • 983d893: Added a defensive try catch request cloning in paraglideMiddleware for runtimes with custom Request wrappers (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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/inlang-paraglide-js-2.x branch 22 times, most recently from f01eb9c to c221446 Compare February 5, 2026 05:28
@renovate renovate bot force-pushed the renovate/inlang-paraglide-js-2.x branch 7 times, most recently from cc0532c to 83a1a2c Compare February 6, 2026 08:57
@renovate renovate bot force-pushed the renovate/inlang-paraglide-js-2.x branch 6 times, most recently from 46d1fce to 8c853b8 Compare February 15, 2026 17:01
@renovate renovate bot changed the title fix(deps): update dependency @inlang/paraglide-js to v2.11.0 fix(deps): update dependency @inlang/paraglide-js to v2.12.0 Feb 15, 2026
@renovate renovate bot force-pushed the renovate/inlang-paraglide-js-2.x branch 5 times, most recently from fc45546 to aa40e7e Compare February 16, 2026 08:20
@renovate renovate bot force-pushed the renovate/inlang-paraglide-js-2.x branch from aa40e7e to 31843cc Compare February 16, 2026 11:13
@renovate renovate bot force-pushed the renovate/inlang-paraglide-js-2.x branch 13 times, most recently from f8aa3fa to b3ec1a4 Compare February 18, 2026 16:02
@renovate renovate bot force-pushed the renovate/inlang-paraglide-js-2.x branch from b3ec1a4 to 4bc4c63 Compare February 18, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

Comments