Download

2017-05-13, Version v0.3.0

Good news, we will land the ES6 Module support in the 1.0.0. Before that, we still have a lot of work to do.

Notable Changes

v0.3.0 is a pre-release update version of fibjs. There are many exciting features in this release such as multi-thread Worker Mode, built-in WebSocket, arm & mip arch support, better compatibility to npm. We recommend you to try these new features.

  • module:
    • support node_modules directory.
    • remove .module directory support.
    • remove __sbname support.
    • add util.compile method. JavaScript code can be built into ByteCode with .jsc extension and it can be required like require('mod.jsc'). This is very useful to ship production and protect you code.
    • support virtual zip path. You can pacck you code into a zip file and just require it like this: require('./test.zip?/b.js'))
    • syntax check after load error to speed the require.
    • SandBox.require adding base argv,set the start query dir
    • package.json support directory.
    • sandbox add --approot to set the run path.
    • remove the sandbox name from the source path
  • mq:
    • remove mq.jsHandler
  • rpc:
    • remove rpc module. Please use coroutine.Worker instead.
  • events:
    • remove Trigger Object,use events.EventEmitter instead.
  • http:
    • remove Message.result property
    • add HttpMessage.socket
    • add httpClient
  • coroutine:
    • add multi-thread Worker support.
  • process:
    • process extends EventEmitter.
    • add process.nextTick
  • ws:
    • add WebSocket module.
  • querystring:
    • add querystring module.
  • zmq:
    • add zmq module.
  • gui:
    • add gui module on windows in purpose to support webview.
  • db:
    • add MSSQL support

