node_interop 0.1.0-beta.3 node_interop: ^0.1.0-beta.3 copied to clipboard
Interop library for writing NodeJS apps and modules in Dart.
Changelog #
0.1.0-beta.3 #
- More updates to bindings.
- Added new
async.dart
library with basic implementations ofReadableStream<T>
,WritableStream<T>
andNodeIOSink
. - Added implementations of server side
HttpRequest
andHttpResponse
tohttp.dart
, as well some other objects likeHttpHeaders
. - Added
dartifyError(JsError error)
to the main library which converts from JSError
instances in to Dart's equivalent. - Implemented more methods in
File
:openRead
,openWrite
,readAsBytes
. - Deprecated
createJSFile
intest.dart
library. UsecreateFile
instead.
0.1.0-beta.2 #
jsObjectToMap
deprecated. There is new helper functiondartify
. See documentation for more details.- New
jsify
helper function. - Clarified type of HTTP server
requestListener
. - New
createJSFile
test util intest.dart
.
0.1.0-beta.1 #
- Breaking changes:
NodePlatform
is no longer exported fromnode_interop.dart
library.- Library-level
exports
getter was removed. Nowexports
is a direct reference to native JS object. Replace any calls toexports.setProperty(name, value)
with new API:node.export(name, value)
. - "http" module:
Agent
,Server
,AgentOptions
renamed toHttpAgent
,HttpServer
,HttpAgentOptions
respectively. - "http" module:
createAgent
renamed tocreateHttpAgent
. node_interop/bindings.dart
was removed. All bindings are available through mainnode_interop/node_interop.dart
import.
- New:
- Many updates to documentation.
- Main package's library now exposes all (implemented) Node API bindings.
- New
node
library object with centralized access to the Node platform and runtime information, as well as module globals likerequire
andexports
. - Exposed parts of "https", "tls", "dns" and "net" module bindings.
- Added HTTPS support to
NodeClient
fromnode_interop/http.dart
. - Updated examples.
- Gitter channel is now up: https://gitter.im/pulyaevskiy/node-interop.
0.0.7 #
- Added
node_interop/test.dart
library withinstallNodeModules()
helper function. See dartdoc for more details.
0.0.6 #
jsObjectToMap
: added null-check.- Added basic HTTP client implementation for Node, based on an interface
from 'http' package. Use with
import package:node_interop/http.dart
.
0.0.5 #
- Streamlined bindings layer and exposed as it's own library. Use
import package:node_interop/bindings.dart
to get access. - Added bindings for 'http' module (work in progress).
0.0.4 #
- Upgraded to
test
package with support for running tests in Node - Implemented
NodeFileSystem.file()
andFile.writeAsStringSync()
.
0.0.3 #
- Added bindings for
Console
.
0.0.2 #
- Switched to use official
node_preamble
package
0.0.1 #
- Initial version