#6630·zod

feat: support trusted types for jit compilation

Author: atsjoCreated Sep 24, 2026Updated Sep 24, 2026

For instance DOMPurify supports trusted types, you can either supply your own policy, or it will create a default called 'dompurify'. Trusted types is available for all major browsers now, so this is the way to run dynamic code in a secure way...

ref: https://github.com/colinhacks/zod/issues/5789#issuecomment-5694946199