@shikijs/transformers 2.0.0 → 2.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/dist/index.mjs +4 -3
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -170,9 +170,10 @@ function v1ClearEndCommentPrefix(text) {
|
|
|
170
170
|
return text;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
function createCommentNotationTransformer(name, regex, onMatch, matchAlgorithm
|
|
174
|
-
if (matchAlgorithm
|
|
175
|
-
|
|
173
|
+
function createCommentNotationTransformer(name, regex, onMatch, matchAlgorithm) {
|
|
174
|
+
if (matchAlgorithm == null) {
|
|
175
|
+
matchAlgorithm = "v1";
|
|
176
|
+
warnDeprecated('The default `matchAlgorithm: "v1"` is deprecated and will be removed in the future. Please explicitly set `matchAlgorithm: "v3"` in the transformer options.', 3);
|
|
176
177
|
}
|
|
177
178
|
return {
|
|
178
179
|
name,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shikijs/transformers",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"description": "Collective of common transformers transformers for Shiki",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@shikijs/
|
|
34
|
-
"@shikijs/
|
|
33
|
+
"@shikijs/core": "2.0.1",
|
|
34
|
+
"@shikijs/types": "2.0.1"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "unbuild",
|