Releases: intuit/oauth-jsclient
Release 4.1.3
Releae 4.1.2
Release 4.1.2 Latest
New Release Candidate: 4.1.2
Features
Notes on Migration documentation (Moving from 4.0 to 4.1.2):
Stop using Popsicle and start using Axios
• Axios is not a drop-in replacement for Popsicle. Here are a few of the API differences:
Request config:
Axios uses data instead of body.
Axios.get() will override the the method option.
There is no transport option.
Response schema:
Headers are turned into an object with lower cased names.
Response data is atomically parsed and can be accessed with res.data.
The response can't be stringified using JSON.stringify() because of res.request.
Breaking Changes:
• getJson() function is now not available, while making the makeApiCall() function. Instead response.json is used.
• JSON.stringify(authResponse.getJson()) ==> should now been changed to JSON.stringify(authResponse.json)
• getting the error message/code. Before, it was under this path: authResponse.json.Fault.Error
Now it's under this path: response.data.Fault.Error
• Given the transport changes, please note that transport needs to be replaced with responseType:
e.g. Users that receive a PDF will have to change their code from this:
oauthClient.makeApiCall({
url: ${url}v3/company/${companyID}/invoice/${invoiceNumber}/pdf?minorversion=59,
headers:{'Content-Type': 'application/pdf','Accept':'application/pdf'},
transport: popsicle.createTransport({type: 'buffer'})
})
To this:
oauthClient.makeApiCall({
url: ${url}v3/company/${companyID}/invoice/${invoiceNumber}/pdf?minorversion=59,
headers:{'Content-Type': 'application/pdf','Accept':'application/pdf'},
responseType: 'arraybuffer'
})
Issues Fixed
#168
Release 4.1.1
Release 4.1.1 Latest
New Release Candidate: 4.1.1
Features
Stop using Popsicle and start using Axios
Issues Fixed
#160
Release 4.1.0
New Release Candidate: 4.1.0
Features
Stop using Popsicle and start using Axios
Issues Fixed
Release 4.0.0 : Node version support 10 and higher
New Release Candidate: 4.0.0
Breaking Changes
- Minimum Node Version
>=
10
Features
- Supports Minimum Node version 10 and newer ( not backward compatible )
- Moved lower node versions ( node 8,9, node 7, node 6 to 3.x.x. , 2.x.x and 1.x.x release respectively )
- node version 8,9 and higher refer to 3.x.x
- node version 7 and higher refer to 2.x.x
- node version 6 and higher refer to 1.x.x
Issues Fixed
References
Adding support for custom authorize Endpoints
Dependency Fix : Remove unwanted packages
New Release Candidate: 3.0.1 🎉
Features :
- Same as
3.0.0
Issues Fixed :
- Move
snyk
package asdevDependency
. Ref #88
Support for Node v8 LTS and newer
New Release Candidate: 3.0.0 🎉
Features :
Supports Minimum Node version 8 LTS and newer ( not backward compatible )
Moved lower node versions ( node 7, node 6 to 2.x.x and 1.x.x release respectively )
Enhanced Code Coverage
Issues Fixed :
ES Lint issues fixed.
Vulnerabilities fixed.
Ensure headers are valid object #70
Accept Full Range of HTTP Success Codes
Fixed NPM Package issue in 2.0.1
New Release Candidate: 2.0.2 🎉
Features :
1.) Improved Code Coverage
2.) README Corrections
3.) Fixed npm package issues in 2.0.1