Bot releases are hidden (Show)
Published by Curve about 2 months ago
π Native MacOS support!
New Cocoa & WebKit backend π
[𧨠BREAKING] New default backend for linux based on GTK4 & webkitgtk (As decided by poll in #26)
Using libadwaita!
π New Java-Script function call syntax saucer.exposed.func(10)
Instead of
saucer.call("func", [10])
β Executor support
Allows to manually resolve / reject, i.e.
smartview.expose("func", [](const saucer::executor<int> &exec)
{
const auto &[resolve, reject] = exec;
// ....
}
[𧨠BREAKING] Use saucer::launch
for exposing async functions
smartview.expose("func", [](...) { ... }, saucer::launch::async);
π Use Thread-Pool internally for async exposed functions
π Add webview::set_file
π User-defined custom schemes (webview::register_scheme
, webview::handle_scheme
, ...)
π¦₯ Support for Lazy-Loading embedded files
β‘ Improve Serializer- and overall performance
βοΈ Add Drag and Resize HTML attributes (data-webview-drag
, data-webview-resize="br"
, ...)
β Favicon and window icon support
π Page-Title support (document.title
)
π C-Bindings, allows for FFI Usage
π Add Force-Dark-Mode
πΌοΈ New window_event::decorated
event
[𧨠BREAKING] Renamed options::chrome_flags
to options::browser_flags
[𧨠BREAKING] Refactored modules
saucer::module
(which was also removed)saucer::natives
object, and the natives can also be accessed without modules via webview::natives()
smartview.module<T>()
[𧨠BREAKING] webview::inject
now takes a saucer::script
webview::clear_scripts()
)
π§ Added webview::reload
, webview::back
and webview::forward
-fno-exceptions
builds)βοΈ Various stability improvements
π Various bug fixes (#24, #23, and many more!)
[!NOTE]
Feedback on this discussion would be greatly appreciated :)
π New Java-Script function call syntax saucer.exposed.func(10)
Instead of
saucer.call("func", [10])
β Executor support
Allows to manually resolve / reject, i.e.
smartview.expose("func", [](const saucer::executor<int> &exec)
{
const auto &[resolve, reject] = exec;
// ....
}
[𧨠BREAKING] Use saucer::launch
for exposing async functions
smartview.expose("func", [](...) { ... }, saucer::launch::async);
π Use Thread-Pool internally for async exposed functions
π Add webview::set_file
π User-defined custom schemes (webview::register_scheme
, webview::handle_scheme
, ...)
π¦₯ Support for Lazy-Loading embedded files
β‘ Improve Serializer- and overall performance
βοΈ Add Drag and Resize html attributes (data-webview-drag
, data-webview-resize="br"
, ...)
β Favicon and window icon support
π Page-Title support (document.title
)
π C-Bindings, allows for FFI Usage
π Add Force-Dark-Mode
π New GTK4 & webkitgtk-6 backend
[𧨠BREAKING] Renamed options::chrome_flags
to options::browser_flags
π§ͺ Allow to specify frame for script injection (Top-Frame, All-Frames)
βοΈ Various stability improvements
π Various bug fixes (#24, #23, and many more!)
Published by Curve 7 months ago
Published by Curve 10 months ago
The JavaScript errors are now much more detailed. In case of a type-mismatch they now also include the expected native type (using compile time reflection)
Published by Curve 11 months ago
[!NOTE]
This is a bug fix release
Published by Curve 12 months ago
Published by Curve 12 months ago
[!NOTE]
This is a bug fix release
webview2
headerPublished by Curve 12 months ago
π€ Allow to control Hardware-Acceleration
πͺ Persistent Cookies & Support for custom storage directories
πΈ Module Support
πͺ Window
Add focused()
and focus()
Checks whether the window is focused and allows to focus the window
Add minimized() / minimized()
and set_minimized() / set_maximized()
Checks whether the window is maximized / minimized and allows to maximize / minimize it.
β»οΈ Add once
Removes the registered event after it has fired once
π New Events
window_event::maximize
Fired when the window is maximized
window_event::minimize
Fired when the window is minimized
window_event::focus
Fired when the window gains or loses focus
web_event::load_finished
Fired when a page finishes loading
web_event::load_started
Fired when a page starts loading
web_event::dom_ready
Equivalent to the DOMContentLoaded event
webview::run_java_script
has been renamed to webview::execute
If you are a good at packaging feel free to update the existing port!
π¦ Full Package Artifact
Windows
inject
now works as expected... and many more!