From 289ad71ea2a6171d14a7fa4b2af081271f87be40 Mon Sep 17 00:00:00 2001 From: JounQin Date: Tue, 5 Dec 2023 23:45:46 +0800 Subject: [PATCH] chore: bump unified-engine --- package.json | 6 ++--- packages/eslint-mdx/package.json | 4 ++-- packages/eslint-mdx/src/worker.ts | 4 ++-- patches/unified-engine+11.1.1.patch | 10 -------- yarn.lock | 36 ++++++++++++++--------------- 5 files changed, 25 insertions(+), 35 deletions(-) delete mode 100644 patches/unified-engine+11.1.1.patch diff --git a/package.json b/package.json index b79b9bd..0631e69 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,8 @@ "@types/eslint": "^8.44.8", "@types/eslint-plugin-markdown": "^2.0.2", "@types/jest": "^29.5.10", - "@types/node": "^20.10.1", - "@types/react": "^18.2.39", + "@types/node": "^20.10.3", + "@types/react": "^18.2.42", "@types/unist": "^3.0.2", "jest": "^29.7.0", "patch-package": "^8.0.0", @@ -54,7 +54,7 @@ "mdast-util-gfm": "^3.0.0", "prettier": "^2.8.8", "unified": "^11.0.4", - "unified-engine": "^11.1.1" + "unified-engine": "^11.2.0" }, "commitlint": { "extends": [ diff --git a/packages/eslint-mdx/package.json b/packages/eslint-mdx/package.json index 1f8044f..5ca8876 100644 --- a/packages/eslint-mdx/package.json +++ b/packages/eslint-mdx/package.json @@ -37,10 +37,10 @@ "remark-mdx": "^3.0.0", "remark-parse": "^11.0.0", "remark-stringify": "^11.0.0", - "synckit": "^0.8.5", + "synckit": "^0.8.6", "tslib": "^2.6.2", "unified": "^11.0.4", - "unified-engine": "^11.1.1", + "unified-engine": "^11.2.0", "unist-util-visit": "^5.0.0", "uvu": "^0.5.6", "vfile": "^6.0.1" diff --git a/packages/eslint-mdx/src/worker.ts b/packages/eslint-mdx/src/worker.ts index 59b8ead..2bddd01 100644 --- a/packages/eslint-mdx/src/worker.ts +++ b/packages/eslint-mdx/src/worker.ts @@ -32,7 +32,7 @@ import type { import type { Options } from 'micromark-extension-mdx-expression' import { extractProperties, runAsWorker } from 'synckit' import type { Processor } from 'unified' -import type { Configuration, Result } from 'unified-engine' +import type { Configuration, ConfigResult } from 'unified-engine' import type { Node } from 'unist' import { ok as assert } from 'uvu/assert' import type { VFileMessage } from 'vfile-message' @@ -79,7 +79,7 @@ const getRemarkConfig = async (searchFrom: string) => { }) } - return new Promise((resolve, reject) => + return new Promise((resolve, reject) => config.load(searchFrom, (error, result) => { error ? reject(error) : resolve(result) }), diff --git a/patches/unified-engine+11.1.1.patch b/patches/unified-engine+11.1.1.patch deleted file mode 100644 index 5fe1be2..0000000 --- a/patches/unified-engine+11.1.1.patch +++ /dev/null @@ -1,10 +0,0 @@ -diff --git a/node_modules/unified-engine/index.d.ts b/node_modules/unified-engine/index.d.ts -index 0e25d67..503f1ab 100644 ---- a/node_modules/unified-engine/index.d.ts -+++ b/node_modules/unified-engine/index.d.ts -@@ -1,4 +1,4 @@ --export { Configuration } from "./lib/configuration.js"; -+export { Configuration, Result } from "./lib/configuration.js"; - export { engine } from "./lib/index.js"; - export type Completer = import('./lib/file-set.js').Completer; - export type Callback = import('./lib/index.js').Callback; diff --git a/yarn.lock b/yarn.lock index 28da646..d022cef 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3045,10 +3045,10 @@ resolved "https://registry.yarnpkg.com/@types/mustache/-/mustache-4.2.5.tgz#9129f0d6857f976e00e171bbb3460e4b702f84ef" integrity sha512-PLwiVvTBg59tGFL/8VpcGvqOu3L4OuveNvPi0EYbWchRdEVP++yRUXJPFl+CApKEq13017/4Nf7aQ5lTtHUNsA== -"@types/node@*", "@types/node@^20.0.0", "@types/node@^20.10.1": - version "20.10.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.10.1.tgz#d2c96f356c3125fedc983d74c424910c3767141c" - integrity sha512-T2qwhjWwGH81vUEx4EXmBKsTJRXFXNZTL4v0gi01+zyBmCwzE6TyHszqX01m+QHTEq+EZNo13NeJIdEqf+Myrg== +"@types/node@*", "@types/node@^20.0.0", "@types/node@^20.10.3": + version "20.10.3" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.10.3.tgz#4900adcc7fc189d5af5bb41da8f543cea6962030" + integrity sha512-XJavIpZqiXID5Yxnxv3RUDKTN5b81ddNC3ecsA0SoFXz/QU8OGBwZGMomiq0zw+uuqbL/krztv/DINAQ/EV4gg== dependencies: undici-types "~5.26.4" @@ -3077,10 +3077,10 @@ resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.11.tgz#2596fb352ee96a1379c657734d4b913a613ad563" integrity sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng== -"@types/react@^18.2.39": - version "18.2.39" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.39.tgz#744bee99e053ad61fe74eb8b897f3ab5b19a7e25" - integrity sha512-Oiw+ppED6IremMInLV4HXGbfbG6GyziY3kqAwJYOR0PNbkYDmLWQA3a95EhdSmamsvbkJN96ZNN+YD+fGjzSBA== +"@types/react@^18.2.42": + version "18.2.42" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.42.tgz#6f6b11a904f6d96dda3c2920328a97011a00aba7" + integrity sha512-c1zEr96MjakLYus/wPnuWDo1/zErfdU9rNsIGmE+NV71nx88FG9Ttgo5dqorXTu/LImX2f63WBP986gJkMPNbA== dependencies: "@types/prop-types" "*" "@types/scheduler" "*" @@ -11077,13 +11077,13 @@ svg-tags@^1.0.0: resolved "https://registry.yarnpkg.com/svg-tags/-/svg-tags-1.0.0.tgz#58f71cee3bd519b59d4b2a843b6c7de64ac04764" integrity sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA== -synckit@^0.8.1, synckit@^0.8.5: - version "0.8.5" - resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.8.5.tgz#b7f4358f9bb559437f9f167eb6bc46b3c9818fa3" - integrity sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q== +synckit@^0.8.1, synckit@^0.8.5, synckit@^0.8.6: + version "0.8.6" + resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.8.6.tgz#b69b7fbce3917c2673cbdc0d87fb324db4a5b409" + integrity sha512-laHF2savN6sMeHCjLRkheIU4wo3Zg9Ln5YOjOo7sZ5dVQW8yF5pPE5SIw1dsPhq3TRp1jisKRCdPhfs/1WMqDA== dependencies: - "@pkgr/utils" "^2.3.1" - tslib "^2.5.0" + "@pkgr/utils" "^2.4.2" + tslib "^2.6.2" tapable@^2.2.0: version "2.2.1" @@ -11462,10 +11462,10 @@ unicode-property-aliases-ecmascript@^2.0.0: resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== -unified-engine@^10.0.1, unified-engine@^11.1.1: - version "11.1.1" - resolved "https://registry.yarnpkg.com/unified-engine/-/unified-engine-11.1.1.tgz#6d59bca82f0002fa5cd70e44a93f4fec51ecd2df" - integrity sha512-uVx/R+Q8V5wv5EPdPzBPPscSKpbqWeqqIc0lMfDcn3aS+QDENTpDY+wdPQ5oswuQSpPn/miuP0FspIwo19++IA== +unified-engine@^10.0.1, unified-engine@^11.2.0: + version "11.2.0" + resolved "https://registry.yarnpkg.com/unified-engine/-/unified-engine-11.2.0.tgz#bfd7296368a3b9cf7c36e1ab1d9db8327260a39f" + integrity sha512-H9wEDpBSM0cpEUuuYAOIiPzLCVN0pjASZZ6FFNzgzYS/HHzl9tArk/ereOMGtcF8m8vgjzw+HrU3YN7oenT7Ww== dependencies: "@types/concat-stream" "^2.0.0" "@types/debug" "^4.0.0"