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

Remove @astrojs/lit #11680

Merged
merged 9 commits into from
Aug 19, 2024
Merged

Remove @astrojs/lit #11680

merged 9 commits into from
Aug 19, 2024

Conversation

matthewp
Copy link
Contributor

@matthewp matthewp commented Aug 12, 2024

Changes

This removes the Lit integration as an official integration. The reasons for doing so in 5.0:

  • Only 1% of Astro users use this integration.
  • SSR support in Lit is at a lower-level of support due to be a Labs project: https://lit.dev/docs/libraries/labs/, and has been in this state since we added support a couple of years ago.
  • The maintenance cost of fixing bugs in this integration is too high given the low usage. Some PRs for upgrading Lit versions have taken quite a long time. We can't justify the core team being responsible for this going forward.
  • There used to be community contributions to fix bugs but this has fallen off for various reasons.

Given that, this PR removes the integration as one that is officially supported by the Astro core team. Interested community members are encouraged to fork the integration and continue the development in another repository.

Testing

  • Tests removed

Docs

This removes the Lit integration as an official integration. The reasons
for doing so in 5.0:

- Only 1% of Astro users use this integration.
- SSR support in Lit is at a lower-level of support due to be a Labs
project: https://lit.dev/docs/libraries/labs/, and has been in this
state since we added support a couple of years ago.
- The maintenance cost of fixing bugs in this integration is too high
given the low usage. Some PRs for upgrading Lit versions have taken
quite a long time. We can't justify the core team being responsible for
this going forward.
- There used to be community contributions to fix bugs but this has
fallen off for various reasons.

Given that, this PR removes the integration as one that is officially
supported by the Astro core team. Interested community members are
encouraged to fork the integration and continue the development in
another repository.
Copy link

changeset-bot bot commented Aug 12, 2024

⚠️ No Changeset found

Latest commit: 644f85c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added pkg: lit Related to Lit (scope) pkg: integration Related to any renderer integration (scope) pkg: astro Related to the core `astro` package (scope) labels Aug 12, 2024
@github-actions github-actions bot added the pkg: example Related to an example package (scope) label Aug 12, 2024
@Princesseuh
Copy link
Member

Princesseuh commented Aug 12, 2024

There's a hack here you might be able to remove too:

// HACK! The lit renderer doesn't include a clientEntrypoint for custom elements, allow it

(there's also a mention of the integration in that same file)

@Princesseuh
Copy link
Member

in packages/astro/src/runtime/server/render/component.ts there's also a mention of the integration for the error message

@matthewp matthewp marked this pull request as ready for review August 13, 2024 12:42
@matthewp matthewp merged commit 3822e57 into next Aug 19, 2024
12 of 14 checks passed
@matthewp matthewp deleted the rm-lit-int branch August 19, 2024 12:12
@JosefJezek
Copy link

Please don't remove Lit, this small lib has not alternative. SSR support is on the way.

FYI @justinfagnani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) pkg: lit Related to Lit (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants