eleventy-plugin-vento 4.0.0-beta.0 → 4.0.1

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,6 +1,12 @@
1
1
  # eleventy-plugin-vento
2
2
 
3
- ## 4.0.0-beta.0
3
+ ## 4.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - - hotfix - include `types` field in package.json to declare bundled types
8
+
9
+ ## 4.0.0
4
10
 
5
11
  ### Major Changes
6
12
 
@@ -24,6 +30,36 @@
24
30
 
25
31
  These changes also include `.d.ts` generation as part of the build step. If you're using `11ty.ts`'s `defineConfig` function, it will pick the types from this plugin up automatically. (resolves #22)
26
32
 
33
+ ## 4.0.0-beta.0
34
+
35
+ ### Major Changes
36
+
37
+ - fc80b5f: Removed ignore tag `{{! ... }}` syntax. As mentioned in the 3.3.0 release notes, the now preferred way to "pass through" tags is with string literals.
38
+
39
+ You should update code with `{{! ... }}` to be `{{ '{{ }}' }}` like so:
40
+
41
+ ```diff
42
+ - {{! if condition }}
43
+ + {{ '{{ if condition }}' }}
44
+ do something
45
+ - {{! /if }}
46
+ + {{ '{{ /if }}' }}
47
+ ```
48
+
49
+ While more verbose, this change ensures that there isn't any ambiguity between a tag that needs ignoring and JS negation expressions.
50
+
51
+ ### Minor Changes
52
+
53
+ - 2b5f337: Rewrite project in Typescript and add a build/packaging step for releases and testing.
54
+
55
+ These changes also include `.d.ts` generation as part of the build step. If you're using `11ty.ts`'s `defineConfig` function, it will pick the types from this plugin up automatically. (resolves #22)
56
+
57
+ ## 3.4.0
58
+
59
+ ### Minor Changes
60
+
61
+ - 8c6b8a2: Update `ventojs` to v1.12.11
62
+
27
63
  ## 3.3.0
28
64
 
29
65
  ### Minor Changes
package/dist/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
  import path from "node:path";
3
3
  import autotrimPlugin, { defaultTags as autotrimDefaultTags } from "ventojs/plugins/auto_trim.js";
4
4
 
5
- // src/engine.ts
5
+ // src/create-vento-interface.ts
6
6
  import { default as ventojs } from "ventojs";
7
7
 
8
- // src/modules/create-vento-tag.ts
8
+ // src/create-vento-tag.ts
9
9
  function createVentoTag(spec) {
10
10
  const IS_PAIRED = spec.group === "pairedShortcodes";
11
11
  const tag = (env, code, output, tokens) => {
@@ -45,7 +45,7 @@ function createVentoTag(spec) {
45
45
  });
46
46
  }
47
47
 
48
- // src/modules/utils.ts
48
+ // src/utils.ts
49
49
  import createDebugger from "debug";
50
50
  var debugBaseNamespace = "Eleventy:Vento";
51
51
  var DEBUG = {
@@ -75,8 +75,8 @@ function runCompatibilityCheck(config) {
75
75
  }
76
76
  }
77
77
 
78
- // src/engine.ts
79
- function createVentoEngine(options) {
78
+ // src/create-vento-interface.ts
79
+ function createVentoInterface(options) {
80
80
  const env = ventojs(options);
81
81
  env.utils._11tyFns = { shortcodes: {}, pairedShortcodes: {} };
82
82
  env.utils._11tyCtx = {};
@@ -191,7 +191,7 @@ function VentoPlugin(eleventyConfig, userOptions) {
191
191
  options.plugins.push(autotrimPlugin({ tags: [...tagSet] }));
192
192
  }
193
193
  DEBUG.setup("Initializing Vento environment");
194
- const engine = createVentoEngine(options.ventoOptions);
194
+ const engine = createVentoInterface(options.ventoOptions);
195
195
  DEBUG.setup("Loading plugins: %o", options.plugins);
196
196
  engine.loadPlugins(options.plugins);
197
197
  if (options.filters) {
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "eleventy-plugin-vento",
3
- "version": "4.0.0-beta.0",
3
+ "version": "4.0.1",
4
4
  "description": "Adds support for the Vento templating language to Eleventy.",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=18"
8
8
  },
9
+ "types": "./dist/index.d.ts",
9
10
  "exports": {
10
11
  ".": {
11
12
  "import": "./dist/index.js",
@@ -36,18 +37,18 @@
36
37
  "license": "MIT",
37
38
  "dependencies": {
38
39
  "debug": "4.3.7",
39
- "ventojs": "1.12.10"
40
+ "ventojs": "1.12.11"
40
41
  },
41
42
  "devDependencies": {
42
43
  "11ty.ts": "0.0.5",
43
44
  "@11ty/eleventy": "3.0.0",
44
45
  "@changesets/cli": "2.27.9",
45
- "@eslint/js": "9.13.0",
46
+ "@eslint/js": "9.14.0",
46
47
  "@types/debug": "4.1.12",
47
48
  "@types/eslint-config-prettier": "6.11.3",
48
49
  "@types/eslint__js": "8.42.3",
49
50
  "@types/node": "22.8.4",
50
- "eslint": "9.13.0",
51
+ "eslint": "9.14.0",
51
52
  "eslint-config-prettier": "9.1.0",
52
53
  "eslint-plugin-unicorn": "56.0.0",
53
54
  "tsup": "8.3.5",