Releases: FlowGnarly/lune
Releases · FlowGnarly/lune
0.1.5
Fixes
- net.serve no longer crashes wry.run
API Changes
- all the types that had a
stopmethod are now merged into a single type calledConnection - 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
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
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
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
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
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
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
Merge pull request #8 from HighFlowey/dev fixes from lune 0.8.3 + removed afew github actions