Skip to content

v1.17.0

Compare
Choose a tag to compare
@d5 d5 released this 18 Mar 15:18
· 113 commits to master since this release
61890b1

Changes

  • add objects.Importable interface with 2 implementations
    • objects.BuiltinModule: importable module written in Go
    • objects.SourceModule: importable module written in Tengo
  • remove print, println, printf, sprintf, to_json, from_json builtin functions
  • add "fmt" and "json" standard library
  • remove Script.SetBuiltinFunctions, Script.SetBuiltinModules, Script.SetUserModuleLoader functions
  • add Script.SetImports function
  • builtin functions cannot be disabled

Changelog

61890b1 module refactor (#148)