eleventy-plugin-vento 5.5.1 → 7.0.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 +24 -1
- package/dist/plugin.d.mts +2 -3
- package/dist/plugin.mjs +2 -2
- package/package.json +11 -18
- package/readme.md +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# eleventy-plugin-vento
|
|
2
2
|
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 654706a: Update `obug` to v3
|
|
8
|
+
|
|
9
|
+
Should not produce any serious breaking changes. Marked as a major change just in case.
|
|
10
|
+
|
|
11
|
+
## 6.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- ba537b9: Replace `debug` with `obug`
|
|
16
|
+
|
|
17
|
+
[Eleventy/Build Awesome is moving from `debug` to `obug` in v4](https://github.com/11ty/buildawesome/issues/4291) and this plugin is getting ahead of the curve. Marked as a major change to guard against any conflicts that might arise from `@11ty/eleventy@<4`. Otherwise, this change should be a drop-in replacement.
|
|
18
|
+
|
|
3
19
|
## 5.5.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -157,6 +173,7 @@
|
|
|
157
173
|
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.
|
|
158
174
|
|
|
159
175
|
The biggest changes are:
|
|
176
|
+
|
|
160
177
|
- `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.
|
|
161
178
|
- `runStringSync` is no longer supported and has been removed
|
|
162
179
|
- `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).
|
|
@@ -197,6 +214,7 @@
|
|
|
197
214
|
### Minor Changes
|
|
198
215
|
|
|
199
216
|
- 1f1a13a: Update ventojs to 1.14.0. This version bump incorporates the following new features:
|
|
217
|
+
|
|
200
218
|
- Loading templates via URLs
|
|
201
219
|
- Destructuring in `for` loops
|
|
202
220
|
- `{{ continue }}` and `{{ break }}` tags
|
|
@@ -253,6 +271,7 @@
|
|
|
253
271
|
- 335f21e: Select type updates (shouldn't affect compilation, however should improve DX)
|
|
254
272
|
|
|
255
273
|
Changes are:
|
|
274
|
+
|
|
256
275
|
- split types into separate files
|
|
257
276
|
- namespace `ventojs` type imports
|
|
258
277
|
- make `PluginOptions` optional by default
|
|
@@ -260,6 +279,7 @@
|
|
|
260
279
|
- declare a special (`EleventyVentoEnvironment`) for this plugin to replace Vento's own `Environment`
|
|
261
280
|
|
|
262
281
|
- 070109a: Refactored files and functions internally that shouldn't have any impact on usage or performance:
|
|
282
|
+
|
|
263
283
|
- Split `debug` functions into separate exports, renamed `runCompatiblityCheck -> compatibilityCheck` (dd4c379b)
|
|
264
284
|
- Utilities are now split into separate files (e06a83ab)
|
|
265
285
|
- Main file renamed from `index.ts` to `plugin.ts` (1b122d2a)
|
|
@@ -290,6 +310,7 @@
|
|
|
290
310
|
- 335f21e: Select type updates (shouldn't affect compilation, however should improve DX)
|
|
291
311
|
|
|
292
312
|
Changes are:
|
|
313
|
+
|
|
293
314
|
- split types into separate files
|
|
294
315
|
- namespace `ventojs` type imports
|
|
295
316
|
- make `PluginOptions` optional by default
|
|
@@ -431,6 +452,7 @@
|
|
|
431
452
|
|
|
432
453
|
- 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.
|
|
433
454
|
- b8f0a03: Adds new dependency on `debug` package, to help out with testing and getting more verbose logs. The following `DEBUG` namespaces are implemented:
|
|
455
|
+
|
|
434
456
|
- `Eleventy:Vento:Setup` - Logs initial setup of the plugin, loading features, pre-page compile setup steps (like changing `page` and `eleventy` objects)
|
|
435
457
|
- `Eleventy:Vento:Cache` - Logs updates to Vento's own internal cache, which is used in tandem with Eleventy's cache.
|
|
436
458
|
- `Eleventy:Vento:Template` - Logs rendered templates and other template related actions
|
|
@@ -489,6 +511,7 @@
|
|
|
489
511
|
### Patch Changes
|
|
490
512
|
|
|
491
513
|
- 9f5a90f: Various Refactors - These changes shouldn't have any observable effect on your templates or usage.
|
|
514
|
+
|
|
492
515
|
- 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.
|
|
493
516
|
|
|
494
517
|
- `DATA_KEYS` (used internally) moved into utils file alongside other utilities (like compatibility checks) and renamed to `CONTEXT_DATA_KEYS`.
|
|
@@ -561,7 +584,7 @@
|
|
|
561
584
|
|
|
562
585
|
```js
|
|
563
586
|
eleventyConfig.addPlugin(VentoPlugin, {
|
|
564
|
-
autotrim: [
|
|
587
|
+
autotrim: ["@vento", "@11ty", "tag1", "tag2"],
|
|
565
588
|
});
|
|
566
589
|
```
|
|
567
590
|
|
package/dist/plugin.d.mts
CHANGED
|
@@ -61,6 +61,5 @@ interface PluginOptions {
|
|
|
61
61
|
}
|
|
62
62
|
//#endregion
|
|
63
63
|
//#region src/plugin.d.ts
|
|
64
|
-
declare function VentoPlugin(eleventyConfig: UserConfig, userOptions?: Partial<PluginOptions>): void;
|
|
65
|
-
//#endregion
|
|
66
|
-
export { VentoPlugin };
|
|
64
|
+
export declare function VentoPlugin(eleventyConfig: UserConfig, userOptions?: Partial<PluginOptions>): void;
|
|
65
|
+
//#endregion
|
package/dist/plugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import autotrimPlugin, { defaultTags } from "ventojs/plugins/auto_trim.js";
|
|
|
3
3
|
import ventojs from "ventojs";
|
|
4
4
|
import { VentoError } from "ventojs/core/errors.js";
|
|
5
5
|
import { styleText } from "node:util";
|
|
6
|
-
import
|
|
6
|
+
import { createDebug } from "obug";
|
|
7
7
|
//#region src/utils/create-vento-tag.ts
|
|
8
8
|
function createVentoTag(tagInfo) {
|
|
9
9
|
let LEVEL = 1;
|
|
@@ -34,7 +34,7 @@ function createVentoTag(tagInfo) {
|
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/utils/logging.ts
|
|
36
36
|
const debug = {
|
|
37
|
-
main:
|
|
37
|
+
main: createDebug("Eleventy:Vento"),
|
|
38
38
|
get cache() {
|
|
39
39
|
return this.main.extend("Cache");
|
|
40
40
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eleventy-plugin-vento",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Adds support for the Vento templating language to Eleventy.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"types": "./dist/plugin.d.mts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"types": "./dist/plugin.d.mts",
|
|
13
|
+
"import": "./dist/plugin.mjs"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
@@ -39,24 +39,17 @@
|
|
|
39
39
|
},
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"
|
|
42
|
+
"obug": "3.0.0",
|
|
43
43
|
"ventojs": "2.4.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@11ty/eleventy": "
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@types/
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"eslint-config-prettier": "10.1.8",
|
|
53
|
-
"eslint-plugin-unicorn": "71.1.0",
|
|
54
|
-
"globals": "17.7.0",
|
|
55
|
-
"knip": "6.26.0",
|
|
56
|
-
"prettier": "3.9.5",
|
|
57
|
-
"tsdown": "0.22.7",
|
|
46
|
+
"@11ty/eleventy": "4.0.0-alpha.10",
|
|
47
|
+
"@biomejs/biome": "2.5.14",
|
|
48
|
+
"@changesets/cli": "3.0.3",
|
|
49
|
+
"@types/node": "24.13.5",
|
|
50
|
+
"knip": "6.35.1",
|
|
51
|
+
"tsdown": "0.23.0",
|
|
58
52
|
"typescript": "6.0.3",
|
|
59
|
-
"
|
|
60
|
-
"vitest": "4.1.10"
|
|
53
|
+
"vitest": "5.0.1"
|
|
61
54
|
}
|
|
62
55
|
}
|
package/readme.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# eleventy-plugin-vento 🌬️🎈🐀
|
|
2
2
|
|
|
3
|
-
[](https://11ty.dev)
|
|
4
3
|
[](https://github.com/noelforte/eleventy-plugin-vento/actions/workflows/ci.yml)
|
|
5
4
|
[](https://npmjs.com/package/eleventy-plugin-vento)
|
|
5
|
+
|
|
6
|
+
[](https://11ty.dev)
|
|
6
7
|
[](https://github.com/changesets/changesets/)
|
|
7
|
-
[](https://biomejs.dev/)
|
|
8
9
|
|
|
9
10
|
An [Eleventy](https://11ty.dev/) plugin that adds support for [Vento](https://vento.js.org/) templates.
|
|
10
11
|
|