Guilherme Carreiro
4e59e8ca6c
Apply the same fix for find_index and has
2025-01-23 16:44:58 +01:00
Guilherme Carreiro
2883fd58bb
Fix the find filter to return nil when filtering empty arrays
2025-01-23 11:12:28 +01:00
03aafa974c
Bump to 5.7.0 ( #1894 )
...
* Bump to 5.7.0
* Update 'History.md'
* Update 'Releasing' steps
* Update CONTRIBUTING.md
Co-authored-by: Gray Gilmore <[email protected] >
* Update History.md
Co-authored-by: Ian Ker-Seymer <[email protected] >
---------
Co-authored-by: Gray Gilmore <[email protected] >
Co-authored-by: Ian Ker-Seymer <[email protected] >
2025-01-17 12:10:18 +01:00
Ian Ker-Seymer and GitHub
6372289ba3
Ensure we use InputIterator#each when in join filter ( #1898 )
2025-01-16 11:36:36 -05:00
Ian Ker-Seymer and GitHub
0ec52a40b5
Use Liquid::Utils.to_s for join filter ( #1897 )
2025-01-16 11:21:58 -05:00
Ian Ker-Seymer and GitHub
74af735f0e
Allow for custom < Hash classes to override #to_s ( #1896 )
2025-01-16 11:16:13 -05:00
4b65a28722
Implement logic for stringify Hashes to keep compat with 3.4 ( #1892 )
...
* Exploring
* Bump to v5.6.5
---------
Co-authored-by: Dominic Petrick <[email protected] >
2025-01-15 16:36:53 -05:00
6909570f8e
Add find, find_index, has, and reject filters to arrays ( #1869 )
...
* Add reject filter #1573
* Add deep search for filter taking in properties #1749
* Update branch with main
* Add `find`, `find_index`, `has`, and `reject` filters to arrays
* Refactor: avoid usage of public_send
---------
Co-authored-by: Anders Søgaard <[email protected] >
Co-authored-by: Anders Søgaard <[email protected] >
2025-01-14 10:33:31 +01:00
Ian Ker-Seymer
8e37c5e18b
Bump to v5.6.4
2025-01-13 21:57:52 -05:00
Ian Ker-Seymer
b3f9639e7d
Add default string_scanner to Liquid::VariableLookup.parse
2025-01-13 21:56:39 -05:00
Michael Go
e200c4544b
remove expression caching while rendering
2025-01-13 18:36:30 -04:00
Michael Go
7124540563
remove lru-redux
2025-01-13 18:27:56 -04:00
Michael Go
0639a094a8
bump version to 5.6.2
2025-01-13 17:16:33 -04:00
Michael Go
58777bcd93
float has to start with a digit
2025-01-13 17:13:27 -04:00
Michael Go
10114b333e
minor version bump
2025-01-10 15:28:02 -04:00
Michael Go
a07ae90523
use Ruby Hash as default expression cache
2025-01-10 15:07:57 -04:00
Michael Go
2e236b0a0e
fix expression cache to be compatible with Ruby Hash and LruCache
2025-01-10 14:58:23 -04:00
Michael Go
bd05dfbd1c
use lru_redux getset for simplicity
2025-01-10 14:41:35 -04:00
Michael Go
97cada61f9
remove Expression2 strscan workaround
2025-01-10 14:23:57 -04:00
Michael Go
7c9b77e8cf
remove StringScanner version check in Lexer and Tokenizer
2025-01-07 14:51:29 -04:00
Michael Go
42d822bda9
users can provide optional expression cache
2025-01-07 14:32:46 -04:00
Michael Go
2c7d686690
adding caching to context variable lookup
2025-01-07 14:32:46 -04:00
Michael Go
313d01706a
code styling
2025-01-07 14:32:46 -04:00
Michael Go
e9f86724f6
code styling
2025-01-07 14:32:46 -04:00
Michael Go
0a17c15289
freeze '-' VariableLookup in Expression
2025-01-07 14:32:46 -04:00
Michael Go
04bd9dbe90
refactor Lexer to only take StringScanner
2025-01-07 14:32:46 -04:00
Michael Go
253ec81b56
don't add a breaking change to Parser constructor
2025-01-07 14:32:46 -04:00
Michael Go
e05719fb82
use Kernel Integer parsing for simple Integer expression
2025-01-07 14:32:46 -04:00
Michael Go
ac374a208f
freeze Expression2 parse results
2025-01-07 14:32:46 -04:00
Michael Go
91be3dd75e
keep the expression parse caching per document parsing
2025-01-07 14:32:46 -04:00
Michael Go
40191022e8
initialize StringScanner with input for default
2025-01-07 14:32:46 -04:00
Michael Go
71506ad54e
avoid setting up StringScanner for parsing simple numbers
2025-01-07 14:32:46 -04:00
Michael Go
cef64e277e
early match number expressions with Regex
2025-01-07 14:32:46 -04:00
Michael Go
7c592c1c00
store StringScanner in ParseContext and reuse it through parsing
2025-01-07 14:32:45 -04:00
Michael Go
002e4caea7
refactor Lexer to be static class function
2025-01-07 14:32:07 -04:00
Michael Go
3c16c27ee1
add StringScannerPool for thread safety
2025-01-07 14:32:07 -04:00
Michael Go
eff5c5de8e
code clean up
2025-01-07 14:32:07 -04:00
Michael Go
a672f3836c
don't cache literals for Expression parser
2025-01-07 14:32:07 -04:00
Michael Go
92fa334192
don't cache string expressions to be more perfomant
2025-01-07 14:32:07 -04:00
Michael Go
7c8a269b4d
fix cycle tag not resetting
2025-01-07 14:32:07 -04:00
Michael Go
0b1dc295ff
fix quirky negative sign expression markup parsing
2025-01-07 14:32:07 -04:00
Michael Go
1de6025362
decrease the size of Expression2 LRU cache to store 5 themes
2025-01-07 14:32:07 -04:00
Michael Go
8ecb703d4d
use StringScanner to improve Expression Parsing and Tokenizer
2025-01-07 14:32:06 -04:00
Ian Ker-Seymer and GitHub
b4667adadf
Bump to v5.6.0 ( #1876 )
2024-12-19 15:01:16 -05:00
Bahar Pourazar
60701f865d
Bump version patch
2024-12-17 17:37:00 +00:00
Bahar Pourazar
0c49dd592f
bring back to_s.to_str
2024-12-17 17:37:00 +00:00
Bahar Pourazar
a0a4307e7d
Fix bug in tokenizer with nil value
2024-12-17 15:34:13 +00:00
Ian Ker-Seymer and GitHub
fdd8c714b2
Stop testing against liquid-c ( #1868 )
...
* Stop testing against `liquid-c`
* Bump to `v5.6.0.rc2`
2024-12-11 12:23:50 -05:00
Ian Ker-Seymer and GitHub
63583ffe5b
Write one value at a time for array variables ( #1863 )
...
* Write one value at a time for array variables
* Handle recursive array
2024-12-11 10:16:58 -05:00
Ian Ker-Seymer
42b6763546
Bump to v5.6.0.rc1
2024-11-04 15:26:56 -05:00