Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

capnp-ts

jdiaz55131.4mMIT0.7.0TypeScript support: included

Strongly typed Cap'n Proto implementation for the browser and Node.js using TypeScript

capnp, rpc, typescript

readme

capnp-ts

A strongly typed Cap'n Proto implementation for the browser and Node.js using TypeScript.

Here's a quick usage example:

import * as capnp from 'capnp-ts';

import {MyStruct} from './myschema.capnp';

export function loadMessage(buffer: ArrayBuffer): MyStruct {

  const message = capnp.Message.fromArrayBuffer(buffer);

  return message.getRoot(MyStruct);

}

An extended readme is available on the project site: https://github.com/jdiaz5513/capnp-ts.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.4.0 (2018-09-26)

Bug Fixes

Features

  • compiler: add support for capnpc v0.7.0 (#110) (22bd14d)

0.3.1 (2018-09-25)

Bug Fixes

  • serialization: fix parse crash on null pointer dereference in resize (#107) (3f8b307), closes #78

0.3.0 (2018-08-29)

Bug Fixes

  • build: avoid use of debug script for capnpc build step (#101) (f1d606a)
  • serialization: set instance variables before they may be referenced (#106) (21deff5)

Features

  • compiler: implement remaining serialization features (#98) (524b6bd)

0.2.4 (2017-11-24)

Note: Version bump only for package capnp-ts