Repository navigation
Update dependency svelte-check-native to v1.12.1 - #99
Merged
Merged
Conversation
Contributor
Author
Branch automerge failureThis PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead. |
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:
1.11.1→1.12.1Release Notes
harshmandan/svelte-check-native (svelte-check-native)
v1.12.1Compare 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-ignorecommentreads differed from the compiler, and some per-file work was repeated
or ran serially.
Fixed
--svelte-warnings=bridgeno longer falls out of step with itsworker. 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-ignorecomments in template expressions are read onlywhere the compiler still has them: not before parentheses, not
before an
{#each}iterable the compiler unwraps from a cast or asequence, and not in a
bind:getter/setter pair outside the twobodies. A retried
{#each}read reports its comment once per read,as the compiler does.
svelte-ignorebefore<script>/<style>follows thecompiler'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 andsvelte-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.those svelte2tsx refuses (upstream leaves those out too).
U+0085 does not).
<template lang>.Changed
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.
0.158, TypeScript 7.1.0-dev.20261114.1 in the test setup.
v1.12.0Compare 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
template expressions,
{#each}/{#await}/{#snippet}heads,{@…}tags, patterns and declaration tags end and split whereSvelte's parser ends them, and report acorn's and acorn-typescript's
own errors, including strict-mode early errors and regular
expression errors.
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=bridgefails the run when it cannot runsvelte/compiler(no JS runtime, nosveltepackage, or a workerthat died): the reason on stderr, nothing on stdout, exit 1. It used
to carry on and could exit 0.
in the tsconfig.
stacker, which grows the stack on demand for deeplynested input.
Fixed
errors (
let:beside a children snippet, exported state beforeexport let, a tag reusing a snippet parameter).warnings are raised in the compiler's order; script
svelte-ignorecomments attach to the node acorn attaches them to.
{@attach}on components, bare
data-*attributes, quoted single-expressionprops,
<svelte:self>, get/set DOM bindings,slot=outside a slotposition, typed
{#each}patterns, a<style>nested in thetemplate, and parenthesized comma sequences in attribute values.
bind:attribute key errors and positions inside generatedstatements map where svelte-check puts them.
out as upstream leaves it out; fallback-transpiled scripts are read
as TypeScript prints them.
space) inside a tag is checked.
<div class= "x">used to berejected 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.
<script>/<style>tags are read as the compilerreads them:
<script lang = "ts">,<script />, a duplicateattribute or a missing value report the compiler's error.
{#each}patterns and nested raw-text<style>/<script>end and report errors where the compilerdoes; an unterminated block comment inside a tag no longer cuts the
tag short.
svelte-ignorecomments match the compiler:unknown_codeisreported once, not once per nested node; an ignore applies to every
node inside the one it leads (switch cases, destructuring defaults,
catch parameters,
forheaders);<svelte:options>no longer hidesthe comments before the next element; comments inside template
expressions and before
<style>are checked; positions inmulti-line block comments and fuzzy-match suggestions match.
state_referenced_locallyand its siblings interleave with the other script warnings.
start and end columns, and no longer add an internal error.
rest, array holes),
export { x }of a variable declared without avalue (now required), duplicate keys in SvelteKit auto-typed props,
and
$$Propsbeside other exports.$$propsin a TypeScriptcomponent no longer rejects every prop as
never.bind:follows the component's runes mode: a JavaScript runescomponent no longer accepts
bind:on every prop.style:x="{value}"type-checks the value as upstream does.{#each}over a possibly-undefinedvalue under Svelte 4reports TS2345 as upstream does.
svelteper component (from the file'sdirectory up, then from where svelte-check-native is installed), so
pnpm monorepos whose root has no
sveltework.0700), and early exits stop the transpile worker and remove its
scratch directory.
rejection causes (an unused-import TS6133 is still reported), honour
/* @ts-ignore */block-comment directives, and follow thecomponent's fallback script only.
-are no longer dropped fromthe import checks.
fallback printer.
on a thread pool that falls back to smaller stacks, with a note, when
the system refuses large ones.
on stderr instead of being skipped silently.
Configuration
📅 Schedule: (in timezone America/Chicago)
🚦 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.