Python-liquid

Latest version: v1.12.1

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 10

1.3.0

**Breaking Changes**

- Objects returned from `ast.Node.children` must now include a `token` property, being the token representing the start of the AST node.

**Features**

- Template static analysis. Report template variable usage using `Template.analyze()` and `Template.analyzeSync()`. ([docs](https://jg-rp.github.io/liquidscript/guides/static-analysis))

1.2.0beta.1

**Features**

- New general purpose argument list parser. Parse Liquid expressions containing any number of named or keyword arguments, with a choice of key/value separator. See `src/expressions/arguments/parse.ts`.
- New inline comment tag `{% .. %}`. See [Shopify Liquid PR 1498](https://github.com/Shopify/liquid/pull/1498).

**Fixes**

- Fixed a bug with the `assign` tag where it would incorrectly throw a `LiquidSyntaxError` when parts of its expression were split over multiple lines.
- Fixed a bug with the `where` filter. It is now consistent with the reference implementation when given `nil` or `Undefined` as its second argument.
- Fixed a bug with the `sort` filter. It now raises a `LiquidTypeError` at render time if the items to be sorted are incompatible. The reference implementation raises an equivalent `Liquid::ArgumentError` in this situation.

**Docs**

- New example Jekyll-style `include` tag.

1.1.1

- Test against Django 4.2
- Configure with pyproject.toml
- Test and build with Hatch

1.1.0

- Drop support for Django 2.2
- Test against Python 3.11
- Test against Django 4.1

1.1.0beta.1

- New "if not" tag. A drop-in replacement for the standard `if` tag that supports logical `not` and grouping with parentheses.
- Moved some module-level constants to static class variables for easier subclassing of tags.
- Allow `ObjectChain` to contain `push`, `pop` and `size` properties. This is **potentially a breaking change** for early adopters writing custom tags using `context.scope.push` and `context.scope.pop`. The symbols `chainPush` and `chainPop` would be needed instead.
- Enforce `maxContextDepth` when extending a render context scope as well as copying a `RenderContext`.
- New `FalsyStrictUndefined` type. `FalsyStrictUndefined` is similar to `StrictUndefined`, but can be tested for truthiness and compared to other values in an `if`/`unless` expression without throwing an error.

1.0.0

- Test against Python 3.10 and Django 4.0.


Liquid Change Log

Page 8 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.