Releases: node-fetch/fetch-blob
Releases · node-fetch/fetch-blob
4.0.0
What's Changed
- breaking: Remove dependency on streams polyfill by @jimmywarting in #149
Full Changelog: v3.2.0...v4.0.0
v3.2.0
What's Changed
- feat: new way of creating temporary files backed up by fs by @jimmywarting in #137
- Bump @types/node from 17.0.45 to 18.0.2 by @dependabot in #140
New Contributors
- @dependabot made their first contribution in #140
Full Changelog: v3.1.5...v3.2.0
3.1.5
What's Changed
- fix: avoid reading files when the size is empty by @jimmywarting in #134
Full Changelog: v3.1.4...v3.1.5
3.1.4
What's Changed
- fix: fix double slice problem on files backed up by filesystem @jimmywarting in #132
- fix: fix undefined that where not casted to a string @jimmywarting in #132
- test: imported another test file from WPT @jimmywarting in #132
Full Changelog: 3.1.3...v3.1.4
3.1.3
What's Changed
- use whatwg streams by @jimmywarting in #103
- Conditional loading by @jimmywarting in #104
- improve typing by @jimmywarting in #105
- Allow usage of iterable object in Blob constructor. by @octet-stream in #108
- found/fixed some errors while testing agains WPT by @jimmywarting in #109
- fix(blob, file, tests): Minor improvements for Blob and File implementations by @octet-stream in #120
- fix: prefix stream/web import with
node:
by @benmccann in #122 - fix(warning): Supress warnings when importing experimental web stream from NodeJS by @jimmywarting in #125
New Contributors
- @benmccann made their first contribution in #122
Full Changelog: 3.0.0...3.1.3
3.0.0
fixed lastModified
3.0.0-rc.0
v3.0.0-rc.0
- Changed WeakMap for private field (require node 12)
- Switch to ESM
blob.stream()
return a subset of whatwg stream which is the async iterable
(it no longer return a node stream - now it returns a AsyncGenerator)- If you really want to have a node stream then you would have to use
Readable.from(blob.stream())
- If you really want to have a node stream then you would have to use
- Reduced the dependency of Buffer by changing to global TextEncoder/Decoder (require node 11)
- Disabled xo for index.js since it could not understand private fields (#)
- No longer transform the
type
to lowercase (w3c/FileAPI#43)
This is more loose than strict, keys should be lowercased, but values should not?
It would require a more proper mime type parser - so I just made it loose. - index.js can now be imported by browser & deno from a CDN since it no longer depends on any
core node features and dose not bundle anything to commonjs - used a more direct approach to convert blob to string that don't involve allocating hole arrayBuffer that would take up twice as much RAM while converting it to a string
- changed node engine to just be >14+ in package.json
2.1.2
Return empty a empty stream for zero sized blob (#86) Return empty a empty stream for zero sized blob