Harttle and Harttle
aafaa0b4f9
feat: support calling date without format string, #573
2023-01-03 00:53:33 +08:00
semantic-release-bot
964e5e8961
chore(release): 10.3.3 [skip ci]
...
## [10.3.3](https://github.com/harttle/liquidjs/compare/v10.3.2...v10.3.3 ) (2022-12-18)
### Bug Fixes
* type compatible with v9 tag definition, support `Context` as scope in various render APIs, [#570 ](https://github.com/harttle/liquidjs/issues/570 ) ([fb6a9f8 ](https://github.com/harttle/liquidjs/commit/fb6a9f8717cd57522d53687da7e4718b28a7f68a ))
v10.3.3
2022-12-18 04:58:05 +00:00
Jun Yang
fb6a9f8717
fix: type compatible with v9 tag definition, support Context as scope in various render APIs, #570
2022-12-18 12:48:06 +08:00
semantic-release-bot
7526d4062d
chore(release): 10.3.2 [skip ci]
...
## [10.3.2](https://github.com/harttle/liquidjs/compare/v10.3.1...v10.3.2 ) (2022-12-13)
### Bug Fixes
* re-export error classes, [#569 ](https://github.com/harttle/liquidjs/issues/569 ) ([2663ee1 ](https://github.com/harttle/liquidjs/commit/2663ee16a066c74cbd387fe40154fdeb2136f35a ))
v10.3.2
2022-12-13 18:16:48 +00:00
Harttle and Harttle
2663ee16a0
fix: re-export error classes, #569
2022-12-14 02:14:03 +08:00
Harttle and Harttle
d24655887f
docs: update docs and demo for Value usage, fixes #568
2022-12-14 02:14:03 +08:00
semantic-release-bot
a9f93d7235
chore(release): 10.3.1 [skip ci]
...
## [10.3.1](https://github.com/harttle/liquidjs/compare/v10.3.0...v10.3.1 ) (2022-12-12)
### Bug Fixes
* support `Context` as `evalValue` parameter, [#568 ](https://github.com/harttle/liquidjs/issues/568 ) ([0f4916b ](https://github.com/harttle/liquidjs/commit/0f4916bc5a93f5e744e4246336c68f2e89774272 ))
v10.3.1
2022-12-12 11:48:42 +00:00
Harttle and Harttle
0f4916bc5a
fix: support Context as evalValue parameter, #568
2022-12-12 19:41:29 +08:00
semantic-release-bot
f4a033ecea
chore(release): 10.3.0 [skip ci]
...
# [10.3.0](https://github.com/harttle/liquidjs/compare/v10.2.0...v10.3.0 ) (2022-12-11)
### Features
* support disable outputEscape for specific filters, [#565 ](https://github.com/harttle/liquidjs/issues/565 ) ([e6db371 ](https://github.com/harttle/liquidjs/commit/e6db371519f0fb3b0068347cfb2016aed386c8fa ))
v10.3.0
2022-12-11 18:35:51 +00:00
Jun Yang
5ac3765612
chore: update liquid options to match raw filters
2022-12-12 02:32:50 +08:00
Jun Yang
e6db371519
feat: support disable outputEscape for specific filters, #565
2022-12-12 02:17:18 +08:00
Jun Yang
a2d949209d
docs: doc for timezone parameter of date filter, #553
2022-12-12 01:35:40 +08:00
dependabot[bot] and Jun Yang
08a0c1322c
chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 in /docs
...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component ) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases )
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2 )
---
updated-dependencies:
- dependency-name: decode-uri-component
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-03 00:20:10 +08:00
semantic-release-bot
dad75ee877
chore(release): 10.2.0 [skip ci]
...
# [10.2.0](https://github.com/harttle/liquidjs/compare/v10.1.0...v10.2.0 ) (2022-12-02)
### Bug Fixes
* `case` should render multiple `when` statements ([d17813e ](https://github.com/harttle/liquidjs/commit/d17813ef5217264bd08f741b0e1f713bedf2d464 ))
### Features
* add remove_last filter ([6c3f1c1 ](https://github.com/harttle/liquidjs/commit/6c3f1c1e0c0c5d30ef77eaf20df65e149e51e693 ))
* add replace_last filter ([b4d1e27 ](https://github.com/harttle/liquidjs/commit/b4d1e27420fcf36ae6d5dbc92cfe4a26299690f2 ))
v10.2.0
2022-12-02 16:18:42 +00:00
Jun Yang
d17813ef52
fix: case should render multiple when statements
2022-12-03 00:14:47 +08:00
Jun Yang
46ffe036a8
docs: zh-cn translation for replace_last, remove_last
2022-12-02 23:54:58 +08:00
dependabot[bot] and Jun Yang
f47d91a9a6
chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2
...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component ) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases )
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2 )
---
updated-dependencies:
- dependency-name: decode-uri-component
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-02 23:50:08 +08:00
James Prior and Jun Yang
8a1efc0f2e
docs: fix remove_first example output
2022-12-02 23:49:59 +08:00
James Prior and Jun Yang
ff4fd44666
docs: remove_last and replace_last
2022-12-02 23:48:50 +08:00
James Prior and Jun Yang
6c3f1c1e0c
feat: add remove_last filter
2022-12-02 23:48:50 +08:00
James Prior and Jun Yang
b4d1e27420
feat: add replace_last filter
2022-12-02 23:48:50 +08:00
semantic-release-bot
6f0a68080c
chore(release): 10.1.0 [skip ci]
...
# [10.1.0](https://github.com/harttle/liquidjs/compare/v10.0.0...v10.1.0 ) (2022-11-29)
### Features
* timezone name for `opts.timezoneOffset` and `date` argument, fixes [#553 ](https://github.com/harttle/liquidjs/issues/553 ) ([89c6c76 ](https://github.com/harttle/liquidjs/commit/89c6c7676d40f23090472a28cbf2fb22f93daad3 ))
v10.1.0
2022-11-29 16:25:22 +00:00
Harttle and Harttle
89c6c7676d
feat: timezone name for opts.timezoneOffset and date argument, fixes #553
2022-11-30 00:20:12 +08:00
Jun Yang
b7ab357964
docs: update CHANGELOG
2022-11-27 18:02:07 +08:00
semantic-release-bot
9b9ef374a8
chore(release): 10.0.0 [skip ci]
...
# [10.0.0](https://github.com/harttle/liquidjs/compare/v9.43.0...v10.0.0 ) (2022-11-27)
### chore
* rename filters to snake style, [#487 ](https://github.com/harttle/liquidjs/issues/487 ) ([ff112a4 ](https://github.com/harttle/liquidjs/commit/ff112a4750f91475e9eccdb301d7a468e895f6ca ))
### Code Refactoring
* `_evalToken` renamed to `evalToken` ([4e1a30a ](https://github.com/harttle/liquidjs/commit/4e1a30a20c579408c87f2d28b9b6ec8e1dda65cc ))
* change `ownPropertyOnly` default value to `true` ([7eb6216 ](https://github.com/harttle/liquidjs/commit/7eb621601c2b05d6e379e5ce42219f2b1f556208 ))
* delay creation of `operatorsTrie` and hide this implementation ([bb58d3e ](https://github.com/harttle/liquidjs/commit/bb58d3e549dc5a5e067895ec4a0b3257b434f225 ))
* remove `toThenable` export ([ffefd91 ](https://github.com/harttle/liquidjs/commit/ffefd91fbc0195c589c8c34ae80f2017acfe557c ))
* remove use of internal `Context` class in `evalValue` argument ([b115077 ](https://github.com/harttle/liquidjs/commit/b115077e122a7b90e7972d58174d68aea8edd7bf ))
### Performance Improvements
* target Node.js 14 for cjs bundle (main entry) ([1f6ce7c ](https://github.com/harttle/liquidjs/commit/1f6ce7c8224123cea318d1aa6c12aa091d6e0518 ))
### BREAKING CHANGES
* `evalToken` now returns a generator (LiquidJS async), which is different from `evalToken` in previous LiquidJS versions.
* main entry need Node.js>=14 to run, you can build LiquidJS by your own by using ESM entry.
* `ownPropertyOnly` default value changed to `true`
* `<liquidjs>.toThenable` is removed, use `<liquidjs>.toPromise` instead
* `evalValue` won't support `Context` as second argument anymore.
* use `operators` instead of `operatorsTrie` as Tokenizer constructor argument, #500
* keys in `<liquidjs>.filters` are now in snake case (instead of camel case), identical to that in Liquid template.
v10.0.0
2022-11-27 09:51:43 +00:00
dependabot[bot] and Jun Yang
5bbdc08eff
chore(deps): bump minimatch from 3.0.4 to 3.1.2
...
Bumps [minimatch](https://github.com/isaacs/minimatch ) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases )
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2 )
---
updated-dependencies:
- dependency-name: minimatch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-27 17:47:55 +08:00
Jun Yang
1380ac931a
refactor: more consistent tags to make it easier to iterate over, #524
2022-11-27 17:29:44 +08:00
Jun Yang
4e1a30a20c
refactor: _evalToken renamed to evalToken
...
BREAKING CHANGE: `evalToken` now returns a generator (LiquidJS async), which is different from `evalToken` in previous LiquidJS versions.
2022-11-27 14:04:02 +08:00
Jun Yang
92992689cd
refactor: Tag class support in registerTag()
2022-11-27 14:04:01 +08:00
Jun Yang
1f6ce7c822
perf: target Node.js 14 for cjs bundle (main entry)
...
BREAKING CHANGE: main entry need Node.js>=14 to run, you can build LiquidJS by your own by using ESM entry.
2022-11-27 14:04:01 +08:00
Jun Yang
7eb621601c
refactor: change ownPropertyOnly default value to true
...
BREAKING CHANGE: `ownPropertyOnly` default value changed to `true`
2022-11-27 14:04:01 +08:00
Jun Yang
ffefd91fbc
refactor: remove toThenable export
...
BREAKING CHANGE: `<liquidjs>.toThenable` is removed, use `<liquidjs>.toPromise` instead
2022-11-27 14:04:01 +08:00
Jun Yang
b115077e12
refactor: remove use of internal Context class in evalValue argument
...
BREAKING CHANGE: `evalValue` won't support `Context` as second argument anymore.
2022-11-27 14:04:01 +08:00
Jun Yang
bb58d3e549
refactor: delay creation of operatorsTrie and hide this implementation
...
BREAKING CHANGE: use `operators` instead of `operatorsTrie` as Tokenizer constructor argument, #500
2022-11-27 14:04:01 +08:00
Jun Yang
ff112a4750
chore: rename filters to snake style, #487
...
BREAKING CHANGE: keys in `<liquidjs>.filters` are now in snake case (instead of camel case), identical to that in Liquid template.
2022-11-27 14:04:00 +08:00
semantic-release-bot
907c4dea06
chore(release): 9.43.0 [skip ci]
...
# [9.43.0](https://github.com/harttle/liquidjs/compare/v9.42.1...v9.43.0 ) (2022-11-27)
### Features
* support timezone offset argument for date filter, [#553 ](https://github.com/harttle/liquidjs/issues/553 ) ([7a71485 ](https://github.com/harttle/liquidjs/commit/7a714855df9ba188e2e82839d248f6623ce94a87 ))
v9.43.0
2022-11-27 05:50:17 +00:00
Jun Yang
7a714855df
feat: support timezone offset argument for date filter, #553
2022-11-27 13:46:51 +08:00
dependabot[bot] and Jun Yang
cd918ccb85
chore(deps): bump minimatch from 3.0.4 to 3.1.2 in /docs
...
Bumps [minimatch](https://github.com/isaacs/minimatch ) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases )
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2 )
---
updated-dependencies:
- dependency-name: minimatch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-14 17:24:50 +08:00
Harttle and Harttle
8061e559ac
docs: fix tags sidebar translation
2022-10-23 18:16:55 +08:00
allcontributors[bot] and Jun Yang
33e97db903
docs: update .all-contributorsrc [skip ci]
2022-10-22 23:59:12 +08:00
allcontributors[bot] and Jun Yang
9cfc8fd2df
docs: update README.md [skip ci]
2022-10-22 23:59:12 +08:00
f62b2109f2
docs: add echo and liquid tags Chinese translation ( #549 )
...
* docs: add echo and liquid tags chinese translation
* Update docs/source/zh-cn/tags/echo.md
Co-authored-by: Jun Yang <[email protected] >
* Update docs/source/zh-cn/tags/echo.md
Co-authored-by: Jun Yang <[email protected] >
* Update docs/source/zh-cn/tags/echo.md
Co-authored-by: Jun Yang <[email protected] >
* Update Liquid.md
* Update Liquid.md
Co-authored-by: Jun Yang <[email protected] >
2022-10-22 23:56:31 +08:00
semantic-release-bot
bf6b5c7da1
chore(release): 9.42.1 [skip ci]
...
## [9.42.1](https://github.com/harttle/liquidjs/compare/v9.42.0...v9.42.1 ) (2022-10-21)
### Bug Fixes
* truncatewords should use at least one word, [#537 ](https://github.com/harttle/liquidjs/issues/537 ) ([32f613f ](https://github.com/harttle/liquidjs/commit/32f613fb43e90f97364ee6a020589992dbb553cf ))
v9.42.1
2022-10-21 16:58:08 +00:00
dependabot[bot] and Jun Yang
a58fe449e3
chore(deps): bump minimist and hexo-renderer-swig in /docs
...
Bumps [minimist](https://github.com/minimistjs/minimist ) to 1.2.7 and updates ancestor dependency [hexo-renderer-swig](https://github.com/hexojs/hexo-renderer-swig ). These dependencies need to be updated together.
Updates `minimist` from 1.2.5 to 1.2.7
- [Release notes](https://github.com/minimistjs/minimist/releases )
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md )
- [Commits](https://github.com/minimistjs/minimist/compare/v1.2.5...v1.2.7 )
Updates `hexo-renderer-swig` from 1.1.0 to 2.0.0
- [Release notes](https://github.com/hexojs/hexo-renderer-swig/releases )
- [Commits](https://github.com/hexojs/hexo-renderer-swig/commits )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
- dependency-name: hexo-renderer-swig
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-10-22 00:55:15 +08:00
dependabot[bot] and Jun Yang
99516cb75f
chore(deps): bump semver-regex from 2.0.0 to 3.1.4
...
Bumps [semver-regex](https://github.com/sindresorhus/semver-regex ) from 2.0.0 to 3.1.4.
- [Release notes](https://github.com/sindresorhus/semver-regex/releases )
- [Commits](https://github.com/sindresorhus/semver-regex/compare/v2.0.0...v3.1.4 )
---
updated-dependencies:
- dependency-name: semver-regex
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-10-22 00:53:04 +08:00
dependabot[bot] and Jun Yang
850ab0c749
chore(deps): bump ansi-regex from 3.0.0 to 3.0.1
...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex ) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases )
- [Commits](https://github.com/chalk/ansi-regex/compare/v3.0.0...v3.0.1 )
---
updated-dependencies:
- dependency-name: ansi-regex
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-10-22 00:52:53 +08:00
Harttle and Harttle
33c7c8f301
docs: demo for using LiquidJS with webpack
2022-10-22 00:39:18 +08:00
Harttle and Harttle
32f613fb43
fix: truncatewords should use at least one word, #537
2022-10-21 14:40:25 +08:00
Jun Yang and GitHub
71a1dc6e72
docs: update README
2022-10-18 03:06:14 +08:00
Jun Yang and GitHub
375a19b0fd
chore: update funding.yml
2022-10-18 03:01:12 +08:00