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.
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.
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.