@astrojs/lit
Advanced tools
Comparing version 0.1.3 to 0.1.4
# @astrojs/lit | ||
## 0.1.4 | ||
### Patch Changes | ||
- [#3484](https://github.com/withastro/astro/pull/3484) [`55820fa7`](https://github.com/withastro/astro/commit/55820fa784d6d4f66a45092321a47c8ce9de5546) Thanks [@matthewp](https://github.com/matthewp)! - Wait for DOMCOntentLoaded to polyfill in Lit | ||
## 0.1.3 | ||
@@ -4,0 +10,0 @@ |
@@ -5,3 +5,5 @@ async function polyfill() { | ||
); | ||
hydrateShadowRoots(document.body); | ||
window.addEventListener('DOMContentLoaded', () => hydrateShadowRoots(document.body), { | ||
once: true, | ||
}); | ||
} | ||
@@ -8,0 +10,0 @@ |
@@ -80,3 +80,3 @@ /** @license Copyright 2020 Google LLC (BSD-3-Clause) */ | ||
let { hydrateShadowRoots: t } = await Promise.resolve().then(() => (S(), v)); | ||
t(document.body); | ||
window.addEventListener('DOMContentLoaded', () => t(document.body), { once: true }); | ||
} | ||
@@ -83,0 +83,0 @@ var x = new DOMParser() |
{ | ||
"name": "@astrojs/lit", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Use Lit components within Astro", | ||
@@ -29,8 +29,8 @@ "type": "module", | ||
"dependencies": { | ||
"@lit-labs/ssr": "^2.1.0" | ||
"@lit-labs/ssr": "^2.2.0" | ||
}, | ||
"devDependencies": { | ||
"astro": "1.0.0-beta.29", | ||
"astro-scripts": "0.0.3", | ||
"cheerio": "^1.0.0-rc.10" | ||
"astro": "1.0.0-beta.38", | ||
"astro-scripts": "0.0.4", | ||
"cheerio": "^1.0.0-rc.11" | ||
}, | ||
@@ -37,0 +37,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22678
375
Updated@lit-labs/ssr@^2.2.0