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: update to support axios 1.x #1418

Merged
merged 3 commits into from
Sep 13, 2023
Merged

Conversation

ymor
Copy link
Contributor

@ymor ymor commented Sep 1, 2023

Updated the following packages too:

  • LRUCache
  • jest
  • ts-jest
  • prettier
  • typescript

Updated the following packages too:
 - LRUCache
 - jest
 - ts-jest
 - prettier
 - typescript
@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (2d4d7fa) 100.00% compared to head (99acded) 100.00%.
Report is 11 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #1418   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         1    -1     
  Lines          167       166    -1     
  Branches        45        44    -1     
=========================================
- Hits           167       166    -1     
Files Changed Coverage Δ
src/index.js 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@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.

Thanks a lot for this contribution, much appreciated! I never got around to doing the whole upgrade as it had too many moving pieces. There are a couple of ling warnings, would you mind fixing those as well?

@ymor
Copy link
Contributor Author

ymor commented Sep 8, 2023 via email

@ymor
Copy link
Contributor Author

ymor commented Sep 8, 2023

Looks like the cancel token is deprecated in favour of abort controller from v0.22.0 . Reckon its worth moving it over too?

@simoneb
Copy link
Owner

simoneb commented Sep 8, 2023

Absolutely, can you do it within this PR?

@ymor
Copy link
Contributor Author

ymor commented Sep 12, 2023

Not sure if you get notified or not but that's in now too :)

Copy link
Owner

@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.

Nice job, thanks for this! Just one comment about axios peerDependency

package.json Outdated
"test": "tsd && jest --no-cache"
},
"dependencies": {
"@babel/runtime": "7.22.11",
"dequal": "2.0.3",
"lru-cache": "^8.0.0"
"lru-cache": "^10.0.1"
},
"peerDependencies": {
"axios": ">=0.24.0",
Copy link
Owner

Choose a reason for hiding this comment

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

you'll need to update this too. unless we know that it's axios 1.5 and up, we should try to keep it as low as possible, e.g. 1.x

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good spot! Thats now updated to >=1.0.0

Copy link
Owner

Choose a reason for hiding this comment

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

Thanks. Nope notifications for commits are not sent, so thanks for letting me know 👍

@simoneb simoneb merged commit b222e63 into simoneb:master Sep 13, 2023
4 checks passed
@ymor ymor deleted the axios-1.x-support branch September 14, 2023 07:42
@github-actions github-actions bot mentioned this pull request Sep 14, 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.

2 participants