 HarttleandHarttle
|
e874b4060b
|
feat: export toValueSync & defaultOptions to evaluate expression, see #527
|
2022-08-15 01:53:48 +08:00 |
|
 HarttleandHarttle
|
4ad383d9be
|
fix: expression support Drop.valueOf, fixes #522
|
2022-07-21 01:21:58 +08:00 |
|
Harttle
|
c41a5d5bab
|
fix: throw ParseError instead of RenderError for invalid assign expression, closes #519
|
2022-07-15 00:41:51 +08:00 |
|
Harttle
|
4289b4e804
|
refactor: rename toValue to toValueSync
|
2022-07-10 00:24:00 +08:00 |
|
Harttle
|
c3e51caa70
|
fix: for tag not respecting Drop#valueOf(), fixes #515
|
2022-07-09 22:21:51 +08:00 |
|
 James PriorandJun Yang
|
a19feea7c4
|
feat: iteration protocols
|
2022-07-09 18:21:54 +08:00 |
|
Harttle
|
3dc4290b56
|
fix: stack overflow on large number of templates, #513
|
2022-07-08 01:46:51 +08:00 |
|
 jg-rpandGitHub
|
2f87708989
|
feat: inline comment tag (#514)
* style: remove unnecessary intermediate constant
* feat: add inline comment tag
* refactor: use readIdentifier when reading tag names
* docs: add inline comment tag
|
2022-07-08 01:46:15 +08:00 |
|
 HarttleandHarttle
|
2f6d84befc
|
test: cases for async variables
|
2022-05-03 13:31:25 +08:00 |
|
Harttle
|
f88490cd3c
|
feat: automatic output escaping, closes #500
|
2022-04-22 02:19:36 +08:00 |
|
Harttle
|
e69a51025e
|
fix: support integer arithmetic for divided_by, closes #465
|
2022-04-22 02:19:36 +08:00 |
|
Harttle
|
b377dad9e3
|
fix: lazy createRequire to allow exceptions being catched, fixes #497
|
2022-04-19 23:44:14 +08:00 |
|
Harttle
|
9e024ff2bc
|
fix: contains operator does not support Drop, fixes #492
|
2022-04-18 00:43:18 +08:00 |
|
Harttle
|
eec381ec72
|
fix: use createRequire for ESM, fixes #334
|
2022-04-18 00:43:17 +08:00 |
|
Harttle
|
049685b9a0
|
feat: Access array item by negative index, closes #486
|
2022-03-06 00:52:22 +08:00 |
|
Harttle
|
c503cb23df
|
feat: allow strip filter with specified char, closes #390
|
2022-03-06 00:20:51 +08:00 |
|
Harttle
|
01014edc49
|
feat: appropriate error for malformed filters, fixes #271
|
2022-03-05 23:24:16 +08:00 |
|
Harttle
|
33009bb988
|
fix: export all builtin tags from LiquidJS, #464
|
2022-03-02 21:21:45 +08:00 |
|
Harttle
|
aa955173d4
|
fix: corner case for concat filter without argument, #481
|
2022-03-02 21:21:25 +08:00 |
|
Harttle
|
575f3e2338
|
docs: add missing tag/filter links on sidebar/table, #482
|
2022-02-27 02:07:59 +08:00 |
|
Harttle
|
7dfb620d30
|
fix: some filters throw on nil input, see #481
|
2022-02-27 02:07:59 +08:00 |
|
Harttle
|
ca3240c2c4
|
fix: url_encode throws on undefined value, fixes #479
|
2022-02-24 01:14:46 +08:00 |
|
Harttle
|
2b0c5696bc
|
docs: introduce JS script to escape for Hexo, fixes #480
|
2022-02-24 01:04:50 +08:00 |
|
Harttle
|
dab8a29070
|
feat: expose all tags/filters and TimezoneDate, closes #464
|
2022-02-23 23:38:21 +08:00 |
|
Harttle
|
dbc0497386
|
fix: sort filter unexpectedly modifies original array, #475
|
2022-02-20 13:03:40 +08:00 |
|
Harttle
|
ab5e245fba
|
fix: array output now join with "" instead of ","
|
2022-02-20 13:03:40 +08:00 |
|
 HarttleandHarttle
|
7e99efc513
|
feat: ownPropertyOnly option to protect prototype, #454
|
2022-01-29 01:22:34 +08:00 |
|
 Martin SchusterandGitHub
|
9da41c8a37
|
fix: where-filter null handling (#457)
|
2022-01-28 22:43:38 +08:00 |
|
 HarttleandHarttle
|
8c27a84059
|
feat: support offset:continue, see #439
|
2022-01-20 00:12:18 +08:00 |
|
 HarttleandHarttle
|
388d0fbbc4
|
feat: support Jekyll-like include syntax, see #441
|
2022-01-19 23:07:25 +08:00 |
|
 Ameya ApteandJun Yang
|
7677f848c0
|
fix: remove limit on operator char length
The matchOperator function has a default value of str.length for the end parameter
|
2022-01-12 21:24:08 +08:00 |
|
 HarttleandHarttle
|
c756191f49
|
feat: support allow_false for default filter, see #435
|
2022-01-02 16:31:21 +08:00 |
|
 James PriorandJun Yang
|
fde9924ee6
|
feat: implement liquid and echo tags, see #428
|
2021-12-19 21:09:26 +08:00 |
|
 HarttleandHarttle
|
23279a816a
|
feat: support jekyll-like include, see #433
|
2021-12-18 15:26:15 +08:00 |
|
 HarttleandHarttle
|
95fc705b5d
|
chore: upgrade typescript
|
2021-12-11 20:23:09 +08:00 |
|
 HarttleandHarttle
|
6801552fe6
|
feat: customize globals & strictVariables when calling render, see #432
|
2021-12-11 20:22:58 +08:00 |
|
 HarttleandHarttle
|
6023d9ba10
|
docs: path traversal vulnerabilities when customizing FS
|
2021-12-11 12:31:08 +08:00 |
|
 HarttleandHarttle
|
69286c6909
|
test: coverage to 100%
|
2021-12-07 23:34:53 +08:00 |
|
 HarttleandHarttle
|
6c114267a5
|
fix: size filter does not respect Objects, fixes #385
|
2021-12-07 23:05:46 +08:00 |
|
 HarttleandHarttle
|
e2ef236f68
|
fix: throws when using preserveTimezones on Node.js, fixes #431
|
2021-12-07 22:43:47 +08:00 |
|
 HarttleandHarttle
|
44f6b520d5
|
fix: always allow './' and '../' to be relative, even on windows
|
2021-11-06 03:36:39 +08:00 |
|
 AleksandrHovhannisyanandHarttle
|
124f4c4485
|
fix: allow {%render%} to reassign argument, #404
|
2021-10-31 16:28:33 +08:00 |
|
 HarttleandHarttle
|
aebeae9e1b
|
fix: relative root (by default) yields LookupError, fixes #419, #424, also related to #395
|
2021-10-27 23:55:39 +08:00 |
|
Harttle
|
564972ba74
|
docs: add version info in playground.html
|
2021-10-20 23:20:23 +08:00 |
|
 Harttleandharttle
|
b5b2a98d5e
|
chore: fix types
|
2021-10-16 22:36:46 +08:00 |
|
 Harttleandharttle
|
8894cbfe6e
|
fix: cache ongoing parseFile() calls, fixes #416
|
2021-10-16 21:07:48 +08:00 |
|
 Harttleandharttle
|
d4df3a0b53
|
refactor: make loader.shouldLoadRelative public
|
2021-10-16 12:30:09 +08:00 |
|
 Harttleandharttle
|
9cfa43b8ae
|
fix: hardcoded '/' in normalized options.fs, fixes #412, #408
Changes including:
- will not call fs.resolve when normalizing `fs`
- removed hardcoded `/`
- mandatory `fs.dirname` for relative reference
- mandatory `fs.sep`, defaults to '/'
|
2021-10-16 12:10:55 +08:00 |
|
Harttle
|
1de6adf308
|
test: cases for parse(<tpl>, <relative filepath>), #395
|
2021-10-10 20:37:26 +08:00 |
|
Harttle
|
822ba0be0f
|
fix: skip root check for renderFile()
|
2021-10-06 18:38:58 +08:00 |
|