Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Lit integration removal #9065

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions src/content/docs/en/guides/upgrade-to/v5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -362,14 +362,24 @@ Choose a different value

### Deprecated: The Lit integration (integrations) (PLT2146)

In Astro v4.x,
In Astro v4.x, [Lit](https://lit.dev/) was a core-maintained framework library through the `@astrojs/lit` package.

Astro v5.0 removes the integration
Astro v5.0 removes the integration and it will not receive further updates for compatibility with 5.x and above.


#### What should I do?

Choose a different value
You can continue to use Lit for client components simply by adding a client-side script tag. For example:

```astro
<script>
import "../components/MyTabs";
</script>

<my-tabs title="These are my tabs">...</my-tabs>
```

If you're interested in maintaining a Lit integration yourself, using the [latest version](https://github.com/withastro/astro/tree/astro%404.13.0/packages/integrations/lit) of `@astrojs/lit` as a starting point and upgrading relevant packages could get you going quickly.

### Deprecated: `define:vars` (core) (PLT2145)

Expand Down
Loading