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

Releases: Shopify/prettier-plugin-liquid

v1.0.0

09 Dec 16:44
Compare
Choose a tag to compare

🎉 The Liquid prettier plugin is now officially ready for production!

Astute devs might have noticed that it is also enabled inside Shopify's Online Store Code Editor.

Features

  • Stability :)
  • No major changes
  • Compatible with v0.4

Fixes

  • Add support for prettier-ignore-attributes and fix secondary templating parsing issue by @charlespwd in #125
  • Fixup parsing of {% else-%} by @charlespwd in #129
  • Add support for Liquid output in attribute names by @charlespwd in #127
  • Add support for Liquid output in HTML element names by @charlespwd in #135
  • Parse smart quotes as dumb quotes to prevent formatted copy pasting errors by @charlespwd in #136
  • Maintain at most 1 newline between Liquid branches by @charlespwd in #137
  • Unclosed AST should throw a LiquidHTMLParsingError by @charlespwd in #140
  • Add support for <!-- white-space: normal --> comment by @charlespwd in #142

Full Changelog: v0.4.3...v1.0.0

v1.0.0-rc.3

07 Dec 20:48
Compare
Choose a tag to compare
v1.0.0-rc.3 Pre-release
Pre-release

Fixed

  • Unclosed AST should throw a LiquidHTMLParsingError by @charlespwd in #140

Full Changelog: v1.0.0-rc.2...v1.0.0-rc.3

v1.0.0-rc.2

06 Dec 15:54
Compare
Choose a tag to compare
v1.0.0-rc.2 Pre-release
Pre-release

What's Changed

  • Add support for compound Liquid + Html element names by @charlespwd in #135
  • Parse smart quotes as dumb quotes to prevent formatted copy pasting errors by @charlespwd in #136
  • Maintain at most 1 newline between Liquid branches by @charlespwd in #137

Full Changelog: v1.0.0-rc.1...v1.0.0-rc.2

v1.0.0-rc.1

02 Dec 19:29
Compare
Choose a tag to compare
v1.0.0-rc.1 Pre-release
Pre-release

What's Changed

  • Fix parsing of LiquidDrop in HTML attribute names (<a data-popup--{{ id }}="...">) (#101)
  • Fix parsing of unquoted LiquidDrop HTML attributes (<a id={{ id }}--omg>) (#101)
  • Fix parsing of tags with missing space between whitespace stripping and tag name ({% else-%}) (#126)

Full Changelog: v1.0.0-rc.0...v1.0.0-rc.1

v1.0.0-rc.0

29 Nov 20:25
Compare
Choose a tag to compare
v1.0.0-rc.0 Pre-release
Pre-release

What's Changed

Today, we're publishing our first release candidate version: v1.0.0-rc.0

It should feel the same as v0.4.3, but this time with the expectation that we won't drastically change anything going forward.

Take it for a spin on your themes and—as always—please report any issues you may have. There's only so many use cases we can cover internally :)

Features

  • Add support for prettier-ignore-attributes (#125)

Fixes

  • Fix secondary templating parsing issue (#125)

Full Changelog: v0.4.3...v1.0.0-rc.0

v0.4.3

25 Nov 16:37
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.2...v0.4.3

v0.4.2

24 Nov 20:23
Compare
Choose a tag to compare

What's Changed

  • Fix the rendering of html tags with one attribute that is multiline by @charlespwd in #121

Full Changelog: v0.4.1...v0.4.2

v0.4.1

22 Nov 19:55
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.0...v0.4.1

v0.4.0

09 Sep 13:33
Compare
Choose a tag to compare

Features

  • Add support for the {% liquid %} tag (#94)
  • Add support for embedded languages (#88)
    • Use prettier's JavaScript formatter inside <script> and {% javascript %} tags
    • Use prettier's CSS formatter inside <style> and {% style %} tags
    • Use prettier's JSON formatter inside <script type="anything/that-ends-in-json"> and {% schema %} tags
    • Use prettier's Markdown formatter inside <script type="text/markdown">
    • Add a new configuration: embeddedSingleQuote to control the singleQuote property of embedded languages
      • When true (default), will prefer single quotes inside embedded JS & CSS

Fixes

  • Fix grammar precedence (>=, <=) for operators in conditionals (#98)

Full Changelog: v0.3.1...v0.4.0

v0.3.1

31 Aug 17:54
Compare
Choose a tag to compare

What's Changed

  • Fixup printing of failed-to-parse Liquid (#95)

Full Changelog: v0.3.0...v0.3.1