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

Fix IE11 'findIndex' error #89

Merged
merged 3 commits into from
Feb 12, 2019
Merged

Fix IE11 'findIndex' error #89

merged 3 commits into from
Feb 12, 2019

Conversation

franjohn21
Copy link
Contributor

@franjohn21 franjohn21 commented Feb 12, 2019

When using the lru-memoize package in a browser bundle, it breaks in IE11 due to this package's usage of findIndex

This PR fixes that by using a custom findIndex function that achieves the exact same functionality.

screen shot 2019-02-11 at 5 19 37 pm

/review @erikras

@codecov
Copy link

codecov bot commented Feb 12, 2019

Codecov Report

Merging #89 into master will increase coverage by 0.26%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #89      +/-   ##
==========================================
+ Coverage    96.2%   96.47%   +0.26%     
==========================================
  Files           4        4              
  Lines          79       85       +6     
==========================================
+ Hits           76       82       +6     
  Misses          3        3
Impacted Files Coverage Δ
src/lruCache.js 95% <100%> (+2.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a9b4b3d...98c393d. Read the comment docs.

@codecov
Copy link

codecov bot commented Feb 12, 2019

Codecov Report

Merging #89 into master will increase coverage by 0.26%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #89      +/-   ##
==========================================
+ Coverage    96.2%   96.47%   +0.26%     
==========================================
  Files           4        4              
  Lines          79       85       +6     
==========================================
+ Hits           76       82       +6     
  Misses          3        3
Impacted Files Coverage Δ
src/lruCache.js 95% <100%> (+2.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a9b4b3d...b659ecb. Read the comment docs.

@@ -1,7 +1,7 @@
language: node_js

before_install:
- npm install -g npm@latest
- npm install -g npm@5
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The latest version of npm does not work on the earlier versions of Node, hence why I pinned it

@erikras erikras merged commit 8ef91af into erikras:master Feb 12, 2019
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.

2 participants