You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Optional VERSION" Version
The VERSION field in Lua is now optional when compiling. This was a
suggestion by github.com/suftskidude, who is using a custom make system and
doesn't particularly want that field defined.
The "Custom Nothing" Version
You can now add special sentinel values for CBOR null and undefined. Just set
cbor.null
cbor.undefined
or
cbor_s.null
cbor_s.undefined
(depending upon the module you are using) to some unique value. If this value
is seen when encoding, the respective CBOR value is used, and this value will
be used when decoding. Example:
cbor = require "org.conman.cbor"
cbor.null = {} -- unique values
cbor.undefined = {}
a = { alpha = 1 , beta = cbor.null , gamma = cbor.undefined }
b = cbor.encode(a)
c = cbor.decode(b)
-- a should be equal to c
Bug fix---decoding empty string and use of unpublished module
For the empty string, it out errorw out, which was the original intent, and
for the unpublished module, pulled out the one routine called.