harttle
9c40da7369
fix: allow string literals contain delimiters, fixes #288
2021-01-24 12:49:19 +08:00
harttle
e15803fae4
test: fix e2e test
2020-12-08 00:30:32 +08:00
harttle
f9f595f0f4
feat: passing liquid to FilterImpl, closes #277
2020-12-08 00:17:27 +08:00
harttle
2bbf50171b
fix: elsif is not supported for unless, fixes #268
2020-12-08 00:16:36 +08:00
harttle
a492d8e23d
fix: raw block not ignoring {% characters, fixes #263
2020-12-08 00:12:20 +08:00
harttle
c8afa39a01
fix: enforce string-type pattern in replace, fixes #243
2020-12-08 00:08:31 +08:00
wyozi and Jun Yang
18a807ea2e
fix: braced property access
2020-10-09 21:18:40 +08:00
harttle
5b3f4195f0
fix: allow quoted variable name in capture, fixes #252
2020-10-03 22:03:17 +08:00
Bogdan Chadkin
6cf6ffae90
feat: setup universal browser and node builds
...
In this diff I fixed es modules distribution for bundlers.
Before we had two problems
- bundlers use "module" field to find es module build
- bundlers cannot use provided es module with node target
In this diff I addressed both of them. Now "main" and "module" fields
points to "node" specific versions. "browser" field provides aliases
with browser compatible builds.
All modern browsers support both "module" and "browser" fields.
2020-06-25 13:30:56 +03:00
harttle
e36f3ff291
feat: async filters, closes #232
2020-06-25 12:30:56 +08:00
harttle
673b015435
fix: properly treat unicode blanks, fixes #221
2020-04-28 20:55:30 +08:00
harttle
d2d6a38235
perf: introduce AST to avoid reparse
2020-03-15 02:51:25 +08:00
harttle
0426d08fd0
style: fix linting
2019-08-26 10:15:43 -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
88c89fe3b3
style: introduce @typescript-eslint/recommended
2019-07-06 14:33:34 +08:00
harttle
d8ba009773
chore: fix building
2019-05-12 21:29:58 +08:00
Jun Yang
4a8088d4e4
feat: promise support for drops, working on #65
2019-03-10 18:05:52 +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
875f71d5f2
chore: a simple liquid_method_missing case for #97
2019-02-24 23:08:53 +08:00
harttle
88c9e96392
feat: nil/null/empty/blank literals, resolves #102
2019-02-24 21:50:01 +08:00
harttle
5b6100d12b
refactor: strictly typed
2019-02-23 00:49:54 +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
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
8a881ac69a
style: align to [email protected]
2019-01-28 18:06:47 +08:00
harttle
c3c57a560b
fix: travis
2018-08-27 23:49:11 +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