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

feat: expose index.insert, implement and expose index.compact #53

Closed
wants to merge 3 commits into from

Conversation

nlf
Copy link
Contributor

@nlf nlf commented May 4, 2021

This change implements two new features that will allow us to both compact existing cache indexes and manually append new indexes without having to go through the current hoops of reading the existing content and writing it back.

I elected to only export the two methods that I intend to consume in make-fetch-happen in order to keep the public API of this module to a minimum, allowing us to avoid breaking changes if some internals are refactored.

References

Related to npm/statusboard#357

@nlf nlf requested a review from a team as a code owner May 4, 2021 20:48
@nlf nlf marked this pull request as draft May 5, 2021 16:44
@nlf
Copy link
Contributor Author

nlf commented May 5, 2021

converted to draft while i work on make-fetch-happen so i can make sure that this api surface is all i need. will either update this pull request or switch it back to ready to merge based on that work.

@nlf nlf marked this pull request as ready for review May 19, 2021 15:05
@isaacs
Copy link
Contributor

isaacs commented May 19, 2021

This looks good to me!

@isaacs isaacs closed this in 930f531 May 19, 2021
@lukekarrys lukekarrys deleted the nlf/expose-new-index-methods branch November 4, 2022 03:41
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.

None yet

2 participants