Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: bump esrap#16240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Rich-Harris merged 2 commits intomainfromesrap-2
Jun 30, 2025
Merged

chore: bump esrap#16240

Rich-Harris merged 2 commits intomainfromesrap-2
Jun 30, 2025

Conversation

@Rich-Harris
Copy link
Member

this is#16188 without the newprint API, just updating the dependency onesrap. makes the other PR smaller and more focused

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC:https://github.com/sveltejs/rfcs
  • Prefix your PR title withfeat:,fix:,chore:, ordocs:.
  • This message body should clearly illustrate what problems it solves.
  • Ideally, include a test that fails without this PR but passes with it.
  • If this PR changes code withinpackages/svelte/src, add a changeset (npx changeset).

Tests and linting

  • Run the tests withpnpm test and lint the project withpnpm lint

@changeset-bot
Copy link

changeset-botbot commentedJun 25, 2025
edited
Loading

⚠️ No Changeset found

Latest commit:ff806c2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go.If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

Playground

pnpm add https://pkg.pr.new/svelte@16240

@svelte-docs-bot
Copy link

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM!

//@ts-expect-error
(ast.trailingComments||=[]).push(...comments);
}
constbody=/**@type {ESTree.Program} */(ast).body;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Why is the body cast toNode above andProgram here?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

APIs likeesrap.print andzimmerframe.walk infer the type of node from the first argument. If they infer narrowly, they will complain about the second (or third in zimmerframe's case) argument because it contains visitors for other types of node. In a.ts file we'd just doprint<Node>(ast, visitors) but that's very cumbersome in JSDoc, so castingast is the pragmatic approach

Though now that I think about it, perhapsesrap andzimmerframe couldNoInfer the first argument, so that the types come from the visitors instead... huh. I should try this

result.map.sources=[file_basename];
result.map=apply_preprocessor_sourcemap(
file_basename,
Object.assign(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

why the change here?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

result.map is now readonly (it is generated lazily in a getter).technically a breaking change but vanishingly unlikely to affect anyone in practice

exportfunctioneach_key_duplicate(a,b,value){
if(DEV){
consterror=newError(`each_key_duplicate\n${value ?`Keyed each block has duplicate key \`${value}\` at indexes${a} and${b}` :`Keyed each block has duplicate key at indexes${a} and${b}`}\nhttps://svelte.dev/e/each_key_duplicate`);
consterror=newError(`each_key_duplicate\n${value

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

did prettier ship a breaking change or something? this stuff was happening to me too

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

wait no I am truly idiotic, this is changes in formatting due to the new print interface right?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

correct

@Rich-HarrisRich-Harris merged commite896c55 intomainJun 30, 2025
14 checks passed
@Rich-HarrisRich-Harris deleted the esrap-2 branchJune 30, 2025 12:59
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@elliott-with-the-longest-name-on-githubelliott-with-the-longest-name-on-githubelliott-with-the-longest-name-on-github approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@Rich-Harris@elliott-with-the-longest-name-on-github

[8]ページ先頭

©2009-2025 Movatter.jp