Skip to content

v1.1.3

Compare
Choose a tag to compare
@DonHulieo DonHulieo released this 02 Jul 10:14
· 73 commits to main since this release
d16c7fe

Features

  • Implemented a reworked module of duff.require as CPackage, with methods;
    • require - functioning like the default Lua require.
    • import - imports a file's environment or methods into the current environment.
    • as - changes the name of the last loaded module and add it as a global.

Fixes

  • Removed require export as sparse returns would drop any trailing nils.
  • Module loading all happens in shared/import, improving performance and fixing the above issue.

Tweaks

  • Various improvements to error handling and file loading across resource.
  • Change module name of CPackages to CPackage to better imitate default Lua packagelib.
  • Moved shared/lib to server/init as there's now only server logic handled.

Chores

  • Add new methods to documentation.
  • Change usage of exports.duff:require to lib.require.

Full Changelog: v1.1.2...v1.1.3