Releases: drupijs/Drupi-JS
Production release! Now with the graal engine
Woah, an update! well
Drupi has finally switched away from the old deprecated nashorn engine and moved over to the newer Graal engine! This means that you no longer have to wait for babel to compile your scripts into old EMCA2015 javascript meaning Drupi now loads instant!
So moving to a new engine means I have to recode my scripts?
No! All you need to do if you're migrating to this release is deleting your utils.js in the Drupi folder.
Notes:
- Since this is a new engine you could run into some bugs, so feel free to report them in this discord if you find any!
- Due to how graal runs, we couldn't get socket.io to run but we're hoping to add the feature back in future releases.
- The HTTP manager has changed a little too, you now have to wrap your JSON body & headers inside a JSON.stringify()
- We have also removed some of the older command.create methods in favor of the new command.create("cmd", {options})
- We have also moved the module registry over to one hosted by Stacket Group instead, you can expect the old registry to be shut down in the future.
New module registry + fix exports shortcut in modules
Changes the module registry from api.stacket.net to repo-js.ostracize.net, and fixes the exports shortcut in modules to act as it should in a standard node module.
Bungeecord and Spigot 1.16.1 support
Added support for 1.16
Module flexibility and bug fixes
Adds missing clearInterval and clearTimeout functions, scopes module execution, adds support for exports keyword and adds "skip babel";
Added LabyModAPI for BungeeCord
0.4.3 labymodapi bungee
Fixed Bungeecord setTimeout running incorrect function
Bug fixes and command rename.
Changed Bungeecord command to bDrupi and fixed scheduler
Added Bungeecord support and optimized the code a little.
Drupi now has Bungeecord Support!
Keep in mind that Drupi for BungeeCord may contain bugs etc..
Fixed security issue with unzip and added zip function
Fixed security issue with the unzip function.
Renamed manager.unZipIt to manager.unzip
Added manager.zip(File input, File output)
Added some new methods
Added:
- http.downloadFile(String url, File downloadedFile)
- manager.unZipIt(File zipfile, File outputdir)
- manager.moveFiles(File toDir, File fromDir)