3.0.0-rc.0
Pre-release
Pre-release
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