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

chore(atomic): replace lit-html with lit #4985

Merged
merged 3 commits into from
Feb 19, 2025
Merged

chore(atomic): replace lit-html with lit #4985

merged 3 commits into from
Feb 19, 2025

Conversation

alexprudhomme
Copy link
Contributor

@alexprudhomme alexprudhomme commented Feb 18, 2025

https://coveord.atlassian.net/browse/KIT-3977

Since lit-html was in devDependencies (for storybook initially) and since it serves the same purpose as lit/html.js, the IDE would suggest imports from lit-html in src/ files which would have caused problems when npm users would install Atomic. This PR removes every mention of lit-html and replaces it with lit/html.

This PR also addresses another refactor I came across with a file in src/components/common/types.ts that was exporting random interfaces from headless search. I removed that file and adjusted the imports across the repo.

Copy link

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

Live demo links

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 244.2 244.2 0
commerce 355.5 355.5 0
search 415.5 415.5 0
insight 406.7 406.7 0
recommendation 256.3 256.3 0
ssr 409.3 409.3 0
ssr-commerce 373.2 373.2 0

Copy link
Contributor

@fpbrault fpbrault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Base automatically changed from KIT-3978 to master February 19, 2025 17:45
@alexprudhomme alexprudhomme added this pull request to the merge queue Feb 19, 2025
@alexprudhomme alexprudhomme removed this pull request from the merge queue due to a manual request Feb 19, 2025
@alexprudhomme alexprudhomme added this pull request to the merge queue Feb 19, 2025
Merged via the queue into master with commit edda81c Feb 19, 2025
121 checks passed
@alexprudhomme alexprudhomme deleted the KIT-3977 branch February 19, 2025 20:07
fpbrault pushed a commit that referenced this pull request Feb 19, 2025
https://coveord.atlassian.net/browse/KIT-3977

Since `lit-html` was in devDependencies (for storybook initially) and
since it serves the same purpose as `lit/html.js`, the IDE would suggest
imports from `lit-html` in `src/` files which would have caused problems
when npm users would install Atomic. This PR removes every mention of
lit-html and replaces it with lit/html.

This PR also addresses another refactor I came across with a file in
`src/components/common/types.ts` that was exporting random interfaces
from headless search. I removed that file and adjusted the imports
across the repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants