From b49f9539b6e76e0ceb303373f7479851b8268287 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Sat, 19 Jun 2021 14:42:58 +0100 Subject: [PATCH] Update CHANGELOG --- CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 157d744..df88f95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ +## v0.6.0 +Changes since 0.5.4 +- New `UserDataFields` API +- Full access to `UserData` metatables with support of setting arbitrary fields. +- Implement `UserData` for `Rc>`/`Arc>`/`Arc>` where `T: UserData`. +- Added `SerializeOptions` to to change default Lua serializer behaviour (eg. `nil/null/array` serialization) +- Added `LuaOptions` to customize Lua/Rust behaviour (currently panic handling) +- Added `ToLua`/`FromLua` implementation for `Box` and `Box<[T]>`. +- Added `Thread::reset()` for luajit/lua54 to recycle threads (coroutines) with attaching a new function. +- Added `chunk!` macro support to load chunks of Lua code using the Rust tokenizer and optinally capturing Rust variables. +- Improved errors reporting (`Error`'s `__tostring` method formats full stacktraces). This is useful in a module mode. +- Added `String::to_string_lossy` +- Various bugfixes and improvements + +Breaking changes: +- Errors are always `Send + Sync` to be compatible with the anyhow crate. +- Removed `Result` from `LuaSerdeExt::null()` and `LuaSerdeExt::array_metatable()` (never fails) +- Removed `Result` from `Function::dump()` (never fails) +- Removed `AnyUserData::has_metamethod()` (if favour of full access to metatables) + ## v0.6.0-beta.3 - Errors are always `Send + Sync` to be compatible with anyhow crate