eleventy-plugin-vento 4.5.0 → 4.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # eleventy-plugin-vento
2
2
 
3
+ ## 4.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1fbab3a: Update `ventojs` to 1.15.2
8
+
3
9
  ## 4.5.0
4
10
 
5
11
  ### Minor Changes
package/dist/plugin.js CHANGED
@@ -90,8 +90,8 @@ function createVentoEngine(options) {
90
90
  env.tags.push(shortcodeTag);
91
91
  }
92
92
  }
93
- function getTemplateFunction(source, file, useVentoCache = true) {
94
- let template = env.cache.get(file);
93
+ async function getTemplateFunction(source, file, useVentoCache = true) {
94
+ let template = await env.cache.get(file);
95
95
  if ((template == null ? void 0 : template.source) === source) {
96
96
  debugCache("Cache HIT for `%s`, used precompiled template", file);
97
97
  } else {
@@ -218,21 +218,21 @@ function VentoPlugin(eleventyConfig, userOptions) {
218
218
  eleventyConfig.addExtension("vto", {
219
219
  outputFileExtension: "html",
220
220
  read: true,
221
- compile(inputContent, inputPath) {
221
+ async compile(inputContent, inputPath) {
222
222
  inputPath = path.normalize(inputPath);
223
223
  debugMain("Getting template function for `%s`", inputPath);
224
- const template = engine.getTemplateFunction(inputContent, inputPath, false);
224
+ const template = await engine.getTemplateFunction(inputContent, inputPath, false);
225
225
  return async (data) => await renderVentoTemplate(template, data, inputPath);
226
226
  },
227
227
  compileOptions: {
228
228
  // Custom permalink compilation
229
- permalink(permalinkContent, inputPath) {
229
+ async permalink(permalinkContent, inputPath) {
230
230
  if (typeof permalinkContent !== "string" || !/\{\{\s+.+\s+\}\}/.test(permalinkContent)) {
231
231
  return permalinkContent;
232
232
  }
233
233
  inputPath = "Permalink::" + path.normalize(inputPath);
234
234
  debugMain("Getting template function for `%s`", inputPath);
235
- const template = engine.getTemplateFunction(permalinkContent, inputPath);
235
+ const template = await engine.getTemplateFunction(permalinkContent, inputPath);
236
236
  return async (data) => await renderVentoTemplate(template, data, inputPath);
237
237
  }
238
238
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleventy-plugin-vento",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "Adds support for the Vento templating language to Eleventy.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -37,26 +37,26 @@
37
37
  "license": "MIT",
38
38
  "dependencies": {
39
39
  "debug": "4.4.1",
40
- "ventojs": "1.14.0"
40
+ "ventojs": "1.15.2"
41
41
  },
42
42
  "devDependencies": {
43
- "11ty.ts": "0.0.5",
44
- "@11ty/eleventy": "3.1.1",
45
- "@changesets/cli": "2.29.4",
46
- "@eslint/js": "9.28.0",
43
+ "11ty.ts": "0.0.6",
44
+ "@11ty/eleventy": "3.1.2",
45
+ "@changesets/cli": "2.29.5",
46
+ "@eslint/js": "9.32.0",
47
47
  "@types/debug": "4.1.12",
48
- "@types/node": "22.15.30",
49
- "eslint": "9.28.0",
50
- "eslint-config-prettier": "10.1.5",
51
- "eslint-plugin-unicorn": "59.0.1",
52
- "globals": "16.2.0",
53
- "knip": "5.60.2",
48
+ "@types/node": "22.17.0",
49
+ "eslint": "9.32.0",
50
+ "eslint-config-prettier": "10.1.8",
51
+ "eslint-plugin-unicorn": "60.0.0",
52
+ "globals": "16.3.0",
53
+ "knip": "5.62.0",
54
54
  "tsup": "8.5.0",
55
- "tsx": "4.19.4",
55
+ "tsx": "4.20.3",
56
56
  "type-fest": "4.41.0",
57
- "typescript": "5.8.3",
58
- "typescript-eslint": "8.33.1",
59
- "vitest": "3.2.2"
57
+ "typescript": "5.9.2",
58
+ "typescript-eslint": "8.38.0",
59
+ "vitest": "3.2.4"
60
60
  },
61
61
  "prettier": {
62
62
  "bracketSameLine": true,