Skip to content

boodoo v1.1.4

Choose a tag to compare

@prashmaybe prashmaybe released this 16 Oct 17:14
· 48 commits to main since this release
49faaf4

[1.1.4] - 2026-10-16

Security

  • Dependabot Security Resolution across Starter Templates (site/examples/starters/, www/examples/starters/):
    • Upgraded Next.js in starters to ^15.5.28 (along with react and react-dom to ^19.0.0), resolving critical RCE, SSRF, Cache Poisoning, and DoS vulnerabilities (GHSA-v6wh-96g9-6wx3, CVE-2026-53632, CVE-2026-53633, CVE-2026-53634).
    • Upgraded Vite to ^6.4.4 in react-vite and vue-vite starters, resolving Windows UNC path NTLM disclosure, path traversal in optimized deps .map handling, and server.fs.deny bypass vulnerabilities.
    • Closed all 58 repository Dependabot security alerts.
  • Public API XSS Vulnerability Elimination (js/src/util.js, js/boodoo.js, js/src/chip-input.js, js/src/command-palette.js, js/src/dropzone.js, js/src/tooltip.js):
    • Implemented lightweight, dependency-free escapeHtml(str) utility to entity-encode untrusted characters (&, <, >, ", ').
    • Toast (boodoo.toast): Sanitized both title and message strings before DOM rendering.
    • Chip Input (ChipInput.addChip): Switched from vulnerable innerHTML interpolation to safe DOM element creation using labelSpan.textContent = text.
    • Command Palette (CommandPalette._renderResults, CommandPalette._handleSelect): Escaped all user-supplied search items, titles, and keyboard shortcuts; added strict URL protocol validation (https:, http:, /, #, mailto:) preventing javascript: protocol execution.
    • Dropzone (Dropzone._showPreview): Converted from string interpolation to safe DOM element creation with img.alt = file.name and automatic URL.revokeObjectURL() resource cleanup.
    • Popover (Popover.setContent): Content is now assigned safely via textContent by default; only evaluates as HTML if explicit { html: true } configuration is enabled.

Added

  • Complete TypeScript Declaration Surface (dist/js/boodoo.d.ts, tokens/index.d.ts, react-native/index.d.ts, package.json):
    • Authored first-class .d.ts type definition files across all framework entrypoints.
    • Added root and subpath "types" exports in package.json for ., ./tokens, and ./react-native.
    • Added CommonJS token exports (tokens/index.cjs) for universal Node.js tooling compatibility.
  • Component-Namespaced Registry (js/src/base-component.js):
    • Re-architected BaseComponent registry to namespace by Map<ComponentClass, Map<Element, Instance>>.
    • Multiple components (such as Tooltip and Dropdown) can now attach to the same DOM element without colliding or overwriting each other.
  • True JS Minification & Dynamic Build Banner (build/js-bundle.mjs):
    • Added dedicated JavaScript minification stage generating genuine compressed bundles (boodoo.min.js) rather than raw duplicates.
    • Dynamically reads framework version from package.json for accurate header banners.
  • Behavioral & Security Unit Testing Suite (tests/framework.test.mjs):
    • Added test suites for Modal instance initialization, focus trapping, multi-component isolation, and complete dispose() lifecycle clean-up.
    • Added regression test suites validating escapeHtml, ChipInput DOM safety, Dropzone object URL revocation, CommandPalette non-intrusive listeners, and .d.ts declaration file existence.

Fixed & Enhanced

  • Interactive Component Lifecycle Teardown (js/src/modal.js, js/src/offcanvas.js, js/src/speed-dial.js, js/src/command-palette.js):
    • Modal: Added role="dialog", aria-modal="true", and full dispose() method unbinding Escape and Tab keydown listeners, removing wheel scroll guards, and detaching backdrops.
    • Offcanvas: Complete dispose() cleaning up keydown and backdrop click listeners.
    • SpeedDial: Complete dispose() cleaning up document click-outside and keydown triggers.
    • CommandPalette: Non-intrusive Ctrl+K listener registration that avoids intercepting shortcuts unless initialized or triggered in DOM.
  • Brand Token Unification Across Web and Mobile (tokens/tokens.json, tokens/index.js, tokens/index.cjs, react-native/theme.js, react-native/paper.js, scss/_root.scss, less/boodoo.less):
    • Unified all token palettes to match the canonical brand scale:
      • Primary: Brand Violet (#7c3aed)
      • Secondary: Brand Indigo (#5b21e6, replacing cyan #06b6d4)
      • Success: #1c9e50
      • Danger: #e11d48
      • Info: #0ea5e9
      • Dark / Base: Deep Indigo (#17135f, replacing slate #0f172a)
      • Neutrals: Unified Foundation grays (#f7f8fb to #11143d)
    • Web CSS, React Native themes, and React Native Paper MD3 presets now share an identical system of record.
  • Event Listener Leak Prevention in Dismiss Triggers (js/src/util.js):
    • Replaced repetitive capturing click listeners in enableDismissTrigger with a single delegated document listener managing all dismissible components.
  • CLI Scaffolder Updates (bin/create-boodoo.mjs):
    • Bumped CLI template dependency pin to 1.1.4.
    • Replaced deep internal stylesheet imports with canonical import 'boodoo/css';.