New
v0.4.0
Highlights
- The package and module are renamed from ziglua to zlua. This is to follow Zig conventions to not include the word "zig" in the name to avoid redundancy. The repo is still called ziglua.
- Improved documentation.
- Lua version updates: Lua 5.4.7 and Luau 0.653.
- Added zlua.define() function to generate Lua Language Server type annotation files.
- zlua.wrap() now supports functions that return error unions.
What's Changed
- fix: replace
lua_yieldwith what it expands to to avoid macro typecheck error by @robbielyman in https://github.com/natecraddock/ziglua/pull/88 - Fix example code in the README by @oakmac in https://github.com/natecraddock/ziglua/pull/90
- Invert the argExpected condition to match Lua docs by @luchak in https://github.com/natecraddock/ziglua/pull/98
- Luals docgen by @VisenDev in https://github.com/natecraddock/ziglua/pull/99
- use lua_objlen for luajit in rawLen function by @axdank in https://github.com/natecraddock/ziglua/pull/100
- Add a method to set the Luau interrupt callback by @luchak in https://github.com/natecraddock/ziglua/pull/97
- remove const qualifier if required by @axdank in https://github.com/natecraddock/ziglua/pull/102
- Remove @cImport in favor of translateC by @luchak in https://github.com/natecraddock/ziglua/pull/96
- add missing path by @VisenDev in https://github.com/natecraddock/ziglua/pull/103
- build fixes for zig dev 0.14.0-dev.1820+ea527f7a8 by @nurpax in https://github.com/natecraddock/ziglua/pull/105
- fix: remove
Lua.equalwith compile error for lua 5.2, 5.3, 5.4 by @robbielyman in https://github.com/natecraddock/ziglua/pull/118 - Update Ziglua to support the latest commit of Zig master by @darltrash in https://github.com/natecraddock/ziglua/pull/119
- expose
cas build module and fixexportFnby @axdank in https://github.com/natecraddock/ziglua/pull/121 - Update Luau to 0.653 by @noxabellus in https://github.com/natecraddock/ziglua/pull/122
- Fix build break for zig 0.14.0-dev.2596 by @nurpax in https://github.com/natecraddock/ziglua/pull/131
- fix generation of lj_folddef.h in luajit build by @bfredl in https://github.com/natecraddock/ziglua/pull/133
- update ziglua to work with zig 0.14.0-dev.3259+0779e847f by @nurpax in https://github.com/natecraddock/ziglua/pull/134
- fix(docs): update docs.yml to use newer upload-artifact action by @robbielyman in https://github.com/natecraddock/ziglua/pull/135
- fix(build)!: update to zig 0.14.0 by @robbielyman in https://github.com/natecraddock/ziglua/pull/136
- deps: update to new hash by @rockorager in https://github.com/natecraddock/ziglua/pull/141
- readme: change dependency name from ziglua to lua_wrapper by @robbielyman in https://github.com/natecraddock/ziglua/pull/140
- fix(build)!: lua_wrapper -> zlua by @robbielyman in https://github.com/natecraddock/ziglua/pull/142
- fix pushAutoFunction to use lowercased pointer size by @challengee in https://github.com/natecraddock/ziglua/pull/144
- Make dependencies lazy by @natecraddock in https://github.com/natecraddock/ziglua/pull/145
- Add .gitattributes by @natecraddock in https://github.com/natecraddock/ziglua/pull/146
New Contributors
- @oakmac made their first contribution in https://github.com/natecraddock/ziglua/pull/90
- @luchak made their first contribution in https://github.com/natecraddock/ziglua/pull/98
- @darltrash made their first contribution in https://github.com/natecraddock/ziglua/pull/119
- @noxabellus made their first contribution in https://github.com/natecraddock/ziglua/pull/122
- @rockorager made their first contribution in https://github.com/natecraddock/ziglua/pull/141
- @challengee made their first contribution in https://github.com/natecraddock/ziglua/pull/144
Full Changelog: https://github.com/natecraddock/ziglua/compare/0.3.0...0.4.0