Releases: tv-labs/lua
Releases · tv-labs/lua
v0.4.0
What's Changed
- Fix guard example in Lua.API docs by @kevinschweikert in #90
- Fix Elixir 1.19 type warning by @kevinschweikert in #91
- Remove duplicate elements on default sandbox list by @selenil in #93
- chore: upgrade to Luerl 1.5.1 by @davydog187 in #94
New Contributors
- @kevinschweikert made their first contribution in #90
- @selenil made their first contribution in #93
Full Changelog: v0.3.0...v0.4.0
v0.3.0
[v0.3.0] - 2025-06-09
Added
- Guards for encoded Lua values in
defluafunctionsis_table/1is_userdata/1is_lua_func/1is_erl_func/1is_mfa/1
Fixed
defluafunction can now specify guards when using or not using state
v0.2.1
[v0.2.1] - 2025-05-14
Added
Lua.encode_list!/2andLua.decode_list!/2for encoding and decoding function arguments and return values
Fixed
- Ensure that list return values are properly encoded
Full Changelog: v0.2.0...v0.2.1
v0.2.0
[v0.2.0] - 2025-05-14
Changed
- Any data returned from a
defluafunction, or a function set byLua.set!/3is now validated. If the data is not an identity value, or an encoded value, it will raise an exception. In the past,Luaand Luerl would happily accept bad values, causing downstream problems in the program. This led to unexpected behavior, where depending on if the data passed was decoded or not, the program would succeed or fail
Full Changelog: v0.1.1...v0.2.0
v0.1.1
[v0.1.1] - 2025-05-13
Added
Lua.put_private/3,Lua.get_private/2,Lua.get_private!/2, andLua.delete_private/2for working with private state
Full Changelog: v0.1.0...v0.1.1
v0.1.0
[v0.1.0] - 2025-05-12
Fixed
- Errors now correctly propagate state updates
- Fixed version requirements issues, causing references to undefined
luerl_new - Allow Unicode characters to be used in Lua scripts
- Files with only comments can be loaded
Changed
- Upgrade to Luerl 1.4.1
- Tables must now be explicitly decoded when receiving as arguments
defluaand other Elixir callbacks
Full Changelog: v0.0.22...v0.1.0
v0.0.22
What's Changed
- Fix typespec for Lua.API.install/3 by @davydog187 in #60
Full Changelog: v0.0.21...v0.0.22
v0.0.21
What's Changed
- Fix Lua.Table.as_string with nested tables by @davydog187 in #57
Full Changelog: v0.0.20...v0.0.21
v0.0.20
What's Changed
- (Breaking) Make Lua.Table.as_string more powerful by @davydog187 in #48
- Cleanup the docs so that examples are copy-pastable by @davydog187 in #49
- Add imports by @davydog187 in #50
- Pull in Luerl 1.2.3, allow for passing through of tref values by @davydog187 in #52
- Auto wrap functions passed to Lua.set! to receive %Lua{} by @davydog187 in #53
Full Changelog: v0.0.19...v0.0.20
v0.0.19
Full Changelog: v0.0.18...v0.0.19
Update to Luerl 1.2.2