Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prettier-plugin-svelte

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-svelte - npm Package Versions

13
6

3.1.0

Diff

Changelog

Source

3.1.0

  • (feat) add experimental support for Svelte 5
  • (feat) support #snippet and @render
dummdidumm
published 3.0.3 •

Changelog

Source

3.0.3

  • (fix) handle static tag attributes on <svelte:element>
dummdidumm
published 3.0.2 •

Changelog

Source

3.0.2

  • (fix) add package.json to exports map
dummdidumm
published 3.0.1 •

Changelog

Source

3.0.1

  • (fix) support less/scss in style tags
dummdidumm
published 3.0.0 •

Changelog

Source

3.0.0

  • (breaking) requires prettier version 3. This may require adjustments to your configuration file, see the migration guide for more info
  • (breaking) requires node version 14 or higher
  • (breaking) Whether or not empty elements/components should self-close is now left to the user - in other words, if you write <div /> or <Component /> that stays as is, and so does <div></div>/<Component></Component>. If svelteStrictMode is turned on, it will still only allow <div></div> notation for elements (but it will leave your components alone)
  • (breaking) svelteAllowShorthand now takes precedence over svelteStrictMode, which no longer has any effect on that behavior. Set svelteAllowShorthand to false to get back the v2 behavior
  • (breaking) remove deprecated svelteSortOrder options
dummdidumm
published 2.10.1 •

Changelog

Source

2.10.1

  • (chore) mark as compatible with Svelte 4
dummdidumm
published 2.10.0 •

Changelog

Source

2.10.0

  • (feat) support requirePragma and insertPragma options (#350)
  • (feat) support <svelte:document>
  • (feat) trim whitespace in class attributes (#339)
  • (feat) allow multiple comments atop of script/style tags (#291)
  • (fix) handle script/style attributes without quotes (#344)
dummdidumm
published 2.9.0 •

Changelog

Source

2.9.0

  • (feat) support style modifiers (#330)
  • (fix) respect strict mode and shorthand options when formatting style/class directives (#328)
dummdidumm
published 2.8.1 •

Changelog

Source

2.8.1

  • (fix) format {#await .. catch ..}..{/await} correctly (#323)
  • (fix) respect strict mode and shorthand options when formatting bindings (#321)
dummdidumm
published 2.8.0 •

Changelog

Source

2.8.0

  • (feat) support singleAttributePerLine Prettier option (#305)
  • (feat) add svelteSortOrder: none Prettier option which skips reordering scripts/styles/html (#305)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc