Releases: Shopify/prettier-plugin-liquid
v1.0.0
🎉 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
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
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
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
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
v0.4.2
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
What's Changed
- Fix unnecessary whitespace stripping on liquid html attribute break by @charlespwd in #102
- Add proper support for HTML doctypes by @charlespwd in #103
- Add support for nested block comments by @charlespwd in #108
- Update CONTRIBUTING.md by @jamesmengo in #113
- Clarify Liquid-in-JS and Liquid-in-CSS support in KNOWN_ISSUES. by @charlespwd in #112
- Add
yarn test:idempotence
to CONTRIBUTING.md by @mgmanzella in #109 - Fix
useTabs
andcapture
indentation sensitivity by @charlespwd in #114 - Add support for the
stylesheet
tag by @charlespwd in #117 - Internal refactor of parser pipeline by @charlespwd in #118
New Contributors
- @jamesmengo made their first contribution in #113
- @mgmanzella made their first contribution in #109
Full Changelog: v0.4.0...v0.4.1
v0.4.0
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 thesingleQuote
property of embedded languages- When
true
(default), will prefer single quotes inside embedded JS & CSS
- When
- Use prettier's JavaScript formatter inside
Fixes
- Fix grammar precedence (
>=
,<=
) for operators in conditionals (#98)
Full Changelog: v0.3.1...v0.4.0