Releases: srdjan/hsx
Releases · srdjan/hsx
v1.2.1
Documentation and JSR publish fixes.
Fixes
- Fix JSR publish for
@srdjan/hsx-widgets: declare@srdjan/hsxdependency, maphsx/jsx-runtimespecifier, exclude build/examples/test files from published package
Documentation
- Add Widgets to README feature list
- Document
@srdjan/hsx-widgetsacross README, User Guide, and Architecture Overview - Update Widgets guide with JSR import paths
- Add
deno add jsr:@srdjan/hsx-widgetsto installation instructions
Packages
@srdjan/hsx1.2.1@srdjan/hsx-styles1.2.1@srdjan/hsx-widgets0.1.1
v1.2.0
New package: @srdjan/hsx-widgets (0.1.0)
- Widget protocol with
widgetToHsxComponent()SSR adapter - Declarative Shadow DOM support (open/closed modes)
- Embeddable widget handler with iframe shell
- Style collection and deduplication
@srdjan/hsx (1.2.0)
- fix: add
<a>tohsxPageallowed tags - refactor: remove dead code, simplify render logic
- test: extend coverage (486 tests)
@srdjan/hsx-styles (1.2.0)
- rename
.toggleto.toggle-groupto avoid class conflicts
Examples
- Harden with key props,
type="button", regex escaping - Add
check:examplesbuild task for type checking examples
Documentation
- Add HSX Widgets sections to README, User Guide, and Architecture Overview
- Update Widgets guide with JSR import paths
- Add
deno add jsr:@srdjan/hsx-widgetsto installation instructions
v1.1.0
Security Hardening
- CSS custom properties (
--var-name) now accepted in inline styles - Style values block
url(),expression(), and@importinjection vectors while preserving safe functions likecalc() hsxComponent.handle()enforces HTTP methods, returning 405 withAllowheader for disallowed methods- Multi-verb forms (
<form post={...} get={...}>) now throw instead of silently picking one
New Features
- SSE support:
ext,sseConnect, andsseSwapattributes normalize tohx-ext,sse-connect,sse-swap - HsxAttrs on 18 more elements: body, main, header, footer, nav, aside, p, li, ol, table, thead, tfoot, td, th, details, input, textarea, select
hsxPagevalidateOnce option: skip repeated tree validation for static page structures- Duplicate path parameters (e.g.,
/users/:id/related/:id) detected at component creation time
Type Safety
Urlishtype no longer usesany- uses bivariant method syntax for safe varianceHsxExtandHsxTriggertypes expanded with SSE patterns
Performance
- Path regex and parameter names precomputed once per component instead of on every
match()call
Infrastructure
- CI pipeline now runs
deno task testbefore publishing - Package versions synced at 1.1.0
Test Coverage
24 new tests covering HTMX auto-injection, SSE normalization, form fallback action/method, HTTP method enforcement, duplicate params, and full POST/FormData integration. Total: 81 tests.