Skip to content

Conversation

@ensombl-renovate
Copy link
Contributor

This PR contains the following updates:

Package Change Age Confidence
@inlang/paraglide-js (source) 2.5.0 -> 2.6.0 age confidence

Release Notes

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

v2.6.0

Minor Changes
  • 3d6259c: Add LocalizedString branded type for compile-time i18n safety.

    Message functions now return LocalizedString instead of string, enabling TypeScript users to distinguish between translated and untranslated strings at compile time. This is fully backward compatible since branded types are assignable to their base type.

    import { m } from "./paraglide/messages.js";
    import type { LocalizedString } from "@​inlang/paraglide-js";
    
    const greeting: LocalizedString = m.hello(); // ✓ Type-safe
    const raw: LocalizedString = "Hello"; // ✗ Type error
  • 4bde3eb: Add optional chaining to compiled message inputs so missing inputs no longer throw at runtime; include tests covering single- and multi-variant messages.

    Closes #​568

    Example:

    // compiled translation
    export const greeting = (i) => `Hello ${i?.name}`;
    
    // TypeScript still enforces the input shape; this is purely runtime safety (handy in dev).
    greeting(); // no throw, returns "Hello undefined"
    greeting({ name: "Ada" }); // "Hello Ada"
    
    // previously (boom 💥)
    export const greetingOld = (i) => `Hello ${i.name}`;
    greetingOld(); // TypeError: Cannot read properties of undefined (reading 'name')

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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 Renovate Bot.

@ensombl-renovate ensombl-renovate bot requested a review from coodos as a code owner December 9, 2025 17:52
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 9, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@ensombl-renovate ensombl-renovate bot force-pushed the renovate/inlang-paraglide-js-2.x-lockfile branch from 5f64c0e to d9d7d3c Compare December 9, 2025 17:57
@ensombl-renovate ensombl-renovate bot force-pushed the renovate/inlang-paraglide-js-2.x-lockfile branch from d9d7d3c to 271892c Compare December 9, 2025 18:34
@coodos coodos merged commit 4ee88ab into main Dec 9, 2025
4 checks passed
@coodos coodos deleted the renovate/inlang-paraglide-js-2.x-lockfile branch December 9, 2025 18:45
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