@adobe/htlengine 6.3.8 → 6.4.2
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/.renovaterc.json +27 -1
- package/CHANGELOG.md +21 -0
- package/package.json +17 -17
- package/src/compiler/Compiler.js +4 -1
- package/src/parser/plugins/UsePlugin.js +3 -1
package/.renovaterc.json
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": ["github>adobe/helix-shared"]
|
|
2
|
+
"extends": ["github>adobe/helix-shared"],
|
|
3
|
+
"packageRules": [
|
|
4
|
+
{
|
|
5
|
+
"packageNames": ["rehype-parse"],
|
|
6
|
+
"allowedVersions": "<8.0.0"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"packageNames": ["rehype-stringify"],
|
|
10
|
+
"allowedVersions": "<9.0.0"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"packageNames": ["remark-rehype"],
|
|
14
|
+
"allowedVersions": "<9.0.0"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"packageNames": ["remark-parse"],
|
|
18
|
+
"allowedVersions": "<10.0.0"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"packageNames": ["unified"],
|
|
22
|
+
"allowedVersions": "<10.0.0"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"packageNames": ["unist-util-inspect"],
|
|
26
|
+
"allowedVersions": "<7.0.0"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
3
29
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [6.4.2](https://github.com/adobe/htlengine/compare/v6.4.1...v6.4.2) (2022-04-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency fs-extra to v10.1.0 ([#409](https://github.com/adobe/htlengine/issues/409)) ([b10849f](https://github.com/adobe/htlengine/commit/b10849f64da82b7bf1b9ebc5ca1ba08296a98475))
|
|
7
|
+
|
|
8
|
+
## [6.4.1](https://github.com/adobe/htlengine/compare/v6.4.0...v6.4.1) (2022-02-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([8beb64d](https://github.com/adobe/htlengine/commit/8beb64d609b4ab5b862b16f58f6afb232bcfefb4))
|
|
14
|
+
|
|
15
|
+
# [6.4.0](https://github.com/adobe/htlengine/compare/v6.3.8...v6.4.0) (2021-12-16)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* trigger release ([a426c0a](https://github.com/adobe/htlengine/commit/a426c0a7ab41736a17d64dd321b69e34ad93d2ed))
|
|
21
|
+
|
|
1
22
|
## [6.3.8](https://github.com/adobe/htlengine/compare/v6.3.7...v6.3.8) (2021-07-26)
|
|
2
23
|
|
|
3
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/htlengine",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.2",
|
|
4
4
|
"description": "Javascript Based HTL (Sightly) parser",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/htlengine.git"
|
|
10
10
|
},
|
|
11
11
|
"engines": {
|
|
12
|
-
"node": ">=
|
|
12
|
+
"node": ">=14"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "npm run build:compile && npm run build:railroad",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"lint": "eslint ."
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"fs-extra": "10.
|
|
25
|
+
"fs-extra": "10.1.0",
|
|
26
26
|
"he": "1.2.0",
|
|
27
|
-
"moment": "2.29.
|
|
27
|
+
"moment": "2.29.2",
|
|
28
28
|
"moo": "0.5.1",
|
|
29
29
|
"nearley": "2.20.1",
|
|
30
30
|
"node-esapi": "0.0.1",
|
|
@@ -34,27 +34,27 @@
|
|
|
34
34
|
"source-map": "0.7.3",
|
|
35
35
|
"unified": "9.2.2",
|
|
36
36
|
"unist-util-inspect": "6.0.1",
|
|
37
|
-
"xregexp": "5.0
|
|
37
|
+
"xregexp": "5.1.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@semantic-release/changelog": "
|
|
41
|
-
"@semantic-release/git": "
|
|
42
|
-
"@semantic-release/github": "
|
|
43
|
-
"c8": "7.
|
|
40
|
+
"@semantic-release/changelog": "6.0.1",
|
|
41
|
+
"@semantic-release/git": "10.0.1",
|
|
42
|
+
"@semantic-release/github": "8.0.4",
|
|
43
|
+
"c8": "7.11.0",
|
|
44
44
|
"codecov": "3.8.3",
|
|
45
|
-
"eslint": "
|
|
46
|
-
"eslint-config-airbnb-base": "
|
|
45
|
+
"eslint": "8.13.0",
|
|
46
|
+
"eslint-config-airbnb-base": "15.0.0",
|
|
47
47
|
"eslint-plugin-header": "3.1.1",
|
|
48
|
-
"eslint-plugin-import": "2.
|
|
48
|
+
"eslint-plugin-import": "2.26.0",
|
|
49
49
|
"ghooks": "2.0.4",
|
|
50
|
-
"jsdom": "
|
|
51
|
-
"lint-staged": "
|
|
52
|
-
"mocha": "9.
|
|
53
|
-
"mocha-junit-reporter": "2.0.
|
|
50
|
+
"jsdom": "19.0.0",
|
|
51
|
+
"lint-staged": "12.3.8",
|
|
52
|
+
"mocha": "9.2.2",
|
|
53
|
+
"mocha-junit-reporter": "2.0.2",
|
|
54
54
|
"rehype-stringify": "8.0.0",
|
|
55
55
|
"remark-parse": "9.0.0",
|
|
56
56
|
"remark-rehype": "8.1.0",
|
|
57
|
-
"semantic-release": "
|
|
57
|
+
"semantic-release": "19.0.2"
|
|
58
58
|
},
|
|
59
59
|
"lint-staged": {
|
|
60
60
|
"*.js": "eslint"
|
package/src/compiler/Compiler.js
CHANGED
|
@@ -336,7 +336,10 @@ module.exports = class Compiler {
|
|
|
336
336
|
} else {
|
|
337
337
|
// parse the template
|
|
338
338
|
const res = await this._parse(
|
|
339
|
-
templateSource,
|
|
339
|
+
templateSource,
|
|
340
|
+
path.dirname(templatePath),
|
|
341
|
+
mods,
|
|
342
|
+
templates,
|
|
340
343
|
);
|
|
341
344
|
|
|
342
345
|
// extract the template functions and discard commands outside the functions
|
|
@@ -23,7 +23,9 @@ module.exports = class UsePlugin extends Plugin {
|
|
|
23
23
|
if (this._expression.root instanceof StringConstant) {
|
|
24
24
|
const lib = this._expression.root.text;
|
|
25
25
|
stream.write(new FileReference(
|
|
26
|
-
variableName,
|
|
26
|
+
variableName,
|
|
27
|
+
lib,
|
|
28
|
+
[new MapLiteral(this._expression.options)],
|
|
27
29
|
), true);
|
|
28
30
|
return;
|
|
29
31
|
}
|