Skip to content

Releases: gudzpoz/luajava

v4.0.2

29 Aug 07:57
Compare
Choose a tag to compare

What's Changed

  • feat: enable LUA_COMPAT for Lua 5.2, 5.3, and 5.4 by @ccarrasc in #193
  • fix: try to load class from multiple class-loaders by @gudzpoz in #202
  • Bump luajit/jni/luajit from ae4735f to f725e44 by @dependabot in #201

New Contributors

Full Changelog: v4.0.1...v4.0.2

v4.0.0

29 May 16:39
Compare
Choose a tag to compare

What's Changed

Major API Changes (Breaking!) (#171)

  • Methods that might trigger Lua errors now throw LuaExceptions instead of returning LuaError enums.
  • LuaValue API Changes:
    • LuaValues now implement the Map interface, allowing direct manipulation of tables.
    • Lua now implements a newly added LuaThread interface, supporting directly setting and retrieving global variables as LuaValues.
    • Renamed Lua::execute to Lua::eval.
    • Added LuaValue::toProxy, LuaValue::toNumber/String/....
    • Removed LuaValue::close, fully offloading the job to phantom reference cleaners.
    • Added LuaFunction to allow implementing Lua function without knowledge of Lua C API.
  • Methods in LuaNatives (renamed from LuaNative) are now public.
  • Lua API java.catched is renamed to java.caught (still aliased to java.catched though).

Minor API Changes

  • Lua '==' now detects jobject identity. (#160)
  • Passing 64-bit integers across proxies and jobject calls in Lua 5.3 and on is now supported. (#167)
    • On 32-bit machines, when using 64-bit integers in Lua 5.3 and on, the result is no longer truncated into int32 then into double but directly approximated to double instead.

API Additions

  • Added Lua::newTable method by @dayo05 in #173
  • Added Lua::toInteger method to provide access to 64-bit integers in Lua 5.3 and beyond (#167)

New Bindings & Platforms

  • Added LuaJ bindings for platforms with no precompiled binaries (#164)
  • Supported Windows on ARM64 (#176)
  • Precompiled untested iOS binaries (#174)

Fixes

  • Calling Lua::createTable(nArr, nRec) wrongly called lua_createtable(nArr, nArr).

Maintenance Changes

  • Bump luajit/jni/luajit (#175)
  • Bump other dependencies

New Contributors

Full Changelog: v3.5.0...v4.0.0

v3.5.0

17 Nov 06:44
Compare
Choose a tag to compare

What's Changed

  • Breaking: Bumped minimum Android API version to that of NDK 26 by @gudzpoz in #130
  • Fix incorrect index usage in table manipulation by @gudzpoz in #128
  • Bump luajit/jni/luajit from ff6c496 to 113a168 by @dependabot in #131

Full Changelog: v3.4.1...v3.5.0

v3.4.1

18 Jun 09:50
Compare
Choose a tag to compare

What's Changed

  • Re-open the library with RTLD_GLOBAL by @gudzpoz in #97
  • Update dependencies and Lua versions (Lua 5.4 and LuaJIT)
  • Example console improvements

Full Changelog: v3.4.0...v3.4.1

v3.4.0

07 Mar 02:35
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.3.0...v3.4.0

v3.3.0

07 Nov 12:58
Compare
Choose a tag to compare

What's Changed

  • Support Java 9 Platform Module System in #44
    • Breaking: Some classes are moved out of party.iroiro.luajava, e.g., Lua51, Lua52, Lua53, Lua54 and LuaJit.

Full Changelog: v3.2.0...v3.3.0

v3.2.0

08 Sep 01:56
Compare
Choose a tag to compare

What's Changed

  • Added basic JSR-223 provider with jsr223 artifact in #41
  • LuaJava compatibility in #42
    • Added java.loadlib
    • Added another Lua module searcher / loader using java.loadlib
    • Added documentation about LuaJava compatibility

Full Changelog: v3.1.3...v3.2.0

v3.1.3

30 Aug 12:19
Compare
Choose a tag to compare

What's Changed

  • Interfacing lua_dump and lua_tolstring with Lua#dump, Lua#toBuffer and Lua#toDirectBuffer
  • Bumped LuaJIT version

v3.1.2

18 Aug 08:06
9a20f4f
Compare
Choose a tag to compare

What's Changed

  • Support glibc of lower versions as well as musl with gcompat in #36
  • Added --test --file --expr options to the Lua console
  • Future-proofing by moving from finalize to PhantomReference
  • Moved loader initialization to openLibrary

Full Changelog: v3.1.1...v3.1.2

v3.1.1

09 Aug 02:56
Compare
Choose a tag to compare

What's Changed

  • Proxy improvement in #23 #30 #32 and 3612472
    • Added default method handling
    • Automatic proxy conversion for lambdas
    • Added java.unwrap
  • Supporting import of nested packages / classes in #28
  • Added support for Android down to API level 19 (Android 4.4) and tests in #33
  • Garbage collecting proxies, values and threads in #34

Full Changelog: v3.1.0...v3.1.1