Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Bump prettier-plugin-svelte from 1.1.0 to 2.1.1 #169

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jan 25, 2021

Bumps prettier-plugin-svelte from 1.1.0 to 2.1.1.

Changelog

Sourced from prettier-plugin-svelte's changelog.

2.1.1

  • Fix svelteBracketNewLine: true sometimes not having > on a separate line (#194)

2.1.0

  • Support Prettier's htmlWhitespaceSensitivity setting
  • When svelteBracketNewLine is set to true and only the closing tag has whitespace before it, print the closing > on a separate line

2.0.3

  • When svelteBracketNewLine is set to false, don't print the closing > in a separate line if possible (#183)

2.0.2

  • Fix formatting of \<template> tags with an unsupported language inside

2.0.1

  • Fix formatting of inline element when there's a line at the start/end (#183)

2.0.0

This release comes with a rewrite of the HTML formatting. The output is now much more in line with how standard Prettier formats HTML. This is also why svelteBracketNewLine now defaults to true. Another notable default change is the sort order: svelte:options is now part of the sort order and the default changed to options-scripts-markup-styles, which is in line with how the majority of users like to order the code blocks.

The complete list of changes:

  • Rework the tag breaking logic with the goal to be more in line with how Prettier formats standard HTML. This includes respecting the user's decision to have child tags in separate lines even if they don't exceed the maximum line width (#143, #117). This is a breaking change because tags are broken up differently now than before.
  • <svelte:options> is now part of svelteSortOrder. Default sort order is now options-scripts-markup-styles. This is a breaking change. (#73)
  • svelteBracketNewLine defaults to true now to be more in line with how Prettier formats standard HTML. This is a breaking change
  • Fix formatting of fenced Svelte code blocks inside Markdown (#129)
  • Everything that is not explicitly a block element is now treated as an inline element, including components. This is a breaking change (#159)
  • Single quotes are no longer forced except inside quoted attributes/events/etc. This is a breaking change (#94)
  • If the content inside a {tag} is too long, break it up if possible (excluding {#if}/{#await}/etc. blocks). This is a breaking change (#170)
  • If the content of a <script>/<style> tag is completely empty (no whitespace), don't put the closing tag on a new line (#87)

1.4.2

  • Pass options to embedded parser (#162)
  • Fall back to raw text if there is a parser error in a JS expression inside a moustache tag (#163)

1.4.1

  • Format next node correctly when previous node has a comment as last child (#152)
  • Only prettier-ignore comments should ignore formatting of next line (#151)
  • Do not encode entities in attribute values (#29)
  • Fix raw printing of unsupported languages (#156)

1.4.0

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 25, 2021
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Feb 8, 2021

Superseded by #185.

@dependabot dependabot bot closed this Feb 8, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/prettier-plugin-svelte-2.1.1 branch February 8, 2021 05:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants