@shikijs/engine-javascript 1.24.4 → 1.25.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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -4
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -10,13 +10,13 @@ function defaultJavaScriptRegexConstructor(pattern, options) {
10
10
  rules: {
11
11
  // Needed since TextMate grammars merge backrefs across patterns
12
12
  allowOrphanBackrefs: true,
13
- // Removing `\G` anchors in cases when they're not supported for emulation allows
14
- // supporting more grammars, but also allows some mismatches
15
- allowUnhandledGAnchors: true,
16
13
  // Improves search performance for generated regexes
17
14
  asciiWordBoundaries: true,
18
15
  // Follow `vscode-oniguruma` which enables this Oniguruma option by default
19
- captureGroup: true
16
+ captureGroup: true,
17
+ // Removing `\G` anchors in cases when they're not supported for emulation allows
18
+ // supporting more grammars, but also allows some mismatches
19
+ ignoreUnsupportedGAnchors: true
20
20
  },
21
21
  ...options
22
22
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/engine-javascript",
3
3
  "type": "module",
4
- "version": "1.24.4",
4
+ "version": "1.25.0",
5
5
  "description": "Engine for Shiki using JavaScript's native RegExp",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -31,8 +31,8 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@shikijs/vscode-textmate": "^9.3.1",
34
- "oniguruma-to-es": "0.8.1",
35
- "@shikijs/types": "1.24.4"
34
+ "oniguruma-to-es": "0.10.0",
35
+ "@shikijs/types": "1.25.0"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "unbuild",