Skip to content

Commit

Permalink
[@astrojs/lit] lit 3.0 compatibility (#8822)
Browse files Browse the repository at this point in the history
* updates packages

* [Fix] pnpm-lock

* [Fix] updates

* revert dev dependencies

* Update lockfile

* Update lit version in the e2e tests

* Adding changeset

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
  • Loading branch information
Geoffrey-Pliez and matthewp committed Dec 12, 2023
1 parent 4137927 commit b0a7194
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 28 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-comics-work.md
@@ -0,0 +1,5 @@
---
'@astrojs/lit': major
---

Upgrade to Lit 3.0
2 changes: 1 addition & 1 deletion packages/astro/e2e/fixtures/lit-component/package.json
Expand Up @@ -6,6 +6,6 @@
"@astrojs/lit": "workspace:*",
"@webcomponents/template-shadowroot": "^0.2.1",
"astro": "workspace:*",
"lit": "^2.8.0"
"lit": "^3.1.0"
}
}
10 changes: 5 additions & 5 deletions packages/integrations/lit/package.json
Expand Up @@ -42,9 +42,9 @@
"test": "mocha"
},
"dependencies": {
"@lit-labs/ssr": "3.1.7",
"@lit-labs/ssr-client": "1.1.3",
"@lit-labs/ssr-dom-shim": "^1.1.1",
"@lit-labs/ssr": "^3.2.0",
"@lit-labs/ssr-client": "^1.1.5",
"@lit-labs/ssr-dom-shim": "^1.1.2",
"parse5": "^7.1.2"
},
"overrides": {
Expand All @@ -57,13 +57,13 @@
"astro-scripts": "workspace:*",
"chai": "^4.3.7",
"cheerio": "1.0.0-rc.12",
"lit": "^2.8.0",
"lit": "^3.1.0",
"mocha": "^10.2.0",
"sass": "^1.69.5"
},
"peerDependencies": {
"@webcomponents/template-shadowroot": "^0.2.1",
"lit": "^2.7.0"
"lit": "^3.1.0"
},
"publishConfig": {
"provenance": true
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/lit/src/index.ts
Expand Up @@ -9,7 +9,7 @@ function getViteConfiguration() {
'@astrojs/lit/client-shim.js',
'@astrojs/lit/hydration-support.js',
'@webcomponents/template-shadowroot/template-shadowroot.js',
'lit/experimental-hydrate-support.js',
"@lit-labs/ssr-client/lit-element-hydrate-support.js",
],
exclude: ['@astrojs/lit/server.js'],
},
Expand Down
70 changes: 49 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0a7194

Please sign in to comment.