Skip to content

Update dependency svelte-check-native to v1.12.1 - #99

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/weekly-minor-patch-updates
Nov 19, 2026
Merged

renovate[bot] merged 1 commit into
mainfrom
renovate/weekly-minor-patch-updates

Conversation

@renovate

@renovate renovate Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
svelte-check-native 1.11.1 → 1.12.1 age confidence

Release Notes

harshmandan/svelte-check-native (svelte-check-native)

v1.12.1

Compare Source

Fixes found reviewing 1.12.0: bridge mode could fall out of step with
its worker and exit 0, a few tag readings and svelte-ignore comment
reads differed from the compiler, and some per-file work was repeated
or ran serially.

Fixed
  • --svelte-warnings=bridge no longer falls out of step with its
    worker.
    A component holding U+2028 or U+2029 reached the worker as
    two broken requests, and every later reply answered the wrong file:
    rejected components after it were dropped and the run could exit 0.
    A reply the bridge cannot read now starts a fresh worker.
  • svelte-ignore comments in template expressions are read only
    where the compiler still has them
    : not before parentheses, not
    before an {#each} iterable the compiler unwraps from a cast or a
    sequence, and not in a bind: getter/setter pair outside the two
    bodies. A retried {#each} read reports its comment once per read,
    as the compiler does.
  • svelte-ignore before <script> / <style> follows the
    compiler's rule for which comment is kept, counts positions in UTF-16
    units, and reports the compiler crash a runes-mode unknown code
    causes there. Comments in snippet type parameters lead the node
    acorn-typescript attaches them to.
  • <script> / <style> tags are found as svelte2tsx and
    svelte-check find them
    , with the regex engine's backtracking: a
    quoted value read again as an unquoted one (<script x="a lang=ts"c>)
    no longer turns the script into template markup, and a failing
    <style> tag with many attributes no longer takes exponential time.
    <script this this> is accepted as the compiler accepts it.
  • The not-checked notice names only components our parser rejects, not
    those svelte2tsx refuses (upstream leaves those out too).
  • The compiler's white-space set is used everywhere (U+FEFF counts,
    U+0085 does not).
  • Unknown ARIA names and roles get the compiler's suggestions.
  • The language server's preprocessing hint also reads a top-level
    <template lang>.
Changed
  • Each component script is parsed once per run and shared by lint,
    emit and the import checks; the rejected-import checks share one
    resolver and run in parallel; more per-file work runs on the thread
    pool.
  • acorn-rs 0.2 (the published acorn / acorn-typescript port), oxc
    0.158, TypeScript 7.1.0-dev.20261114.1 in the test setup.

v1.12.0

Compare Source

Targets Svelte 5.57.3 (the pinned compiler checkout moves from 5.55.4).
JavaScript and TypeScript in components are now read by a Rust port of
acorn and acorn-typescript, the parsers Svelte itself uses, so parse
errors match the compiler's code, message and position. Expect new
errors where the compiler rejects syntax we used to read past.

Added
  • Parse errors read the way the compiler reads them. Scripts,
    template expressions, {#each} / {#await} / {#snippet} heads,
    {@…} tags, patterns and declaration tags end and split where
    Svelte's parser ends them, and report acorn's and acorn-typescript's
    own errors, including strict-mode early errors and regular
    expression errors.
  • Imports of a component the compiler rejects (tsgo enhancement)
    report what the default engine reports at those imports, also when
    the rejected component is outside the tsconfig but imported by the
    program.
Changed
  • --svelte-warnings=bridge fails the run when it cannot run
    svelte/compiler
    (no JS runtime, no svelte package, or a worker
    that died): the reason on stderr, nothing on stdout, exit 1. It used
    to carry on and could exit 0.
  • Bridge mode compiles every discovered component, not only those
    in the tsconfig.
  • New dependency: stacker, which grows the stack on demand for deeply
    nested input.
Fixed
  • Svelte 5.57.3 compiler messages, a11y role handling and analysis
    errors (let: beside a children snippet, exported state before
    export let, a tag reusing a snippet parameter).
  • Eight lint rules brought into line with the compiler; element a11y
    warnings are raised in the compiler's order; script svelte-ignore
    comments attach to the node acorn attaches them to.
  • Emit matches svelte2tsx for generic component signatures, {@attach}
    on components, bare data-* attributes, quoted single-expression
    props, <svelte:self>, get/set DOM bindings, slot= outside a slot
    position, typed {#each} patterns, a <style> nested in the
    template, and parenthesized comma sequences in attribute values.
  • bind: attribute key errors and positions inside generated
    statements map where svelte-check puts them.
  • A component whose script exports everything from a module is left
    out as upstream leaves it out; fallback-transpiled scripts are read
    as TypeScript prints them.
  • A component with a non-breaking space (or other Unicode white
    space) inside a tag is checked.
    <div class= "x"> used to be
    rejected and the file silently left out: no type errors, not counted.
    Tags now use the compiler's white-space set, and attribute names end
    where the compiler ends them.
  • Top-level <script> / <style> tags are read as the compiler
    reads them
    : <script lang = "ts">, <script />, a duplicate
    attribute or a missing value report the compiler's error.
  • Declaration tags, {#each} patterns and nested raw-text
    <style> / <script>
    end and report errors where the compiler
    does; an unterminated block comment inside a tag no longer cuts the
    tag short.
  • svelte-ignore comments match the compiler: unknown_code is
    reported once, not once per nested node; an ignore applies to every
    node inside the one it leads (switch cases, destructuring defaults,
    catch parameters, for headers); <svelte:options> no longer hides
    the comments before the next element; comments inside template
    expressions and before <style> are checked; positions in
    multi-line block comments and fuzzy-match suggestions match.
  • Warnings come out in the compiler's order: state_referenced_locally
    and its siblings interleave with the other script warnings.
  • Comma-sequence attribute values map their errors to upstream's
    start and end columns, and no longer add an internal error.
  • Component props match svelte2tsx: destructured exports (nested,
    rest, array holes), export { x } of a variable declared without a
    value (now required), duplicate keys in SvelteKit auto-typed props,
    and $$Props beside other exports. $$props in a TypeScript
    component no longer rejects every prop as never.
  • bind: follows the component's runes mode: a JavaScript runes
    component no longer accepts bind: on every prop.
  • style:x="{value}" type-checks the value as upstream does.
  • {#each} over a possibly-undefined value under Svelte 4
    reports TS2345 as upstream does.
  • Bridge mode finds svelte per component (from the file's
    directory up, then from where svelte-check-native is installed), so
    pnpm monorepos whose root has no svelte work.
  • Helper scripts run from a private, per-run temp directory (mode
    0700), and early exits stop the transpile worker and remove its
    scratch directory.
  • Imports of a rejected component drop only the diagnostics the
    rejection causes (an unused-import TS6133 is still reported), honour
    /* @ts-ignore */ block-comment directives, and follow the
    component's fallback script only.
  • Program files whose path contains - are no longer dropped from
    the import checks.
  • One failed transpile worker no longer sends every component to the
    fallback printer.
  • A crash exits 1 with "svelte-check failed", not 101. The check runs
    on a thread pool that falls back to smaller stacks, with a note, when
    the system refuses large ones.
  • A component our parser rejects but the compiler accepts gets a note
    on stderr instead of being skipped silently.

Configuration

📅 Schedule: (in timezone America/Chicago)

  • 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 enabled auto-merge (squash) November 19, 2026 07:35
@renovate

renovate Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.

@renovate
renovate Bot merged commit 8190100 into main Nov 19, 2026
2 checks passed
@renovate
renovate Bot deleted the renovate/weekly-minor-patch-updates branch November 19, 2026 07:35
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