Skip to content

Hackmud Script Manager 0.20

Compare
Choose a tag to compare
@samualtnorman samualtnorman released this 27 Apr 09:26
· 161 commits to main since this release
9202bca

To update to the latest release, run pnpm add hackmud-script-manager@latest in the environment folder.

Added/Updated

  • --hackmud-path option and HSM_HACKMUD_PATH environment variable #150
  • Object in Object.call.bind is now minified to less chars when available #130
  • Rename --skip-minify to --no-minify
  • hsm --help
  • Convert console.log() and friends to #D() #135
  • Default hackmud path
  • Can now directly import hackmud-script-manager without /index.js
  • hackmud-script-manager/env.d.ts
  • _SCRIPT_NAME and _SCRIPT_USER no longer turn into "UNKNOWN" #151

Fix

  • JSON.stringify() and JSON.parse() in node_modules are now converted to JSON.ostringify() and JSON.oparse() #137
  • Empty object/array literal cause parent object/array literal not to be quine cheateable #146
  • hsm push (all-scripts invocation) does not follow symbolic links #155
  • Nested string arrays disappear when minified #153
  • No longer generate unnecessary around function expressions #147
  • not calling preprocessor function semantics
  • fix _FULL_SCRIPT_NAME turning into "undefined.foo"
  • Do not push javascript version of script if typescript version exists #152

Changed

  • samualtnorman/hackmud-environment#27
  • got rid of ~/.config/hsm.json
    • replaced with --hackmud-path option and HSM_HACKMUD_PATH environment variable
  • drop hsm config
  • default exports from modules
  • mandate scriptName option to processScript() and transform()
  • renamed Info["file"] and Info["minLength"] to path and characterCount
  • rename uniqueID to uniqueId

Setup: https://github.com/samualtnorman/hackmud-script-manager?tab=readme-ov-file#install
Associated Issue: #154
Full Changelog: v0.19.0...v0.20.0


Thank you @danswann for your contribution to env.d.ts!