-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
liquidjs is out-of-date #1334
Comments
FWIW, as a workaround you can add the more recent liquidjs version as a dep and set your own liquidjs instance as detailed here. https://www.11ty.dev/docs/languages/liquid/#optional-set-your-own-library-instance |
Same issue as #862 ? |
@samuelpath I |
Does this break Eleventy in that it doesn't include I'll create a repo to check and report back, as I believe this is in fact happening. Edit: Hmm, it doesn't. |
Fixed in a37a5c6. Will be released in v1.0.0. |
Polite request to bump one more minor version to This can be nice for people to catch errors during web dev. Particularly convenient when converting templates from other generators (like Jekyll), where variables may be named differently. |
@sschuldenzucker can you make a PR? |
LiquidJS is already updated to 9.x in master branch: Line 106 in 9042341
But is still on the older version in v0.11.x branch: Line 109 in 094c985
I don't imagine that 0.11.x will get updated to a newer version of LiquidJS, considering it's probably a very breaking change and there were a lot of plumbing changes needed (see #1058). I'm not even sure if it's possible to update your existing 0.11 with liquidjs@9 using https://www.11ty.dev/docs/languages/liquid/#optional-set-your-own-library-instance docs. I know the 11ty docs are out of date w/ the new LiquidJS v9 API, but even if you changed that, I'm pretty sure there was something broken last time I tried to monkey patch the latest liquid into 11ty. |
I think, Zach reported that there will be no Liquid v9 in the 0.11.x branch somewhere. @sschuldenzucker Could you open a new issue to highlight the minor update on master branch? |
NB, I've done this. Using my limited javascript skills, it looks like this: const liquidJs = require("liquidjs").Liquid
[...]
let liquid_options = { // my options
// extname: ".html",
dynamicPartials: false,
root: ["_includes"],
strictFilters: true,
strictVariables: true,
lenientIf: true
};
eleventyConfig.setLibrary("liquid", new liquidJs(liquid_options)) |
I'm on 11ty 0.11.0, and the version of liquidjs has a bug (harttle/liquidjs#227) which has been fixed in v9.12.0. 11ty is still using v6.4.3. Please update it.
I tested liquid with and without eleventy. The bug is only present when using 11ty.
The text was updated successfully, but these errors were encountered: