Harttle and Harttle
69286c6909
test: coverage to 100%
2021-12-07 23:34:53 +08:00
Harttle and Harttle
6c114267a5
fix: size filter does not respect Objects, fixes #385
2021-12-07 23:05:46 +08:00
Harttle and Harttle
e2ef236f68
fix: throws when using preserveTimezones on Node.js, fixes #431
2021-12-07 22:43:47 +08:00
semantic-release-bot
80c2280ee6
chore(release): 9.28.5 [skip ci]
...
## [9.28.5](https://github.com/harttle/liquidjs/compare/v9.28.4...v9.28.5 ) (2021-11-05)
### Bug Fixes
* always allow './' and '../' to be relative, even on windows ([44f6b52 ](https://github.com/harttle/liquidjs/commit/44f6b520d53ba984ecb5fc430d70f698837d1802 ))
v9.28.5
2021-11-05 19:39:58 +00:00
Harttle and Harttle
44f6b520d5
fix: always allow './' and '../' to be relative, even on windows
2021-11-06 03:36:39 +08:00
semantic-release-bot
3d71d9e35a
chore(release): 9.28.4 [skip ci]
...
## [9.28.4](https://github.com/harttle/liquidjs/compare/v9.28.3...v9.28.4 ) (2021-10-31)
### Bug Fixes
* allow `{%render%}` to reassign argument, [#404 ](https://github.com/harttle/liquidjs/issues/404 ) ([124f4c4 ](https://github.com/harttle/liquidjs/commit/124f4c4485270a5fdfca610808a56ecd98d98417 ))
v9.28.4
2021-10-31 08:36:55 +00:00
AleksandrHovhannisyan and Harttle
124f4c4485
fix: allow {%render%} to reassign argument, #404
2021-10-31 16:28:33 +08:00
dependabot[bot] and Jun Yang
432d1c7ccb
chore(deps): bump path-parse from 1.0.6 to 1.0.7
...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases )
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7 )
---
updated-dependencies:
- dependency-name: path-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected] >
2021-10-28 00:14:13 +08:00
Harttle and Harttle
4b42e63601
docs: update liquidjs for demo/nodejs
2021-10-28 00:03:18 +08:00
semantic-release-bot
f809c716eb
chore(release): 9.28.3 [skip ci]
...
## [9.28.3](https://github.com/harttle/liquidjs/compare/v9.28.2...v9.28.3 ) (2021-10-27)
### Bug Fixes
* relative root (by default) yields LookupError, fixes [#419 ](https://github.com/harttle/liquidjs/issues/419 ), [#424 ](https://github.com/harttle/liquidjs/issues/424 ), also related to [#395 ](https://github.com/harttle/liquidjs/issues/395 ) ([aebeae9 ](https://github.com/harttle/liquidjs/commit/aebeae9e1bbb8472af7788dfd09a08cb6de58e1c ))
v9.28.3
2021-10-27 16:01:07 +00:00
Harttle and Harttle
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
semantic-release-bot
d0c3cc8b47
chore(release): 9.28.2 [skip ci]
...
## [9.28.2](https://github.com/harttle/liquidjs/compare/v9.28.1...v9.28.2 ) (2021-10-16)
### Bug Fixes
* cache ongoing parseFile() calls, fixes [#416 ](https://github.com/harttle/liquidjs/issues/416 ) ([8894cbf ](https://github.com/harttle/liquidjs/commit/8894cbfe6e0dbad4c07439adcefb6b3e2056be11 ))
v9.28.2
2021-10-16 14:40:58 +00:00
Harttle and harttle
b5b2a98d5e
chore: fix types
2021-10-16 22:36:46 +08:00
Harttle and harttle
8894cbfe6e
fix: cache ongoing parseFile() calls, fixes #416
2021-10-16 21:07:48 +08:00
semantic-release-bot
c58a116513
chore(release): 9.28.1 [skip ci]
...
## [9.28.1](https://github.com/harttle/liquidjs/compare/v9.28.0...v9.28.1 ) (2021-10-16)
### Bug Fixes
* hardcoded '/' in normalized `options.fs`, fixes [#412 ](https://github.com/harttle/liquidjs/issues/412 ), [#408 ](https://github.com/harttle/liquidjs/issues/408 ) ([9cfa43b ](https://github.com/harttle/liquidjs/commit/9cfa43b8aee6a980f39d99f1cdb2be730ca21731 ))
v9.28.1
2021-10-16 04:32:51 +00:00
Harttle and harttle
d4df3a0b53
refactor: make loader.shouldLoadRelative public
2021-10-16 12:30:09 +08:00
Harttle and harttle
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
df6d62fd59
docs: add @JaKXz and @dphm to contributor list, #406 , #407
2021-10-15 22:57:04 +08:00
d pham (they/them) and harttle
2438f4b018
docs: typo fix an -> can
2021-10-15 22:55:22 +08:00
Jason Kurian and Jun Yang
8321a8e982
docs: fix async/await typos in render-file
2021-10-15 22:52:47 +08:00
Harttle
1de6adf308
test: cases for parse(<tpl>, <relative filepath>), #395
2021-10-10 20:37:26 +08:00
Harttle
a525f45b46
docs: update filters order on sidebar, fixes #397
2021-10-06 19:17:33 +08:00
semantic-release-bot
529e6d769b
chore(release): 9.28.0 [skip ci]
...
# [9.28.0](https://github.com/harttle/liquidjs/compare/v9.27.1...v9.28.0 ) (2021-10-06)
### Bug Fixes
* skip root check for renderFile() ([822ba0b ](https://github.com/harttle/liquidjs/commit/822ba0be0f1cfbedd50376aff8ac49eee71bd48c ))
* support timezoneOffset for date from scope, [#401 ](https://github.com/harttle/liquidjs/issues/401 ) ([fd5ef47 ](https://github.com/harttle/liquidjs/commit/fd5ef474c36212e6a2446012dcd26bca93f84c7b ))
### Features
* `relativeReference` for render/include/layout, [#395 ](https://github.com/harttle/liquidjs/issues/395 ) ([a3455eb ](https://github.com/harttle/liquidjs/commit/a3455ebd0b207141c34630c0af44d917db2ca1dd ))
* implement `forloop.name` as found in ruby shopify/liquid ([6dc7fad ](https://github.com/harttle/liquidjs/commit/6dc7fada72467418806c1ee4bd7eaf3003690fe6 ))
v9.28.0
2021-10-06 10:45:13 +00:00
Harttle
822ba0be0f
fix: skip root check for renderFile()
2021-10-06 18:38:58 +08:00
Harttle
a3455ebd0b
feat: relativeReference for render/include/layout, #395
...
- `relativeReference` is enabled by default, set to `false` to disable
- Referenced files are still constrained within root/partias/layouts
- fix: relative filenames are not constrained (which allows arbitrary filesystem read)
Example Usage:
{% render "../foo/bar.html" %}
Note:
../foo/bar.html' should also be within `partials` (or `root` if `partials` not set)
2021-10-06 17:36:37 +08:00
Harttle
24a19c092a
docs: add doc entry for concat filter #397
2021-10-06 16:10:09 +08:00
Harttle
fd5ef474c3
fix: support timezoneOffset for date from scope, #401
2021-10-06 15:45:41 +08:00
Harttle and harttle
4f6b88c154
docs: add @bglw as contributor
2021-10-04 21:37:37 +08:00
Liam Bigelow and Jun Yang
6dc7fada72
feat: implement forloop.name as found in ruby shopify/liquid
2021-10-04 21:33:46 +08:00
semantic-release-bot
3b9c7d6fbe
chore(release): 9.27.1 [skip ci]
...
## [9.27.1](https://github.com/harttle/liquidjs/compare/v9.27.0...v9.27.1 ) (2021-10-04)
### Bug Fixes
* directory info in lookupError message, [#395 ](https://github.com/harttle/liquidjs/issues/395 ) ([92bfc65 ](https://github.com/harttle/liquidjs/commit/92bfc65e0b1d937c00a8368b272223c702132d23 ))
v9.27.1
2021-10-04 04:16:07 +00:00
Harttle
92bfc65e0b
fix: directory info in lookupError message, #395
2021-10-04 12:11:54 +08:00
semantic-release-bot
8348036d45
chore(release): 9.27.0 [skip ci]
...
# [9.27.0](https://github.com/harttle/liquidjs/compare/v9.26.0...v9.27.0 ) (2021-10-03)
### Bug Fixes
* remove "stream" dependency in browser bundles, [#396 ](https://github.com/harttle/liquidjs/issues/396 ) ([3b5eb66 ](https://github.com/harttle/liquidjs/commit/3b5eb6664f673c29d74cb7645e01dcbdf43c8343 ))
* renderToNodeStream() now emit 'error' event instead of throw ([afeef1d ](https://github.com/harttle/liquidjs/commit/afeef1d7450b2799b3441b0241d2466b892a27ff ))
### Features
* add `layouts`, `partials` apart from `root`, [#395 ](https://github.com/harttle/liquidjs/issues/395 ) ([b9ae479 ](https://github.com/harttle/liquidjs/commit/b9ae479b653a34fadb98c324c4683dd1fdd31af1 ))
* renderFileToNodeStream(filepath, scope) ([68c4cfc ](https://github.com/harttle/liquidjs/commit/68c4cfcfb647c22225dd6edede53ad7a5d7c4485 ))
### Performance Improvements
* make the most of streamed rendering ([aea3441 ](https://github.com/harttle/liquidjs/commit/aea34418de24cb85ea1acddf68c3683ce7fc9fa8 ))
v9.27.0
2021-10-03 14:41:57 +00:00
harttle
afeef1d745
fix: renderToNodeStream() now emit 'error' event instead of throw
2021-10-03 22:32:00 +08:00
harttle
3b5eb6664f
fix: remove "stream" dependency in browser bundles, #396
2021-10-03 21:21:35 +08:00
harttle
68c4cfcfb6
feat: renderFileToNodeStream(filepath, scope)
2021-10-03 21:21:25 +08:00
harttle
dd325362f9
chore: perf check, will fail if regression > 3%
2021-10-03 19:07:51 +08:00
harttle
b9ae479b65
feat: add layouts, partials apart from root, #395
2021-10-03 18:51:14 +08:00
harttle
0cb520d2d1
chore: perf diff against latest release
2021-10-02 22:17:03 +08:00
Harttle
1689576913
docs: add @n1ru4l and @mattvague to contributors for doc
2021-10-01 19:21:03 +08:00
Harttle and harttle
aea34418de
perf: make the most of streamed rendering
2021-10-01 18:36:57 +08:00
Harttle and harttle
4358c9630f
test: coverage to 100%
2021-10-01 15:55:31 +08:00
Harttle and harttle
9a96b4aba3
docs: update badges
2021-10-01 12:39:02 +08:00
Harttle and harttle
70fdb7af48
chore: try fix ci
2021-10-01 00:52:51 +08:00
semantic-release-bot
5099597634
chore(release): 9.26.0 [skip ci]
...
# [9.26.0](https://github.com/harttle/liquidjs/compare/v9.25.1...v9.26.0 ) (2021-09-30)
### Features
* orderedFilterParameters, closes [#312 ](https://github.com/harttle/liquidjs/issues/312 ) ([10e8c8f ](https://github.com/harttle/liquidjs/commit/10e8c8ff7e1cca6df43087953cd8daf4bd618563 ))
* stream rendering, closed [#361 ](https://github.com/harttle/liquidjs/issues/361 ) fixes [#360 ](https://github.com/harttle/liquidjs/issues/360 ) ([9012133 ](https://github.com/harttle/liquidjs/commit/9012133e0717b1813c6a74a6a282f43ba14d0ada ))
* timezoneOffset option to specify output timezone, see [#375 ](https://github.com/harttle/liquidjs/issues/375 ) ([6b9f872 ](https://github.com/harttle/liquidjs/commit/6b9f872bccb4b0c636dc7be2088cafa9bc6c900a ))
### Performance Improvements
* improve performance by 4x by simplified parseFile ([24f5346 ](https://github.com/harttle/liquidjs/commit/24f534608489fccc155f30bbaf37397c46278da6 ))
* parse filenames in parse() insteadof render() ([8273c17 ](https://github.com/harttle/liquidjs/commit/8273c17dab3dc09858330ce45e3617a650e7fcaa ))
v9.26.0
2021-09-30 15:57:39 +00:00
Harttle and harttle
d742de79ba
docs: update docs for website
2021-09-30 23:52:26 +08:00
Harttle and harttle
f0e2e07f0b
docs: add @c412216887 and @labnol for docs, see #393 #394
2021-09-30 22:33:52 +08:00
一饮一啄皆是人生 and Jun Yang
4e5dbe120d
Update upcase.md
...
upcase中文描述中,应该是 对已经是大写的字符没有影响
2021-09-30 22:18:10 +08:00
Amit Agarwal and Jun Yang
6a1db537d2
Typo fixed
...
Staring -> Starring
2021-09-30 22:17:46 +08:00
dependabot[bot] and Jun Yang
9517f82caf
chore(deps): bump prismjs from 1.24.0 to 1.25.0 in /docs
...
Bumps [prismjs](https://github.com/PrismJS/prism ) from 1.24.0 to 1.25.0.
- [Release notes](https://github.com/PrismJS/prism/releases )
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md )
- [Commits](https://github.com/PrismJS/prism/compare/v1.24.0...v1.25.0 )
---
updated-dependencies:
- dependency-name: prismjs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected] >
2021-09-30 22:16:34 +08:00