Skip to content

Releases: FlowGnarly/lune

0.1.5

02 May 14:13
a09332e

Choose a tag to compare

Fixes

  • net.serve no longer crashes wry.run

API Changes

  • all the types that had a stop method are now merged into a single type called Connection
  • the connection type has an is_running method that returns a boolean
  • event enums are strings instead of userdata types

example: msg == wry.events.CloseRequested would now be msg.event_type == "CloseRequested"

this let's us have better typechecking, for example in an if statement where we know event_type is CursorMoved, the type system would know the event only carries the position property

Documentation

  • added a section called Examples, currently it has one example for creating a simple UI element with basic error handling

Full Changelog: v0.1.4...v0.1.5

0.1.4

30 Apr 11:05
26eddee

Choose a tag to compare

Known Issue(s)

  • net.serve crashes wry.run because it doesn't sleep between each loop, this is fixed in 0.1.5

Changes to WebViewConfig

  • webview config now accepts multiple custom protocols, instead of one
  • webview config now has an option for turning dev_tools on and off, which by default is always false

Changes to WebView

  • added evaluate_noresult(code: string) - doesn't yield and doesn't return the last statement in the javascript code
  • added evaluate_callback(code: string, callback: (result: unknown) -> void) - doesn't yield and instead returns the last statement in the javascript code to the provided callback function

Full Changelog: v0.1.3...v0.1.4 #18

0.1.3

28 Apr 16:21
987d3b2

Choose a tag to compare

Known Issues

  • Using webview:evaluate(...) will yield infinitely if webview is getting a response from a URL to load a page, the solution to this is to use webview:evaluate(...) inside task.spawn-- next version will have webview:evaluate_noresult(...) and webview:evaluate_callback(...) made for this specific scenario

What's Changed

  • A complete rewrite for version 0.1.3 by @HighFlowey in #17

Full Changelog: v0.1.2...v0.1.3

0.1.2

23 Apr 10:47
f878ef5

Choose a tag to compare

Fixes

  • creating window in modulescripts no longer panics

Improvements

  • you can create multiple windows now

API Changes

  • window methods dont have dot syntax in this version (e.g. .set_visible() is now :set_visible())
  • builtin window module got renamed to webview (before: require("@luneweb/window") | now: require("@luneweb/webview"))
  • removed window.process_event
  • added webview.event_loop
  • added .id property to window

Changes from lune

  • modules are cached the same way as roblox studio
  • few changes to net library idk
  • cross compilation

Full Changelog: v0.1.1...v0.1.2

0.1.1

20 Apr 22:37
3dd6f71

Choose a tag to compare

0.1.1 Pre-release
Pre-release

Known Issues

  • using window.new in a module panics, because app data gets borrowed while the module is being cached, so window.new fails to borrow it.

What's Changed #12

  • fixed @LuneWeb require
  • added --no-console flag to build command

Full Changelog: v0.1.0...v0.1.1

0.1.0

20 Apr 17:33
14be146

Choose a tag to compare

0.1.0 Pre-release
Pre-release

Knows Issues

  • @LuneWeb alias in requires doesn't work in this version

What's Changed

  • Regex library

Full Changelog: 0.8.3-1...v0.1.0

0.8.3-1

19 Apr 22:33
9158d11

Choose a tag to compare

0.8.3-1 Pre-release
Pre-release

What's Changed

  • process_events now runs your callback in a loop by @HighFlowey in #9

Full Changelog: 0.8.3...0.8.3-1

0.8.3

18 Apr 21:47
608c85c

Choose a tag to compare

0.8.3 Pre-release
Pre-release
Merge pull request #8 from HighFlowey/dev

fixes from lune 0.8.3 + removed afew github actions