Skip to content

Releases: totaljs/framework

v1.2.3

01 Mar 16:18
Compare
Choose a tag to compare

TOTALSTACK logo

- added: view @{helper('name', [arg1], [arg2], ...)}
- added: controller.helper(name, [arg1], [arg2], ...)
- added: controller.change(message)
- added: new markup /*auto*/ for auto-vendor-prefixes
- added: [authorize] flag
- added: @{ng(name)}
- added: @{ngTemplate(name, [id])}
- added: @{ngController(name)}
- added: @{ngFilter(name)}
- added: @{ngService(name)}
- added: @{ngDirective(name)}
- added: @{ngResource(name)}
- added: @{ngCommon(name)}
- added: @{ngInclude(name)}
- added: @{ngStyle(name)}
- added: @{ngLocale(name)}
- added: @{helper(helperName, [param1], [param2], ...)}
- added: config['directory-angular']
- added: config['angular-version']
- added: config['angular-i18n-version']
- added: binary: total -angular [or] total -a
- added: framework.change(message, [name], [uri], [ip]);
- added: framework.changes;
- added: framework.on('change', message, [name], [uri], [ip]);

IMPORTANT:
- added: routing with asterix, example: framework.route('/subpage/*', ...);

IMPORTANT:
- updated: [logged] flag is obsolete, new flag: authorize
- updated: [unlogged] flag is obsolete (without flag)

- fixed: helpers
- fixed: static files caching in debug mode

v1.2.0

17 Feb 00:18
Compare
Choose a tag to compare
- new: NEW TEMPLATE ENGINE 2.0

- added: route to website, route to file and route to websocket is possible everywhere
- added: node harmony functions (see example)
- added: gc() into framework.on('service')
- added: config['allow-performance'] true/false (default, false)
- added: config['default-image-converter'] (default "gm" - GraphicsMagick, another possibility: "im" - ImageMagick)
- added: new views/templates/contents cache
- added: framework.problem(message, [name], [uri], [ip]);
- added: framework.on('problem', message, [name], [uri], [ip])
- added: framework.problems;
- added: req.language;
- added: controller.title()
- added: controller.description()
- added: controller.keywords()
- added: controller.problem(message)
- added: controller.memorize(key, expire, fnTo, [fnFrom]) - cache for controller.view(), controller.json(), controller.plain()
- added: Array.prototype.trim()
- added: Array.prototype.wait()
- added: Array.prototype.async()
- added: String.prototype.hash([type])
- added: Pagination.next([format]), Pagination.prev([format])
- added: utils.isRegExp(obj)

- updated: license
- updated: parsing of configuration: # and // is a comment
- updated: auto-vendor-prefixes (updated linear-gradient prioraty according to w3schools.com)
- updated: websocket.send(message, [id], [blacklist]), id and blacklist can be a function
- updated: controller.view400([problem])
- updated: controller.view403([problem])
- updated: controller.view404([problem])
- updated: controller.view501([problem])
- updated: controller.plain(contentBody, [headers]) - added JSON serialized for objects
- updated: controller.json(obj, [header], [beaufity]);
- updated: framework.usage([detailed]) - returns OBJECT
- updated: FrameworkCache.removeAll(search or regexp-pattern)
- updated: @{sitemap} is currently: @{sitemap()}
- updated: PageBuilder
- updated: @{template()} and controller.template() - default repository is controller repository

- removed: border-radius and box-shadow from auto-vendor-prefixes

- obsolete: Array.prototype.waiting()

- fixed: controller.view500()
- fixed: controller.proxy(), utils.request(), utils.download() - problem with NGINX, missing Content-Length header
- fixed: WebSocket skips throwing error (socket close, EPIPE)
- fixed: mail (SPAM fixes)
- fixed: buffer.write (new node => 0.11.11)
- fixed: IP and heroku deploy

- rewrited: view engine
- rewrited: template engine (according to view engine)

- improvements: views
- improvements: templates
- improvements: partial routing

IMPORTANT: framework.usage() returns OBJECT
IMPORTANT: markup of template is OBSOLETE. Templates support only view markup.

v1.1.0

31 Jan 16:04
Compare
Choose a tag to compare
  • added: new feature COMPONENTS
  • added: new feature MODELS
  • added: framework.id
  • added: framework.isDebug
  • added: framework.isTest
  • added: framework.model(name)
  • added: framework.controller(name, definition)
  • added: framework.functions
  • added: framework.assert(name, callback)
  • added: framework.assert(name, url, callback, method, data, headers, xhr)
  • added: framework.injectComponent(name, url)
  • added: framework.injectModel(name, url)
  • added: framework.path.components([filename])
  • added: framework.path.models([filename])
  • added: controller.model(name)
  • added: controller.$model - (property contains current model)
  • added: flag: OPTIONS
  • updated: framework.usage([detailed])
  • updated: BINARY
  • updated: WebSocket skips throwing error (ECONNRESET)
  • fixed: framework.controller(name)
  • fixed: // char in views and templates
  • fixed: assertion testing
  • fixed: mail attachment (fixed: line too long)
  • fixed: "@charset" keyword in CSS
  • fixed: cache-control header
  • fixed: HTML conditional comments in views
  • fixed: controller.cors(), fixed problem with preflight
  • fixed: controller.empty() -> added 204 http status code

improvements: views (in release mode)

v1.0.2 (HOTFIX)

23 Jan 08:55
Compare
Choose a tag to compare
  • fixed: mail message (problem with diacritics in OUTLOOK)

v1.0.1

15 Jan 19:32
Compare
Choose a tag to compare
  • fixed: builders.prepare()
  • fixed: binary (command-line tools)

v1.0.0

14 Jan 06:27
Compare
Choose a tag to compare

First stable version.