v2.4.0
News:
- added:
components
more in docs - added:
X-Powered-By
header again with option to change/remove it in the framework configdefault-xpoweredby : Total.js
- added:
UPTODATE(type, url, [options], interval, [callback(err)])
more in docs - added:
F.on('uptodate', function(type, name) {})
new event for up-to-date dependencies - added:
F.stats.other.mail
with a count of sent emails - added:
F.stats.response.errorBuilder
with count of sent ErrorBuilders - added:
F.stats.response.image
with count of processed images via GM or IM - added:
F.stats.request.schema
with count of request to SchemaBuilder - added:
String.prototype.parseTerminal([fields], fn(values, index, count, realIndex), [skipLines], [takeLines])
- added:
TRACE(message, [name], [url], [ip])
is an alias forF.trace()
- added:
F.config['trace-console']
(default:true
) shows tracing on the console - added:
F.convert(name, type/function(val))
registers a new convertor (convertors uses QueryParser (GET/POST)) - added:
F.convert(obj)
performs convertor for an object - added:
F.download(url, filename, [callback])
a new alias forF.snapshot()
- added:
$$$([group], name)
forGETSCHEMA([group], name)
- added: configuration files supports options for all dependencies
module#mymodulename (Object) : { name: 'A custom options for dependency' }
- added:
U.chunker()
added a new propertychunker.pages
with count of all stored pages - added:
U.chunker()
added a new propertychunker.count
with count of all stored items - added:
NEWOPERATION(name, fn(error, callback(response), value))
- registers a new operation (same as schemas) - added:
OPERATION('name', function(err, response))
- executes an operation (same as schemas) - added:
.flac
file extensions - added: a new method for
MailMessage
objectmessage.unsubscribe('your URL or email address')
Updates:
- updated: new error message
The field "@" is invalid.
- updated:
NOSQL().insert(doc, [unique])
- updated:
quicksort
algorithm has been replaced forshellsort
(increased performance of sorting about 10-15%) - updated:
NOSQL().counter.monthly(true, ...)
shows all stats by ID - updated:
NOSQL().counter.yearly(true, ...)
shows all stats by ID - updated:
dependencies
supports up-to-date features e.g.module (1 day) : https://......js
- updated:
F.findConnections([path])
apath
argument is optional - updated:
U.streamer(beg, [end], function, [skip])
add a new argumentskip
- updated: deprecated methods in Node.js v7
- updated:
String.parseJSON([date])
addeddate
argument (date fields will be converted todatetime
) - updated:
F.script()
can compile code to function e.g.:F.script('next(a + b)')
returns a compiled function - updated:
String.captialize([onlyFirst])
add a new argumentonlyFirst
- updated:
F.onParseQuery(value, req)
add a new argumentreq
- updated:
F.onParseXML(value, req)
add a new argumentreq
- updated:
F.onParseJSON(value, req)
add a new argumentreq
- updated:
RESTBuilder.url()
without argument returns a current URL - updated:
RESTBuilder.exec(function(err, value, response))
when theerror
exists thevalue
is stillEMPTYOBJECT
- updated: addded a new argument
replacer
tocontroller.send(message, [id], [blacklist], [replacer])
andclient.send(message, [raw], [replacer])
Cleaning:
- removed: behaviours
- removed: restrictions
- removed:
TransformBuilder
- removed:
F.config['allow-compatibility']
(not used) - removed:
controller.date()
method has been useless - removed: dynamic view compilation through
.view()
method - removed:
contorller.proxy()
in WebSocket controller
Fixes:
- fixed: JS minificator
- fixed: global alias
I
for isomorphic code - fixed: streaming files in
debug
mode (removed cache) - fixed: (critical) a bug with authorization in WebSocket
- fixed:
nosql_builder.join()
a problem with usingnosql_builder.first()
by @yexing (Xing Ye) - fixed:
String.parseInt2()
- a possible NaN value - fixed:
String.parseFloat2()
- a possible NaN value - fixed:
F.snapshot()
- fixed: HTML compression (a fixed problem with HTML comments)
- fixed: restarting framework (missing cleaning of
F.temporary
) - fixed:
U.isDate()
a problem with older dates than 1970, reported by @docgit
Improvements:
- improved: code
- improved: memory consumption for static files
- improved: CSS compression
- improved: CPU and memory consumption
- improved: performance
- improved: updating of
F.datetime
- improved:
uninstall
dependencies - improved: installing 3rd-party dependencies (framework compares same contents)