Node.js framework v3.4.3 Release Notes

Release Date: 2020-05-11 // almost 4 years ago
  • News :

    • ➕ added: HASH(value, [type]) for creating hash like in jComponent
    • ➕ added: SchemaOptions.repo as alias to SchemaInstance.model.$$repository
    • ➕ added: a new type CONVERT syntax to schema.define() (more in docs)
    • ➕ added: SchemaEntity.verify(name, function($), [cache]) for async verification of values
    • ➕ added: TEMP variable as a new global variable (it's cleaned every 7 minutes)
    • added: CONF.allow_persistent_images: true which allows to reuse resized images in temp directory
    • ➕ added: req.filecache(callback) as alias for F.exists()
    • ➕ added: own QueryParser
    • ➕ added: RESTBuilderInstance.convert('name:String,age:Number') method
    • ➕ added: RESTBuilder.upgrade(fn(restbuilder)) for upgrading of RESTBuilder
    • ➕ added: RESTBuilder parses Total.js Errors in responses as Error
    • ➕ added: String.prototype.env() replaces all values in the form [key] for CONF.key
    • ➕ added: WebSocket supports a new type - raw buffer
    • ➕ added: Number.fixed(decimals)

    ⚡️ Updates :

    • ⚡️ updated: websocket.send2(message, comparer, replacer, [params]) by adding params argument for comparer function
    • ⚡️ updated: Websocket.encodedecode can enable/disable easily encoding of messages
    • ⚡️ updated: bundling skips all bundles with -bk.bundle in filename
    • ⚡️ updated: bundle filenames are displayed in console
    • ⚡️ updated: UPDATE() method by adding noarchive argument
    • ⚡️ updated: TEST() method supports [subdomain] keyword and METHOD url in URL address
    • ⚡️ updated: MODIFY([filename], fn) by adding filename argument
    • ⚡️ updated: background of schedulers by @fgnm
    • ⚡️ updated: U.download() by adding param argument
    • ⚡️ updated: U.request() by adding param argument
    • ⚡️ updated: schema.cl(name, [value]) method by adding value argument for replacing of existing code-list
    • ⚡️ updated: Tangular version to v4.0.0

    👌 Improvements :

    • 👌 improved: filename in modificators (now filenames contain relative paths)
    • 👌 improved: performance of U.request() (around +10%)
    • 👌 improved: performance of U.download() (around +10%)
    • 👌 improved: performance of RESTBuilder
    • 👌 improved: CSS minifier by compressing single hex color from e.g. #000000 to #000

    🛠 Fixes :

    • 🛠 fixed: localization in totaljs executable script
    • 🛠 fixed: phone validation
    • 🛠 fixed: DOWNLOAD()
    • 🛠 fixed: Number.VAT() by Tomas Novak
    • 🛠 fixed: debugging mode in Node.js v14
    • fixed: allow_compile_html in static files
    • 🛠 fixed: ROUTE() method, there was a problem with spaces GET /*
    • 🛠 fixed: ACTION() with json output
    • 🛠 fixed: controller in $ACTION() with used get and query actions
    • 🛠 fixed: PATCH method in $ACTION()
    • 🛠 fixed: schema.allow() in PATCH method
    • 🛠 fixed: image resizing in debug-mode