Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce the new typescript client package (#434)
* chore(poc): add the poc directory - add the poc folder and all the associated files and directories - initial commit of the entire work so far * feat(auth-middleware): implement auth middleware - implement anonymous-auth-flow - refactor auth request builder - refactor auth request executor * feat(auth-middleware): auth middleware flows - add existing-auth-flow - add refresh-token-auth-flow - minor refactor * feat(password-auth-flow): password authentication flow - implement password authentication flow * feat(auth-middleware): implement token cache - implement refresh token and token cache functionality - refactor executor function * feat(http-client): add support for different http client - add support for node-fetch - add support for axios - add some refactoring * feat(middleware): concurrent modification middleware - add middleware to handle concurrent modification errors - add minor refactoring * chore(sdk-client): restructure to include client and tests - restructure in sdk-client-v3 folder * feat(abort-controller): add abort-controller - add abort-controller and request abort timeout - add withRetryMiddleware method in the client builder class - remove poc folder - minor refactor * chore(refactor): refactor and improve types - refactor and improve typings for tokenCache - adapt tokenCache store to also be used for requestSate store * chore(refactor): refactor - add projecKey, scope and httpClient options to defaultClient method - add tokenCacheOptions to the set method of the store function * chore(enableRetry): remove enableRetry option - remove enableRetry option from create-retry-middleware function - remove property from the RetryMiddlewareOptions type * chore(error-middleware-n-axios): error-middleware and axios - complete error middleware features and functionalities - refactor auth middleware request executor to support axios - minor bug fixes * chore(unit-test): add unit tests * chore(completed-unit-test): completed unit test for PoC - include tests for all middlewares * chore(beta-release): prepare beta release * chore(axios): remove axios dependency - remove axios dependency - remove script.sh script - remove empty index file in test file - refactor * chore(changeset): add changeset * chore(changeset): remove redundant changeset - remove changeset since a PR won't be created for this change * v0.0.0-beta.3 * chore(types.d.ts): undo type optimization * chore(types.d.ts): improve types * v0.0.0-beta.4 * chore(ts-client): improve types and refactor * v0.0.0-beta.5 * v0.0.0-beta.6 * chore(client): restructure response to conform with v2 - add code to error response - add body property for error response - add appropriate types to modified response * v0.0.0-beta.7 * fix(ts-client): restructure client response to include statusCode * v0.0.0-beta.8 * feat(retry-middleware): change the current implementation of the retry-middleware - move the retry functionality to the http-middleware - refactor types.d.ts to conform with new implementation - refactor http-middleware to include error message and stack traces * v0.0.0-beta.10 * chore(errors): improve error response - address breaking changes in error response - improve the executor function for both fetch and axios - change fetch deserializer from json to text - fix error with uri when originalRequest is excluded from respose - include minor code refactor * chore(ts-client): update @commercetools/sdk-client-v3 to version 0.0.0-beta.11 * fix(create-http-middleware): unset null content-type header - unset null content-type header to avoid 415 error when uploading images using the SDK * chore(test): add more tests - add more tests to improve coverage * chore(abort-controller): add abort-controller - add abort-controller as a dev-dependency * chore(test): add more tests - add more tests to improve coverage * chore(dependencies): update and clean dependencies * chore(dependencies): update dependencies * Update packages/sdk-client-v3/LICENSE Co-authored-by: Jens Schulze <[email protected]> * chore(sdk-client-v3): optionally chain the version number - optionally chain the current version in the concurrentModification middleware * chore(yarn.lock): fix conflicts - fix merge conflicts in yarn.lock file * chore(postbuild-script): correct postbuild script - correct npm postbuild script * chore(pr-feedback): implement feedback) - implement team feedback * chore(): implement feedback - implement team feedback * chore(feedback): implement feedback - implement team feedback * Create stupid-bears-report.md Add release changeset --------- Co-authored-by: Jens Schulze <[email protected]>
- Loading branch information