eleventy-plugin-vento 5.2.1 → 5.3.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
+ ## 5.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - bf9130c: Update Vento to v2.3.0
8
+
9
+ [Upstream release notes](https://github.com/ventojs/vento/blob/main/CHANGELOG.md#230---2025-12-25)
10
+
3
11
  ## 5.2.1
4
12
 
5
13
  ### Patch Changes
package/dist/plugin.d.mts CHANGED
@@ -1,44 +1,63 @@
1
1
  import * as ventojs from "ventojs";
2
- import UserConfig from "@11ty/eleventy/UserConfig";
2
+ import _UserConfig from "@11ty/eleventy/UserConfig";
3
3
  import { LiteralUnion } from "type-fest";
4
4
  import { Plugin } from "ventojs/core/environment.js";
5
5
 
6
+ //#region src/types/eleventy.d.ts
7
+
8
+ interface UserConfig extends _UserConfig {
9
+ directories: {
10
+ input: string;
11
+ output: string;
12
+ includes: string;
13
+ layouts: string;
14
+ };
15
+ }
16
+ //#endregion
6
17
  //#region src/types/options.d.ts
7
18
  interface PluginOptions {
8
19
  /**
9
20
  * An array of Vento plugins
10
21
  */
11
- plugins?: Plugin[];
22
+ plugins: Plugin[];
12
23
  /**
13
24
  * Enables Vento's autotrim plugin.
14
- * ```js
25
+ * @example
15
26
  * // Set to an array of tags
16
27
  * autotrim: ['tag1', 'tag2']
17
- *
28
+ * @example
18
29
  * // Use Vento's defaults and Eleventy paired shortcodes
19
- * // If set to `true`, uses both
30
+ * // Setting `true` is functionally equivalent to both
31
+ * // `@vento` and `@11ty` being present
20
32
  * autotrim: ['@vento', '@11ty']
21
33
  * autotrim: true
22
- * ```
23
34
  */
24
- autotrim?: LiteralUnion<'@11ty' | '@vento', string>[] | boolean;
25
- /** Enable use of Eleventy filters */
26
- filters?: boolean;
27
- /** Enable use of Eleventy shortcodes */
28
- shortcodes?: boolean;
29
- /** Enable use of Eleventy paired shortcodes */
30
- pairedShortcodes?: boolean;
35
+ autotrim: LiteralUnion<'@11ty' | '@vento', string>[] | boolean;
36
+ /**
37
+ * Enable use of Eleventy filters
38
+ */
39
+ filters: boolean;
40
+ /**
41
+ * Enable use of Eleventy shortcodes
42
+ */
43
+ shortcodes: boolean;
44
+ /**
45
+ * Enable use of Eleventy paired shortcodes
46
+ */
47
+ pairedShortcodes: boolean;
31
48
  /**
32
49
  * A Vento configuration object.
33
- *
34
- * **Note that `ventoOptions.includes` defaults to
35
- * Eleventy's own `dir.includes` location.**
36
50
  * @see {@link https://vento.js.org/configuration/}
51
+ * @default
52
+ * {
53
+ * // Defaults to Eleventy's own `includes` directory
54
+ * includes: eleventyConfig.directories.includes
55
+ * }
37
56
  */
38
- ventoOptions?: ventojs.Options;
57
+ ventoOptions: ventojs.Options;
39
58
  }
40
59
  //#endregion
41
60
  //#region src/plugin.d.ts
42
- declare function VentoPlugin(eleventyConfig: UserConfig, userOptions: PluginOptions): void;
61
+ declare function VentoPlugin(eleventyConfig: UserConfig, userOptions?: Partial<PluginOptions>): void;
43
62
  //#endregion
44
63
  export { VentoPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleventy-plugin-vento",
3
- "version": "5.2.1",
3
+ "version": "5.3.0",
4
4
  "description": "Adds support for the Vento templating language to Eleventy.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -37,25 +37,25 @@
37
37
  "license": "MIT",
38
38
  "dependencies": {
39
39
  "debug": "4.4.3",
40
- "ventojs": "2.2.0"
40
+ "ventojs": "2.3.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "11ty.ts": "0.0.6",
44
44
  "@11ty/eleventy": "3.1.2",
45
45
  "@changesets/cli": "2.29.8",
46
- "@eslint/js": "9.39.1",
46
+ "@eslint/js": "9.39.2",
47
47
  "@types/debug": "4.1.12",
48
- "@types/node": "24.10.1",
49
- "eslint": "9.39.1",
48
+ "@types/node": "24.10.4",
49
+ "eslint": "9.39.2",
50
50
  "eslint-config-prettier": "10.1.8",
51
51
  "eslint-plugin-unicorn": "62.0.0",
52
- "globals": "16.5.0",
53
- "knip": "5.70.2",
54
- "prettier": "3.6.2",
55
- "tsdown": "0.16.7",
56
- "type-fest": "5.2.0",
52
+ "globals": "17.0.0",
53
+ "knip": "5.78.0",
54
+ "prettier": "3.7.4",
55
+ "tsdown": "0.18.4",
56
+ "type-fest": "5.3.1",
57
57
  "typescript": "5.9.3",
58
- "typescript-eslint": "8.48.0",
59
- "vitest": "4.0.14"
58
+ "typescript-eslint": "8.51.0",
59
+ "vitest": "4.0.16"
60
60
  }
61
61
  }