v0.8.0
More modern Node requirement, file upload support.
- BREAKING CHANGE: m3api now requires at least Node.js version 18.2.0, up from Node 12.22.0 or Node 14.17.0 previously. The internal breaking changes below are also related to this.
- Internal Breaking Change: The file
add-performance-global.js
has been removed, as it is no longer needed. - Internal Breaking Change: The file
axios.js
has been removed, as axios is no longer used. Its role has been taken over byfetch-node.js
. - Internal Breaking Change: The file
fetch.js
is no longer suitable for use in Chrome-like browsers. The functionality of renaming theuser-agent
request header toapi-user-agent
has been moved tofetch-browser.js
. - m3api now uses
fetch()
on all supported platforms. The public interface,browser.js
andnode.js
, can be used as before. The internal interface has been rearranged, withfetch.js
now used for both backends, augmented byfetch-browser.js
andfetch-node.js
. - m3api now supports
Blob
andFile
parameters in POST requests. This can be used to upload files. - Improved
README.md
formatting for npmjs.com. - Updated dependencies.