Skip to content

Releases: SAP/cloud-sdk-js

v1.50.0

06 Oct 14:33
Compare
Choose a tag to compare

New Functionality

  • [connectivity] Allow token forwarding for local destination stored in the environment variables.

Improvements

  • [generator] Include and exclude options added to the transpileDirectory() method

Fixed Issues

  • [core] Fix a type error, when moment() is used in filtering an OData field of type Edm.DateTimeOffset

v1.49.0

16 Sep 13:17
Compare
Choose a tag to compare

Compatibility Notes

  • [core] Stop using client credentials to fetch public keys for token verification.
  • [core] Replace own implementation for requesting user tokens and client credential tokens from the XSUAA service with the @sap/xssec library.

New Functionality

  • [core] Support authentication through client certificates (X.509) in client credentials grant requests.

Improvements

  • [core] Reduce the number of warnings when selecting an XSUAA instance.

Fixed Issues

  • [core] Fix verification key retrieval to match the given key id (kid).
  • [core] Fix the missing export for files under http-agent directory.
  • [core] Support using custom http(s)Agent when sending CSRF token requests.
  • [core] Fix URL encoding for $orderby query parameter of OData requests.

v1.48.1

26 Aug 18:06
Compare
Choose a tag to compare

Compatibility Notes

  • [openapi-generator] Paths referenced in the options per service configuration now use POSIX-style separators (/) independent of the operating system. Existing configuration files generated on Windows contain Windows-style separators (\\) in the paths. Those paths will not be read correctly and should be updated manually to /.

Fixed Issues

  • [core] Fix failing destination retrieval for OnPremise proxy type and basic authentication.
  • [openapi-generator] Fix generation of options per service configuration files to always use POSIX-style file path separators independent of operating system.

v1.48.0

20 Aug 13:16
Compare
Choose a tag to compare

Compatibility Notes

  • [generator] Consider the Nullable property on action and function import parameters and return types correctly.
    For parameters, this is uncritical because the type is extended from T to T | null if the property is nullable.
    For return types, the same extension could lead to compile errors after client regeneration because the is broadened including null.

New Functionality

  • [core] Support additional headers and query parameters, that are set on destinations.
  • [core] Support authentication type OAuth2Password.
  • [core] Support DestinationOptions on OpenAPI request builders.
  • [K8s] Support for Kubernetes, check our migration guide.

Improvements

  • [generator] Add underlying type and value information as part of the API documentation for enums.
  • [generator] Disallow invalid enum entries or random string parameters when building filters on enum properties.
  • [openapi-generator] Add additional information to the schema documentation, e.g. maxLength, minimum.

Fixed Issues

  • [core] Fix parsing of proxy environment variables to allow - in the hostname.
  • [core] Fix URL encoding for GetByKey, Update, and Delete request builders, when a key of the entity contains special characters like /.
  • [generator] Fix generation errors, when the Enum type field is used as a key of an entity.
  • [generator] Fix action and function import typing, when parameter or return types are nullable.

v1.47.1

23 Jul 13:50
Compare
Choose a tag to compare

Improvements

  • [metadata] Adjust internal metadata generation.

v1.47.0

22 Jul 15:20
Compare
Choose a tag to compare

New Functionality

  • [core] Support OAuth2JWTBearer authentication type.

Fixed Issues

  • [proxy] Fix destination service calls using web proxies.
  • [core] Fix type error to allow null values in filters for nullable properties.
  • [core] Fix OData filter runtime error, when using lambda expression with operands like or.

v1.46.0

24 Jun 17:09
Compare
Choose a tag to compare

Compatibility Notes

  • [core] Deprecate JWT related interfaces in favor of the interfaces provided by the jsonwebtoken library.
    The following interfaces were deprecated:

    • JWTHeader (use JwtHeader instead, the property typ is now optional)
    • JWTPayload (use JwtPayload instead)
    • CompleteDecodedJWT (use Jwt instead)
    • RegisteredJWTClaims
    • RegisteredJWTClaimsBasic
    • RegisteredJWTClaimsTenant
    • RegisteredJWTClaimsUser
  • [openapi-generator] Change the basis for directory, package, and service names, when generating clients. If not specified otherwise, the default is based on the directory name instead of the service name.

  • [eslint-config] Remove brace-style rule for compatibility with Prettier 2.3.

New Functionality

  • [openapi-generator] Add the -c/--config command line option to specify options through a configuration file instead of on the command line.

Improvements

  • [core] Support setting custom SAP-Connectivity-Authentication headers for Principal Propagation.
  • [core] Improve types in convenience functions for JWT access. See "Compatibility Notes" for details.
  • [openapi-generator] Improve the error message for invalid or unsupported path patterns.
  • [openapi-generator] Improve the error message when detecting invalid Swagger 2.0 specification files.

Fixed Issues

  • [core] Fix type error to allow filtering on one-to-many navigation properties in lambda expressions.
  • [openapi-generator] Base uniqueness check for directory names on directory names in optionsPerService instead of the human readable service name.

v1.45.0

07 Jun 06:23
Compare
Choose a tag to compare

Fixed Issues

  • [core] Re-enable the circuit breakers for the destination and XSUAA services.
  • [odata] Fix encoding of filter strings.
  • [core] Add or overwrite the content length header for CSRF fetch requests. As those are always HEAD requests, the content length is always set to 0.

API Docs

v1.44.0

11 May 11:12
Compare
Choose a tag to compare

Improvements

  • [odata-generator][openapi-generator] Update typescript version to ~4.1.2 in the package.json of the clients.

v1.43.0

10 May 13:21
Compare
Choose a tag to compare

New Functionality

  • [odata] Support appending path to the request URL built by the request builders through the appendPath method. It can be used for unsupported OData functionality like querying navigation properties.

Fixed Issues

  • [PROXY] Consider the web proxy also in the service call to BTP services like XSUAA and destination service.