Skip to content

Releases: jessedoyle/duktape.cr

0.16.0

22 Apr 01:27
6712873
Compare
Choose a tag to compare
  • Update ameba to the current latest version of v0.9.1.
  • Build specs with all warnings enabled in Crystal >= 0.28.0.
  • Fix a deprecation warning with Crystal 0.28.0 where integer division will return a float in future versions. Use Int#// to retain backwards compatibility.

0.15.1

08 Nov 03:03
165ee9b
Compare
Choose a tag to compare
  • Add ameba as a development dependency for static analysis.
  • Fix ameba lint exceptions consisting of unused variable definitions and block variables.

0.15.0

14 Aug 21:15
a67e7f1
Compare
Choose a tag to compare
  • Update Duktape version to 2.3.0.
  • See the release notes for more info.
  • Fix a missing it block expectation in tests.
  • Add bindings for random, push_new_target, get_global_heaptr and put_global_heapptr.

0.14.1

13 May 14:49
88a827f
Compare
Choose a tag to compare
  • Fix a type inference error on the Sandbox @timeout instance variable that occurs due to recent changes in Crystal master [#43]. Thanks @kostya!

0.14.0

01 May 01:10
c2ae8ab
Compare
Choose a tag to compare
  • Update Duktape to version 2.2.1.
  • See the release for more info.

0.13.0

29 Dec 00:38
0e59b56
Compare
Choose a tag to compare
  • Update Duktape to version 2.2.0, rebuilding all necessary
    configuration and header files.
  • [upstream change]
    LibDUK::Compile::* and LibDUK::BufObj::* constant values have
    been changed - remap these constants to their updated values.
  • [upstream change]
    LibDUK::Bool is now of type UInt32 (as opposed to Int32).
  • Add bindings for new public API methods:
    duk_push_proxy, duk_seal, duk_freeze, duk_require_object, duk_is_constructable
    and duk_opt_xxx methods. The duk_opt methods work similar to
    duk_require_xxx, but allow a default value to be passed in that
    is used when there is no value at the given stack index.
  • Alias LibDUK::Number as Float64 for more simple type changes in
    the future.
  • Add the Duktape::API::Opt module to encapsulate binding wrapper code
    for the duk_opt methods implemented.
  • Run all code through the crystal 0.24.1 formatter.
  • See duktape releases for more info.

0.12.1

03 Nov 04:23
67571ce
Compare
Choose a tag to compare
  • [bugfix] - Fix an unintended Duktape heap instantiation when creating a new Duktape::Context.
  • Run crystal tool format on all source code.

0.12.0

12 Oct 04:34
Compare
Choose a tag to compare
  • [breaking change] All LibDUK hardcoded types are now enum values (i.e. LibDUK::TYPE_NULL becomes LibDUK::Type::Null). Where possible, methods accept both the original types as well as enumerated values.
  • [breaking change] Remove the UInt32 flags arguments from all Duktape::Context#compile methods.
  • [breaking change] Remove some bindings from LibDUK as they were removed upstream. See duktape releases for more info.
  • Update Duktape to v2.0.2.
  • Add Duktape::Builtin helpers that allow for modular extensions into a Duktape::Context instance.
  • Add builtins for console.log, alert and print.
  • Implement file operations natively in Crystal as they have been removed from Duktape.
  • The Duktape stack is no longer logged as a debug value when Duktape::InternalError is raised.
  • Alias Int32 as LibDUK::Index to allow for quicker changes to indexes in the future.

0.11.0

25 Jul 03:40
Compare
Choose a tag to compare
  • Fix compiler issues with Crystal 0.23.0 by making Duktape::Logger#log_color accept a Logger::Severity. [@kostya, #35]

0.10.1

01 Feb 04:05
Compare
Choose a tag to compare
  • Fix an incorrect type restriction that was causing
    compiler issues on recent Crystal versions.
  • Fix Sandbox timeout tests by no longer running
    a set number of iterations - instead infinite loop
    until timeout.