eleventy-plugin-vento 5.0.0 → 5.1.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 +30 -10
- package/package.json +6 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# eleventy-plugin-vento
|
|
2
2
|
|
|
3
|
+
## 5.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d8813e4: Update Vento to v2.1.0
|
|
8
|
+
|
|
9
|
+
Vento 2.1.0 adds a [`strict`](https://vento.js.org/configuration/#strict-mode) mode to fail compilation if a variable is undefined. Because this option changes the performance profile of Vento, this plugin keeps it disabled (the default).
|
|
10
|
+
|
|
11
|
+
If you'd like to enable it, you can do so by setting it in the Vento config key when loading this plugin, like so:
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
eleventyConfig.addPlugin(VentoPlugin, {
|
|
15
|
+
ventoOptions: {
|
|
16
|
+
strict: true,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
See Vento's ([changelog](https://github.com/ventojs/vento/blob/main/CHANGELOG.md#210---2025-09-17)) for more information.
|
|
22
|
+
|
|
23
|
+
## 5.0.1
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- a2e961d: Update `debug` to 4.4.3.
|
|
28
|
+
|
|
29
|
+
4.4.3 handles a vulnerability in 4.4.2 which was never distributed by this package. Pinning 4.4.3 over 4.4.2 circumvents the now-yanked version.
|
|
30
|
+
|
|
31
|
+
See https://github.com/debug-js/debug/issues/1005#issuecomment-3293627810 for more information.
|
|
32
|
+
|
|
3
33
|
## 5.0.0
|
|
4
34
|
|
|
5
35
|
### Major Changes
|
|
@@ -11,7 +41,6 @@
|
|
|
11
41
|
More critical to note for Vento v2 is the rearrangement of core library features that this plugin exposes. Definitely review [the changelog for v2](https://github.com/ventojs/vento/blob/main/CHANGELOG.md#200---2025-09-01) to determine whether your implementation needs updating.
|
|
12
42
|
|
|
13
43
|
The biggest changes are:
|
|
14
|
-
|
|
15
44
|
- `meriyah` was removed via https://github.com/ventojs/vento/pull/128 at the benefit of performance. If you were absorbing `meriyah`'s functionality via this plugin, you should adjust accordingly.
|
|
16
45
|
- `runStringSync` is no longer supported and has been removed
|
|
17
46
|
- `ventoOptions.useWith` was previously deprecated and has since been removed. If you relied on `useWith` in your [plugin options](https://github.com/noelforte/eleventy-plugin-vento?tab=readme-ov-file#plugin-options), you should instead use `ventoOptions.dataVarname` and `ventoOptions.autoDataVarname` to control how the global namespace for template data is exposed. For more info, see more on [the Vento docs](https://vento.js.org/configuration/#datavarname).
|
|
@@ -52,7 +81,6 @@
|
|
|
52
81
|
### Minor Changes
|
|
53
82
|
|
|
54
83
|
- 1f1a13a: Update ventojs to 1.14.0. This version bump incorporates the following new features:
|
|
55
|
-
|
|
56
84
|
- Loading templates via URLs
|
|
57
85
|
- Destructuring in `for` loops
|
|
58
86
|
- `{{ continue }}` and `{{ break }}` tags
|
|
@@ -109,7 +137,6 @@
|
|
|
109
137
|
- 335f21e: Select type updates (shouldn't affect compilation, however should improve DX)
|
|
110
138
|
|
|
111
139
|
Changes are:
|
|
112
|
-
|
|
113
140
|
- split types into separate files
|
|
114
141
|
- namespace `ventojs` type imports
|
|
115
142
|
- make `PluginOptions` optional by default
|
|
@@ -117,7 +144,6 @@
|
|
|
117
144
|
- declare a special (`EleventyVentoEnvironment`) for this plugin to replace Vento's own `Environment`
|
|
118
145
|
|
|
119
146
|
- 070109a: Refactored files and functions internally that shouldn't have any impact on usage or performance:
|
|
120
|
-
|
|
121
147
|
- Split `debug` functions into separate exports, renamed `runCompatiblityCheck -> compatibilityCheck` (dd4c379b)
|
|
122
148
|
- Utilities are now split into separate files (e06a83ab)
|
|
123
149
|
- Main file renamed from `index.ts` to `plugin.ts` (1b122d2a)
|
|
@@ -148,7 +174,6 @@
|
|
|
148
174
|
- 335f21e: Select type updates (shouldn't affect compilation, however should improve DX)
|
|
149
175
|
|
|
150
176
|
Changes are:
|
|
151
|
-
|
|
152
177
|
- split types into separate files
|
|
153
178
|
- namespace `ventojs` type imports
|
|
154
179
|
- make `PluginOptions` optional by default
|
|
@@ -158,7 +183,6 @@
|
|
|
158
183
|
- 9eaa059: Update `debug` to v4.4.0
|
|
159
184
|
- f387b5e: Update `ventojs` to v1.12.13
|
|
160
185
|
- 070109a: Refactored files and functions internally that shouldn't have any impact on usage or performance:
|
|
161
|
-
|
|
162
186
|
- Split `debug` functions into separate exports, renamed `runCompatiblityCheck -> compatibilityCheck` (dd4c379b)
|
|
163
187
|
- Utilities are now split into separate files (e06a83ab)
|
|
164
188
|
- Main file renamed from `index.ts` to `plugin.ts` (1b122d2a)
|
|
@@ -279,7 +303,6 @@
|
|
|
279
303
|
### Patch Changes
|
|
280
304
|
|
|
281
305
|
- 693e1a2: Refactored the following features internally:
|
|
282
|
-
|
|
283
306
|
- Reverts 2c3548c1 for modularity: The compatibility check has moved back to `modules/utils.js`
|
|
284
307
|
- Revises caching further: Instead of deferring to Vento for everything, permalink templates and templates loaded by Vento (like includes) are cached by Vento. Everything else is cached by Eleventy.
|
|
285
308
|
- Rename some internal variables to help with readability (`_11ty.ctx => _11Ctx`)
|
|
@@ -292,7 +315,6 @@
|
|
|
292
315
|
|
|
293
316
|
- 7e6ba68: Separate `shortcodes` and `pairedShortcodes` into seperate object namespaces. Prior to this version, Eleventy shortcodes and paired shortcodes were merged into a single object keyed as `_11ty.functions` which allowed for naming collisions between shortcodes and their paired counterparts.
|
|
294
317
|
- b8f0a03: Adds new dependency on `debug` package, to help out with testing and getting more verbose logs. The following `DEBUG` namespaces are implemented:
|
|
295
|
-
|
|
296
318
|
- `Eleventy:Vento:Setup` - Logs initial setup of the plugin, loading features, pre-page compile setup steps (like changing `page` and `eleventy` objects)
|
|
297
319
|
- `Eleventy:Vento:Cache` - Logs updates to Vento's own internal cache, which is used in tandem with Eleventy's cache.
|
|
298
320
|
- `Eleventy:Vento:Template` - Logs rendered templates and other template related actions
|
|
@@ -320,7 +342,6 @@
|
|
|
320
342
|
Templates are now compiled directly instead of using Vento's `.runString` method which reduces overhead and enables this plugin to manage the Vento cache in a more direct manner.
|
|
321
343
|
|
|
322
344
|
- 494b184: Permalink compilation optimizations:
|
|
323
|
-
|
|
324
345
|
- Permalinks now short-circuit to raw strings if they don't contain Vento template syntax, avoiding compilation entirely.
|
|
325
346
|
- Permalinks are now assigned (fake) pathnames in Vento's cache. If you change template content but don't change a dynamic permalink in development, Vento will reuse the compiled permalink template. Note that **any** modifications to a template file will **always** cause it to be recompiled (see 19c352fa) — this improvement just optimizes recompiling dynamic permalinks that haven't changed.
|
|
326
347
|
|
|
@@ -352,7 +373,6 @@
|
|
|
352
373
|
### Patch Changes
|
|
353
374
|
|
|
354
375
|
- 9f5a90f: Various Refactors - These changes shouldn't have any observable effect on your templates or usage.
|
|
355
|
-
|
|
356
376
|
- Replaced `class` based approach for a closure implementation instead. Since there was only 1 Vento `env` object ever instanced in this plugin, steering away from using `class` removes some complexity and overhead.
|
|
357
377
|
|
|
358
378
|
- `DATA_KEYS` (used internally) moved into utils file alongside other utilities (like compatibility checks) and renamed to `CONTEXT_DATA_KEYS`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eleventy-plugin-vento",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Adds support for the Vento templating language to Eleventy.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"debug": "4.4.
|
|
40
|
-
"ventojs": "2.0
|
|
39
|
+
"debug": "4.4.3",
|
|
40
|
+
"ventojs": "2.1.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"11ty.ts": "0.0.6",
|
|
@@ -51,19 +51,14 @@
|
|
|
51
51
|
"eslint-plugin-unicorn": "61.0.2",
|
|
52
52
|
"globals": "16.4.0",
|
|
53
53
|
"knip": "5.63.1",
|
|
54
|
+
"prettier": "3.6.2",
|
|
54
55
|
"tsup": "8.5.0",
|
|
55
56
|
"tsx": "4.20.5",
|
|
56
|
-
"type-fest": "
|
|
57
|
+
"type-fest": "5.0.0",
|
|
57
58
|
"typescript": "5.9.2",
|
|
58
59
|
"typescript-eslint": "8.43.0",
|
|
59
60
|
"vitest": "3.2.4"
|
|
60
61
|
},
|
|
61
|
-
"prettier": {
|
|
62
|
-
"bracketSameLine": true,
|
|
63
|
-
"singleQuote": true,
|
|
64
|
-
"semi": true,
|
|
65
|
-
"trailingComma": "es5"
|
|
66
|
-
},
|
|
67
62
|
"scripts": {
|
|
68
63
|
"test": "vitest --run",
|
|
69
64
|
"lint": "pnpm --color run '/^lint:/'",
|
|
@@ -75,6 +70,6 @@
|
|
|
75
70
|
"ci:version": "changeset version && pnpm install --no-frozen-lockfile",
|
|
76
71
|
"ci:publish": "changeset publish",
|
|
77
72
|
"ci:generate-renovate-changesets": "tsx .github/scripts/renovate-changesets.ts",
|
|
78
|
-
"
|
|
73
|
+
"fmt": "prettier --write ."
|
|
79
74
|
}
|
|
80
75
|
}
|