-
Notifications
You must be signed in to change notification settings - Fork 25
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
Restructure TS Client V3 #814
Restructure TS Client V3 #814
Conversation
🦋 Changeset detectedLatest commit: 1cef5f0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #814 +/- ##
=======================================
Coverage 93.07% 93.07%
=======================================
Files 25 25
Lines 289 289
Branches 14 14
=======================================
Hits 269 269
Misses 20 20
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add why you need this PR? Maybe link the customer issue if there is one and also how you approach to solve the issue.
packages/sdk-client-v3/src/middleware/auth-middleware/anonymous-session-flow.ts
Show resolved
Hide resolved
packages/sdk-client-v3/src/middleware/auth-middleware/auth-request-builder.ts
Show resolved
Hide resolved
packages/sdk-client-v3/src/middleware/auth-middleware/anonymous-session-flow.ts
Outdated
Show resolved
Hide resolved
packages/sdk-client-v3/src/middleware/auth-middleware/refresh-token-flow.ts
Outdated
Show resolved
Hide resolved
packages/sdk-client-v3/src/middleware/create-concurrent-modification-middleware.ts
Show resolved
Hide resolved
packages/sdk-client-v3/src/middleware/create-http-middleware.ts
Outdated
Show resolved
Hide resolved
a06d053
to
91598d5
Compare
I have updated the PR description to include this. |
Good job! 🚀 |
…and concurrent executions - remove the use of request queue during token fetch - remove promise chain from dispatch function - return response to resolver only when async and concurrent executions are done - remove Buffer module from core SDK packages and replace with browser friendly alternatives - remove async-mutex packages used for concurrent request locking use pure Promise solution - add a response cache to prevent unnecessary calls to coco API - modify type definitions in accordance with the new changes
- rewrite tests to correspond with new changes
- rewrite concurrent middleware integration test
- add release changeset
- rollback some changes in the client.ts file - fix the bug in queue middleware - modify tests to fit the new implementation - add new tests to cover new codes blocks - minor refactor
- remove crypto module reference from SDK - fix type errors and return type values
- add changes to remote
- resolve conflicts on yarn.loc
6b663c4
to
1cef5f0
Compare
Summary
Restructure and rewrite part of the v3 SDK to fix some serious issues encountered by the customers when using the SDK.
Completed Tasks
Associated customer issues