Skip to content

Releases: 1amageek/swift-html

0.4.1

17 Jun 15:31

Choose a tag to compare

Patch release for HTMLPreview declarative styling.

  • Replaces HTMLPreview string-based preview styling with the Stylesheet / StyleBuilder API.
  • Updates README and DocC Xcode Preview examples to use declarative rule { ... } styles.
  • Keeps CSS string serialization inside the preview document render boundary.

0.4.0

17 Jun 15:10

Choose a tag to compare

Highlights

  • Simplifies HTMLPreview so previews are written as #Preview { HTMLPreview { ... } }.
  • Keeps preview titles in SwiftUI #Preview instead of duplicating title state in HTMLPreview.
  • Updates README and DocC with a flat, copyable release dashboard preview sample.
  • Keeps preview renderer tests aligned with the simplified API.

Verification

  • xcodebuild test -scheme swift-html-Package -destination platform=macOS passed.

SwiftHTML 0.3.0

17 Jun 13:32

Choose a tag to compare

Promotes state and hydration runtime contracts for client WASM runtimes and component-level HMR.

Area Included
State New StateStoreSnapshot, StateSnapshotValue, StateSnapshotError, and StateSchema public contracts.
Hydration Browser hydration component records now carry state slots and derived state schema hashes.
Loading ClientComponentAsset now includes state and environment schema hashes for split WASM loading.
Runtime StateStore can snapshot and restore Codable state behind a schema guard.
Documentation README and DocC now describe runtime snapshot and schema preservation semantics.

0.2.0

17 Jun 00:33

Choose a tag to compare

Adds Xcode preview support for SwiftHTML.

Area Included
Preview New SwiftHTMLPreview product with #HTMLPreview, HTMLPreviewHost, HTMLPreviewRenderer, HTMLPreviewConfiguration, and HTMLPreviewViewport.
Macro New SwiftHTMLPreviewMacros target that expands #HTMLPreview directly to SwiftUI #Preview while forwarding preview traits.
Documentation README and DocC coverage for preview usage, configuration, and build behavior.
Tests Preview renderer tests, compile smoke tests, and macro expansion tests.
Tooling Swift package tools version remains Swift 6.3.

Validation:

Command Result
swift build --product SwiftHTML Passed
swift build --product SwiftHTMLPreview Passed
xcodebuild test -scheme swift-html-Package -destination 'platform=macOS' -only-testing:SwiftHTMLTests -only-testing:SwiftHTMLPreviewTests Passed

0.1.0

16 Jun 06:52

Choose a tag to compare

Changelog

0.1.0 - 2026-06-16

Initial public release.

Area Included
HTML DSL Lowercase HTML tags, typed attributes, text initializer shortcuts, raw HTML, and builder control flow.
Components Component, ServerComponent, ClientComponent, @State, Binding, and environment propagation.
Rendering HTML string rendering, render artifacts, diagnostics, hydration manifests, and internal graph diffing.
CSS Style, generated standard CSS property helpers, @StyleBuilder, Stylesheet, CSSRule, and @StylesheetBuilder.
Hydration Browser hydration indexes, DOM patch commands, command batches, and browser host contracts.
Loading Split WASM bundle manifests, load plans, and loading runtime contracts.
Actions ActionRepresentable, Action, ActionField, and hidden-field rendering contracts.