duktape.cr v0.12.0 Release Notes

Release Date: 2017-10-01 // over 6 years ago
    • 💥 [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.