Skip to content

Release 2026-10-22 00:55 CEST

Choose a tag to compare

@jig-release-bot jig-release-bot released this 21 Oct 22:55

Published packages

  • @awdlab/jig: 0.0.7 → 0.0.8
  • @awdlab/jig-themes: 0.0.6 → 0.0.7

@awdlab/jig 0.0.8

Breaking

  • ValueControlBase.invalidState and JigInput.invalidState are public; they were protected.
  • jig-input-field no longer infers invalid state from a plain <input>. Bind [invalid] for controls that are not jig controls.

Fixed

  • styleScope actually scopes the generated CSS. applyTheme() passed a scope key while the generators read styleScope, so every rule fell back to :root.
  • A scoped theme matches dark mode on an ancestor (:root.dark &), and a top-level @media block is emitted inside the scope selector.
  • SSR and the client no longer hand out the same auto-generated element id — the counter crosses the boundary via TransferState.
  • Injected <style> elements carry Angular's CSP_NONCE, and style text is written with textContent instead of innerHTML.
  • jig-input-field reads invalid state from the projected control instead of guessing it with :has(.ng-invalid.ng-touched) selectors.

Added

  • Security guide: CSP, Trusted Types, icon trust, passthrough attributes, persisted state.

@awdlab/jig-themes 0.0.7

Breaking

  • jig-input-field theme parts style a single invalid class reported by the control, instead of matching :has(.ng-invalid.ng-touched) / :has([aria-invalid='true']). Custom field parts that restated those selectors need updating.

Fixed

  • styleScope actually scopes the generated CSS — the generators read styleScope while applyTheme() passed scope, so every rule fell back to :root and two themes on one page overwrote each other.
  • A scoped theme matches dark mode on an ancestor (:root.dark &); unscoped themes keep emitting &.dark.
  • A top-level @media block is emitted with its rules inside the scope selector; @keyframes and other non-style at-rules stay global.
  • Generated <style> elements carry Angular's CSP_NONCE (or the nonce option outside Angular), so a nonce-based style-src no longer drops them.
  • Style content is written with textContent, keeping the library clear of Trusted Types sinks.