Skip to content

Hackmud Script Manager 0.13

Compare
Choose a tag to compare
@samualtnorman samualtnorman released this 14 Jan 14:21
· 365 commits to main since this release

Added

  • replace bigint literals with calls to BigInt()
  • global variables (variables outside the main function)
  • scripts can now export stuff
  • print time took in hsm golf
  • various things that make the generated code use less characters
  • --skip-minify can now be passed to skip minifying
  • message when no scripts could be found
  • compile time constants _SOURCE, _BUILD_DATE, _SCRIPT_USER, _SCRIPT_NAME, _FULL_SCRIPT_NAME, _SECLEVEL, _EXPORTS
  • importing modules (including node modules)
  • polyfill Function.prototype, Object,setPrototypeOf(), Object.getPrototypeOf()
  • support for new and upcoming js syntax
  • quine cheat objects and arrays containing a template string with no expressions

Changed

  • npx hsm config set now just takes 2 arguments
  • the main function is now whatever the default export is
  • no longer mangle names by default (--mangle-names can override this)

Fixed

  • no longer quine cheat empty objects and arrays
  • no longer quine cheat objects and arrays inside loops and functions
  • classes within classes
  • support for node 12
  • trying to quine cheat non-json compatible objects
  • finding preprocessor directives inside strings and comments

Removed

  • npx hsm test