Releases: 1904labs/dom-to-image-more
Releases · 1904labs/dom-to-image-more
v3.7.1 Responsive image, sizing, and fetching enhancements
What's Changed
- Now strips
srcset
,sizes
, andloading
attributes from the clone and sets thesrc
from the original'scurrentSrc
so we get the image the browser chose to display (fixes #212) - Calculates the size in
toSVG
correctly based on the original node being cloned (fixes #207) - Handle response status code 0 by @kasimtan in #211 (fixes #196)
- Fixed #162
New Contributors
Full Changelog: v3.6.3...v3.7.1
v3.6.3
- Added support for whitespace inside css
url()
references in inliner - Addressed the CodeQL performance complaint on that regex
Full Changelog: v3.6.1...v3.6.3
v3.6.0 - Adding style property filtering and fix url inlining
What's Changed
- Add option to filter style properties
- Corrects problems with css url() inlining base
- Bump prettier to 3.5.3
- Bump semver to 7.7.1
- Lint cleaning
- Refreshed control images for unit tests
New Contributors
- @ludovic made their first contribution in #200
- @RolandMa1986 made their first contribution in #204 (cherry picked)
Full Changelog: v3.4.5...v3.5.0
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)