Skip to content

Releases: twiddlingbits/twr-wasm

Version 2.5.0

29 Sep 16:17
Compare
Choose a tag to compare

add new audio C API (see https://twiddlingbits.dev/docsite/api/api-c-audio/ )
add new timer C API (see https://twiddlingbits.dev/docsite/api/api-c-general/#twr_timer_single_shot )
add some new Draw 2D C/C++ APIs (see https://twiddlingbits.dev/docsite/api/api-c-d2d/ )
add twrLibrary TypeScript class which can be extended to add your own TypeScript APIs to C/C++ (see https://twiddlingbits.dev/docsite/api/api-ts-library/ )
add basic C event framework (see https://twiddlingbits.dev/docsite/gettingstarted/events/ )
moved wasm mem access to new wasmMem class
update pong example to support two player modes with AI (see https://twiddlingbits.dev/docsite/examples/examples-pong/ )
update pong example to add audio
add more test cases
add %u to printf
misc updates and bug fixes
update documentation
npm released

Version 2.4.2

11 Aug 03:49
Compare
Choose a tag to compare

Improved Draw 2D API

Fix callC bug in twrWasmModuleAsync - crash on multiple simultaneous in-flight callC

Improved local development

  • env. server.py method now works with bundled & unbundled examples.
  • Note: execute 'python examples/server.py' while in the repo root.

Rename stdio-div example to divcon
Rename stdio-canvas example to terminal
Improve stdio-canvas demo
Improve twrConsoleXXX parameter validation
Fix keyDown code to be more correct
Updated docs

Version 2.4.1

07 Aug 10:20
Compare
Choose a tag to compare

Changed all files to use LF for end of line so that shell scripts work more reliably on linux.

Version 2.4.0

06 Aug 18:11
Compare
Choose a tag to compare

Fixed major bug where backspace was not working in Div Console in many cases
Added many new Draw 2D APIs to existing 2D2 API

Update Console support:

  • Consoles are now implemented in TypeScript and run in the main JavaScript event loop thread
  • Can now print to Console from JavaScript (as well as from C/C++)
  • Multiple Console support
  • Multiple wasm modules can use the same Console
  • Draw 2D Surface is now a Console
  • Added multi-io example (multiple consoles, multiple console types, multiple wasm modules)
  • Added io_setfocus, and other misc APIs

Example folder buildall.sh script now builds source if needed
remove warning on zero size mallocs (which are legal)
Misc documentation updates
Misc bug fixes

Version 2.3.1

29 Jul 13:30
Compare
Choose a tag to compare
  • fix shell script error that caused scripts to fail on linux
  • Added "reset" and "ClosePath" 2D Draw APIs
  • fix bug in D2D_SETLINEWIDTH (a 2D Draw API)
  • add Pong Game example of 2D API
  • improve documentation
  • npm published

Version 2.2.1

19 Jul 20:10
Compare
Choose a tag to compare

This version is identical to 2.2.0.
The version number was incremented to fix an npm publish issue

Version 2.2.0

19 Jul 19:43
Compare
Choose a tag to compare

add support for int64_t parameters and return types (using JS bigint)
rename ModInWorker to ModAsyncProxy
update callC example
minor include, comment and spelling fixes
switch docs to material theme
many doc updates
examples: text updates; add meta descriptions
add robots.txt to web site
npm published

Version 2.1.1

23 Jun 16:18
Compare
Choose a tag to compare

fix bug in callC when using twrWasmModuleAsync
fix space collapsing bug in twr_iodv
updated callC example/demo
npm published

Version 2.1.0

20 Jun 21:58
Compare
Choose a tag to compare

Enable unicode and rtti in libc++ build
Enable C++20 support in libc++ build
add std c lib function c32rtomb
doc updates
release to npm

Version 2.0.6

17 Jun 02:11
Compare
Choose a tag to compare

minor text and keyword updates
npm published