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

Convert an iterator to an array #1041

Merged
merged 2 commits into from
Mar 30, 2023
Merged

Conversation

MelkorNemesis
Copy link
Contributor

@MelkorNemesis MelkorNemesis commented Mar 30, 2023

What does this PR do?

Converts an iterator to an array in a memCache.keys() method.

tiny-lru package did a breaking change in a patch release and the lru.keys() newly returns an iterator, not an array.

💡 The change was done in packages/graphql-hooks-memcache/src/index.js.

The other changes are not relevant to the fix:

  • updated .gitignore
  • updated formatting (after running npm run prettier)

This pull request fixes #1039.

Related issues

#1039

Checklist

  • I have checked the contributing document
  • I have added or updated any relevant documentation (note: I didn't have to)
  • I have added or updated any relevant tests (note: I didn't have to)

`tiny-lru` package did a breaking change in a patch release
and the `lru.keys()` newly returns an iterator, not an array.
@MelkorNemesis MelkorNemesis marked this pull request as ready for review March 30, 2023 05:09
Copy link
Member

@simoneb simoneb left a comment

Choose a reason for hiding this comment

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

Lgtm

@MelkorNemesis MelkorNemesis merged commit 2ad13eb into master Mar 30, 2023
@MelkorNemesis MelkorNemesis deleted the fix/convert-iterator-to-array branch March 30, 2023 07:36
@github-actions github-actions bot mentioned this pull request Mar 31, 2023
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.

ci failing on master
2 participants