Releases: 1904labs/dom-to-image-more
v3.5.0
What's Changed
- Now wraps the generated image in an SVG to ensure that Safari renders correctly
- Bump cookie and socket.io by @dependabot in #193
Full Changelog: v3.4.5...v3.5.0
BETA - Wrap image in SVG
Attempt to fixed tainted canvas issue in Safari
v3.4.5
What's Changed
- Attempt fixing #189 by swapping the preference from
global
thenwindow
towindow
thenglobal
ingetWindow()
method. - Fix URL regex rules, solving most font icon URL replacement issues by @SeanZhang-eaton in #188 (might fix #15 and #149)
New Contributors
- @SeanZhang-eaton made their first contribution in #188
Notes
Sorry for the churn lately, trying to balance two fixes that seem to be mutually exclusive, and I only have a reproduction test of one of them.
Full Changelog: v3.4.4...v3.4.5
v3.4.5-beta.0
Attempt to fix #189
v3.4.4 Browser incompatibilities
What's Changed
- Fix browser incompatibilities introduced during the ShadowDOM changes.
- Update README.md with adjustClonedNode and onclone options by @juliendorra in #186
- Fix code block typo README.md by @juliendorra in #187
New Contributors
- @juliendorra made their first contribution in #186
Full Changelog: v3.4.3...v3.4.4
v3.4.3
Fixed ShadowDom node rendering (again).
Fixed typo in the check for shadow DOM nodes having children and reverted to the 'cssStyles' in node
of property test.
Full Changelog: v3.4.2...v3.4.3
Switch to Object.hasOwn for property checks.
Switch to Object.hasOwn for cleaner code. Also finally remembered to update the Readme for the minimum browser/node version a give credit for the last few PRs (sorry folks)
Revert part of PR 179
Hopefully fixes #184
v3.4.0
What's Changed
Fixes
- Fix for ShadowSlotElement nodes with no
assignedNodes
to fall back tochildNodes
. Also fixed some more node.js compatibility (fixes #178 thanks @cWenyu).
New feature
- Added option to not copy over the web fonts when generating an SVG to allow smaller/faster conversions (fixes #158 thanks @davidburns573 and @YujiaCheng1996).
Passing disableEmbedFonts: true
in the options to any top-level call will make the generated (and intermediate) SVG not copy in the web font, greatly reducing the size and increasing the speed of the generation. Note, for toSVG outputs, you will have to still have the ability to reference the fonts.
Housekeeping
- Updated spec images to match current Chrome output.
- Added code to unit-test so emitted debug string when there's a SVG output it is properly escaped.
- Bumped dev dependencies for mocha 10.7.3 and eslint 9.9.0.
New Contributors
@cWenyu @davidburns573 @YujiaCheng1996
Full Changelog: v3.3.1...v3.4.0
v3.3.1
What's Changed
- docs(options): Adding scale doc which is a part of options by @codesculpture in #174
- Prevent overriding styles on clone node if already style exists by @codesculpture in #175
New Contributors
- @codesculpture made their first contribution in #174
Full Changelog: v3.3.0...v3.3.1
What's Changed
- docs(options): Adding scale doc which is a part of options by @codesculpture in #174
- Prevent overriding styles on clone node if already style exists by @codesculpture in #175
New Contributors
- @codesculpture made their first contribution in #174
Full Changelog: v3.3.0...v3.3.1