I have published a new version of Total.js framework with some fixes and new improvements.
New Total.js framework version 2.7.0
This version brings a few fixes and improvements.
- Changelog
- Upgrade from NPM
$ npm install total.js
or download empty-project - Framework website
News
Static files of Components
I have improved rendering of group of components @{components('group'}
. Now the framework links static files from rendered groups only. In other words: each group of components has its own scripts and styles. This change is a good news for applications using a lot of components.
Prototypes
With this version you can extend some Total.js prototypes easily. Just extend prototype:
Changed default IP
I have changed default IP from 127.0.0.1
to 0.0.0.0
. This change has multiple benefits:
- app can run on
localhost
or127.0.0.1
- app can run on your machine IP e.g.
192.168.200.1
- Amazon EC2 and another similar services use
0.0.0.0
IP for Node.js apps
Controller can be changed in the schema directly
In some cases it's very important to change a controller dynamically and directly in the schema. I have extend SchemaBuilderEntity
by adding a new method .$controller(new_controller)
.
For example:
NoSQL meta-data
Only a few developers know that NoSQL supports meta-data - key-value
storage. I have extended database object by adding new methods:
Meta-data are stored in plain-text JSON file: orders.nosql-meta
and all meta-data are read into the memory automatically when the DB is loaded.
Improved Unit-Testing
I have improved unit-testing in Total.js framework. Read more information about new unit-testing system in Total.js documentation or follow this example.
Example of some test:
RESULT:
Improved RESTBuilder
I have added a new features into the RESTBuilder:
instance.robot()
extends user-agent by addingbot
keywordinstance.mobile()
extends user-agent by addingiPhone
keywordinstance.file(name, filename, [buffer])
can upload file asmultipart/form-data
Follow Total.js Framework on Twitter and give a star on Github.
Other posts from Total.js Platform
- 2024-12-22NEWMerry Christmas and a Happy New Year 2025!
- 2024-12-10Total.js UI Builder: How to upload files?
- 2024-12-04Performance Testing: Total.js vs. Koa
- 2024-12-03Total.js UI Builder: Creating a Form
- 2024-12-02November report 2024
- 2024-11-26Total.js V5: Schemas and Actions
- 2024-11-25QueryBuilder in Action Part 1
- 2024-11-13Benchmarking Node.js Frameworks: selecting your framework for 2025!
- 2024-11-01October report 2024
- 2024-10-22Performance Testing: Total.js vs. NestJS