Commits

  • [233254d] - ws, fix: fix the close error. (xicilion)
  • [66e4367] - http, feat: add HttpMessage.socket (xicilion)
  • [15a430e] - module, remove: remove .module support (xicilion)
  • [1ca59b2] - module, remove: remove Sandbox.compile, moved to util.compile (xicilion)
  • [f1b89d3] - http, refactor: reuse request.cookies (xicilion)
  • [3624e39] - mq, remove: remove mq.jsHandler (xicilion)
  • [b7d5efd] - rpc, remove: remove rpc module, use coroutine.Worker instead. (xicilion)
  • [059e771] - http, refactor: reuse request,avoid too many objects created (xicilion)
  • [298530f] - coroutine, feat: implement native object passing (xicilion)
  • [4436f62] - coroutine, feat: implement Worker message passing (xicilion)
  • [ddc13b8] - coroutine, feat: implement Worker basic message passing,onopen event. (xicilion)
  • [326a677] - os, feat: add mac address & mask (ngot)
  • [0796c51] - mq, remove: remove mq.await, please use sync instead. (xicilion)
  • [a1219dc] - module, refactor: sandbox.run support different mod,add compile argv,compile different target. (xicilion)
  • [642ddcb] - zip, fix: ZipFile add entry check (xicilion)
  • [3773f1a] - coroutine, feat: add Worker (xicilion)
  • [7e9db7d] - net, fix: fix remotePort ntohs remotePort (#200) (Hengfei)
  • [61bd021] - global, fix: fix repl error (xicilion)
  • [c5a4786] - internal, deps: upgrade SQLlite (xicilion)
  • [108a180] - internal, deps: upgrade libgd (xicilion)
  • [d18f338] - core, remove: remove ppc arch support. (xicilion)
  • [a0f78f2] - util, feat: LruCache support modifies timeout when invoked. (xicilion)
  • [0be9fc3] - db, fix: redis pubsub avoid reentry. (xicilion)
  • [3911558] - ws, refactor: dalay web socket at background read,avoid miss event. (xicilion)
  • [9437cfc] - fs, fix: fix file.stat on windows (ngot)
  • [3480a0c] - ssl, feat: add SslSocket.stream,to query the socket (xicilion)
  • [cbd4480] - collection, feat: add List.lastIndexOf (onc3young)
  • [17393ee] - http, remove: remove Message.result (xicilion)
  • [f72bcb7] - rpc, remove: remove rpc.json (xicilion)
  • [da0d86f] - ws, fix: fix error throw when no error handler. (xicilion)
  • [214ed13] - collection, feat: collection.List add indexOf. (zmq)
  • [000b41f] - gui, refactor: change WebView event args (xicilion)
  • [b9d0cce] - ws, refactor: rename WebSocketEvent to EventInfo (xicilion)
  • [9eaaf7d] - http, feat: Message add type and data property (xicilion)
  • [2baf90e] - util, fix: fix LruCache logic (xicilion)
  • [a5582a5] - mq, refactor: jsHandler remove method map support, only support [] and {}. (xicilion)
  • [1df7977] - mq, feat: add mq.await (xicilion)
  • [c796fe9] - gui, feat: add edge CONST (ngot)
  • [b9ceb7f] - util, refactor: LRUCache updater return undefined not cache. (xicilion)
  • [7bf0a8b] - net, fix: fix localPort double ntohs port (ngot)
  • [30dd890] - registry, fix: fix a logic error. (xicilion)
  • [2301a94] - gui, feat: add gui.setVersion to chose the webview version. (xicilion)
  • [325b498] - collection. feat: add Map.set (xicilion)
  • [26a8c1b] - crypto, feat: modify pbkdf2 ,compat nodejs (xicilion)
  • [b61b9d9] - http, feat: Add Message.end to terminate chain transaction. (xicilion)
  • [232657c] - http, refactor: reuse Message.response,refactor httpHandler creates new instance by every request. (xicilion)
  • [bac5eb3] - module, refactor: syntax check after load error to speed the require. (xicilion)
  • [47ee1ae] - process, feat: process extends EventEmitter (xicilion)
  • [538f16f] - ws, feat: complete error handles logic. (xicilion)
  • [f5505cf] - db, fix: fix a SQLite backup error. (xicilion)
  • [a7fb229] - ws, feat: add WebSocketEvent for Object Event. (xicilion)
  • [8083561] - registry, feat: add registry module to operate the Windows registry. (xicilion)
  • [2735db2] - path, fix: fix path.basename error. (xicilion)
  • [6fad8ac] - ws, feat: complete close logic. (xicilion)
  • [4113654] - ws, feat: add close & response protocol (xicilion)
  • [77ae331] - ws, refactor: WebSocket.close default code to 1000 (xicilion)
  • [1568ee0] - io, refactor: bridge use async post start worker flow. (xicilion)
  • [267defa] - ws, feat: add ws.upgrade,implement the Event-Driver ws server. (xicilion)
  • [ce3bcbb] - querystring, feat: add querystring module. (xicilion)
  • [b5acc55] - gui, feat: Webview add setHtml & print. (xicilion)
  • [9155774] - gui, refactor: Webview set the init window size. (xicilion)
  • [344a76b] - gui, feat: Webview adds visible property to control the window hide or show. (xicilion)
  • [f560347] - gui, feat: Webview add the onload event (xicilion)
  • [11e7f01] - ws, feat: complete send/onmessage & more test case (xicilion)
  • [5f01c29] - ws, feat: implement WebSocket (xicilion)
  • [05c865e] - events, feat: implement events.EventEmitter.call (xicilion)
  • [e56a75c] - fs, fix: fix fs.stat mod logic error. (xicilion)
  • [8206d37] - fs, fix: fix the error Linux fs.open never throw the error. (xicilion)
  • [4d96ebd] - ws, refactor: rename websocket to ws (xicilion)
  • [e631090] - db, refactor: redis change onxxxx to property. (xicilion)
  • [b76d1a9] - events, remove: remove Trigger Object,use EventEmitter instead. (xicilion)
  • [9b76ee6] - module, remove: remove __sbname support (xicilion)
  • [5b8f29a] - util, feat: info add zmq version (xicilion)
  • [995e54a] - zmq, feat: add zmq module (xicilion)
  • [40cdcdd] - collection, feat: add List.reduce (xicilion)
  • [815e2d9] - uuid, feat: add uuid.snowflake get the unique global id. (xicilion)
  • [b892c3d] - os, feat: support os.tmpdir. (xicilion)
  • [24f4fdb] - assert, feat: assert support invoked a s a function. (xicilion)
  • [5b2eb19] - path, feat: add path.resolve. (ngot)
  • [da1656c] - process, feat: add process.umask() (ngot)
  • [d1a8bcd] - coroutine, feat: lock adds count to query task info. (xicilion)
  • [ff3c494] - process, feat: add process.uptime (ngot)
  • [8134e68] - db, fix: mongodb change mongodb m_conn struct,avoid out of bounds errors. (xicilion)
  • [1584c81] - core, refactor: exit wait all the async invoke & timer. (xicilion)
  • [b3023ca] - coroutine, refactor: coroutine.sleep use async way. (xicilion)
  • [7c9e1b7] - core, refactor: exit before all the fibers exit. (xicilion)
  • [88e43a5] - module, fix: fix .js dir can't be loaded error. (xicilion)
  • [0e86ed9] - console, refactor: change console flush policy. (xicilion)
  • [8b76da5] - fs, refactor: POSIX init umask to 0 (xicilion)
  • [93bf249] - fs, feat: more Sync API. (xicilion)
  • [0b094f0] - fs, refactor: change windows readdir. (xicilion)
  • [013ac91] - fs, refactor: change the fs.readdir result,add readdirSync. (xicilion)
  • [edcc5ca] - collection, feat: List support sort (xicilion)
  • [d332d58] - collection, feat: List support callback args (xicilion)
  • [95663b8] - url, refactor: Url property can be modified. (xicilion)
  • [722fff1] - db, refactor: SQLite use the Object async lock instead of it's custom lock. (xicilion)
  • [5f951c1] - core, feat: callback supports async lock. (xicilion)
  • [a48fada] - global, refactor: sync throw error to outside. (xicilion)
  • [66b0e0b] - db, fix: SQLite execute add lock avoid a crash. (xicilion)
  • [72a058f] - db, refactor: DBResult fields,insertId,affected return the default value without throw error. (xicilion)
  • [d55ae30] - module, feat: SandBox.require adding base argv,set the start query dir. (xicilion)
  • [7f72bea] - process, feat: add process.nextTick (xicilion)
  • [8909cdc] - global, fix: fix sync when err is null the mistake throw. (xicilion)
  • [6999331] - url, feat: url.parse add parseQueryString, (xicilion)
  • [a443e76] - db, feat: SQLite add DBConnection type to detect the current connection. (xicilion)
  • [4d2a6f1] - process, feat: add process.version (ngot)
  • [423c1ea] - net, refactor: restore the net.UrlObject to net.Url (xicilion)
  • [99706bd] - events, feat: add EventEmitter (xicilion)
  • [508347b] - buffer, feat: add buffer module. (xicilion)
  • [d545164] - util, feat: add util.inherits (xicilion)
  • [d2d5cea] - net, refactor: change socket.bind background thread. (xicilion)
  • [32d0d28] - process, feat: add process global & some method. (xicilion)
  • [f1ebb86] - util, fix: fix format error. (xicilion)
  • [de5e5b3] - module, feat: package.json support directory. (xicilion)
  • [0a20b2d] - console, fix: fix osx ESC. (xicilion)
  • [b72efaa] - http, feat: httpClient add more method. (xicilion)
  • [cb25286] - core, fix: release callback function,avoid memory leak. (xicilion)
  • [750cdf0] - io, feat: add io.bridge for stream forward both direction. (xicilion)
  • [059bab9] - io, feat: add io.copyStream (xicilion)
  • [b4e95fe] - http, feat: httpClient add default userAgent. (xicilion)
  • [7d61d13] - url: Add:url module. (xicilion)
  • [50a5d35] - net, refactor: rename net.Url to net.UrlObject (xicilion)
  • [18591b7] - net, feat: Socket support UDP. (xicilion)
  • [7122959] - global, feat: add global,compat Node.js (xicilion)
  • [7fe69e6] - db, feat: SQLite add SQLITE_BUSY support. (xicilion)
  • [cbde0fb] - db, fix: sqlite prepare retry,avoid error. (xicilion)
  • [6f3e634] - coroutine, feat: parallel add a new mode. (xicilion)
  • [30b8a87] - mq, refactor: adjust Routing match sequeue,add put method. (xicilion)
  • [5e22575] - http, fix: fix httphandler zip error. (xicilion)
  • [9fd0ce4] - gui, feat: webview support DPI. (xicilion)
  • [1ef9a62] - gui, feat: webview on HD display auto scale. (xicilion)
  • [05c9357] - module: support:node_modules (xicilion)
  • [27d092c] - module, fix: fix when require folder/index error can't be throw error. (xicilion)
  • [4b5b358] - core fix: fix socket error canceled on Window XP. (xicilion)
  • [43832a7] - fs, feat: fs.open cache the zip file, speed require. (xicilion)
  • [d6c4b71] - fs, fix: fix fs.open zip logic error on windows. (xicilion)
  • [e1a0fdf] - encodeing, fix: fix utf16 encoding error. (xicilion)
  • [c30506c] - gui, feat: webview handle PARSE_SECURITY_DOMAIN,support xmlhttp make a request. (xicilion)
  • [cb8df8b] - fs, fix: fix fs.stat & File.stat error on window xp. (xicilion)
  • [a941e5f] - module, feat: sandbox add --approot to set the run path. (xicilion)
  • [e192bf0] - gui, refactor: webview close the javascript error report. (xicilion)
  • [9bf89dd] - gui, refactor: webview disable the right click menu. (xicilion)
  • [85b78fb] - gui, feat: add gui.open window option. (xicilion)
  • [7373d75] - gui, feat: add gui.open and move , size event. (xicilion)
  • [530f80d] - gui, feat: webview add postMessage/onmessage. (xicilion)
  • [edeb50e] - gui, feat: WebView add wait and move load function logic to open. (xicilion)
  • [71d2b57] - gui, fix: fix the relative path error on Window XP. (xicilion)
  • [21e3dab] - gui, feat: support fs path. (xicilion)
  • [d6f9e30] - net, feat: add info, get the result of os.networkInfo. (xicilion)
  • [a811253] - os, feat: add printerInfo get the printer info. (xicilion)
  • [47ed32e] - gui, feat: set windows to HD. (xicilion)
  • [86282fd] - gui, feat: add webview event Handler. (xicilion)
  • [13d0451] - gui, fix: fix webview open page very slow and the printer problem. (xicilion)
  • [443d8e0] - gui, refactor: remove the 3D border. (xicilion)
  • [b57767b] - db, refactor: MySQL set command timeout 0. (xicilion)
  • [9f7b01a] - db, refactor: when SQL query return null, length is 0, not throw an error. (xicilion)
  • [6c05f87] - gui, feat: add gui.open. (xicilion)
  • [1936d6f] - db, feat: MySQL support affected (xicilion)
  • [4823ac6] - gui, feat: webview support close function. (xicilion)
  • [ed14cb1] - module, feat: require supprt .zip? extension. (xicilion)
  • [db8e099] - fs, feat: fs.open support virtual zip path. (xicilion)
  • [f32d777] - fs, refactor: fs.open return SeekableStream type. (xicilion)
  • [e2b3f4b] - gui, feat: add gui mode,add windows mode entry. (xicilion)
  • [11d999e] - gui, feat: webview logo (xicilion)
  • [9f6f9bf] - module, remove: remove the sandbox name from the source path. (xicilion)
  • [1f09d6f] - fs, refactor: fs.readFile return Buffer Object and add fs.readTextFile for txt read. (xicilion)
  • [ee14ea1] - encoding, fix: fix sometimes parse error. (xicilion)
  • [9682aa9] - console, fix: fix big string output error on Window XP. (xicilion)
  • [6dfdc20] - db, feat: MySQL support null & decimal. (xicilion)
  • [ee4930e] - db, feat: add MSSQL support. (xicilion)
  • [b1c68ef] - db, refactor: SQLite default to wal mode. (xicilion)
  • [62af5f0] - os, feat: Add Service Object on Windows. (xicilion)
  • [0e24bc9] - http, fix: fix the message starts with '0' cut off when transferred by chunk. (xicilion)
  • [340fcd9] - mq, feat: Routing add all/get/post (xicilion)
  • [116d751] - console, feat: support simulates the mouse. (xicilion)
  • [123869f] - fs, feat: add copy function. (xicilion)
  • [2fa93ab] - console, fix: fix the fn keyboard support. (xicilion)
  • [a4cf360] - gui, refactor: rename hasWindow to findWindow & return the rect on Windows. (xicilion)
  • [7812ca9] - gui, fix: hasWindow ignore the hidden window. (xicilion)
  • [9ea564f] - console, feat: support simulates keyboard input for an automated task. (xicilion)
  • [19885a3] - SubProcess, feat: add hasWindow. (xicilion)
  • [201218f] - gui, feat: add Windows gui convert tool. (xicilion)
  • [7f4aeea] - gui, feat: add gui module on windows in purpose to support webview. (xicilion)
  • [80f1463] - SubProcess, refactor: use TerminateProcess to terminate process on Windows. (xicilion)
  • [6ef637a] - SubProcess, refactor: directly invoke the process on windows without cmd. (xicilion)
  • [328d121] - smtp, feat: add timeout & ssl connection support. (xicilion)
  • [9e894ee] - ssl, feat: ssl.connect support timeout (xicilion)
  • [30c905e] - module, feat: Sandbox support compile method and require/addScript/run support jsc. (xicilion)
  • [bd52b4f] - fs, feat: fs.writeFile support binary data. (xicilion)
  • [137a9e0] - core, fix: fix nonascii char on windows. (xicilion)
  • [b07c2bc] - console, feat: add event log output on windows. (xicilion)
  • [d470614] - console, feat: add moveTo, hideCursor, showCursor, clear (xicilion)
  • [0596f18] - console, fix: fix console.timeEnd interger overflow error (asionius)
  • [09ed0fc] - SubProcess, fix: fix the timer create an error of SubProcess on windows. (asionius)
  • [c0f17ec] - console, feat: add width,height for query or set the console size. (xicilion)
  • [94cecb3] - http, feat: add httpClient (asionius)
  • [f259bcc] - core, feat: support mips arch (xicilion)
  • [f94b0ee] - Socket, feat: socket add timeout (xicilion)
  • [ef9577d] - internal, deps: upgrade gd (xicilion)