mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 21:00:40 -07:00
add: migrate to 9.0
+19
@@ -0,0 +1,19 @@
|
||||
LiquidJS 9.0.0 has some fundamental improvements, including bugfixes, new features and performance improvement due to higher target(see #137). There're also some breaking changes.
|
||||
|
||||
Features:
|
||||
|
||||
* Sync rendering: renderSync, parseAndRenderSync, renderFileSync
|
||||
* New utils: Expression
|
||||
|
||||
Fixes:
|
||||
|
||||
* Rewrite boolean expression evaluation order, #130
|
||||
* `break` and `continue` tags omitting output before them, #123
|
||||
* Fixes errors in reactjs demo during yarn install, #145
|
||||
* promise typed Drops are not await-ed some times
|
||||
|
||||
REAKING CHANGE:
|
||||
|
||||
* Liquid is no longer a default export, use `import {Liquid} from 'liquidjs'` instead, `Liquid` in the UMD bundle is also changed to `window.liquidjs.Liquid`
|
||||
* The duplicate `Liquid.evalValue` is removed, use `liquid.evalValue` instead
|
||||
* Shipped to Node.js 8, the dist/liquid.cjs.js (main) nolonger supports Node.js 6, other bundles are also provided via dist/liquid.esm.js, dist/liquid.js (ES5 umd) and liquid.min.js (minified ES5 umd)
|
||||
+1
-1
@@ -23,7 +23,7 @@ engine.registerTag('upper', {
|
||||
this.str = tagToken.args; // name
|
||||
},
|
||||
render: async function(scope, hash) {
|
||||
var str = await Liquid.evalValue(this.str, scope); // 'alice'
|
||||
var str = await this.liquid.evalValue(this.str, scope); // 'alice'
|
||||
return str.toUpperCase() // 'Alice'
|
||||
}
|
||||
});
|
||||
|
||||
+1
@@ -7,6 +7,7 @@
|
||||
* [Whitespace Control](/harttle/liquidjs/wiki/Whitespace-Control)
|
||||
* [Register Filters/Tags](/harttle/liquidjs/wiki/Register-Filters-Tags)
|
||||
* [Write a Plugin](/harttle/liquidjs/wiki/Write-a-Plugin)
|
||||
* [Migrate to 9.0.0](/harttle/liquidjs/wiki/Migrate-to-9)
|
||||
* API
|
||||
* [Options](https://harttle.github.io/liquidjs/interfaces/_liquid_options_.liquidoptions.html)
|
||||
* [Builtin Filters](/harttle/liquidjs/wiki/Builtin-Filters)
|
||||
|
||||
Reference in New Issue
Block a user