Skip to content

Releases: keepsuit/php-liquid

v0.5.1

19 Mar 15:50
Compare
Choose a tag to compare

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

06 Mar 10:12
Compare
Choose a tag to compare

Breaking changes

  • Added AsLiquidValue interface to provide a scalar value from objects used for comparisons
  • Added Hidden and Cache 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

01 Feb 16:42
Compare
Choose a tag to compare

What's changed

  • Fixed filesystem replace (introduced in v0.4.1)
  • Don't replace exception templateName and lineNumber when provided

Full Changelog: v0.4.1...v0.4.2

v0.4.1

01 Feb 16:03
Compare
Choose a tag to compare

What's changed

  • Make rethrowExceptions and filterRegistry public accessible in RenderContext

Full Changelog: v0.4.0...v0.4.1

v0.4.0

31 Jan 15:45
Compare
Choose a tag to compare

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 to RenderContext.
  • Removed outerScope initialization in RenderContext
  • Removed the starting _ in LocalFileSystem pattern for searching liquid files.
  • Support dot syntax in LocalFileSystem resolver (dir.template become dir/template.liquid)
  • Introduced PartialsCache and OutputsBag 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

Full Changelog: v0.3.2...v0.4.0

v0.3.2

04 Sep 10:36
Compare
Choose a tag to compare

What's changed

  • Fallback to null on parser look up to undefined index

v0.3.1

04 Sep 10:31
Compare
Choose a tag to compare

What's changed

  • Improved lexer/parser with start position of tokens
  • Refactoring Variable parsing

v0.3.0

01 Sep 14:13
437f138
Compare
Choose a tag to compare

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

01 Sep 09:05
Compare
Choose a tag to compare

What's changed

  • Exceptions extends ErrorException instead of Exception to provide filename and line context
  • Renamed render method of exceptions to toLiquidMessage (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

v0.2.0

31 Aug 12:58
f143352
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.1...v0.2.0