Releases: naqvis/webview
Releases · naqvis/webview
v0.2.5
Release Notes
New Features
Type-Safe Bindings
bind_typed()method with automatic JSON ↔ Crystal type conversion- Support for 1, 2, and 3 parameters (Int32, Int64, Float64, String, Bool)
- Eliminates manual JSON handling boilerplate
RAII Resource Management
with_window()for automatic cleanup- Ensures
destroy()is called even on exceptions
Lifecycle Hooks
on_loadcallback for page load eventson_navigatecallback for navigation tracking
Async/Fiber Support
eval_async()- non-blocking JavaScript execution with callbackseval_with_channel()- fiber-friendly async evaluation
Multi-Window Management
WindowManagerclass for managing multiple windows- Automatic cleanup with
with_manager()
Better Error Handling
- Error context information (e.g., "navigating to URL")
- More informative error messages
Native Handle Access
native_handle()method for platform-specific handles- Access to UI_WINDOW, UI_WIDGET, BROWSER_CONTROLLER
Examples
typed_bindings_example.cr- Type-safe bindings demoadvanced_features.cr- All advanced features demomulti_window.cr- Multi-window management demo
Bug Fixes
- Fix Linux CI by adding apt-get update before installing dependencies
- Fix CI tests by making lifecycle hook tests headless-safe
v0.2.4
updated Webview library to 0.12.0. Thanks to @mamantoha
Added type annotations to window method
Fixed bind method bug. Thanks to @Ragmaanir for finding and proposing the fix.
Use `webview.dll` on Windows
Thanks @konovod for his patch and instruction to use webview on Windows.
Re-ordered overloaded methods
closes #19
Updated webview library to latest version
- Updated
webviewto its latest version 0.10.0 - Added new methods to
Webviewclass - Bumped Shard version to 0.2.0
Breaking Change
Webview.window no longer works with data:text/html. Invoke Webview#html method to set the HTMLs. README examples are updated accordingly.
Updated webview.h to its latest version
v0.1.5 Updated webview.h to its latest version
Updated for Crystal 1.0
v0.1.4 Updated for Crystal 1.0
Updated Makefile for Linux Compilation
v0.1.3 Updated Makefile for Linux compilation
Updated for Crystal 0.36.0
v0.1.2 Updated for Crystal 0.36.0