Nbind Versions Save

:sparkles: Magical headers that make your C++ library accessible from JavaScript :rocket:

v0.3.4

7 years ago
  • Support passing JavaScript objects opaquely through C++.
  • Autogenerate TypeScript definitions.

v0.3.3

7 years ago
  • Support shared pointers.
  • Support passing unique pointers from C++ to JavaScript.
  • Use shared pointers for all JS-owned objects.
  • Implement light GC (undocumented) on Emscripten target.
  • Sort reflection output to make it deterministic.

v0.3.2

7 years ago

Breaking changes:

  • args, multifunction and multimethod are now reserved keywords in NBIND_CLASS sections (put them and the nbind.h include after your own code to avoid conflicts).
  • Improve upper case property name handling, getPROP now becomes PROP instead of pROP.

Other changes:

  • Allow renaming bound classes.
  • Support const and non-const pointers and references.
  • Support overloaded functions (requires renaming each overload).

v0.3.1

7 years ago
  • Support typed arrays and buffers.
  • Allow non-literal strings in NBIND_ERR macro.

v0.3.0

7 years ago

Breaking changes:

  • Usage in web browsers has been completely overhauled.
  • function is now a reserved keyword in NBIND_CLASS blocks.
  • New syntax for renaming bound methods (still undocumented feature).
    • Argument order was changed.
    • Name visible to JavaScript is now passed as a quoted string.

Other changes:

  • Reflection support, report type information from C++ method definitions to JavaScript.
  • Support for custom type conversion policies:
    • Enforce stricter type checking
    • Allow null pointers.
  • NBIND_GLOBAL block allows binding functions not belonging to any class.
  • 64-bit integer support.
  • Various bugfixes.

v0.2.1

7 years ago

Breaking changes:

  • Value object initializer bind is now a dynamic instead of a static method of the exports object returned by require('nbind')

Other changes:

  • Fix loading modules from browsers and add basic TypeScript definitions.
  • Add tool to copy compiled asm.js output to a target directory.
  • Avoid losing errors from asm.js init.
  • Fix overriding the toString method on Emscripten target.
  • Support passing pointers on Emscripten target.
  • Fix loading asm.js code without running "npm link nbind".
  • Rewrite documentation.

v0.2.0

7 years ago

Breaking changes:

  • Rename nbind/BindingShort.h to nbind/nbind.h
  • Rename module on JavaScript side from nbind.module to nbind.lib

Other changes:

  • Add full Emscripten support.
  • Support passing arrays as parameters and return values.
  • Eliminate compiler warnings in Visual Studio.
  • Always compile with -O3.
  • Improve tooling for easier setup.
  • Improve readme and add logo.

v0.1.2

8 years ago
  • Fix warning about v8::FunctionTemplate::Set().
  • Support TypeScript 1.8.

v0.1.1

8 years ago
  • Add partial Emscripten support.
  • Fix build issues on Windows.
  • Update to TypeScript 1.6.
  • Support const methods.

v0.1.0

8 years ago
  • Update NAN to version 2.
  • Rewrite documentation.