This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
Releases: Shopify/prettier-plugin-liquid
Releases · Shopify/prettier-plugin-liquid
v1.2.2
Full Changelog: v1.2.1...v1.2.2
v1.2.1
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
What's Changed
- Add completion mode by @charlespwd in #195
- Add support for prettier 3 by @charlespwd in #196
Full Changelog: v1.0.6...v1.2.0
v1.1.0
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
What's Changed
- Maintain at most 1 newline between tag attributes by @charlespwd in #159
Full Changelog: v1.0.5...v1.0.6
v1.0.5
What's Changed
- Allow for nested HTML raw tags by @charlespwd in #157
Full Changelog: v1.0.4...v1.0.5
v1.0.4
v1.0.3
What's Changed
- Remove the fs dependency in the TS build. by @charlespwd in #147
- Bump json5 from 1.0.1 to 1.0.2 by @dependabot in #149
- Add support for sections tag by @jamesmengo in #150
Full Changelog: v1.0.2...v1.0.3
v1.0.2
Full Changelog: v1.0.1...v1.0.2
v1.0.1
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