Sfoglia il codice sorgente

Merge pull request #70 from timlrx/upgrade/unified

Upgrade unified js packages and typings
Timothy 2 anni fa
parent
commit
b4063ff60e
3 ha cambiato i file con 326 aggiunte e 273 eliminazioni
  1. 316 264
      package-lock.json
  2. 9 9
      package.json
  3. 1 0
      src/generator.js

File diff suppressed because it is too large
+ 316 - 264
package-lock.json


+ 9 - 9
package.json

@@ -1,6 +1,6 @@
 {
   "name": "rehype-prism-plus",
-  "version": "1.6.3",
+  "version": "2.0.0",
   "description": "rehype plugin to highlight code blocks in HTML with Prism (via refractor) with line highlighting and line numbers",
   "source": "index.js",
   "files": [
@@ -70,12 +70,12 @@
   },
   "homepage": "https://github.com/timlrx/rehype-prism-plus#readme",
   "dependencies": {
-    "hast-util-to-string": "^2.0.0",
+    "hast-util-to-string": "^3.0.0",
     "parse-numeric-range": "^1.3.0",
     "refractor": "^4.8.0",
-    "rehype-parse": "^8.0.2",
-    "unist-util-filter": "^4.0.0",
-    "unist-util-visit": "^4.0.0"
+    "rehype-parse": "^9.0.0",
+    "unist-util-filter": "^5.0.0",
+    "unist-util-visit": "^5.0.0"
   },
   "devDependencies": {
     "dedent": "^0.7.0",
@@ -86,11 +86,11 @@
     "lint-staged": "^11.1.2",
     "microbundle": "^0.15.1",
     "prettier": "^2.8.8",
-    "rehype": "^12.0.0",
-    "remark": "^14.0.2",
-    "remark-rehype": "^10.1.0",
+    "rehype": "^13.0.1",
+    "remark": "^15.0.1",
+    "remark-rehype": "^11.0.0",
     "typescript": "5.1.3",
-    "unified": "^10.1.0",
+    "unified": "^11.0.4",
     "uvu": "^0.5.1"
   },
   "prettier": {

+ 1 - 0
src/generator.js

@@ -187,6 +187,7 @@ const rehypePrismGenerator = (refractor) => {
         return
       }
 
+      // @ts-ignore meta is a custom code block property
       let meta = /** @type {string} */ (node?.data?.meta || node?.properties?.metastring || '')
       // Coerce className to array
       if (node.properties.className) {

Some files were not shown because too many files changed in this diff