Skip to content

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 15 Apr 12:16
· 268 commits to main since this release
7665601

Minor Changes

  • #139 025dd2c Thanks @tenphi! - Add Shadow DOM support: useStyles, useGlobalStyles, and computeStyles now accept a root option (Document | ShadowRoot) to inject styles into a specific shadow root. Styles are injected via adoptedStyleSheets when targeting a shadow root, with a shared ChunkSheetRegistry for deduplication across multiple shadow roots.

Patch Changes

  • #139 4b8bd9d Thanks @tenphi! - Use happy-dom for injector tests, removing mock CSSStyleSheet and adoptedStyleSheets shims

  • #139 8f6c8fe Thanks @tenphi! - Make SheetInfo.sheet nullable to accurately represent adopted mode where no HTMLStyleElement exists