Cleanup to work with modern node/browsers
Pre-release
Pre-release
BREAKING CHANGE!
Version 3.x removes some internal methods that could have been overridden, but likely never were to better support modern browsers. Please make sure you were not directly using or overloading any of the following:
.mimes
- was the not-very-comprehensive list of mime types used to handle inlining things.parseExtension
- was a method to extract the extension from a filename, used to guess mime types.mimeType
- was a method to map file extensions to mime types.dataAsUrl
- internally used to reassemble adata:
URI from a Base64 representation and mime type
Also note that the SVG optimizations have been temporarily removed as there were a bunch of edge cases that didn't always work. This functionality will be reintroduced as a plug-in soon.
What's Changed
- Enable sourcemap generation by @JoshuaWalsh in #82
- fix: default httpTimeout by @FredZeng in #84
- Fix background images not being loaded by @JoshuaWalsh in #81
- Cleanup fixes by @IDisposable in #88
- Eliminate the entire raster/vector path by @IDisposable in #91
- Fix
getWindow(node)
fallback by @meche-gh in #97 - Ensure there's a mimetype in all inlined images by @meche-gh in #98
- Bypass Trusted Types policy requirement by @meche-gh in #100
New Contributors
- @JoshuaWalsh made their first contribution in #82
- @FredZeng made their first contribution in #84
- @meche-gh made their first contribution in #97
Full Changelog: v2.11.1...v3.0.0-rc1