Skip to content

Releases: Newt-Inc/newt-client-js

v3.3.7

19 Nov 05:02
Compare
Choose a tag to compare

Security Fixes

  • bump cross-spawn from 7.0.3 to 7.0.6 #85

v3.3.6

15 Oct 09:10
Compare
Choose a tag to compare

Security Fixes

  • bump rollup from 2.67.1 to 2.79.2 #84

v3.3.5

02 Sep 04:57
Compare
Choose a tag to compare

Security Fixes

  • bump micromatch from 4.0.4 to 4.0.8 #82

v3.3.4

20 Aug 06:24
Compare
Choose a tag to compare

Security Fixes

  • bump axios from 1.6.0 to 1.7.4 #81

v3.3.3

18 Jun 00:19
Compare
Choose a tag to compare

Security Fixes

  • bump braces from 3.0.2 to 3.0.3 #80

v3.3.2

22 Apr 02:47
Compare
Choose a tag to compare

Security Fixes

  • bump @types/node from 16.7.8 to 20.12.7 #79

v3.3.1

18 Mar 00:35
Compare
Choose a tag to compare

Security Fixes

  • bump follow-redirects from 1.15.4 to 1.15.6 #78

v3.3.0

17 Jan 00:27
Compare
Choose a tag to compare

Features

A fetch option has been added to createClient.

  • Add fetchImpl option to allow users to use fetch (#71 by @umireon)
  • Fixed error handling when using fetch (#74 by @y-meguro)

You can choose to use axios or fetch for your request, whichever you prefer.
If you set a value for the fetch option, the request will be made using fetch instead of axios.
Note that in that case, the adapter option will not be taken into account and retries will not be performed.

const client = createClient({
  spaceUid: 'YOUR_SPACE_UID',
  token: 'YOUR_CDN_API_TOKEN',
  apiType: 'cdn',
  fetch: globalThis.fetch // Custom fetch implementation can be passed as an option.
})

Types

  • Export the type of NewtError, ErrorRequest, and ErrorResponse. #74

Security Fixes

  • bump follow-redirects from 1.15.3 to 1.15.4 #73

v3.2.8

17 Nov 00:10
Compare
Choose a tag to compare

Security Fixes

  • bump @babel/traverse from 7.16.3 to 7.23.2 #69
  • bump axios from 0.26.1 to 1.6.0 #70

v3.2.7

27 Sep 12:11
Compare
Choose a tag to compare

Types

  • Export the type of Image and File. #68