eleventy-plugin-vento 4.1.1 → 4.2.0

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,16 @@
1
1
  # eleventy-plugin-vento
2
2
 
3
+ ## 4.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fc6aa07: Update `ventojs` to 1.12.16
8
+
9
+ ### Patch Changes
10
+
11
+ - 02d75fd: Adjust `nestedVarname` for Eleventy-provided shortcodes so that conflicts in internal template variable names are less likely. Should not have significant impact on builds.
12
+ - 12e04fe: Made `DEBUG` messages regarding whether Eleventy or Vento was caching a template more verbose
13
+
3
14
  ## 4.1.1
4
15
 
5
16
  ### Patch Changes
package/dist/plugin.js CHANGED
@@ -7,8 +7,8 @@ import createVentoEnv from "ventojs";
7
7
 
8
8
  // src/utils/create-vento-tag.ts
9
9
  function createVentoTag(tagInfo) {
10
+ let LEVEL = 1;
10
11
  const IS_PAIRED = tagInfo.group === "pairedShortcodes";
11
- let INT = 0;
12
12
  const tag = (env, code, output, tokens) => {
13
13
  if (!code.startsWith(tagInfo.name)) return;
14
14
  const { dataVarname } = env.options;
@@ -20,7 +20,7 @@ function createVentoTag(tagInfo) {
20
20
  const args = [code.replace(tagInfo.name, "").trim()];
21
21
  const compiled = [];
22
22
  if (IS_PAIRED) {
23
- const nestedVarname = `__arg${INT++}`;
23
+ const nestedVarname = `__content${output.startsWith("__content") ? LEVEL++ : 0}`;
24
24
  args.unshift(env.compileFilters(tokens, nestedVarname, env.options.autoescape));
25
25
  compiled.push(
26
26
  "{",
@@ -94,12 +94,11 @@ function createVentoEngine(options) {
94
94
  } else {
95
95
  template = env.compile(source, file);
96
96
  debugCache(
97
- `Cache MISS for \`%s\`, compiled new template:
98
- Use Vento cache: %o
97
+ `Cache MISS for \`%s\`, compiled new template; %s
99
98
 
100
99
  ${template}`,
101
100
  file,
102
- useVentoCache
101
+ useVentoCache ? "let Vento cache result" : "defer result caching to Eleventy"
103
102
  );
104
103
  if (useVentoCache) {
105
104
  env.cache.set(file, template);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleventy-plugin-vento",
3
- "version": "4.1.1",
3
+ "version": "4.2.0",
4
4
  "description": "Adds support for the Vento templating language to Eleventy.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -37,26 +37,28 @@
37
37
  "license": "MIT",
38
38
  "dependencies": {
39
39
  "debug": "4.4.0",
40
- "ventojs": "1.12.14"
40
+ "ventojs": "1.12.16"
41
41
  },
42
42
  "devDependencies": {
43
43
  "11ty.ts": "0.0.5",
44
- "@11ty/eleventy": "3.0.1-alpha.1",
45
- "@changesets/cli": "2.27.11",
46
- "@eslint/js": "9.17.0",
44
+ "@11ty/eleventy": "3.0.1-alpha.5",
45
+ "@changesets/cli": "2.28.1",
46
+ "@eslint/js": "9.22.0",
47
47
  "@types/debug": "4.1.12",
48
48
  "@types/eslint-config-prettier": "6.11.3",
49
- "@types/eslint__js": "8.42.3",
50
- "@types/node": "22.10.5",
51
- "eslint": "9.17.0",
52
- "eslint-config-prettier": "9.1.0",
53
- "eslint-plugin-unicorn": "56.0.1",
54
- "globals": "15.14.0",
55
- "tsup": "8.3.5",
56
- "type-fest": "4.31.0",
57
- "typescript": "5.7.2",
58
- "typescript-eslint": "8.19.0",
59
- "vitest": "2.1.8"
49
+ "@types/node": "22.13.10",
50
+ "eslint": "9.22.0",
51
+ "eslint-config-prettier": "10.1.1",
52
+ "eslint-plugin-unicorn": "57.0.0",
53
+ "globals": "16.0.0",
54
+ "nano-spawn": "0.2.0",
55
+ "picocolors": "1.1.1",
56
+ "tsup": "8.4.0",
57
+ "tsx": "4.19.3",
58
+ "type-fest": "4.37.0",
59
+ "typescript": "5.8.2",
60
+ "typescript-eslint": "8.26.1",
61
+ "vitest": "3.0.8"
60
62
  },
61
63
  "prettier": {
62
64
  "bracketSameLine": true,
@@ -73,6 +75,7 @@
73
75
  "dev": "tsup --watch ./src",
74
76
  "ci:version": "changeset version && pnpm install --no-frozen-lockfile",
75
77
  "ci:publish": "changeset publish",
78
+ "ci:generate-renovate-changesets": "tsx .github/scripts/renovate-changesets.ts",
76
79
  "format": "pnpm dlx prettier --config ./package.json --write ."
77
80
  }
78
81
  }