Re: miniSphere 5.0b1 (stable: 4.8.7)
Reply #2133 –
Since ES6 modules will be natively supported in miniSphere 5.0, I'm going to deprecate
require(). It will remain available for legacy compatibility with modules written for Node, but is otherwise no longer recommended for use in Sphere code.
import and
export are much more elegant and will be the preferred mechanism for linking together scripts going forward.
Speaking of legacy compatibility, I recently added a new API,
FS.evaluateScript(), which allows loading old-fashioned JS scripts. I realized I was using
RequireScript() a lot to load stuff like Aurora.js, which is awkward in an otherwise fully Sphere v2 codebase especially since all the v1 functions are technically deprecated...