eleventy-plugin-vento 4.2.0 → 4.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 +12 -0
- package/dist/plugin.js +5 -2
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# eleventy-plugin-vento
|
|
2
2
|
|
|
3
|
+
## 4.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8369ae1: Update `debug` to 4.4.1
|
|
8
|
+
|
|
9
|
+
## 4.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- aa931db: handle shortcode names that start with the same sequence (fixes #220)
|
|
14
|
+
|
|
3
15
|
## 4.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/plugin.ts
|
|
2
|
-
import path from "
|
|
2
|
+
import path from "path";
|
|
3
3
|
import autotrimPlugin, { defaultTags as autotrimDefaultTags } from "ventojs/plugins/auto_trim.js";
|
|
4
4
|
|
|
5
5
|
// src/engine.ts
|
|
@@ -10,7 +10,10 @@ function createVentoTag(tagInfo) {
|
|
|
10
10
|
let LEVEL = 1;
|
|
11
11
|
const IS_PAIRED = tagInfo.group === "pairedShortcodes";
|
|
12
12
|
const tag = (env, code, output, tokens) => {
|
|
13
|
-
|
|
13
|
+
const match = code === tagInfo.name || code.startsWith(`${tagInfo.name} `);
|
|
14
|
+
if (!match) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
14
17
|
const { dataVarname } = env.options;
|
|
15
18
|
const thisArg = `{
|
|
16
19
|
page: ${dataVarname}.page,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eleventy-plugin-vento",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "Adds support for the Vento templating language to Eleventy.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -36,29 +36,29 @@
|
|
|
36
36
|
},
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"debug": "4.4.
|
|
39
|
+
"debug": "4.4.1",
|
|
40
40
|
"ventojs": "1.12.16"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"11ty.ts": "0.0.5",
|
|
44
|
-
"@11ty/eleventy": "3.
|
|
45
|
-
"@changesets/cli": "2.
|
|
46
|
-
"@eslint/js": "9.
|
|
44
|
+
"@11ty/eleventy": "3.1.0",
|
|
45
|
+
"@changesets/cli": "2.29.4",
|
|
46
|
+
"@eslint/js": "9.27.0",
|
|
47
47
|
"@types/debug": "4.1.12",
|
|
48
48
|
"@types/eslint-config-prettier": "6.11.3",
|
|
49
|
-
"@types/node": "22.
|
|
50
|
-
"eslint": "9.
|
|
51
|
-
"eslint-config-prettier": "10.1.
|
|
52
|
-
"eslint-plugin-unicorn": "
|
|
53
|
-
"globals": "16.
|
|
54
|
-
"nano-spawn": "0.
|
|
49
|
+
"@types/node": "22.15.19",
|
|
50
|
+
"eslint": "9.27.0",
|
|
51
|
+
"eslint-config-prettier": "10.1.5",
|
|
52
|
+
"eslint-plugin-unicorn": "59.0.1",
|
|
53
|
+
"globals": "16.1.0",
|
|
54
|
+
"nano-spawn": "1.0.1",
|
|
55
55
|
"picocolors": "1.1.1",
|
|
56
|
-
"tsup": "8.
|
|
57
|
-
"tsx": "4.19.
|
|
58
|
-
"type-fest": "4.
|
|
59
|
-
"typescript": "5.8.
|
|
60
|
-
"typescript-eslint": "8.
|
|
61
|
-
"vitest": "3.
|
|
56
|
+
"tsup": "8.5.0",
|
|
57
|
+
"tsx": "4.19.4",
|
|
58
|
+
"type-fest": "4.41.0",
|
|
59
|
+
"typescript": "5.8.3",
|
|
60
|
+
"typescript-eslint": "8.32.1",
|
|
61
|
+
"vitest": "3.1.3"
|
|
62
62
|
},
|
|
63
63
|
"prettier": {
|
|
64
64
|
"bracketSameLine": true,
|