This blog post describes the main differences between Total.js v4 and Total.js v5. Total.js v5 contains almost new and nicely written code. This blog post will be gradually updated.
$ npm install total5@beta
Only shorter, cleaner and improved code. Finally, the repository contains much nicer code. It’s fully optimised for Node
No. We started testing Total.js v5. You can develop upcoming projects with Total.js v5. For stability reasons, wait before converting older apps to Total.js v5.
Almost yes. We use Total.js v5 in several projects, and they work without critical issues. We are working on unit-tests, documentation, etc..
We updated the start script for Total.js v5. Don't forget to use it if you want to use Total.js v5.
Total.js v5 doesn’t use
response instances. It works only with a
controller - alias
$. So every request to an action, file or WebSocket is represented as a controller.
Routes support the
? character which is replaced with
CONF.$api value (default:
Determine the language of incoming requests:
Total.js v5 supports only the one configuration file called
/config. All system keys (90%) were updated to a shorter version:
All NoSQL commands are performed via the Total.js QueryBuilder used in PostgreSQL/MySQL.
PREF is removed from Total.js v5. You can use
MEMORIZE(name) method that contains the same functionality.