pin preact to 10.5 to resolve preact issue (#2170)

* pin preact to 10.5 to resolve preact issue

* fix: use current yarn.lock and only update preact

Co-authored-by: Nate Moore <nate@skypack.dev>
This commit is contained in:
Fred K. Schott 2021-12-09 10:33:53 -08:00 committed by GitHub
parent 9ac4259d2e
commit 5af24efb34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/renderer-preact': patch
---
Fix preact 10.6 regression by pinning to preact 10.5

View file

@ -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": {

View file

@ -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==