-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(open-payments): replace axios with ky (#461)
* chore: use node 20 * chore: update @types/node * chore(ci): update actions * feat(open-payments): use ky as httpclient * chore(open-payments): fix request signing * feat(open-payments): add validateResponses flag to optionally disable openapi schema validation * chore(open-payments): dont parse DELETE response body * chore(open-payments): handle DELETE body parsing * chore(open-payments): handle DELETE body parsing * chore(open-payments): handle DELETE body parsing * chore(open-payments): only try parsing DELETE body if its not a 204 response * chore(open-payments): only try parsing DELETE body if its not a 204 response * feat(open-payments): finalize and test requests * chore(open-payments): update nock and ky usage in jest * chore(open-payments): fix tests after update to ky * Revert "feat(open-payments): add validateResponses flag to optionally disable openapi schema validation" This reverts commit b5f986a. # Conflicts: # packages/open-payments/src/client/requests.test.ts # packages/open-payments/src/client/requests.ts * chore(open-payments): cleanup files after commit revert * chore(ci): update actions * chore: use node 20 * chore(ci): update actions * chore(open-payments): use dynamic import to resolve ky package * chore(open-payments): allow nock to patch global.fetch * chore(open-payments): allow nock to patch global.fetch in global setup * chore(open-payments): fix test & lint * chore(open-payments): continue nock cleanup * chore: add changeset * chore: update jest in workspace * Revert "chore(open-payments): allow nock to patch global.fetch in global setup" This reverts commit 9285d60. * chore: update @swc/jest * chore(open-payments): nock cleanup * chore(open-payments): address comments * chore(open-payments): handling unexpected error case
- Loading branch information
Showing
17 changed files
with
1,410 additions
and
1,100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@interledger/open-payments': minor | ||
--- | ||
|
||
Replace axios with [ky](https://github.com/sindresorhus/ky) (a wrapper around native fetch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.