util.inspect
binding.dartify
regarding conversion of JS object keys (#52).fs.writeSync
and fs.readSync
to return int
instead of void
.No functional changes in this version, it is published to replace obsolete 0.0.7
version on the Pub's package homepage to improve discoverability.
Ongoing work will continue in 1.0.0-dev.*
branch until it's considered stable and feature complete. Make sure to checkout recent dev version for latest updates.
Non-breaking changes may be published to the stable track periodically.
HttpsAgentOptions
with basic TLS/SSL parameters.HttpsAgentOptions
instead of HttpAgentOptions
.String
arguments and allow any type.JsError
constructor definition to match Node.js documentation.ServerResponse.getHeader
return type from String
to dynamic
.undefined
value in node_interop/js.dart
.dartify
utility function when converting plain JS objects to Dart Map
. Returned map is now of type Map<String, dynamic>
instead of Map
.promiseToFuture
utility function.fs.realpathSync
.dns
, events
, fs
, http
, https
, module
, net
, os
, path
, process
, querystring
, stream
, timers
, tls
.dns
module function definitions (still missing data structures).pubspec.yaml
anymore. Build system is now based on build
package. See docs for more details.node_io
and node_http
. This way node_interop now only exposes JS bindings for Node and some utility functions.fs.dart
, http.dart
.node
object has been removed. Can use require
and exports
functions directly. There is also new convenience function setExport
.jsPromiseToFuture
renamed to promiseToFuture
.futureToJsPromise
renamed to futureToPromise
.jsObjectKeys
renamed to objectKeys
.dartify
now allows converting JS function
objects.get
function to http.dart
.io.dart
library designed to follow dart:io
contract.HttpRequest
exposed by http.dart
to NodeHttpRequest
. This is a server-side request object which will eventually be hidden from this library. It is recommended to import new io.dart
which exposes both HttpRequest
and NodeHttpRequest
objects.ReadableStream.nativeStream
to ReadableStream.nativeInstance
WritableStream.nativeStream
to WritableStream.nativeInstance
jsonStringify
and jsonParse
which bind to native JSON.stringify
and JSON.parse
respectively.HttpResponse.close()
failed when trying to finalize headers.Promise<T>
a generic type. Also added definition of Thenable
.onRejected
in Promise.then
is now optional.node
variable.async.dart
library with basic implementations of ReadableStream<T>
, WritableStream<T>
and NodeIOSink
.HttpRequest
and HttpResponse
to http.dart
, as well some other objects like HttpHeaders
.dartifyError(JsError error)
to the main library which converts from JS Error
instances in to Dart's equivalent.File
: openRead
, openWrite
, readAsBytes
.createJSFile
in test.dart
library. Use createFile
instead.jsObjectToMap
deprecated. There is new helper function dartify
. See documentation for more details.jsify
helper function.requestListener
.createJSFile
test util in test.dart
.NodePlatform
is no longer exported from node_interop.dart
library.exports
getter was removed. Now exports
is a direct reference to native JS object. Replace any calls to exports.setProperty(name, value)
with new API: node.export(name, value)
.Agent
, Server
, AgentOptions
renamed to HttpAgent
, HttpServer
, HttpAgentOptions
respectively.createAgent
renamed to createHttpAgent
.node_interop/bindings.dart
was removed. All bindings are available through main node_interop/node_interop.dart
import.node
library object with centralized access to the Node platform and runtime information, as well as module globals like require
and exports
.NodeClient
from node_interop/http.dart
.node_interop/test.dart
library with installNodeModules()
helper function. See dartdoc for more details.jsObjectToMap
: added null-check.import package:node_interop/http.dart
.import package:node_interop/bindings.dart
to get access.test
package with support for running tests in NodeNodeFileSystem.file()
and File.writeAsStringSync()
.Console
.node_preamble
package