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

Commit

Permalink
Bump version to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
charlespwd committed May 26, 2023
1 parent 11889c6 commit bdddbeb
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@

1.1.0 / 2023-05-26
==================

* Add support for Strict Liquid Markup parsing ([#187](https://github.com/shopify/prettier-plugin-liquid/issues/187))
* Add support for dangling HTML nodes inside Liquid if statements ([#186](https://github.com/shopify/prettier-plugin-liquid/issues/186))

That is, the following liquid code _no longer_ throws a LiquidHTMLParsingError

```liquid
<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.
1.0.6 / 2023-01-18
==================
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/prettier-plugin-liquid",
"version": "1.0.6",
"version": "1.1.0",
"description": "Prettier Liquid/HTML plugin by Shopify",
"repository": "shopify/prettier-plugin-liquid",
"author": "CP Clermont <@charlespwd>",
Expand Down
4 changes: 2 additions & 2 deletions playground/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}

const unpkgUrl =
'https://www.unpkg.com/@shopify/prettier-plugin-liquid@v1.0.6/standalone.js';
'https://www.unpkg.com/@shopify/prettier-plugin-liquid@v1.1.0/standalone.js';
if (/localhost|127.0.0.1/.test(window.location.href)) {
const script = getScript('assets/standalone.js');
script.onerror = () => {
Expand Down Expand Up @@ -53,7 +53,7 @@ <h1>
href="https://github.com/shopify/prettier-plugin-liquid/blob/main/CHANGELOG.md"
target="_blank"
rel="noreferrer noopener"
>v1.0.6</a
>v1.1.0</a
></span
>
</h1>
Expand Down

0 comments on commit bdddbeb

Please sign in to comment.