From f8d0bdcc5121560bc96c36e3c750d6d043ac5814 Mon Sep 17 00:00:00 2001 From: bluwy Date: Wed, 5 Jul 2023 22:44:01 +0800 Subject: [PATCH] Fix markdoc smoke fail --- .changeset/many-nails-arrive.md | 5 +++++ packages/integrations/markdoc/components/TreeNode.ts | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/many-nails-arrive.md diff --git a/.changeset/many-nails-arrive.md b/.changeset/many-nails-arrive.md new file mode 100644 index 000000000000..b620c712a1a3 --- /dev/null +++ b/.changeset/many-nails-arrive.md @@ -0,0 +1,5 @@ +--- +'@astrojs/markdoc': patch +--- + +Handle internal access change diff --git a/packages/integrations/markdoc/components/TreeNode.ts b/packages/integrations/markdoc/components/TreeNode.ts index 082495a87f24..31976c19d321 100644 --- a/packages/integrations/markdoc/components/TreeNode.ts +++ b/packages/integrations/markdoc/components/TreeNode.ts @@ -89,7 +89,10 @@ export const ComponentNode = createComponent({ ); // Let the runtime know that this component is being used. - result.propagators.set( + // `result.propagators` has been moved to `result._metadata.propagators` + // TODO: remove this fallback in the next markdoc integration major + const propagators = result._metadata.propagators || result.propagators; + propagators.set( {}, { init() {