 HarttleandHarttle
|
95fc705b5d
|
chore: upgrade typescript
|
2021-12-11 20:23: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
|
afeef1d745
|
fix: renderToNodeStream() now emit 'error' event instead of throw
|
2021-10-03 22:32:00 +08:00 |
|
harttle
|
68c4cfcfb6
|
feat: renderFileToNodeStream(filepath, scope)
|
2021-10-03 21:21:25 +08:00 |
|
 Harttleandharttle
|
aea34418de
|
perf: make the most of streamed rendering
|
2021-10-01 18:36:57 +08:00 |
|
 HarttleandJun Yang
|
9012133e07
|
feat: stream rendering, closed #361 fixes #360
|
2021-09-30 22:15:09 +08:00 |
|
harttle
|
8273c17dab
|
perf: parse filenames in parse() insteadof render()
|
2021-09-30 22:15:09 +08:00 |
|
harttle
|
2e66e8b02e
|
fix: lenientIf not working for the umd bundle, closes #313
|
2021-02-19 23:10:15 +08:00 |
|
harttle
|
2f059f6a25
|
feat: support filters in if/unless/case, see #287
|
2021-02-12 22:22:41 +08:00 |
|
 Jason EtcovitchandJun Yang
|
befc33c4eb
|
feat: create trie programmatically in options
|
2021-02-04 09:11:28 +08:00 |
|
 Jason EtcovitchandJun Yang
|
8734e2e6ce
|
feat: rename to defaultOperators and Operators
|
2021-02-04 09:11:28 +08:00 |
|
 Jason EtcovitchandJun Yang
|
6a7c280f04
|
feat: export Operators from operator.ts
|
2021-02-04 09:11:28 +08:00 |
|
 Jason EtcovitchandJun Yang
|
75591cdbfc
|
feat: add operators option for custom operators
|
2021-02-04 09:11:28 +08:00 |
|
 PixcellandJun Yang
|
8d3eca6ee2
|
stringify value in emitter when concatenating it
|
2020-12-16 10:20:10 +08:00 |
|
 Alex de WergifosseandJun Yang
|
6a0ad102a8
|
fix: address refactor comments
|
2020-12-16 10:20:10 +08:00 |
|
 Alex de WergifosseandJun Yang
|
b8e4b3337b
|
test: add tests for keepOutputType option
|
2020-12-16 10:20:10 +08:00 |
|
 Alex de WergifosseandJun Yang
|
cd92e77726
|
feat: add option for keeping variable type in output
|
2020-12-16 10:20:10 +08:00 |
|
harttle
|
117673a725
|
style: make eslint check .ts files
|
2020-12-08 00:24:07 +08:00 |
|
harttle
|
2bbf50171b
|
fix: elsif is not supported for unless, fixes #268
|
2020-12-08 00:16:36 +08:00 |
|
 sschuldenzuckerandJun Yang
|
d8f9091a12
|
add and use error classes for undefined variables
cleans up funky message-matching code in expression.ts for lenient.
|
2020-12-06 22:58:08 +08:00 |
|
 sschuldenzuckerandJun Yang
|
ca18a579a1
|
Expression: minor type change & simplification
pre-fetching postfix simplifies code for 'lenient'
|
2020-12-06 22:58:08 +08:00 |
|
 sschuldenzuckerandJun Yang
