Skip to content

Latest commit

 

History

History
92 lines (56 loc) · 3 KB

CHANGELOG.md

File metadata and controls

92 lines (56 loc) · 3 KB

Changelog

0.0.17 (binary 0.1.14) -- 2024-10-02

  • Add webview.loadUrl to load a new URL after the webview is initialized
  • Add the ability to specify headers when instantiating a webview with a URL
  • Add userAgent to WebViewOptions to construct a new webview with a custom user agent.

0.0.16 (binary 0.1.13) -- 2024-09-29

  • Add initializationScript to WebViewOptions. Allows providing JS that runs before onLoad.

0.0.15 (binary 0.1.12) -- 2024-09-28

  • Pages loaded with html are now considered to be in a secure context.
  • When creating a webview with html or calling webview.loadHtml() the webview now has a default origin which can be changed via the origin parameter
  • Improved type generation to output more doc strings and documented more code
  • Update TLDraw example with a persistence key

0.0.14 (binary 0.1.11) -- 2024-09-26

  • fix an issue where arm64 macs weren't downloading the correct binary

0.0.13 (binary 0.1.11) -- 2024-09-26

  • added webview.loadHtml(...)

0.0.12 (binary 0.1.10) -- 2024-09-26

BREAKING CHANGES

  • WebViewOptions accept_first_mouse is now acceptFirstMouse
  • WebViewOptions fullscreen was removed in favor of size

Additions

  • The webview size can be altered by providing WebViewOptions size as either "maximized", "fullscreen", or { width: number, height: number }
  • added webview.maximize()
  • added webview.minimize()
  • added webview.fullscreen()
  • added webview.getSize()
  • added webview.setSize({ ... })

Fixes

  • webview.on and webivew.once had their types improved to actually return the result of their event payload

Misc

  • Tao updated to v0.30.2
  • Wry upgraded to v0.45.0

0.0.11 (binary 0.1.9) -- 2024-09-23

  • Adds more doc comments

0.0.10 (binary 0.1.9) -- 2024-09-23

  • Adds an ipc flag to enable sending messages from the webview back to the host deno process.
  • Adds an IPC example
  • Updates notifications to pass message bodies through

0.0.9 (binary 0.1.8) -- 2024-09-23

  • Adds a getVersion method to Webview that returns the binary version.
  • Adds a check on startup that compares the expected version to the current version.
  • Adds slightly more graceful error handling to deserialization errors in the deno code.

0.0.8 (binary 0.1.7) -- 2024-09-23

NOTE: The binary version was bumped this release, but it doesn't actually have changes. This is just me forcing a new release to be published.

  • Fixed the release URL to ensure the download comes from the correct place

0.0.7 (binary 0.1.6) -- 2024-09-23

  • Added this changelog
  • Add the ability to show and hide the webview window via .setVisibility(true/false)
  • Added the ability to check if the webview window is visible via .isVisible()

0.0.6 (binary 0.1.5) -- 2024-09-23

  • Fixed a bug where .on and .once weren't firing for the webview's lifecycle events

0.0.5 (binary 0.1.5) -- 2024-09-23

  • Improved type generation to avoid publishing slow types to JSR

0.0.4 (binary 0.1.5) -- 2024-09-22

  • Added examples, doc comments to code