notifications-node-client
Advanced tools
Changelog
5.2.3 - 2022-11-22
Changelog
5.2.2 - 2022-11-16
Changelog
5.2.1 - 2022-10-19
prepareUpload
. fs.readFile
can return strings if an encoding is provided, and the client didn't handle these correctly.Changelog
5.2.0 - 2022-09-27
Add support for new security features when sending a file by email:
confirmEmailBeforeDownload
can be set to true
to require the user to enter their email address before accessing the file.retentionPeriod
can be set to <1-78> weeks
to set how long the file should be made available.The isCsv
parameter to prepareUpload
has now been replaced by an options
parameter. The implementation has been done in a backwards-compatible way, so if you are just sending true/false
values as the seecond parameter, that will continue to work. Though we still recommend updating to use the new options format.
Changelog
5.1.2 - 2022-09-23
Remove underscore.js dependencyr new send a file features)
Changelog
5.1.1 - 2022-01-18
Upgrade axios version from ^0.21.1 to ^0.25.0
Changelog
5.1.0 - 2020-12-30
Changelog
5.0.2 - 2020-11-20
Correct incorrect description of parameter to be used by NotifyClient.setProxy
Changelog
5.0.1 - 2020-11-18
Remove unintentional global nature of variable version
Changelog
5.0.0 - 2020-09-02
We have replaced the use of the npm request-promise package with axios as the npm request package has been deprecated. This makes the following breaking changes:
The response
object
returned by a successful API call is now in the form of an axios response. This has a different interface to a request response. For example:
response.body
becomes response.data
response.statusCode
becomes response.status
The err
object
returned by an unsuccessful API call has a different interface. For example, err.error
becomes err.response.data
. See the axios documentation for further details on error handling.
To configure the use of a proxy you should pass the proxy configuration as an object
rather than a URL. For details, see the axios client.
We now return native promises rather than bluebird promises. You will not need to make any changes unless you are using some of the additional methods found on bluebird promises that do not exist on native promises.