Skip to content

Releases: ordercloud-api/ordercloud-javascript-sdk

Regen to API v1.0.197

04 Mar 16:36

Choose a tag to compare

Added

Regen to API api v1.0.196, upgrade dependencies, bug fix

27 Feb 17:19

Choose a tag to compare

Added

Fixed

  • OrderCloudError model not exported from public entry point

Security

  • Upgraded axios dependency to version 0.21.1

Miscellaneous bug fixes and regen to most recent API

30 Jan 21:43

Choose a tag to compare

Bug Fixes 🐛

  • Don't mutate options object passed to it. The SDK was mutating the options object by deleting options.filter which led to a side-effect for any user relying on the options object.
  • Cookies were being set to the current path with no way to define your own path. This would cause issues if cookies were being set while the user was not on the root of the domain because that cookie would only be accessible on the path it was created on or any sub-path
    • by default cookies are now set at the root
    • you can now configure the sdk to set to any path you like. For ex: Configuration.Set({cookieOptions: { path: 'mypath' }})
  • Setting one cookie option would incorrectly remove defaults for the rest
  • Models for searchOn and sortBy were not allowing valid values

Regen SDK ⏩

  • SDK now up to date with API v1.0.183

Two bug fixes and catch up to most recent api version

24 Dec 20:51

Choose a tag to compare

Bug Fixes 🐛

  • Cookies were being set to the current path with no way to define your own path. This would cause issues if cookies were being set while the user was not on the root of the domain because that cookie would only be accessible on the path it was created on or any sub-path
    • by default cookies are now set at the root
    • you can now configure the sdk to set to any path you like. For ex: Configuration.Set({cookieOptions: { path: 'mypath' }})
  • Models for searchOn and sortBy were not allowing valid values

Regen SDK ⏩

  • SDK now up to date with API v1.0.183

Fix bug: don't mutate options object passed to SDK

17 Aug 21:09

Choose a tag to compare

Bug Fixes 🐛

  • Don't mutate options object passed to it. The SDK was mutating the options object by deleting options.filter which led to a side-effect for any user relying on the options object.

Major Release: v4.0.0 (BREAKING)

13 Aug 20:12
c820c55

Choose a tag to compare

Please check out the migration guide for full details on how to migrate from version 3.x.x to version 4.x.x

Use new auth url

06 Aug 22:32

Choose a tag to compare

Use new auth url Pre-release
Pre-release

Breaking Changes 💥

  • New auth urls are being used. Previously we used https://auth.ordercloud.io/oauth/token to make auth requests. That same functionality is now a part of the main API. The following updates were made to the SDK configuration as a result:
    • baseAuthUrl no longer exists
    • baseApiUrl is updated to exclude apiVersion (default is https://api.ordercloud.io)
    • apiVersion now exists (default is v1)

SDK has been generated to be in line with API v1.0.165

Revert filters usage and add Tokens.GetValidToken

03 Apr 15:11

Choose a tag to compare

Breaking Changes 💥

  • Found out that the filter types weren't being enforced unless inlined, essentially rendering the feature useless. Reverting to the way filter used to work previously where the keys are the properties to filter on (dot referenced string for nested xp values)

New Feature ✨

  • Added Tokens.GetValidToken. If the token exists and is valid, it will return it. If it doesn't exist or is invalid it will attempt to refresh the token and return that.

searchType and update dependency superagent

01 Apr 01:31

Choose a tag to compare

New Feature ✨

updates for searchType from API 1.0.151

31 Mar 16:44

Choose a tag to compare

Pre-release

✨ New Feature