Jun Yang
64e0c876e9
refactor: use camelCase for JavaScript APIs
...
BREAKING CHANGE: Options and method names in JavaScript API are now renamed to cammelCase, for a complete list see #109
2019-03-10 19:21:09 +08:00
Jun Yang
4a8088d4e4
feat: promise support for drops, working on #65
2019-03-10 18:05:52 +08:00
harttle
ad0930f152
test: cover parseFilters in template/value.ts
2019-03-06 01:46:35 +08:00
harttle
5ffc904f80
fix: named params for filters, working on #113
2019-03-06 01:30:47 +08:00
Jun Yang
3647305dcf
feat: tablerowloop object
...
See: https://www.rubydoc.info/gems/liquid/Liquid/TablerowloopDrop
2019-03-02 06:00:30 +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
7bee9fc92d
feat: exported Drop interface for #107
...
Deprecate snake_cased options and APIs, sed #109
2019-02-28 00:05:08 +08:00
harttle
31bc71d472
chore: fix linting
2019-02-26 00:56:12 +08:00
harttle
53a835ab54
fix( #108 ): remove absolute path in emitted d.ts
2019-02-26 00:43:30 +08:00
harttle
407ac6d0a4
refactor: remove /dist from repo
2019-02-24 23:03:12 +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
3b7351d9a0
chore: fix linting
2019-02-24 05:03:59 +08:00
harttle
e977669118
fix: filters break when argument contains [()|, fixes #89
2019-02-24 04:48:42 +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
harttle
56c7992b76
fix: default length for truncate and truncatewords
2019-02-23 03:11:07 +08:00
harttle
5b6100d12b
refactor: strictly typed
2019-02-23 00:49:54 +08:00
harttle
d20a043fbb
feat: override output/tag delimiter, fixes #54
2019-02-21 01:07:32 +08:00
harttle
3dbab238ae
BREAKING CHANGE: trim_value_* -> trim_output_*
2019-02-21 01:07:32 +08:00
harttle
c33d8f6828
feat: throw an Error if delimiter not matched
2019-02-20 22:40:09 +08:00
harttle
64a9eb79c5
style: fix unused vars in unit test
2019-02-19 23:01:59 +08:00
harttle
852c6ad453
refactor: remove mock-fs from dev dependency
2019-02-19 22:28:27 +08:00
harttle
f432aade6a
chore(TypeScript): remove mock-fs
2019-02-17 21:37:13 +08:00
harttle
aa49b4f117
chore(TypeScript): fix unit tests and coverage
2019-02-17 20:46:33 +08:00
harttle
fc9ebdb90f
chore(TypeScript): fix linting and generate .d.ts
2019-02-17 18:20:04 +08:00
harttle
677e8511e6
chore(TypeScript): refactor objects into classes
...
fix: `Nil`(null, undefined) now renders as empty string
change: `parser.parseValue()` renamed to `parser.parseOutput`
change: registered tags/filters become static and shared across different liquid instances
2019-02-17 04:55:30 +08:00
harttle
1cc7249a71
chore(TypeScript): ship Liquid to class
...
BREAKING CHANGE: calling `Liquid()` without `new` now becomes invalid
2019-02-14 23:53:40 +08:00
harttle
c37b330751
chore(typescript): ship to TypeScript
2019-02-14 22:33:45 +08:00
harttle
4dffb27e95
feat(Drop): liquid_method_missing and to_s
...
close #97
2019-01-28 19:53:04 +08:00
harttle
8a881ac69a
style: align to [email protected]
2019-01-28 18:06:47 +08:00
harttle
dee4303fad
feature: plugin API, working on #86
2019-01-21 15:24:13 +08:00
harttle
4793a83bd6
fix #101 : Slice filter does not work on arrays
2019-01-21 14:52:08 +08:00
Andrew Barclay and Jun Yang
2055258193
fix assign tag regex to include linebreaks in value
2018-11-22 09:31:22 +08:00
harttle
6af631b77b
feature: url_decode, working on #94
2018-10-08 10:37:24 +08:00
Jun Yang
22a7a85d50
test case for Regexp rendering
2018-10-01 23:00:49 +08:00
Jun Yang
044be8253d
fixes #91
2018-10-01 22:51:40 +08:00
Jun Yang
8a629980d9
refactor: move fs util into template.js
2018-10-01 22:06:03 +08:00
harttle
5412c5a39f
fixes #88
2018-09-29 16:45:11 +08:00
harttle
5378f2709b
test: cover all
2018-08-27 23:27:42 +08:00
harttle
d6876bd9ec
refactor: bundle template.js respectively
2018-08-27 21:37:39 +08:00
harttle
31c39561c9
feature: get nyc, babel and coveralls working
2018-08-26 21:54:35 +08:00