NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #1056 most downloaded on pub.dev
Provides Dart bindings and utility functions for core Node.js modules.
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 8 days to 3.5 years
Nearly every release is documented
notes for 20 of 22 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
47 releases · first in 2017
Add support for fs.realpath.native() and fs.realpathSync.native().
fs.realpath.native() and fs.realpathSync.native().Mark the first argument to Promise.then() as nullable.
Promise.then() as nullable.Various fs APIs now accept options.
One column per quarter.
Various fs APIs now accept options.
fs.appendFile, fs.mkdtemp, fs.readdir, fs.readlink, and
fs.realpath, and fs.writeFile accept a FileOptions object.
fs.fstat and fs.lstat accept a StatOptions object.
fs.mkdir accepts a MkdirOptions object.
fs.rmdir accepts a RmdirOptions object.
fs.watch accepts a WatchOptions object.
fs.watchFile accepts a WatchFileOptions object.
Synchronous equivalents of the above also accept the same options.
Fix improper types for util.callbackToCompleter(), util.invokeAsync0(), and util.invokeAsync1().
util.callbackToCompleter(), util.invokeAsync0(),
and util.invokeAsync1().Enable null-safety (requires \>=Dart 2.12).
Migrated to null-safety (requires \>=Dart 2.12).
Add util.callbackToCompleter(), util.invokeAsync0(), and util.invokeAsync1() helpers to make it easier to work with Node-style callbacks.
util.callbackToCompleter(), util.invokeAsync0(), and util.invokeAsync1()
helpers to make it easier to work with Node-style callbacks.Added worker_threads module bindings
Added missing method definitions for TTYWriteStream.
Added bindings for Node.js tty module as well as updated Process bindings for stdout, stdin and stderr to return TTY stream types instead of Writable
tty module as well as updated Process bindings for stdout,
stdin and stderr to return TTY stream types instead of Writable and Readable.Removed generic annotations from Process methods per #56 (not supported by Dart yet).
util.inspect binding.Clarified documentation of dartify regarding conversion of JS object keys (#52).
dartify regarding conversion of JS object keys (#52).Fixed declaration of fs.writeSync and fs.readSync to return int instead of void.
fs.writeSync and fs.readSync to return int instead of void.Non-breaking changes may be published to the stable track periodically.
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.
Added HttpsAgentOptions with basic TLS/SSL parameters.
HttpsAgentOptions with basic TLS/SSL parameters.HttpsAgentOptions instead of HttpAgentOptions.Fixed Console method bindings to not force String arguments and allow any type.
String arguments and allow any type.JsError constructor definition to match Node.js documentation.Upgraded to build_node_compilers 0.2.0
- Internal changes.
- Fixed analysis warnings.
Upgraded to latest build_node_compilers.
Fixed: Changed ServerResponse.getHeader return type from String to dynamic.
ServerResponse.getHeader return type from String to
dynamic.Added: binding for JS undefined value in node_interop/js.dart.
undefined value in node_interop/js.dart.Fixed: strong mode issue in dartify utility function when converting plain JS objects to Dart Map. Returned map is now of type Map instead of Map.
dartify utility function when converting plain
JS objects to Dart Map. Returned map is now of type Map<String, dynamic>
instead of Map.Fixed: strong mode issue in promiseToFuture utility function.
promiseToFuture utility function.fs.realpathSync.Added or completed bindings for following Node.js modules: dns, events, fs, http, https, module, net, os, path, process, querystring, stream, timers,
dns, events,
fs, http, https, module, net, os, path, process,
querystring, stream, timers, tls.Completed dns module function definitions (still missing data structures).
dns module function definitions (still missing data structures).node_interop depends on Dart 2 SDK which allows us to leverage new build_runner system and move away from Pub transformers.
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.- Minor internal changes.
Added library-level get function to http.dart.
get function to http.dart.Introduced new io.dart library designed to follow dart:io contract.
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.- Updated changelog.
Fix HttpHeaders.forEach crash when called on HttpRequest.headers [#6]
renamed ReadableStream.nativeStream to ReadableStream.nativeInstance
ReadableStream.nativeStream to ReadableStream.nativeInstanceWritableStream.nativeStream to WritableStream.nativeInstancejsonStringify and jsonParse which bind to native
JSON.stringify and JSON.parse respectively.Fixed: HttpResponse.close() failed when trying to finalize headers.
HttpResponse.close() failed when trying to finalize headers.Made Promise a generic type. Also added definition of Thenable.
Promise<T> a generic type. Also added definition of Thenable.onRejected in Promise.then is now optional.node variable.Deprecated createJSFile in test.dart library. Use createFile instead.
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.
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.
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.Added node_interop/test.dart library with installNodeModules() helper function. See dartdoc for more details.
node_interop/test.dart library with installNodeModules()
helper function. See dartdoc for more details.jsObjectToMap: added null-check.
jsObjectToMap: added null-check.import package:node_interop/http.dart.Streamlined bindings layer and exposed as it's own library. Use import package:node_interop/bindings.dart to get access.
import package:node_interop/bindings.dart to get access.Upgraded to test package with support for running tests in Node
test package with support for running tests in NodeNodeFileSystem.file() and File.writeAsStringSync().- Added bindings for Console.
Console.Switched to use official node_preamble package
node_preamble package- Initial version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →