Upgrade Guide v5.6 to 6.0
Previous Version Upgrades
If you are upgrading from any version of tabulator below version 5.6, you should read the v5.5 to 5.6 upgrade guide first.
Modules
Module Names
When building a custom module you used to define the moduleName property outside the class definition:
class CustomModule extends Module{ ... } CustomModule.moduleName = "custom";
You should now define this as a static moduleName property inside the class definition:
class CustomModule extends Module{ static moduleName = "custom"; //module name }
Initialization Order
When building a custom module you used to define the moduleInitOrder property outside the class definition:
class CustomModule extends Module{ ... } CustomModule.moduleInitOrder = 10;
You should now define this as a static moduleInitOrder property inside the class definition:
class CustomModule extends Module{ static moduleInitOrder = 10; //module name }
Build Tools
Dependencies
All the dev dependencies used to package the library have been upgraded to their latest version in this release.
This will likely have no affect on the vast majority of Tabulator users. But if you do build custom versions of Tabulator yourself, or submit Pull Requests to the library then please take note of the following.
This release sees Tabulator upgrade to using Rollup v4 for its package bundling, this now means that in order to build your own version of Tabulator, you will need to be running node v18 or higher.
Build Files
In additon to this, several of the build files have now been renamed to match the requirements of Rollup 4, this should have little impact unless you have implemented custom build steps.
NPM Commands
All of the existing npm run commands still work as they did before.