Remove unused bloodhound-js dependency. #2846
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pre-existing code is using a
Bloodhound
object actually from alternatetypeahead.js
package, see:https://github.com/projectblacklight/blacklight/blob/v7.31.0/app/javascript/blacklight/autocomplete.js#L2
That is importing Bloodhound from typeahead.js package, not from bloodhound-js package. As far as I can tell, no use of
bloodhound-js
package is actually being made, so the dependency is unnecessary. Eliminating it will keep blacklight-consuming builds faster and smaller with simpler dependency trees.This is not relevant to
main
branch/BL8, which has already removed both of these dependencies at 76e8833 . So it is a PR directly to release-7.x branch for future 7.x releases only.I could use confirmation of this from someone else who understands
blacklight-frontend
better, it's new to me. @jcoyne and I discussed it a bit here: https://code4lib.slack.com/archives/C54TB5WDQ/p1666105410283619?thread_ts=1666038752.456159&cid=C54TB5WDQ