cure53 / DOMPurify

DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
https://cure53.de/purify
Other
14.12k stars 733 forks source link

imp: improved types and utils #1014

Closed ssi02014 closed 2 weeks ago

ssi02014 commented 2 weeks ago

Summary

@cure53 👋 I'm very happy to announce that DOMPurify now supports direct types. I've improved some of the types and added const assertion for tighter control.

I made additional improvements to ts-doc.

cure53 commented 2 weeks ago

Thanks a ton :slightly_smiling_face:

@reduckted and @aloisklink who have worked on the initial PRs - do you see any blockers or all good? We will likely release DOMPurify 3.2.0 soon in case all is fine.

ssi02014 commented 2 weeks ago

Let me know if you find anything wrong or if I missed anything 😃

ssi02014 commented 2 weeks ago

@reduckted @cure53 Yes, let's remove the unnecessarily specified type of JSDoc again!

I agree that after supporting typescript, we no longer need to specify types in the Jsdoc.

ssi02014 commented 2 weeks ago

I fixed it!

cure53 commented 2 weeks ago

Thanks a lot everyone :pray: