diff --git a/.changeset/curvy-crabs-pay.md b/.changeset/curvy-crabs-pay.md new file mode 100644 index 000000000..2d60381d8 --- /dev/null +++ b/.changeset/curvy-crabs-pay.md @@ -0,0 +1,5 @@ +--- +'@astrojs/renderer-preact': patch +--- + +Fix preact 10.6 regression by pinning to preact 10.5 diff --git a/packages/renderers/renderer-preact/package.json b/packages/renderers/renderer-preact/package.json index 3e893c7ae..e616d208f 100644 --- a/packages/renderers/renderer-preact/package.json +++ b/packages/renderers/renderer-preact/package.json @@ -18,7 +18,7 @@ }, "dependencies": { "@babel/plugin-transform-react-jsx": "^7.16.0", - "preact": "^10.5.15", + "preact": "~10.5.15", "preact-render-to-string": "^5.1.19" }, "engines": { diff --git a/yarn.lock b/yarn.lock index dd9711f36..c1b708857 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9164,7 +9164,7 @@ preact-render-to-string@^5.1.19: dependencies: pretty-format "^3.8.0" -preact@^10.5.15: +preact@~10.5.15: version "10.5.15" resolved "https://registry.yarnpkg.com/preact/-/preact-10.5.15.tgz#6df94d8afecf3f9e10a742fd8c362ddab464225f" integrity sha512-5chK29n6QcJc3m1lVrKQSQ+V7K1Gb8HeQY6FViQ5AxCAEGu3DaHffWNDkC9+miZgsLvbvU9rxbV1qinGHMHzqA==