mirror of
https://github.com/cloud-shuttle/leptos-shadcn-ui.git
synced 2026-05-24 15:30:39 +00:00
🚀 New Features: - Add leptos-shadcn-ui-wasm package with minimal dependencies - 10 core components optimized for WebAssembly - Feature flags for granular bundle control - WASM-specific utilities and helpers 🔧 Technical Improvements: - Fix WASM compatibility issues in test-utils package - Add conditional compilation for native vs WASM targets - Update contract-testing package for WASM compatibility - Add comprehensive WASM demo application 📦 Bundle Optimization: - 70% reduction in dependencies (150+ → 25) - WASM-compatible only dependencies - Gzipped bundle size: ~813KB for full demo 📚 Documentation: - Complete README with examples and migration guide - Bundle size comparisons and performance metrics - Comprehensive remediation plan and design docs ✅ Testing: - All packages compile for wasm32-unknown-unknown - Feature flags work correctly - Demo builds and runs successfully - Backward compatibility maintained
45 lines
1.2 KiB
TOML
45 lines
1.2 KiB
TOML
[package]
|
|
name = "shadcn-ui-test-utils"
|
|
description = "Testing utilities for shadcn-ui components."
|
|
publish = false
|
|
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
version = "0.2.0"
|
|
|
|
[dependencies]
|
|
wasm-bindgen-test = "0.3"
|
|
web-sys = { workspace = true, features = ["console", "Document", "Element", "HtmlElement", "Window", "Performance", "PerformanceTiming"] }
|
|
js-sys = "0.3"
|
|
console_error_panic_hook = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
# ✅ FIXED: Add "js" feature for WASM compatibility
|
|
uuid = { version = "1.0", features = ["v4", "js"] }
|
|
|
|
# Framework-specific testing
|
|
leptos = { workspace = true }
|
|
|
|
# ✅ ADDED: WASM-compatible random generation
|
|
getrandom = { version = "0.2", features = ["js"] }
|
|
|
|
# Snapshot testing dependencies
|
|
chrono = { workspace = true }
|
|
|
|
[features]
|
|
default = []
|
|
wasm-testing = []
|
|
native-testing = []
|
|
|
|
# Conditional dependencies for different targets
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
# WASM-specific testing utilities
|
|
wasm-bindgen-futures = "0.4"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
# Native-only testing utilities
|
|
proptest = "1.4"
|
|
tempfile = "3.0"
|