diff --git a/README.md b/README.md index a6e5bbe..a20084d 100644 --- a/README.md +++ b/README.md @@ -193,6 +193,19 @@ See LICENSE file. ## History +### v0.30 (Sep 01 2017) + - Updated `pairs` to avoid using `__pairs` in Lua 5.2+. + - Added `metatostring` option to disable `__tostring` processing during serialization. + - Added `level` to the parameters of the custom function (closes #25). + - Added `maxlength` option to limit the space taken by table elements. + - Optimized serialization of functions when `nocode` option is specified. + - Added protection from `__serialize` check failing (pkulchenko/ZeroBraneStudio#732). + - Added `keyignore` option for the serializer. + - Added check for environments that may not have 'default' tables as tables. + - Added numeric format to preserve floating point precision (closes #17). + - Added using `debug.metatable` when available. + - Improved handling of failures in `__tostring` (pkulchenko/ZeroBraneStudio#446). + ### v0.28 (May 06 2015) - Switched to a method proposed by @SoniEx2 to disallow function calls (#15). - Added more `tostring` for Lua 5.3 support (pkulchenko/ZeroBraneStudio#401). diff --git a/misc/serpent-0.30-1.rockspec b/misc/serpent-0.30-1.rockspec new file mode 100644 index 0000000..60dc63d --- /dev/null +++ b/misc/serpent-0.30-1.rockspec @@ -0,0 +1,25 @@ +package = "serpent" +version = "0.30-1" +source = { + url = "git://github.com/pkulchenko/serpent.git", + tag = "0.30" +} + +description = { + summary = "Lua serializer and pretty printer", + homepage = "https://github.com/pkulchenko/serpent", + maintainer = "Paul Kulchenko ", + license = "MIT", +} + +dependencies = { + "lua >= 5.1, < 5.4", +} + +build = { + type = "builtin", + modules = { + ["serpent"] = "src/serpent.lua", + }, + copy_directories = { "t" }, +} diff --git a/src/serpent.lua b/src/serpent.lua index df7edb1..4558a1b 100644 --- a/src/serpent.lua +++ b/src/serpent.lua @@ -1,4 +1,4 @@ -local n, v = "serpent", "0.291" -- (C) 2012-17 Paul Kulchenko; MIT License +local n, v = "serpent", "0.30" -- (C) 2012-17 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true}