Skip to content

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

Open
MFSGA wants to merge 1 commit into
masterfrom
renovate/inlang-paraglide-js-2.x
Open

fix(deps): update dependency @inlang/paraglide-js to v2.19.0#169
MFSGA wants to merge 1 commit into
masterfrom
renovate/inlang-paraglide-js-2.x

Conversation

@MFSGA

@MFSGA MFSGA commented Jun 17, 2026

Copy link
Copy Markdown
Owner

This PR contains the following updates:

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

Release Notes

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

v2.19.0

Minor Changes
  • 67a8942: Compile pattern-level function-reference annotations to registry calls

    Annotations attached directly to pattern expressions (e.g. i18next's {{count, number}} imported via plugin-i18next) were silently dropped and compiled to plain interpolation. They now compile through the same registry.* path as local-variable annotations:

    // before
    const en_views = (i) => `${i?.count} views`;
    // after
    const en_views = (i) => `${registry.number("en", i?.count, {})} views`;

    Unknown formatter names fall back to plain interpolation with a compile-time warning instead of failing or staying silent. compilePattern() gained an optional locale parameter, required to compile annotations.

    Fixes #​694

  • d57efa1: Skip recompilation when inputs are unchanged across bundler runs in the same process

    vite build fires buildStart once per environment (client, ssr, ...) and each run did a full compile() — project loading and message compilation — even though the inputs hadn't changed. The plugin now hashes the tracked input files, their directory listings, and the output-affecting options after a successful compile, and skips compile() entirely when the digest matches on the next run. The second and later environments become near-free:

    vite v6.4.1 building for production...
    ✔ [paraglide-js] Compilation complete (locale-modules)
    ✓ built in 634ms
    vite v6.4.1 building SSR bundle for production...
    ℹ [paraglide-js] Compilation skipped — inputs unchanged (locale-modules)
    ✓ built in 15ms
    

    The digest fails open: any state it can't certify (missing files, read errors, changed options, a failed compile) forces a recompile. Multi-compiler webpack setups (client + server) benefit the same way via beforeRun.

    Also fixed along the way:

    • A user-provided fs option silently bypassed the plugin's file-read tracking (the args spread overrode the tracked fs wrapper), which left file watching inert for custom-fs setups.
    • The watch-target filter ignored any path containing the substring "cache" — a project under e.g. /cachet-app/ had its inputs excluded from file watching. It now matches whole path segments only.

    Fixes #​693

Patch Changes
  • 6010611: Update @inlang/sdk to 2.10.0.

Configuration

📅 Schedule: (UTC)

  • 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 has been generated by Mend Renovate.

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.

2 participants