Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rest-client-sdk

Package Overview
Dependencies
Maintainers
3
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rest-client-sdk - npm Package Versions

1
11

6.0.0

Diff

Changelog

Source

6.0.0

Changed

  • [BREAKING] UnitOfWork is disabled by default, one must add a prop unitOfWorkEnabled with value true to the config object passed to the RestClientSdk's constructor in order to enable it
  • TokenStorage's generateToken and refreshToken methods are now memoized in order to avoid bugs when making concurrent calls
jdeniau
published 5.0.0 •

Changelog

Source

5.0.0

This release is a migration to TypeScript, but the API stay the same. The only breaking changes are more fixed bugs that might be breaking in really improbable case.

Changed

  • [BREAKING] TokenGenerator's refreshToken method signature changed from refreshToken(accessToken, parameters) to refreshToken(accessToken). If you did extend the AbstractToken generator, you shouldn't relly on the second parameter. As a matter of fact, the auto-refreshed token in AbstractClient did not send any parameters either, so it should not have been working before ! Accordingly The refreshToken method of TokenStorage signature changed from refreshToken(parameters) to refreshToken()

  • [Might Break] all pseudo-private methods and attributes (starting with _) are unavailable and are now really private (or protected).

    • _storeAccessToken should be replace by a ProvidedTokenGenerator
  • [Might Break] ClassMetadata, Attribute and Relation attributes are now readonly. You can not change them after initialization.

  • [Might Break] AbstractTokenGenerator is now abstract. It should not have been used directly anyway. It implies that the method that previously did thrown errors are not callable (generateToken, refreshToken and checkTokenGeneratorConfig). They should not have been called. They don't exist in JS land anymore.

  • [Might Break] canAutogenerateToken has been removed from the token storages and replaced by a autogenerateToken() method (it's not real POO, but I did not manage to deal with instance of for now)

  • [Might Break] AbstractClient._refreshTokenAndRefetch does not take the response as a first argument (it wan unused). The method was supposed to be private be the way.

  • Make SerializerInterace and Serializer input and output understandable

Added

  • export (and implement) RestClientSdkInterface and TokenStorageInterface
  • export TokenGeneratorInterface and AsyncStorageInterface
jdeniau
published 5.0.0-rc.8 •

jdeniau
published 4.1.4 •

Changelog

Source

4.1.4

Changed

  • Passing a string as argument to ProvidedTokenGenerator is now deprecated. You should pass the token object instead. It should have had a weird comportment before by the way.

Fixed

  • Fix issue when two token generation are send on the same time : the second one will not throw an error now.
jdeniau
published 4.1.3 •

Changelog

Source

4.1.3

Fixed

  • Fix issue when no token is provided but the object is { expires_at: null }
jdeniau
published 5.0.0-rc.7 •

jdeniau
published 5.0.0-rc.6 •

jdeniau
published 5.0.0-rc.5 •

jdeniau
published 5.0.0-rc.4 •

jdeniau
published 5.0.0-rc.3 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc