Migrating from 1.5.1 to 2.0.0
The latest version of T3 contains major improvements to robustness and testability. We have listed the breaking changes are listed here:
Native DOM is now the default
We’ve switched the default t3 package to use native by default (IE9+). If you would like to use the jQuery version, please use the t3-jquery-2.x.x.js distribution file.
Including duplicate behaviors throw errors
init() before module
This should allow the modules to rely on any required setup from the behaviors.
getService() throws errors when the service does not exist
Previously, this would return
hasService() to check for optional services.
This change will allow developers to catch issues with missing services before they hit production.
exports option from
This option was unused and dangerous since it modified the global
Application object which could lead to unexpected coupling.
TestServiceProvider requires explicit pre-registered services
This will prevent accidental leakage of services between unit tests.