Skip to content

2.0.0

Latest

Choose a tag to compare

@FunctionPoint FunctionPoint released this 21 Feb 15:04
· 23 commits to main since this release

SmallJS 2.0 now has full support for async, await and promises!
Almost all async calls classes have been converted form callbacks to promises,
making code cleaner, more concise and easier to debug.
Check out Async.md for usage instructions.

The SmallJS website now has a tutorial page for learning SmallJS and Smalltalk.
The Smalltalk language and core library classes are explained.
Examples can be done interactively using the online Playground .
(If you have any feedback on the tutorial, please create an issue in the website repo ).

The full class reference documentation is now also available on the website.

Smalltalk library

  • Core: Promise: New convenience methods for creation.
    Tests for 'async', 'await', 'then', 'catch' and 'finally'.
  • Smalltalk: Convertrted callbacks to promises for modules:
    Fetch, File, Database, Crypto
  • Core: Web Crypto API implemented with working examples in tests
    for AES, RSA and ECDH. These work in both browsers and Node.

Compiler

  • Fixed code generation for 'await'.
  • Using 'await' outside an 'async' method now gives an error, conforming to JS.

Website

  • Created a new Tutorial page to learn Smalltalk and SmallJS.
  • Created a new Reference page to look up class info.