Guilherme Carreiro and Guilherme Carreiro
e413104e78
Remove ExpressionParser in favor of ParseContext#safe_parse
2025-10-27 16:33:31 +01:00
Guilherme Carreiro and Guilherme Carreiro
d56e3c50f9
Use ExpressionParser in the ParseContext when parsing in :rigid mode
2025-10-27 16:33:31 +01:00
Guilherme Carreiro and Guilherme Carreiro
1bff382ebc
Add ExpressionParser and ExpressionConsumer
2025-10-27 16:33:31 +01:00
Charles-P. Clermont and Guilherme Carreiro
6a9e46dd19
Add rigid_parse method to include
2025-10-27 16:33:31 +01:00
Charles-P. Clermont and Guilherme Carreiro
e58ac0e75b
Add rigid_parse to render
2025-10-27 16:33:31 +01:00
Charles-P. Clermont and Guilherme Carreiro
c78bf20010
Add a rigid_parse method to cycle
2025-10-27 16:33:31 +01:00
Charles-P. Clermont and Guilherme Carreiro
6d585a24f1
Add rigid_parse_with_error_context and clarifications
2025-10-27 16:33:31 +01:00
Guilherme Carreiro and Guilherme Carreiro
edf06c2882
Introduce :rigid parsing mode
2025-10-27 16:33:31 +01:00
Michael Go and GitHub
1c1e711906
Merge pull request #1995 from Shopify/avoid-regex-allocation
...
avoid new regex allocation in util functions
2025-10-15 10:43:52 -03:00
Michael Go
b5b36665e6
avoid new regex allocation in util functions
2025-10-15 10:08:13 -03:00
Alok Swamy
786381c762
Update liquid docs for loop's named params
2025-09-05 16:43:48 -04:00
Gray Gilmore and GitHub
8ad91b5e36
Merge pull request #1952 from Shopify/jus/template.rb-typo-docs
...
template.rb: Correct typo in docs
2025-09-03 09:03:54 -07:00
Iain Campbell
8555fd8a20
inline warning previuosly at category level
2025-06-27 16:57:00 -04:00
James Meng
79b831d96c
Bump Liquid to 5.8.7
2025-06-09 12:38:04 -07:00
James Meng
7b2b25fda1
Fix Doc tag blank? method to check body content
...
Previously the blank? method always returned true. Now it properly checks
if the body is empty, making the tag behavior consistent with other tags.
Also updated test to use whitespace control for cleaner assertions.
2025-06-09 11:36:18 -07:00
James Meng
8548b96a97
Remove body attr_reader and initiliaze @body instance variable in parse method
2025-06-06 13:08:06 -07:00
James Meng
65b1dedac5
Expose tag body in the Doc tag
2025-06-04 12:04:41 -07:00
James Meng
eabbd5cb6f
Remove {{ foo }} and {{ bar }} from doc tag description
2025-05-06 15:20:35 -07:00
Justin D. Harris and GitHub
aefd48e341
template.rb: Correct typo in docs
2025-04-22 09:50:47 -04:00
Marco Concetto Rudilosso
c34dd812c5
Fully revert calling to_s on filter array
2025-04-14 17:36:45 +02:00
Marco Concetto Rudilosso
fc0f7f44c1
use Utils.to_s on property error
2025-04-14 11:17:59 +02:00
Marco Concetto Rudilosso
4dae678c63
Revert "Stringify properties before filtering ( #1929 )"
...
This reverts commit f5d6a36574 .
2025-04-14 11:17:46 +02:00
Marco Concetto Rudilosso
4c07ff920b
Revert "Always stringify properties in all array filters ( #1936 )"
...
This reverts commit aa1640035f .
2025-04-14 11:17:46 +02:00
Ian Ker-Seymer and GitHub
dbe709c3bf
Use to_liquid_value in uniq filter ( #1948 )
...
* Use to_liquid_value in uniq filter
* Bump version to 5.8.4
2025-04-09 15:00:01 -04:00
2b75bfaff4
Fix regression when using empty/nil properties with array filters ( #1944 )
...
* Make all array filters that use `filter_array` util process empty string and nil correctly
* up version
* fix ordering of checks
* also do it for map
* Do not raise property error
* Gracefully empty property in map filter
---------
Co-authored-by: Marco Concetto Rudilosso <[email protected] >
2025-04-04 11:27:29 -04:00
James Meng
7f122aeed2
Fix snippet URLs in documentation links
2025-03-31 17:08:31 -07:00
aa1640035f
Always stringify properties in all array filters ( #1936 )
...
* Always stringify sum property.
* Add test
* always stringify properties in all array filters
* fix syntax error
* up version
---------
Co-authored-by: Dominic Petrick <[email protected] >
2025-03-19 13:50:01 -04:00
Ian Ker-Seymer and GitHub
f5d6a36574
Stringify properties before filtering ( #1929 )
2025-03-17 17:43:57 -04:00
Ian Ker-Seymer and GitHub
c5711c095f
Improve docs of date filter ( #1920 )
2025-03-13 17:36:29 -04:00
James Meng and GitHub
21432928d0
Use full relative path for hyperlink
2025-03-13 09:47:57 -07:00
James Meng
1783c0c084
Add a link to the LiquidDoc reference in doc tag documentation comment
2025-03-12 15:31:28 -07:00
Guilherme Carreiro and Guilherme Carreiro
e38f730c00
Update LiquidDoc documentation
2025-03-07 18:59:59 +01:00
Guilherme Carreiro and Guilherme Carreiro
6453a0ea48
Implement nodelist in the Doc tag so it may be visited
2025-02-26 13:14:39 +01:00
Guilherme Carreiro and Guilherme Carreiro
cca9fe99cf
Bump version to 5.8.0
2025-02-25 08:50:46 +01:00
Guilherme Carreiro and Guilherme Carreiro
17d327988d
Rename {% doc %} constant strictly validates the abscense of args
2025-02-20 12:37:09 +01:00
Guilherme Carreiro and Guilherme Carreiro
f643af4bac
Update the implementation to make {% doc %} as strict as {% raw %}
2025-02-20 12:37:09 +01:00
Guilherme Carreiro and Guilherme Carreiro
b439d0da53
Update {% doc %} to no longer support nested tags (as {% comment %} does)
2025-02-20 12:37:09 +01:00
Guilherme Carreiro and Guilherme Carreiro
16592cfb8f
Add support to LiquidDoc with the new {% doc %} tag
2025-02-20 12:37:09 +01:00
Chris AtLee and GitHub
da4afd4156
Merge pull request #1905 from Shopify/catlee/invalid_utf8
...
Raise SyntaxError on invalid UTF8 strings in lexer/tokenizer
2025-02-13 09:24:11 -05:00
Chris AtLee and GitHub
1bb3091208
Merge pull request #1909 from Shopify/catlee/5.7.3
...
Bump version to 5.7.3
2025-02-13 09:22:47 -05:00
Max Stoiber and GitHub
040801b32c
Fix array has filters referring to some ( #1910 )
2025-02-12 17:37:49 +01:00
Chris AtLee
550135c0b9
Raise SyntaxError on invalid UTF8 strings in lexer/tokenizer
2025-02-11 14:23:15 -05:00
Chris AtLee
aec966eed7
Bump version to 5.7.3
2025-02-11 14:21:14 -05:00
Guilherme Carreiro
f9454d8cf3
Fix array filters to not support nested properties
2025-01-31 13:53:17 +01:00
Guilherme Carreiro and Guilherme Carreiro
bf1419b8ac
Apply the same fix for find_index and has
2025-01-24 08:39:01 +01:00
Guilherme Carreiro and Guilherme Carreiro
5718c4cee2
Fix the find filter to return nil when filtering empty arrays
2025-01-24 08:39:01 +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