|
768fb79e32
|
Implement lenientIf option (resolve #265; default off)
See description of the option in liquid-options.ts.
|
2020-12-06 22:58:08 +08:00 |
|
 wyoziandJun Yang
|
18a807ea2e
|
fix: braced property access
|
2020-10-09 21:18:40 +08:00 |
|
 Amit GuptaandJun Yang
|
f807383f2a
|
resolved issues raised by hhartle
|
2020-10-08 12:43:37 +08:00 |
|
 Amit GuptaandJun Yang
|
02bfed1c57
|
Added jsTruthy flag to constuctor in order to enable JS style truthiness evaluation
|
2020-10-08 12:43:37 +08:00 |
|
harttle
|
3e42d6b1b0
|
docs: website for LiquidJS
|
2020-03-28 17:21:07 +08:00 |
|
harttle
|
d2d6a38235
|
perf: introduce AST to avoid reparse
|
2020-03-15 02:51:25 +08:00 |
|
harttle
|
f7ef9b61c1
|
refactor: remove src/render/value.ts
|
2020-03-14 19:04:18 +08:00 |
|
harttle
|
6ea6881f08
|
feat: with & for in render tag, closes #195
|
2020-03-04 07:08:54 +08:00 |
|
harttle
|
df8a919f71
|
feat: move filters/tags to instances, fixes #188
|
2020-03-03 00:02:29 +08:00 |
|
harttle
|
fc0cf6fe7b
|
fix: expression and string literal parser, #186
|
2020-02-08 03:15:55 +08:00 |
|
harttle
|
b82fa9ed2b
|
pref: remove await/async from internal async calls
|
2019-10-26 08:57:33 -05:00 |
|
harttle
|
7fb01ad69a
|
feat: renderSync, parseAndRenderSync and renderFileSync, see #48
|
2019-08-26 10:15:43 -05:00 |
|
harttle
|
76019e9e18
|
refactor: rewrite expression evaluation, fix #130
|
2019-08-26 10:15:43 -05:00 |
|
harttle
|
ae45c4622e
|
fix: break/continue omitting output before them, #123
BREAKING CHANGE: remove default export, now should be used like import
{Liquid} from 'liquidjs'
|
2019-08-26 10:15:43 -05:00 |
|
harttle
|
854e12ba53
|
refactor: add emitter for code generation
|
2019-08-26 10:15:43 -05:00 |
|
harttle
|
88c89fe3b3
|
style: introduce @typescript-eslint/recommended
|
2019-07-06 14:33:34 +08:00 |
|
harttle
|
bef290923c
|
fix: pass drops directly to filters/tags
|
2019-05-12 20:03:32 +08:00 |
|
harttle
|
82d7673554
|
perf: use polymophism instead duck test
|
2019-03-25 20:11:23 +08:00 |
|
harttle
|
45e3c2bb8e
|
refactor: switch Context <-> Scope concepts
|
2019-03-25 10:36:23 +08:00 |
|
Jun Yang
|
4a8088d4e4
|
feat: promise support for drops, working on #65
|
2019-03-10 18:05:52 +08:00 |
|
harttle
|
5ffc904f80
|
fix: named params for filters, working on #113
|
2019-03-06 01:30:47 +08:00 |
|
harttle
|
b4acdb463a
|
fix: math filters now return number, resolves #110
* fix linting
* numbers are no longer fixed:
i.e. {{0.3 | minus 0.1}} now renders as 0.19999
Stick to JavaScript number behavior, see: 8.0.0
|
2019-02-28 13:02:51 +08:00 |
|
harttle
|
b69c3a3203
|
refactor: IDrop interface => abstract method
|
2019-02-28 00:05:08 +08:00 |
|
harttle
|
d5b9916b2f
|
refactor: Drop.prototype.value => valueOf
|
2019-02-28 00:05:08 +08:00 |
|
harttle
|
53a835ab54
|
fix(#108): remove absolute path in emitted d.ts
|
2019-02-26 00:43:30 +08:00 |
|
harttle
|
88c9e96392
|
feat: nil/null/empty/blank literals, resolves #102
|
2019-02-24 21:50:01 +08:00 |
|
harttle
|
542968e133
|
refactor: remove unused lexical regexps
|
2019-02-24 06:26:33 +08:00 |
|
harttle
|
279458c670
|
test: add benchmark
|
2019-02-23 21:57:02 +08:00 |
|
harttle
|
3cf01603e8
|
chore: fix linting
|
2019-02-23 03:50:45 +08:00 |
|