Rename
request.header -> request.headers
response.header -> response.headers
Url support path and query now. Remove options's path field.
httpc.get("http://127.0.0.1:9991/hello?a=1&b=2")
- Optimize send over 64byte socket message
- fs.join support one or more param
- Remove service message's
header
field
- Break changes
remove moon.raw_send's `header` param
remove moon.make_prefab
now moon.send unsupport send prefab message
- Add windows and linux build file
- Update recastnavigation version
- Update hotfix lib
- Update asio version
- Pretty print thread ID on MACOS system
- Break changes
seri.concat -> buffer.concat
moon.co_call -> moon.call
remove moon.new_service's first param
remove seri.sep_concat
- Static link mimalloc default
- Add lua json config options
- Set BUFFER_HEAD_RESERVED 16 bytes
- Add moon.raw_dispatch
- Add default param for bootstrap service
- JSON "null" values are represented as lightuserdata
moon.remove_service -> moon.kill
moon.send_prefab -> moon.raw_send
moon.set_loglevel moon.get_loglevel -> moon.loglevel
moon.set_env moon.get_env -> moon.env
moon.make_response -> make_session
moon.size -> delete
moon.error_count -> delete
zset.key -> zset.key_by_rank
- use redis's skiplist implement zset
- add game server proxy template
- use lua extraspace save lua_service*
- close the connection when accept no_descriptors
- add uuid lualib
- update lua 5.4.5
- add mimalloc submodule
- break changes
-
- socket: rename PTYPE_TEXT to PTYPE_SOCKET_TCP
-
- socket: rename PTYPE_SOCKET to PTYPE_SOCKET_MOON
-
- socket remove data type socket_error
- update yyjson v0.5.1
- update asio v1.22.1
- add more test case
- compat new version lua-language-server code intellisense
- update to lua5.4.4
- fix some lua error handle issues
- code optimize
- add lua navmesh lib
- replace json lib with yyjson, decode speed 2x of rapidjson
- add json.decode option:null_as_userdata
- bugfix: http client connection pool reset
- improve redisd service:print redis request(base64) when error
- improve moon.log avoid memory copy
- add mongodb driver
- improve message dispatch
---old style
local function docmd(sender,sessionid, CMD,...)
end
moon.dispatch('lua',function(msg,unpack)
local sender, sz, len = moon.decode(msg, "SC")
docmd(sender, unpack(sz, len))
end)
---new style
moon.dispatch('lua',function(sender,session, cmd, ...)
-- body
local f = command[cmd]
if f then
f(sender,...)
else
error(string.format("Unknown command %s", tostring(cmd)))
end
end)
- remove socket.readline. use: socket.read
- bugfix: buffer's move assignment operator
- message object passed by right value in cpp code
- use isocalendar calculate datetime
- improve code