4.4 KiB
4.4 KiB
CHANGELOG
[3.3.1-dev.0] - 2022-04-27
Fixed
HttpConnection.status
not correct when request aborted by client
[3.3.0] - 2022-04-15
Added
- Builtin heartbeat support
- New options
logLevel
Fixed
- Add response header
Content-Type: application/json; charset=utf-8
for JSON mode under HttpServer, to fix the decoding issue in Chrome dev tools.
[3.2.5] - 2022-04-12
Added
- New server options
corsMaxAge
to optimized preflight requests, default value is 3600.
Fixed
NonNullable
cannot be encoded and decoded when as a property in interface
[3.2.3] - 2022-03-25
Added
- Print debug-level log when "pre flow" is canceled
Changed
- Log
[ResErr]
renamed to[ApiErr]
to consist with client's. - Log
ApiRes
andApiErr
once they are ready to send, instead of after send them.
Fixed
- When
preSendDataFlow
return undefined, do not send "Internal Server Error". - Remove some unused code.
[3.2.2] - 2022-03-22
Fixed
postDisconnectFlow
not executed whendisconnect()
manually
[3.2.1] - 2022-03-21
Added
preRecvDataFlow
add paramserviceName
- Support change
dataType
inpostConnectFlow
Fixed
- Remark text error
[3.2.0] - 2022-02-26
Added
- Support using
keyof
- Support type alias and
keyof
inPick
andOmit
- Support
Pick<Intersection>
andOmit<Intersection>
- Support
interface
extends Mapped Type, likePick
Omit
- Support
Pick<XXX, keyof XXX>
- Support
Pick<XXX, TypeReference>
- Support
Pick<UnionType>
andPick<IntersectionType>
, the same toOmit
- Support reference enum value as literal type,like:
export enum Types { Type1, Type2 } export interface Obj { type: Types.Type1, value: string }
Changed
SchemaType
switched to class
[3.1.9] - 2022-01-12
Added
mongodb-polyfill.d.ts
to fixed mongodb type bug.
[3.1.6] - 2021-12-29
Changed
- Return request type error detail when using JSON
[3.1.5] - 2021-12-23
Fixed
- Optimize aliyun FC support of
server.inputJSON
[3.1.4] - 2021-12-18
Added
WsServer
now support client usebuffer
as transfering format when server setjson: true
Fixed
- Type error when disable
skipLibChecks
- Cannot resolve JSON when
headers
isapplication/json; charset=utf-8
- Cannot resolve serviceName when there is query string in the URL
[3.1.3] - 2021-12-04
Added
conn.listenMsg
Fixed
- Do not
broadcastMsg
whenconns.length
is0
[3.1.2] - 2021-11-17
Added
server.inputJSON
andserver.inputBuffer
- Add new dataType
json
[3.1.1] - 2021-11-09
Added
- HTTP Text 传输模式下,区分 HTTP 状态码返回,不再统一返回 200
[3.1.0] - 2021-11-08
Added
- WebSocket 支持 JSON 格式传输
- JSON 格式传输支持
ArrayBuffer
、Date
、ObjectId
,自动根据协议编解码为string
Changed
jsonEnabled
->json
[3.0.14] - 2021-10-25
Added
- 增加
server.autoImplementApi
第二个参数delay
,用于延迟自动协议注册,加快冷启动速度。
[3.0.13] - 2021-10-22
Added
- 增加
server.callApi
的支持,以更方便的适配 Serverless 云函数等自定义传输场景。
[3.0.12] - 2021-10-22
Fixed
- 修复
WsServer
客户端断开连接后,日志显示的ActiveConn
总是比实际多 1 的 BUG
[3.0.11] - 2021-10-18
Added
- 增加对
mongodb/ObjectId
的支持
[3.0.10] - 2021-10-13
Changed
BaseConnection
泛型参数默认为any
,便于扩展类型HttpClient
andWsClient
no longer have default type param
[3.0.9] - 2021-10-06
Changed
strictNullChecks
默认改为false
[3.0.8] - 2021-10-06
Added
- Optimize log level
[3.0.7] - 2021-10-06
Added
- Optimize log color
[3.0.6] - 2021-09-30
Added
- "Server started at ..." 前增加 "ERROR:X API registered failed."
Changed
HttpServer.onInputBufferError
改为call.error('InputBufferError')
- 替换
colors
为chalk
[3.0.5] - 2021-08-14
Added
- Optimize log for
sendMsg
andbroadcastMsg
- Return
Internal Server Error
whenSendReturnErr
occured
Changed
- Remove error
API not return anything
- handler of
client.listenMsg
changed to(msg, msgName, client)=>void
Fixed
- NodeJS 12 compability issue (
Uint8Array
andBuffer
is not treated samely)
[3.0.3] - 2021-06-27
Added
server.listenMsg
would returnhandler
that passed in