发布于 2017-02-07 23:56:33 | 188 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

total.js Node.js 的MVC框架

total.js 是个 web 应用框架,使用 JavaScript,HTML,CSS 和 Node.js(MVC) web 应用框架来构建 web 网站和 web 应用。


total.js 2.4.0 发布了。更新如下:

新增:

  • added: components more in docs

  • added: X-Powered-By header again with option to change/remove it in the framework config default-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 for F.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 for F.snapshot()

  • added: $$$([group], name) for GETSCHEMA([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 property chunker.pages with count of all stored pages

  • added: U.chunker() added a new property chunker.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 object message.unsubscribe('your URL or email address'

升级:

  • updated: new error message The field "@" is invalid.

  • updated: NOSQL().insert(doc, [unique])

  • updated: quicksort algorithm has been replaced for shellsort (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]) a path argument is optional

  • updated: U.streamer(beg, [end], function, [skip]) add a new argument skip

  • updated: deprecated methods in Node.js v7

  • updated: String.parseJSON([date]) added date argument (date fields will be converted to datetime)

  • 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 argument onlyFirst

  • updated: F.onParseQuery(value, req) add a new argument req

  • updated: F.onParseXML(value, req) add a new argument req

  • updated: F.onParseJSON(value, req) add a new argument req

  • updated: RESTBuilder.url() without argument returns a current URL

  • updated: RESTBuilder.exec(function(err, value, response)) when the error exists the value is still EMPTYOBJECT

  • updated: addded a new argument replacer to controller.send(message, [id], [blacklist], [replacer]) and client.send(message, [raw], [replacer])

清理:

  • 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

修复:

  • 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 using nosql_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

改进:

  • 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)

下载地址:



历史版本 :
Total.js v2.9.1 发布,Node.js 的 MVC 框架
Total.js v2.9.0 发布,Node.js 的 MVC 框架
Total.js v2.8.0 发布,Node.js 的 MVC 框架
Total.js 2.7.0 发布,Node.js 的 MVC 框架
total.js 2.6.2 发布,Node.js 的 MVC 框架
Total.js 框架 v2.6.0 发布,Node.js 的 MVC 框架
total.js 2.4.0 发布,Node.js 的 MVC 框架
total.js v2.3.0 发布,Node.js 的 MVC 框架
total.js 2.2.0 发布,Node.js 的 MVC 框架
total.js 2.1.0 发布,Node.js 的 MVC 框架
total.js 1.9.5 发布,Node.js 的 MVC 框架
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务