23 Commits
Author SHA1 Message Date
Ian Denhardt 6eb94df293 Add a typescript declaration file.
This covers most of the API that is documented in the README, though I
see that there are some things exposed in `capnp.js` but not documented
-- the declaration file does not currently cover those.

This is designed to work with the output of:

    https://github.com/zenhack/capnpc-node-typescript

...which is nearing completion.
2020-10-28 16:30:22 -04:00
Ian Denhardt 81aeebf181 Bump version in package.json
I just published this to the npm registry, we should probably update the
version in the git repo too.

It seems to work on node 12, though node 10 is still failing. I actually
*can* reproduce the failures locally if:

- I start a fresh npm project and do `npm install
  `/path/to/node-canpnp/src`
- The working directory for `node-capnp` is clean.

I may try to troubleshoot this more later. Perhaps we should unpublish,
but having a version that works on node 12 is possibly an improvement,
so maybe not...

Npm insisted that 0.4.0 already existed and was refusing to re-publish
it (I assume there was a deleted failed attempt), so I had to bump the
version to get it to work.
2020-03-23 16:01:04 -04:00
Kenton Varda eae9c1c54b Update for Node 10. 2019-01-07 13:44:26 -08:00
Kenton Varda a3e975d43c Bump version number and publish again because apparently npm went and published a 13MB scratch folder I had in the directory last time, wtf. 2018-02-09 08:43:47 -08:00
Kenton Varda f1e9306cd6 Release 0.3.0 which supports node 8+. 2018-02-04 14:17:42 -08:00
Kenton Varda f2bfd6f95f Release 0.2.0 which supports node 4+. 2017-09-19 09:25:56 -07:00
Kenton Varda 3d5d0c9d38 Update package.json to reflect the node API chanage. (I'm not actually sure if this works with 0.12, but it definitely doesn't work with 0.10 anymore.) 2016-02-15 19:11:14 -08:00
Kenton Varda eba8a33e66 Port to Node 4. 2016-02-14 23:33:53 -08:00
jimfleming 64dd020da8 Adding engines field to warn the user about node compatibility per https://docs.npmjs.com/files/package.json#engines 2015-03-22 12:52:59 -07:00
Kenton Varda dc538dd4ce Update for Cap'n Proto EventPort API change for cross-thread wakeup. 2014-12-08 22:41:08 -08:00
Kenton Varda fad577c18a Update for kj::Exception change in Cap'n Proto master. 2014-11-29 00:33:06 -08:00
Kenton Varda dca1c08575 Fix for recent Cap'n Proto changes. 2014-11-03 20:52:03 -08:00
Kenton Varda 093ff9620f Bump version number. Previous version incorrectly included prebuilt binary that doesn't work anymore. 2014-11-03 20:31:11 -08:00
Kenton Varda 9c27c9da6b Bump version number. 2014-10-27 11:58:44 -07:00
Kenton Varda 58781fc41e Bump version. 2014-09-19 19:16:31 -07:00
Kenton Varda 963018cccf Plug various leaks of capability references.
In all cases, the capabilities would eventually be garbage collected, but if a user explicitly called .close() in hopes of dropping a reference proactively, it could be ignored because a leaked reference still existed.
2014-09-10 22:50:23 -07:00
Kenton Varda 23f7dd3753 Make es6-promise a peer dependency so that users don't end up with two copies of the promise library and instanceof works correctly. 2014-08-15 16:57:22 -07:00
Jason Paryani 29f3d62c94 Update es6-promise to version 1.0.x and lock it there.
Also fix `cast` being replaced by `resolve`
2014-06-26 00:26:53 -07:00
Kenton Varda 9b3e84b111 Change copyright to Sandstorm Development Group, Inc. (Kenton's company) and license to MIT, to match recent changes to Cap'n Proto itself. 2014-06-25 20:24:18 -07:00
Kenton Varda 2b3673f1c4 Bump version. 2014-06-25 20:21:34 -07:00
Kenton Varda 8308156626 Bump version number for OSX build fix. 2014-04-03 11:40:16 -07:00
Kenton Varda 1b2859ce7e Hook require() even though the docs say not to. 2014-04-02 23:17:33 -07:00
Kenton Varda 42b1fb77d0 Initial commit. 2014-04-02 22:14:44 -07:00