Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 2, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
dom-to-image-more 3.1.6 -> 3.7.2 age adoption passing confidence

Release Notes

1904labs/dom-to-image-more (dom-to-image-more)

v3.7.2: - Fix offscreen iframe

Compare Source

Create temporary iframe off-screen Fixes #​214

Full Changelog: 1904labs/dom-to-image-more@v3.7.1...v3.7.2

v3.7.1: Responsive image, sizing, and fetching enhancements

Compare Source

What's Changed
  • Now strips srcset, sizes, and loading attributes from the clone and sets the src from the original's currentSrc 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: 1904labs/dom-to-image-more@v3.6.3...v3.7.1

v3.6.3

Compare Source

  • Added support for whitespace inside css url() references in inliner
  • Addressed the CodeQL performance complaint on that regex

Full Changelog: 1904labs/dom-to-image-more@v3.6.1...v3.6.3

v3.6.0: - Adding style property filtering and fix url inlining

Compare Source

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

Full Changelog: 1904labs/dom-to-image-more@v3.4.5...v3.5.0

v3.5.0

Compare Source

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: 1904labs/dom-to-image-more@v3.4.5...v3.5.0

v3.4.5

Compare Source

What's Changed
  • Attempt fixing #​189 by swapping the preference from global then window to window then global in getWindow() method.
  • Fix URL regex rules, solving most font icon URL replacement issues by @​SeanZhang-eaton in #​188 (might fix #​15 and #​149)
New Contributors
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: 1904labs/dom-to-image-more@v3.4.4...v3.4.5

v3.4.4: Browser incompatibilities

Compare Source

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

Full Changelog: 1904labs/dom-to-image-more@v3.4.3...v3.4.4

v3.4.3

Compare Source

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: 1904labs/dom-to-image-more@v3.4.2...v3.4.3

v3.4.2: Switch to Object.hasOwn for property checks.

Compare Source

v3.4.1: Revert part of PR 179

Compare Source

Hopefully fixes #​184

v3.4.0

Compare Source

What's Changed
Fixes
  • Fix for ShadowSlotElement nodes with no assignedNodes to fall back to childNodes. Also fixed some more node.js compatibility (fixes #​178 thanks @​cWenyu).
New feature

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: 1904labs/dom-to-image-more@v3.3.1...v3.4.0

v3.3.1

Compare Source

What's Changed
New Contributors

Full Changelog: 1904labs/dom-to-image-more@v3.3.0...v3.3.1

What's Changed
New Contributors

Full Changelog: 1904labs/dom-to-image-more@v3.3.0...v3.3.1

v3.3.0: Add adjustClonedNode and useCredentialsFilters

Compare Source

What's Changed

  • Expose ability to adjust the cloned node before generating image via adjustClonedNode option. by @​IDisposable in #​164

  • Add ability to select what external resources require useCredentials via listing URLs in useCredentialsFilters option by @​TMMSchmit in #​156

  • Bumps dev packages up to current

  • Cleaned a bit of lint

adjustClonedNode Hook

You may now specify a call-back to be invoked on each node as we clone them so you can adjust the nodes in any way needed before the conversion. The handler is passed in the options as adjustClonedNode which is a function that gets the original node, the cloned node, and a boolean that says if we've cloned the children already (so you can handle either before or after)

Sample use (with this package source inlined) in this fiddle:

const adjustClone = (node, clone, after) => {
  if (!after && clone.id === 'element') {
    clone.style.transform = 'translateY(100px)';
  }
  return clone;                   
}

const wrapper = document.getElementById('wrapper');
const blob =  domtoimage.toBlob(wrapper, { adjustClonedNode: adjustClone});
useCredentialsFilters URL list

Added a new option useCredentialsFilters which will take a string/Regex array and only share the credentials with the URLs that match an entry in this array. This helps avoid CORS errors.

Full Changelog: 1904labs/dom-to-image-more@v3.2.0...v3.3.0

v3.2.0: 3.2.0 - Add support for options.corsImg

Compare Source

Now supports passing an optional options member corsImg that proxies all images through a service proxy.
You configure this option with an object that supplies the proxy handler's url, the method (e.g. 'GET' or 'POST'), a headers collection, and a POST payload data. For the headers and the url, an instance of the exact string '#{cors}' will be replaced by the original url to be fetched.

What's Changed

New Contributors

Full Changelog: 1904labs/dom-to-image-more@v3.1.6...v3.2.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/dom-to-image-more-3.x branch from ac198aa to 8fc414b Compare December 3, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant