From 6a417ad2495c1e23d765ecd3536fe108cf920519 Mon Sep 17 00:00:00 2001 From: Rafael Delboni Date: Mon, 5 Aug 2024 10:32:36 -0300 Subject: [PATCH] fix: bump vfile --- package-lock.json | 8 ++++---- package.json | 2 +- shadow-cljs.edn | 27 ++++++++++++++++++++++++--- 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 73270a9..0041ae0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "react-syntax-highlighter": "^15.5.0", "remark-gfm": "^4.0.0", "use-sync-external-store": "^1.2.2", - "vfile": "6.0.1" + "vfile": "6.0.2" }, "devDependencies": { "@testing-library/react": "^14.3.1", @@ -7215,9 +7215,9 @@ } }, "node_modules/vfile": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.1.tgz", - "integrity": "sha512-1bYqc7pt6NIADBJ98UiG0Bn/CHIVOoZ/IyEkqIruLg0mE1BKzkOXY2D6CSqQIcKqgadppE5lrxgWXJmXd7zZJw==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.2.tgz", + "integrity": "sha512-zND7NlS8rJYb/sPqkb13ZvbbUoExdbi4w3SfRrMq6R3FvnLQmmfpajJNITuuYm6AZ5uao9vy4BAos3EXBPf2rg==", "dependencies": { "@types/unist": "^3.0.0", "unist-util-stringify-position": "^4.0.0", diff --git a/package.json b/package.json index 8582cb0..eec63d4 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "react-syntax-highlighter": "^15.5.0", "remark-gfm": "^4.0.0", "use-sync-external-store": "^1.2.2", - "vfile": "6.0.1" + "vfile": "6.0.2" }, "devDependencies": { "@testing-library/react": "^14.3.1", diff --git a/shadow-cljs.edn b/shadow-cljs.edn index 04161ef..e442baf 100644 --- a/shadow-cljs.edn +++ b/shadow-cljs.edn @@ -24,16 +24,37 @@ "resources/public/js/core.js"]) (codes.clj.docs.frontend.dev.shadow.hooks/replace-hashed-files "resources/index.src.html" - "resources/public/index.html")]} + "resources/public/index.html")] + ; vfile 6.0.2, react-markdown transitive dependency need this. + :js-options {:resolve {"#minpath" {:target :npm + :require "vfile/lib/minpath.browser.js"} + "#minproc" {:target :npm + :require "vfile/lib/minproc.browser.js"} + "#minurl" {:target :npm + :require "vfile/lib/minurl.browser.js"}}}} :tests {:target :browser-test :test-dir "resources/tests" - :ns-regexp "-test$"} + :ns-regexp "-test$" + ; vfile 6.0.2, react-markdown transitive dependency need this. + :js-options {:resolve {"#minpath" {:target :npm + :require "vfile/lib/minpath.browser.js"} + "#minproc" {:target :npm + :require "vfile/lib/minproc.browser.js"} + "#minurl" {:target :npm + :require "vfile/lib/minurl.browser.js"}}}} :ci-tests {:target :karma :output-to "resources/tests/ci.js" :ns-regexp "-test$" - :compiler-options {:static-fns false}} + :compiler-options {:static-fns false} + ; vfile 6.0.2, react-markdown transitive dependency need this. + :js-options {:resolve {"#minpath" {:target :npm + :require "vfile/lib/minpath.browser.js"} + "#minproc" {:target :npm + :require "vfile/lib/minproc.browser.js"} + "#minurl" {:target :npm + :require "vfile/lib/minurl.browser.js"}}}} :node-tests {:target :node-test :compiler-options {:reader-features #{:node}}