Skip to content

Releases: naqvis/webview

v0.2.5

04 Dec 05:26

Choose a tag to compare

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_load callback for page load events
  • on_navigate callback for navigation tracking

Async/Fiber Support

  • eval_async() - non-blocking JavaScript execution with callbacks
  • eval_with_channel() - fiber-friendly async evaluation

Multi-Window Management

  • WindowManager class 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 demo
  • advanced_features.cr - All advanced features demo
  • multi_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

02 Sep 11:11
e109cc9

Choose a tag to compare

updated Webview library to 0.12.0. Thanks to @mamantoha

Added type annotations to window method

18 Feb 14:13

Choose a tag to compare

Fixed bind method bug. Thanks to @Ragmaanir for finding and proposing the fix.

Use `webview.dll` on Windows

10 Feb 08:34
8b4fd39

Choose a tag to compare

Thanks @konovod for his patch and instruction to use webview on Windows.

Re-ordered overloaded methods

18 Dec 15:16

Choose a tag to compare

Updated webview library to latest version

11 Dec 17:59
5faf2dc

Choose a tag to compare

  • Updated webview to its latest version 0.10.0
  • Added new methods to Webview class
  • 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

14 Feb 01:53

Choose a tag to compare

v0.1.5

Updated webview.h to its latest version

Updated for Crystal 1.0

25 Mar 06:43

Choose a tag to compare

v0.1.4

Updated for Crystal 1.0

Updated Makefile for Linux Compilation

19 Mar 08:40

Choose a tag to compare

v0.1.3

Updated Makefile for Linux compilation

Updated for Crystal 0.36.0

27 Jan 09:29

Choose a tag to compare

v0.1.2

Updated for Crystal 0.36.0