-
Notifications
You must be signed in to change notification settings - Fork 83
Integrations
Here we list the open source projects we know of that already integrate with Trusted Types. We also link to the respective code commits to guide future integrations.
-
lit-html: Supported in 1.3.0. Uses
lit-html
as a policy name. -
React: PRs for client-side and SSR.
Usage:
- Clone & setup React
-
enableTrustedTypesIntegration = true
inReactFeatureFlags.js
yarn build react/index,react-dom/index --type=UMD
Planned release in 1.8 (https://github.com/facebook/react/pull/17773#issuecomment-671289277), with most of the changes making it into 17.1 (https://github.com/facebook/react/issues/19587#issuecomment-671902201)
-
Angular (WIP): Pull request. Integration on the roadmap
-
Webpack (WIP): PR for hot update.
-
DOMPurify: Pull request. Use version >= 2.0.0 and
RETURN_TRUSTED_TYPE
config setting. -
Closure library: Compile with
--define goog.TRUSTED_TYPES_POLICY_NAME=myPolicyName
to enable the support. Commits -
TypeScript type annotations via DefinitelyTyped. Use via
npm install --save @types/trusted-types
Using Trusted Types in your projects? Let us know!