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.2.2

18 Jul 16:20
Compare
Choose a tag to compare

v1.2.1

12 Jul 14:19
Compare
Choose a tag to compare

What's Changed

  • Add || prettier@^3 peerDependencies to package.json...
  • Update README to account for prettier@3 breaking changes

Full Changelog: v1.0.6...v1.2.1

v1.2.0

12 Jul 12:40
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.6...v1.2.0

v1.1.0

26 May 17:07
Compare
Choose a tag to compare

What's Changed

  • Add support to broken templates in the Liquid parser by @karreiro in #177

  • Add support for Strict Liquid Markup parsing (#187)

  • Add support for dangling HTML nodes inside Liquid if statements (#186)

    That is, the following liquid code no longer throws a LiquidHTMLParsingError

    <div>
      {% if href %}
        <a href="{{ href }}">
      {% endif %}
    
      <div class="content-wrapper">
        <p>...</p>
      </div>
    
      {% if href %}
        </a>
      {% endif %}
    </div>

    The heuristic we're going for is the following:

    • Only supported inside a LiquidBranch (if,else,when)
    • At most 2 of the same type (2 dangling open, or 2 dangling close)

    Everything else still throws a LiquidHTMLParsingError. The idea is that those are likely errors, whereas the heuristic isn't.

Full Changelog: v1.0.6...v1.1.0

v1.0.6

18 Jan 18:55
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.5...v1.0.6

v1.0.5

10 Jan 20:27
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.4...v1.0.5

v1.0.4

10 Jan 13:45
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.3...v1.0.4

v1.0.3

04 Jan 21:53
43d6330
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.2...v1.0.3

v1.0.2

13 Dec 13:59
Compare
Choose a tag to compare

Full Changelog: v1.0.1...v1.0.2

v1.0.1

13 Dec 13:43
Compare
Choose a tag to compare

What's Changed

  • Fix trailing whitespace after opening raw tag breaking formatting by @charlespwd in #145
  • Add TypeScript typings to @shopify/prettier-plugin-liquid/standalone

Full Changelog: v1.0.0...v1.0.1