@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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -3
  2. 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 = "v1") {
174
- if (matchAlgorithm === "v1") {
175
- warnDeprecated('`matchAlgorithm: "v1"` is deprecated and will be removed in the future. Please explicitly set `matchAlgorithm: "v3"` in the transformer options.', 3);
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.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/types": "2.0.0",
34
- "@shikijs/core": "2.0.0"
33
+ "@shikijs/core": "2.0.1",
34
+ "@shikijs/types": "2.0.1"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "unbuild",