Releases: keepsuit/php-liquid
Releases · keepsuit/php-liquid
v0.5.1
What's changed
- Don't preserve keys when transforming generator to array (it can break with
yield from
)
Full Changelog: v0.5.0...v0.5.1
v0.5.0
Breaking changes
- Added
AsLiquidValue
interface to provide a scalar value from objects used for comparisons - Added
Hidden
andCache
attributes for drop methods - Rewritten and improved drops metadata extraction
- Improved
RenderContext
values caching
What's Changed
- added cacheable methods to drop by @cappuc in #12
- extract drop metadata only once per drop class by @cappuc in #13
Full Changelog: v0.4.2...v0.5.0
v0.4.2
What's changed
- Fixed filesystem replace (introduced in v0.4.1)
- Don't replace exception
templateName
andlineNumber
when provided
Full Changelog: v0.4.1...v0.4.2
v0.4.1
What's changed
- Make
rethrowExceptions
andfilterRegistry
public accessible inRenderContext
Full Changelog: v0.4.0...v0.4.1
v0.4.0
Breaking changes
- Lexer and Parser were rewritten from scratch so custom tags needs to be updated.
- Removed line numbers settings since they are always tracked now.
- Removed raw markup from nodes.
- Removed
I18n
locale provider (it was only used for exception messages, now they are always in english). - Renamed
Context
toRenderContext
. - Removed
outerScope
initialization inRenderContext
- Removed the starting
_
inLocalFileSystem
pattern for searching liquid files. - Support dot syntax in
LocalFileSystem
resolver (dir.template
becomedir/template.liquid
) - Introduced
PartialsCache
andOutputsBag
used to shared state between parsing and rendering (for compiled child templates and general outputs) - Added experimental template streaming support (with generators)
What's Changed
- Bump actions/checkout from 3 to 4 by @dependabot in #5
- Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in #7
- Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1 by @dependabot in #8
- Bump actions/cache from 3 to 4 by @dependabot in #9
- Refactoring by @cappuc in #10
- Streaming by @cappuc in #11
Full Changelog: v0.3.2...v0.4.0
v0.3.2
v0.3.1
v0.3.0
What's Changed
- Removed ParseContext from tag state, so its no longer available during render phase by @cappuc in #3
- Update render tag to parse partial template in the parse phase instead of render phase by @cappuc in #3
- Share partials cache between parse context and render context (saving them in the root Template after parsing) by @cappuc in #3
- Renamed parse method of TemplateFactory to parseString and added parseTemplate method (it parses a template from filesystem) by @cappuc in #3
Full Changelog: v0.2.1...v0.3.0
v0.2.1
What's changed
- Exceptions extends
ErrorException
instead ofException
to provide filename and line context - Renamed
render
method of exceptions totoLiquidMessage
(render
method conflicts with Laravel exception rendering) - Updated parsing of
comment
tag in order to ignore syntax errors in body content
Full Changelog: v0.2.0...v0.2.1