All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Use
static fn
instead ofstatic
to not copy the$this
context
getChildren()
,find()
andcontains()
have been added toTokenized
interfaceSeekableTokenTrait
andChildlessTokenTrait
have been added to implementfind()
andcontains()
- The standard compiler output version has been raised to
2.0.0
: If all childToken
instances of a key are justText
, then the compile output will no longer be closure but just a string instead
- Compiled PHP assets now use the null coalescing operator to avoid accessing undefined index if context variable is missing
- Fixed
Input chunk is not part of original chunk
exception when parsing empty key bodies
SeekableString
has been added to have a reusable component that seeks for tokens inside strings
- Standard package output now contains meta-data for easier access of i18n package format version during runtime
- Key definitions in i18n output now contain their original definition value
- Correctly escape all strings written to source code instead of just passing them to
addslashes()
- Fixed a bug where the
CurlyBracesKeyParser
would incorrectly return tokens for keys with more than two tokens
- Improved
ParserException
messages
🥳 Initial Release