Skip to content

Conversation

@nglmercer
Copy link
Contributor

Library update and migration from bun to yarn,

  • New methods: bind, onEvent() or bind() - they are equivalent
  • New method: reload in "JsWebview"
  • New method: exit in "impl Application"
  • update github workflows
  • update package json

- Switch package manager from yarn to bun
- Upgrade napi-rs from v2 to v3 with updated native bindings
- Update tao from 0.30.8 to 0.34.5 and wry from 0.47.0 to 0.48.0
- Update CI workflows to use bun for installation and caching
- Regenerate type definitions and JavaScript bindings for napi-rs v3
- Update development documentation with bun prerequisites
- Remove yarn, taplo configurations and add bun-specific ignores
- Add new build scripts: build:all, build:prebuilds, clean, check, clippy
- Improve native binding loading with better error handling and platform support
Replace yarn with bun across CI/CD workflows, husky hooks, and development scripts. Refactor Rust code to use more idiomatic patterns including unwrap_or_default, map instead of match expressions, and simplified callback handling.
Add new methods for application lifecycle management and window control:
- Application.exit() for graceful shutdown with resource cleanup
- BrowserWindow.hide() and show() for window visibility control
- Webview.reload() for reloading webview content
- ApplicationCloseRequested event for handling close events
- Application.bind() as an alias for on_event()

Updated CI workflow to install required system dependencies for Linux.
Added documentation and examples for the new closing functionality.
Add window identification, management methods, and application lifecycle control.
Windows now have unique IDs for tracking, with new methods for closing specific
windows. The Application can now prevent automatic exit when all windows are
closed, requiring explicit exit() call.

BREAKING CHANGE: package.json type changed from commonjs to module, affecting
import syntax for consumers of this package
@nglmercer nglmercer changed the title update dependecies and crates, add reaload in webview and exit on app update dependecies and crates, add reload in webview, and add exit on app Jan 9, 2026
@twlite twlite merged commit 7224645 into webviewjs:main Jan 9, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants