Skip to content

Releases: Newt-Inc/newt-client-js

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

v3.2.6

24 Jul 05:41
Compare
Choose a tag to compare

Security Fixes

  • bump word-wrap from 1.2.3 to 1.2.4 #66

v3.2.5

12 Jul 09:41
Compare
Choose a tag to compare

Security Fixes

  • bump tough-cookie from 4.0.0 to 4.1.3 #63
  • bump semver from 6.3.0 to 6.3.1 #64
  • bump core-js-compat from 3.21.0 to 3.31.1 #65

v3.2.4

23 Jan 13:51
Compare
Choose a tag to compare

Fixes

  • Fix the type of getFirstContent. #59

v3.2.3

10 Jan 00:23
Compare
Choose a tag to compare

Security Fixes

  • bump qs from 6.10.1 to 6.10.3 #57
  • bump json5 from 2.2.0 to 2.2.3 #58