Repository navigation
Important changes
- Security: prevent prototype pollution.
mergeObjnow ignores the
__proto__andconstructorkeys, uses own enumerable properties only, and
creates plain objects when merging nested data. This prevents untrusted
payloads from modifying object prototypes. - Security: validate Drafty URLs. Drafty now rejects unsafe URL schemes
such asjavascript:,data:, andvbscript:. URL validation is applied to
links, buttons, media references, and download URLs; relative URLs and
http,https, andftpURLs remain supported. - Harden links opened in a new window. Drafty links that use
target="_blank"now also includerel="noopener noreferrer".
Other changes
- Added regression tests for prototype-pollution protection and Drafty URL
sanitization. - Added coverage for
AccessModeconstruction, permission updates, and
preservation during nested object merges. - Updated dependencies and rebuilt the development and production UMD
bundles for the0.25.4release.
Full comparison: v0.25.3...v0.25.4