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

Commit bdddbeb

Browse files
committed
Bump version to 1.1.0
1 parent 11889c6 commit bdddbeb

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,35 @@
11

2+
1.1.0 / 2023-05-26
3+
==================
4+
5+
* Add support for Strict Liquid Markup parsing ([#187](https://github.com/shopify/prettier-plugin-liquid/issues/187))
6+
* Add support for dangling HTML nodes inside Liquid if statements ([#186](https://github.com/shopify/prettier-plugin-liquid/issues/186))
7+
8+
That is, the following liquid code _no longer_ throws a LiquidHTMLParsingError
9+
10+
```liquid
11+
<div>
12+
{% if href %}
13+
<a href="{{ href }}">
14+
{% endif %}
15+
16+
<div class="content-wrapper">
17+
<p>...</p>
18+
</div>
19+
20+
{% if href %}
21+
</a>
22+
{% endif %}
23+
</div>
24+
```
25+
26+
The heuristic we're going for is the following:
27+
28+
- Only supported inside a LiquidBranch (if,else,when)
29+
- At most 2 of the same type (2 dangling open, or 2 dangling close)
30+
31+
Everything else still throws a LiquidHTMLParsingError. The idea is that those are likely errors, whereas the heuristic isn't.
32+
233
1.0.6 / 2023-01-18
334
==================
435

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@shopify/prettier-plugin-liquid",
3-
"version": "1.0.6",
3+
"version": "1.1.0",
44
"description": "Prettier Liquid/HTML plugin by Shopify",
55
"repository": "shopify/prettier-plugin-liquid",
66
"author": "CP Clermont <@charlespwd>",

playground/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222

2323
const unpkgUrl =
24-
'https://www.unpkg.com/@shopify/prettier-plugin-liquid@v1.0.6/standalone.js';
24+
'https://www.unpkg.com/@shopify/prettier-plugin-liquid@v1.1.0/standalone.js';
2525
if (/localhost|127.0.0.1/.test(window.location.href)) {
2626
const script = getScript('assets/standalone.js');
2727
script.onerror = () => {
@@ -53,7 +53,7 @@ <h1>
5353
href="https://github.com/shopify/prettier-plugin-liquid/blob/main/CHANGELOG.md"
5454
target="_blank"
5555
rel="noreferrer noopener"
56-
>v1.0.6</a
56+
>v1.1.0</a
5757
></span
5858
>
5959
</h1>

0 commit comments

Comments
 (0)