All Versions
3
Latest Version
3.0
Avg Release Cycle
194 days
Latest Release
1752 days ago

Changelog History

  • v3.0

    May 19, 2016
    • Error reporting improved significantly:
      • Added complete stack traces, with filenames and line numbers
      • When non-callable value is called, v7 gives some context instead of plain "value is not a function"
    • ๐Ÿ— All build flags are documented
    • C API changed:
      • Getting C entities from JS values (v7_val_t):
      • v7_to_number() -> v7_get_double()
      • v7_to_boolean() -> v7_get_bool()
      • v7_to_cstring() -> v7_get_cstring()
      • v7_get_string_data() -> v7_get_string()
      • v7_to_foreign() -> v7_get_ptr()
      • These functions now take the v7 argument:
      • v7_mk_number()
      • v7_get_double()
      • v7_mk_boolean()
      • v7_get_bool()
      • v7_mk_foreign()
      • v7_get_ptr()
      • Added v7_get_int()
      • v7_mk_undefined() is deprecated, use the macro V7_UNDEFINED instead
      • v7_mk_null() is deprecated, use the macro V7_NULL instead
    • โž• Added MSP432 CCS projects for v7 examples
    • Implemented v7 user data and destructors
    • Implemented Object.isFrozen() and Object.isSealed()
    • ๐Ÿ› Bug fixes and refactoring
  • v2.0

    March 08, 2016
    • ๐Ÿ“œ Parser's stack usage does not grow as expression nesting grows, it allows v7 to run in stack-constrained environment;
    • Interpreter is reimplemented completely: instead of AST-based VM runtime with long jumps, the bytecode is generated and then evaluated. Again, it allowed to get rid of deep stack usage and make the whole runtime more straightforward;
    • Freezing: the ability to take a snapshot of v7's RAM usage, and then put that snapshot in flash instead. This way, the whole standard library can reside in flash, therefore saving several kilobytes of RAM, which is very expensive on embedded devices;
    • The ability to run from unmanaged (typically, mmap-ed) memory. This way, scripts can be precompiled, put in flash, and run straight from there. Again, it saves RAM;
    • API is cleaned up;
    • ๐Ÿ›  Lots of bugfixes and stability improvements.
  • v1.0

    April 27, 2015
    • ๐Ÿ“œ Implemented hand-written tokenizer and parser
    • Implemented AST-based VM runtime
    • Implemented mark-and-sweep garbage collector
    • Published examples
    • ๐Ÿ“š Published documentation with API reference
    • Standard Library is partially implemented. Unimplemented API:
      • global: decodeURI(), decodeURIComponent()
      • Object: seal(), freeze(), isSealed(), isFrozen()
      • Function: bind()
      • Array: concat(), unshift(), forEach(), reduceRight()
      • JSON: replacer argument in stringify() is ignored
    • Auxiliary library is not implemented yet