Releases: jessedoyle/duktape.cr
Releases · jessedoyle/duktape.cr
0.16.0
- Update
ameba
to the current latest version ofv0.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. UseInt#//
to retain backwards compatibility.
0.15.1
0.15.0
- 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
andput_global_heapptr
.
0.14.1
0.14.0
0.13.0
- Update Duktape to version
2.2.0
, rebuilding all necessary
configuration and header files. - [upstream change]
LibDUK::Compile::*
andLibDUK::BufObj::*
constant values have
been changed - remap these constants to their updated values. - [upstream change]
LibDUK::Bool
is now of typeUInt32
(as opposed toInt32
). - Add bindings for new public API methods:
duk_push_proxy
,duk_seal
,duk_freeze
,duk_require_object
,duk_is_constructable
andduk_opt_xxx
methods. Theduk_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
asFloat64
for more simple type changes in
the future. - Add the
Duktape::API::Opt
module to encapsulate binding wrapper code
for theduk_opt
methods implemented. - Run all code through the crystal
0.24.1
formatter. - See duktape releases for more info.
0.12.1
- [bugfix] - Fix an unintended
Duktape
heap instantiation when creating a newDuktape::Context
. - Run
crystal tool format
on all source code.
0.12.0
- [breaking change] All
LibDUK
hardcoded types are nowenum
values (i.e.LibDUK::TYPE_NULL
becomesLibDUK::Type::Null
). Where possible, methods accept both the original types as well as enumerated values. - [breaking change] Remove the
UInt32 flags
arguments from allDuktape::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 aDuktape::Context
instance. - Add builtins for
console.log
,alert
andprint
. - 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
asLibDUK::Index
to allow for quicker changes to indexes in the future.
0.11.0
0.10.1
- 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.