-
Notifications
You must be signed in to change notification settings - Fork 34
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, headless): make bueno external #4433
Conversation
Pull Request ReportPR Title✅ Title follows the conventional commit spec. Live demo linksBundle Size
SSR Progress
Detailed logssearch : buildInteractiveResultsearch : buildInteractiveInstantResult search : buildInteractiveRecentResult search : buildInteractiveCitation search : buildGeneratedAnswer recommendation : missing SSR support case-assist : missing SSR support insight : missing SSR support commerce : missing SSR support |
b1ec210
to
e0f85d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed again ? I don't see the point of externalizing bueno. If I were to make a library that uses zod
for schema validation, I feel like I would bundle those validation functions with my library. This is not a framework
headless and atomic depend on to work. This is a library for utility functions.
The main reason to externalize Bueno was to avoid code duplication when a end-user bundles Atomic or Headless in their own project: https://coveord.atlassian.net/browse/KIT-3181 I dont know if there was other reasons @louis-bompart ? |
But do users really install bueno ? If they don't, they should not have duplication right? I feel like bueno is more an internal package for us that we made before there were popular schema validation libraries like |
Thats a good point, I see ~20k weekly downloads on npmjs.org, but I would not be surprised if these are all from us/our CI... |
It is very unlikely that we have that many users for Bueno (, one of these days, we might want to consider putting the 🪓 into Bueno in favour of another mainstream library like Zod. However, the concept/philosophy here still applies:
|
I took the liberty of fixing those poor tests (& removing a few cats from the code 😿). I peppered my changes with comments to explain the gist of it, can talk you thru tmrw if you want! |
This PR makes bueno external in atomic and headless.
https://coveord.atlassian.net/browse/KIT-3551