eleventy-plugin-vento 5.5.1 → 6.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # eleventy-plugin-vento
2
2
 
3
+ ## 6.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - ba537b9: Replace `debug` with `obug`
8
+
9
+ [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.
10
+
3
11
  ## 5.5.1
4
12
 
5
13
  ### Patch Changes
@@ -157,6 +165,7 @@
157
165
  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
166
 
159
167
  The biggest changes are:
168
+
160
169
  - `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
170
  - `runStringSync` is no longer supported and has been removed
162
171
  - `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 +206,7 @@
197
206
  ### Minor Changes
198
207
 
199
208
  - 1f1a13a: Update ventojs to 1.14.0. This version bump incorporates the following new features:
209
+
200
210
  - Loading templates via URLs
201
211
  - Destructuring in `for` loops
202
212
  - `{{ continue }}` and `{{ break }}` tags
@@ -253,6 +263,7 @@
253
263
  - 335f21e: Select type updates (shouldn't affect compilation, however should improve DX)
254
264
 
255
265
  Changes are:
266
+
256
267
  - split types into separate files
257
268
  - namespace `ventojs` type imports
258
269
  - make `PluginOptions` optional by default
@@ -260,6 +271,7 @@
260
271
  - declare a special (`EleventyVentoEnvironment`) for this plugin to replace Vento's own `Environment`
261
272
 
262
273
  - 070109a: Refactored files and functions internally that shouldn't have any impact on usage or performance:
274
+
263
275
  - Split `debug` functions into separate exports, renamed `runCompatiblityCheck -> compatibilityCheck` (dd4c379b)
264
276
  - Utilities are now split into separate files (e06a83ab)
265
277
  - Main file renamed from `index.ts` to `plugin.ts` (1b122d2a)
@@ -290,6 +302,7 @@
290
302
  - 335f21e: Select type updates (shouldn't affect compilation, however should improve DX)
291
303
 
292
304
  Changes are:
305
+
293
306
  - split types into separate files
294
307
  - namespace `ventojs` type imports
295
308
  - make `PluginOptions` optional by default
@@ -431,6 +444,7 @@
431
444
 
432
445
  - 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
446
  - b8f0a03: Adds new dependency on `debug` package, to help out with testing and getting more verbose logs. The following `DEBUG` namespaces are implemented:
447
+
434
448
  - `Eleventy:Vento:Setup` - Logs initial setup of the plugin, loading features, pre-page compile setup steps (like changing `page` and `eleventy` objects)
435
449
  - `Eleventy:Vento:Cache` - Logs updates to Vento's own internal cache, which is used in tandem with Eleventy's cache.
436
450
  - `Eleventy:Vento:Template` - Logs rendered templates and other template related actions
@@ -489,6 +503,7 @@
489
503
  ### Patch Changes
490
504
 
491
505
  - 9f5a90f: Various Refactors - These changes shouldn't have any observable effect on your templates or usage.
506
+
492
507
  - 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
508
 
494
509
  - `DATA_KEYS` (used internally) moved into utils file alongside other utilities (like compatibility checks) and renamed to `CONTEXT_DATA_KEYS`.
@@ -561,7 +576,7 @@
561
576
 
562
577
  ```js
563
578
  eleventyConfig.addPlugin(VentoPlugin, {
564
- autotrim: ['@vento', '@11ty', 'tag1', 'tag2'],
579
+ autotrim: ["@vento", "@11ty", "tag1", "tag2"],
565
580
  });
566
581
  ```
567
582
 
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 createDebugger from "debug";
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: createDebugger("Eleventy:Vento"),
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": "5.5.1",
3
+ "version": "6.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
- "import": "./dist/plugin.mjs",
13
- "types": "./dist/plugin.d.mts"
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
- "debug": "4.4.3",
42
+ "obug": "2.1.4",
43
43
  "ventojs": "2.4.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@11ty/eleventy": "3.1.6",
47
- "@changesets/cli": "2.31.0",
48
- "@eslint/js": "10.0.1",
49
- "@types/debug": "4.1.13",
46
+ "@11ty/eleventy": "4.0.0-alpha.10",
47
+ "@biomejs/biome": "2.5.7",
48
+ "@changesets/cli": "2.31.1",
50
49
  "@types/node": "24.13.3",
51
- "eslint": "10.7.0",
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",
50
+ "knip": "6.31.0",
51
+ "tsdown": "0.22.14",
58
52
  "typescript": "6.0.3",
59
- "typescript-eslint": "8.63.0",
60
53
  "vitest": "4.1.10"
61
54
  }
62
55
  }