Browse Source

chore: upgrade unified js dependencies and typing

Timothy Lin 2 năm trước cách đây
mục cha
commit
4f5a8ef587
3 tập tin đã thay đổi với 324 bổ sung271 xóa
  1. 314 262
      package-lock.json
  2. 9 9
      package.json
  3. 1 0
      src/generator.js

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 314 - 262
package-lock.json


+ 9 - 9
package.json

@@ -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": {
@@ -110,4 +110,4 @@
       "prettier --write"
     ]
   }
-}
+}

+ 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) {

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác