Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 21, 2025

Bumps python-liquid from 1.13.0 to 2.0.2.

Release notes

Sourced from python-liquid's releases.

Version 2.0.2

  • Fixed static analysis of filters in ternary expressions. See #180.
  • Fixed static analysis of macro blocks. Previously args and kwargs were considered "global". See #181.
  • Fixed looping over non-iterable objects with the {% for %} tag. We were raising a LiquidTypeError when we should have been defaulting to an empty iterable, as Shopify/liquid does.

Version 2.0.1

Fixes

  • Fixed bad imports from typing_extensions.

Version 2.0.0

This is a major release with several breaking changes. As well as API changes listed below, we:

  • Drop support for Python version 3.7 and 3.8.
  • Promote rendering behavior from liquid.future.Environment to be the default, so as to improve Shopify/liquid compatibility by default.
  • Fix variable/identifier/path parsing described in [issue #39](jg-rp/liquid#39).
  • Improve Liquid syntax error messages and exposes source index, line numbers and column numbers through methods on Liquid exceptions. See #53.
  • Change comment tag parsing to better match Shopify/Liquid. See #133.
  • Remove BoundTemplate.analyze_with_context(). Shout if you need contextual analysis and we'll restore this feature.
  • Remove the cache_size argument to liquid.Environment and liquid.Template. Template caching is now handled by template loaders.
  • Remove the expression_cache_size argument to liquid.Environment and liquid.Template. Environment-level expression caching is no longer available as it does not play nicely with detailed error messages. If you need to cache parsing of Liquid expressions, it is now recommended to implement a cache per tag, where it makes sense to do so for your use case.
  • Make markupsafe>=3 a dependency. Previously markupsafe was an optional dependency. Version 3 of markupsafe brings some subtle changes to the replace, replace_first and replace_last filters when they receive a "safe" string wrapped in Markup().
  • Add new filters reject, has, find and find_index.
  • Add the new doc tag.

API changes

Also see the migration guide.

Miscellaneous

  • Added liquid.parse(source), liquid.render(source, **data) and liquid.render_async(source, **data). These are shorthand functions that use liquid.DEFAULT_ENVIRONMENT.
  • Renamed liquid.Environment.parse to liquid.Environment._parse, which returns a list of nodes, not a template.
  • Aliased liquid.Environment.from_string as liquid.Environment.parse.
  • Added liquid.Environment.render(source, **data) and liquid.Environment.render_async(source, **data). These are convenience methods equivalent to liquid.Environment.from_string(source).render(**data).
  • Renamed liquid.Context to liquid.RenderContext.
  • Change the liquid.RenderContext constructor (previously liquid.Context) to require an instance of BoundTemplate as its only positional argument instead of an instance of Environment. All other arguments are now keyword only.
  • Renamed liquid.exceptions.Error to liquid.exceptions.LiquidError.
  • Renamed liquid.exceptions.TemplateNotFound to liquid.exceptions.TemplateNotFoundError.
  • Renamed liquid.exceptions.NoSuchFilterFunc to liquid.exceptions.UnknownFilterError.

Template loaders

  • Changed BaseLoader.get_source and BaseLoader.get_source_async to accept and optional context keyword argument and arbitrary keyword arguments as "load context".
  • Removed BaseLoader.get_source_with_args and BaseLoader.get_source_with_context, and their async equivalents. BaseLoader.get_source now accepts optional context and load context arguments.
  • Changed TemplateSource (a named tuple) to be (text, name, uptodate, matter). It used to be (source, filename, uptodate, matter)

Builtin expressions

  • Removed liquid.expression.*. Now built-in expressions live in liquid.builtin.expressions.

... (truncated)

Changelog

Sourced from python-liquid's changelog.

Version 2.0.2

  • Fixed static analysis of filters in ternary expressions. See #180.
  • Fixed static analysis of macro blocks. Previously args and kwargs were considered "global". See #181.
  • Fixed looping over non-iterable objects with the {% for %} tag. We were raising a LiquidTypeError when we should have been defaulting to an empty iterable, as Shopify/liquid does.

Version 2.0.1

  • Fixed bad imports from typing_extensions.

Version 2.0.0

This is a major release with several breaking changes. As well as API changes listed below, we:

  • Drop support for Python version 3.7 and 3.8.
  • Promote rendering behavior from liquid.future.Environment to be the default, so as to improve Shopify/liquid compatibility by default.
  • Fix variable/identifier/path parsing described in [issue #39](jg-rp/liquid#39).
  • Improve Liquid syntax error messages and exposes source index, line numbers and column numbers through methods on Liquid exceptions. See #53.
  • Change comment tag parsing to better match Shopify/Liquid. See #133.
  • Remove BoundTemplate.analyze_with_context(). Shout if you need contextual analysis and we'll restore this feature.
  • Remove the cache_size argument to liquid.Environment and liquid.Template. Template caching is now handled by template loaders.
  • Remove the expression_cache_size argument to liquid.Environment and liquid.Template. Environment-level expression caching is no longer available as it does not play nicely with detailed error messages. If you need to cache parsing of Liquid expressions, it is now recommended to implement a cache per tag, where it makes sense to do so for your use case.
  • Make markupsafe a dependency. Previously markupsafe was an optional dependency. Version 3 of markupsafe brings some subtle changes to the replace, replace_first and replace_last filters when they receive a "safe" string wrapped in Markup().
  • Add new filters reject, has, find and find_index. See [Shopify/liquid #1869](Shopify/liquid#1869).
  • Add the new doc tag. See [Shopify/liquid #1895](Shopify/liquid#1895).

API changes

Also see the migration guide.

Miscellaneous

  • Added liquid.parse(source), liquid.render(source, **data) and liquid.render_async(source, **data). These are shorthand functions that use liquid.DEFAULT_ENVIRONMENT.
  • Renamed liquid.Environment.parse to liquid.Environment._parse, which returns a list of nodes, not a template.
  • Aliased liquid.Environment.from_string as liquid.Environment.parse.
  • Added liquid.Environment.render(source, **data) and liquid.Environment.render_async(source, **data). These are convenience methods equivalent to liquid.Environment.from_string(source).render(**data).
  • Renamed liquid.Context to liquid.RenderContext.
  • Change the liquid.RenderContext constructor (previously liquid.Context) to require an instance of BoundTemplate as its only positional argument instead of an instance of Environment. All other arguments are now keyword only.
  • Renamed liquid.exceptions.Error to liquid.exceptions.LiquidError.
  • Renamed liquid.exceptions.TemplateNotFound to liquid.exceptions.TemplateNotFoundError.
  • Renamed liquid.exceptions.NoSuchFilterFunc to liquid.exceptions.UnknownFilterError.

Template loaders

  • Changed BaseLoader.get_source and BaseLoader.get_source_async to accept and optional context keyword argument and arbitrary keyword arguments as "load context".
  • Removed BaseLoader.get_source_with_args and BaseLoader.get_source_with_context, and their async equivalents. BaseLoader.get_source now accepts optional context and load context arguments.
  • Changed TemplateSource (a named tuple) to be (text, name, uptodate, matter). It used to be (source, filename, uptodate, matter)

Builtin expressions

... (truncated)

Commits
  • 89e483d Release version 2.0.2 [skip ci]
  • d7aa09b Merge pull request #184 from jg-rp/for-iterable-default
  • 6ef4473 Update golden liquid submodule
  • f865bd9 Fix for loop iterable fallback
  • 7142255 Merge pull request #183 from jg-rp/fix-181
  • 695f3f6 Fix macro block scope
  • 28920d2 Merge pull request #182 from jg-rp/fix-180
  • 85aade2 Fix static analysis of filters in ternary expressions
  • 8774d97 Merge pull request #178 from jg-rp/golden-submodule
  • 6390e02 Display a message if the submodule has not been initialized
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 21, 2025
@dependabot dependabot bot force-pushed the dependabot/pip/python-liquid-2.0.2 branch 4 times, most recently from fd4472a to aaca412 Compare June 2, 2025 06:50
@dependabot dependabot bot force-pushed the dependabot/pip/python-liquid-2.0.2 branch 11 times, most recently from b01ad16 to a7362b8 Compare June 4, 2025 11:55
@dependabot dependabot bot force-pushed the dependabot/pip/python-liquid-2.0.2 branch 3 times, most recently from 248a041 to c708efe Compare June 10, 2025 06:50
Bumps [python-liquid](https://github.com/jg-rp/liquid) from 1.13.0 to 2.0.2.
- [Release notes](https://github.com/jg-rp/liquid/releases)
- [Changelog](https://github.com/jg-rp/liquid/blob/main/CHANGES.md)
- [Commits](jg-rp/liquid@v1.13.0...v2.0.2)

---
updated-dependencies:
- dependency-name: python-liquid
  dependency-version: 2.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/python-liquid-2.0.2 branch from c708efe to 27c78de Compare June 10, 2025 09:02
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 15, 2025

Superseded by #1403.

@dependabot dependabot bot closed this Aug 15, 2025
@dependabot dependabot bot deleted the dependabot/pip/python-liquid-2.0.2 branch August 15, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant