All notable changes to lua-state will be documented here.
Both npm package versions (packageVersion) and native binary versions (nativeVersion) are tracked.
- Lua errors now preserve non-string values passed to
error(...)viaLuaError#cause LuaError#stacknow contains a formatted Lua traceback (instead of a raw value)- Calling
error({ ... })no longer replaces the error message with"Unknown Lua error"
LuaError#causefor non-string Lua error values
- Resolve relative paths in CLI install
- Fix error on install cli-command when binary is not found
- Fix wrong options keys in CLI install
- Support for multiple return values from JS functions
- Error handling when calling JS functions from Lua
- Updated README with examples for JS function calls and error handling
- Add run bin command
- Refactor lua-state bin command with commander package
- Refactor README
- Add "null" to LuaPrimitive and replace return "undefined" to "void" in LuaFunction
- Added support for Date and BigInt
- Improved package metadata for npm search and discoverability
- Minor README improvements
- Initial stable release 🎉
- Lua 5.1–5.4 and LuaJIT support via native bindings
- CLI installer (
lua-state install) - Full TypeScript support