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
Harttle and Jun Yang
10e8c8ff7e
feat: orderedFilterParameters, closes #312
2021-09-30 22:15:09 +08:00
Steve Stedman and Jun Yang
fb787e8847
Fix: respect parameter order when using "for ... reversed" ( #231 )
...
* fix: spelling
* fix: respect param order for reversed
* docs: add for-reversed order details
* perf: improve performance by 4x by simplified parseFile
BREAKING CHANGES:
- previously deprecated `getTemplate()` and `getTemplateSync()` not no longer supported
- `opts` no longer support dynamic set in `parseFile()`, `renderFile()` arguments
* perf: parse filenames in parse() insteadof render()
* docs: update description of LiquidJS
Co-authored-by: harttle <[email protected] >
2021-09-30 22:15:09 +08:00
Harttle and Jun Yang
9012133e07
feat: stream rendering, closed #361 fixes #360
2021-09-30 22:15:09 +08:00
harttle
abaf4af465
docs: update description of LiquidJS
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
24f5346084
perf: improve performance by 4x by simplified parseFile
...
- previously deprecated `getTemplate()` and `getTemplateSync()` not no longer supported
- `opts` no longer support dynamic set in `parseFile()`, `renderFile()` arguments
2021-09-27 23:04:41 +08:00
Harttle and harttle
6b9f872bcc
feat: timezoneOffset option to specify output timezone, see #375
2021-09-27 01:54:31 +08:00
dependabot[bot] and Jun Yang
91c721e650
chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /docs
...
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-09-26 20:44:44 +08:00
dependabot[bot] and Jun Yang
500d397a5a
chore(deps): bump prismjs from 1.23.0 to 1.24.0 in /docs
...
Bumps [prismjs](https://github.com/PrismJS/prism ) from 1.23.0 to 1.24.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.23.0...v1.24.0 )
---
updated-dependencies:
- dependency-name: prismjs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected] >
2021-07-26 16:52:01 +08:00
harttle
2e004eddf6
docs: add @ilhamdev0 as contributors
2021-07-26 16:40:03 +08:00
ilhamdev0 and Jun Yang
e3bfe86181
Update layout.md
2021-07-25 23:19:10 +08:00
ilhamdev0 and Jun Yang
804947ebb9
Update layout.md
...
Fix typo
2021-07-25 23:19:10 +08:00
Raymond Camden and Jun Yang
4fa5313acc
Update options.md
...
Fix typo
2021-07-24 14:23:26 +08:00
harttle
f7313fe563
docs: support data field in playground.html
2021-06-20 21:26:16 +08:00
semantic-release-bot
1c64ff051e
chore(release): 9.25.1 [skip ci]
...
## [9.25.1](https://github.com/harttle/liquidjs/compare/v9.25.0...v9.25.1 ) (2021-06-20)
### Performance Improvements
* add cross-engines benchmark ([cdceb25 ](https://github.com/harttle/liquidjs/commit/cdceb25d007b3d30a85e51ac538e12297c73bfcf ))
v9.25.1
2021-06-20 06:23:36 +00:00
harttle
c470d1fe9b
chore: migrate from Travis CI to Github Actions
2021-06-20 14:21:34 +08:00