v1.9.3
zumerlab/snapdomv1.9.3Jul 10, 2025by tinchox5
AI Summary
This release focuses on performance optimization, significantly increasing capture speed, and improving image fetching capabilities to handle CORS restrictions automatically. It also introduces new options for element exclusion and expands support for various icon fonts and SVG definitions.
Key Highlights
- Core update: Capture speed is dramatically increased.
- Improved image fetching with automatic proxy handling for CORS denied images.
- Added `filter` and `exclude` options for element exclusion.
- Support for Layui icon fonts.
- Improved handling of external SVG definitions.
Breaking Changes
- `crossOrigin` option is no longer needed as it is now built-in into `fetchImages()`.
New Features
- Element exclusion options (`filter`, `exclude`)
- Layui icon font support
- Automatic proxy handling for CORS denied images
Full Release Notes
## What's Changed - Add `filter` and `exclude` options for element exclusion. Thanks @simon1uo [`#100`](https://github.com/zumerlab/snapdom/pull/100) - Missing `width` and `height` in types. Thanks @tarwin [`#94`](https://github.com/zumerlab/snapdom/pull/94) - fix: type check. Thanks @17biubiu [`#77`](https://github.com/zumerlab/snapdom/pull/77) - **Core update**: Capture speed is drammatically increased. Closes #72 [`#72`](https://github.com/zumerlab/snapdom/issues/72) - **Core update**: tries differents methods to fetch image, even proxy for CORS denied images. Important: `crossOrigin` is now inbuilt into fetchImages(), no longer needed as option. Closes #78. Closes #73 [`#78`](https://github.com/zumerlab/snapdom/issues/78) [`#73`](https://github.com/zumerlab/snapdom/issues/73) - Improve fetchImage() by skiping svg format. Closes #91. Closes #89 [`#91`](https://github.com/zumerlab/snapdom/issues/91) [`#89`](https://github.com/zumerlab/snapdom/issues/89) - Add iconFont options and fix doubled icon render. Closes #51, closes #80 [`#51`](https://github.com/zumerlab/snapdom/issues/51) [`#80`](https://github.com/zumerlab/snapdom/issues/80) - Add Layui icon font. Closes #74 [`#74`](https://github.com/zumerlab/snapdom/issues/74) - Add Blob Types. Closes #71 [`#71`](https://github.com/zumerlab/snapdom/issues/71) - Bug: fixes hidden last line PRE tag. Closes #75 [`#75`](https://github.com/zumerlab/snapdom/issues/75) - Feat: handles external SVG defs. Fixes #70 [`#70`](https://github.com/zumerlab/snapdom/issues/70) - Prevents double url encoding. Fixes #68 [`#68`](https://github.com/zumerlab/snapdom/issues/68) - Fix scale background-image [`b1ba326`](https://github.com/zumerlab/snapdom/commit/b1ba326a3a3708a8b2958f2588354bdfa8762cc9) ## New Contributors * @simon1uo made their first contribution in https://github.com/zumerlab/snapdom/pull/100 * @domialex made their first contribution in https://github.com/zumerlab/snapdom/pull/50 * @pedrocate made their first contribution in https://github.com/zumerlab/snapdom/pull/65 * @17biubiu made their first contribution in https://github.com/zumerlab/snapdom/pull/77 **Full Changelog**: https://github.com/zumerlab/snapdom/compare/v1.7.1...v1.9.3