Enhancement:
- Fix critical issue.
Enhancement:
- Less working with Node v10.
Fix:
- Restore capability to generate HTML files.
Avoid error:
- Restore capability to generate HTML files.
Avoid error:
- Avoid the
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
error.
Security fix:
- Solve lodash low vulnerability
- Solve node.extend low vulnerability
Removed:
NA#imgOptimization
removed.NA#webconfig.optimizations
removed.NA#webconfig.imgOptimizationsBeforeResponse
removed.NA#webconfig.imgOptimizationsEnable
removed.
Enhancement:
- Capability to now just set "2.0.x" to use NodeAtlas.
Features:
- Gitter Chat for both fr (Aide) and en (Help) language:
https://gitter.im/NodeAtlas/
. - Configuration file with
.js
extension allowed. NA#locals.urlRootPath
is added (same asNA#webconfig.urlRoot
).NA#locals.urlSubPath
is added (same asNA#webconfig.urlRelativeSubPath
).NA#locals.urlFilePath
is added.NA#locals.urlPath
is added.NA#locals.currentRouteKey
is added.NA#webconfig.view
is added.NA#webconfig.mimeType
is added.NA#webconfig.charset
is added.NA#webconfig.headers
is added.NA#webconfig.cache
is added.NA#webconfig.pug
is added.NA#webconfig.socketClientFile
is added.NA#webconfig.socketServerOptions
is added.NA#webconfig.version
added.NA#locals.routeParameters.enablePug
is added.NA#controllers[].setSockets
is added for both common and specific controller.NA#controllers[].changeDom(next(), locals.virtualDom()...
added to directly obtain$
.NA#controllers[].changeDom
next
callback accept a$
first parameter.NA#configuration.cache
is added.--cache
command is added.NA#httpsServer
added.NA#httpServer
added.NA#statics
added.NA#version
added.NA#engine
added.NA#middlewares
added.NA#middlewaresRelativePath
added.NA#locals.routeParameters.middlewares
added.NA#assetsCopy
added.NA#stopped
added.global.NA
embty object added for isomorphic code.NA.isClient = true
added intonode-atlas/socket.io.js
for isomorphic code.serverRelativePath
folder is created if is not exist.- Language
portRequiresPrivileges
is added. - Less and Stylus vendor autoprefix automaticly added with options
less.autoprefix
andstylus.autoprefix
.
Updates:
- CLI command
nodeatlas
becomenode-atlas
(withatlas
as alias) NA#appLanguage
becomeNA#cliLanguage
.NA#appLabels
becomeNA#cliLabels
.NA#websiteController[]
becomeNA#controllers[]
.NA#controllers[].changeVariation
becomeNA#controllers[].changeVariations
.NA#controllers[].changeVariations(params, next)
becomeNA#controllers[].changeVariations(next, locals, request, response)
.NA#controllers[].changeDom(params, next)
becomeNA#controllers[].changeVariations(next, locals, request, response)
.NA#controllers[].changeDom(params.dom...
becomeNA#controllers[].changeVariations(next, locals.dom...
.NA#controllers[].loadModules
becomeNA#controllers[].setModules
.NA#changeVariationCommon
becomeNA#changeVariationsCommon
.NA#changeVariationSpecific
becomeNA#changeVariationsSpecific
.NA#currentVariation
becomeNA#locals
.NA#locals.currentRoute
becomeNA#locals.route
.NA#locals.currentRouteParameters
becomeNA#locals.routeParameters
.NA#locals.currentRouteName
becomeNA#locals.route
.NA#locals.urlBasePath
becomeNA#webconfig.urlRoot + NA#webconfig.urlRelativeSubPath
(without ending "/").NA#currentRouteParameters
becomeNA#locals.routeParameters
.NA#locals.routeParameters.generate
becomeNA#locals.routeParameters.output
.NA#locals.routeParameters.template
becomeNA#locals.routeParameters.view
.NA#webconfig.urlWithoutFileName
becomeNA#webconfig.urlRoot
.NA#webconfig.generatesRelativePath
becomeNA#webconfig.serverlessRelativePath
.NA#webconfig.serverlessRelativePath
default value become"serverless"
.NA#webconfig.templatesRelativePath
becomeNA#webconfig.viewsRelativePath
.NA#webconfig.viewsRelativePath
default value become"views"
.NA#webconfig.htmlGeneratesBeforeResponse
becomeNA#webconfig.htmlGenerationBeforeResponse
.NA#webconfig.imagesOptimizationsBeforeResponse
becomeNA#webconfig.imgOptimizationsBeforeResponse
.NA#webconfig.imagesOptimizationsEnable
becomeNA#webconfig.imgOptimizationsEnable
.NA#webconfig.stylesheetsBundlesBeforeResponse
becomeNA#webconfig.cssBundlingBeforeResponse
.NA#webconfig.stylesheetsBundlesEnable
becomeNA#webconfig.cssBundlingEnable
.NA#webconfig.javascriptBundlesBeforeResponse
becomeNA#webconfig.jsBundlingBeforeResponse
.NA#webconfig.javascriptBundlesEnable
becomeNA#webconfig.jsBundlingEnable
.NA#webconfig.viewsRelativePath
replace removedNA#webconfig.componentsRelativePath
.NA#webconfig.httpSecureRelativeKeyPath
becomeNA#webconfig.httpSecureKeyRelativePath
.NA#webconfig.httpSecureRelativeCertificatePath
becomeNA#webconfig.httpSecureCertificateRelativePath
.NA#webconfig.bundles.javascript
becomeNA#webconfig.bundles.javascripts
.NA#webconfig.htmlGenerationEnable
becomeNA#webconfig.output
.NA#webconfig.output
tofalse
by default.NA#afterGenerates
becomeNA#afterGeneration
.NA#newRender
becomeNA#view
.NA#addCommonVariation
becomeNA#common
.NA#addSpecificVariation
becomeNA#specific
.NA#init
becomeNA#start
.NA#config
becomeNA#init
.NA#serverPhysicalPath
becomeNA#nodeatlasPath
.NA#websitePhysicalPath
becomeNA#serverPath
.NA#nodeAtlasModulePath
becomeNA#nodeatlasModulesRelativePath
and become relatif toNA#nodeatlasPath
.NA#websiteModulesPath
becomeNA#serverModulesRelativePath
and become relatif toNA#serverPath
.--init
command become--create
.--directory
command become--path
.templatesPath
var becomeviewsPath
var.templateFile
var becomeviewFile
var.- Language
templateNotFound
becomeviewNotFound
. - Language
templateNotSet
becomeviewNotSet
. - Language
emulatedIndexPage
becomeindexPage
. - EJS engine become ATLAS engine and
<% %>
become<? ?>
. NA#httpServer
becomeNA#express
.NA#getSupport
becomeNA#get
.NA#postSupport
becomeNA#post
.NA#putSupport
becomeNA#put
.NA#deleteSupport
becomeNA#delete
.NA#locals.routeParameters.getSupport
becomeNA#locals.routeParameters.get
.NA#locals.routeParameters.postSupport
becomeNA#locals.routeParameters.post
.NA#locals.routeParameters.putSupport
becomeNA#locals.routeParameters.put
.NA#locals.routeParameters.deleteSupport
becomeNA#locals.routeParameters.delete
.NA#commonController
becomeNA#controller
.NA#commonVariation
becomeNA#variation
.NA#enableLess
becomeNA#less
.NA#enableStylus
becomeNA#stylus
.NA#enableIndex
becomeNA#index
.NA#enableForceDomain
becomeNA#forceDomain
.NA#stylus.stylus
becomeNA#stylus.filse
.NA#less.files
becomeNA#less.files
.- The
templates/hello-world
example is better. NA.modules.cheerio
replaced byNA.modules.jsdom
.
Removed:
NA#modules.child_process
removed.NA#modules.forcedomain
removed.NA#webconfig.componentsRelativePath
removed.NA#locals.urlBasePathSlice
removed.NA#variations.currentRouteName
removed.NA#modulesRequired
andNA#downloadAllModules
removed. Usenpm install
manually instead if you download package manually.- Original
NA#variations
removed. - Language
templateDirectoryNotExist
removed.
Features:
- Allows to do something after server was starded with callback
started
for API. - Allows to start a Simple Web Server in HTTPs or overload webconfig.json to start it in HTTPs with
httpSecure
in CLI or API. - Allows to start a Simple Web Server with other
httpHostname
in CLI or API. - Allows to change NodeAtlas language used with
lang
in CLI or API.
Enhancement:
- Allows to start a Simple Web Server with other
httpPort
(support HTTPs) in CLI or API.
Updates:
afterInitProject
becomecreated
for API.afterGeneration
becomegenerated
for API.
Updates:
- New README with less informations. All informations are on official Website.
Updates:
- Compatibility test and information checked and updated.
Bugfix:
- Find the real place of
node-atlas
module used by CLI or by API.
Enhancement:
- Use
NA.serverPhysicalPath
to find real location of NodeAtlas engine. - Use
--init
command to copy « templates/hello-world » from NodeAtlas directory to current directory.
Enhancement:
- Split a too long function into two.
Bugfix:
- Add
imagemin
submodule intopackage.json
.
Bugfix:
- Allows template of
enableIndex
to manage special char displaying.
Feature:
- Allows you to add dynamicly routes to webconfig with
setRoutes
.
Updates:
changeVariation
callback have no necessity to usevariation
anymore as first parameter.
Updates:
- change
htmlGenerateBeforeResponse
intohtmlGeneratesBeforeResponse
.
Updates:
- async 2.1.x update.
Updates:
- cheerio 0.22.x update.
Feature:
- Quick support for HTTP DELETE and PUT for create REST API easily.
Feature:
- Possibility to change all Headers information by page.
Updates:
- async 1.5.x update.
Updates:
- async 2.0.0 update.
- express-session 1.14.0 update.
- less-midleware 2.2.0 update.
- uglify-js 2.7.0 update.
Enhancement:
--httpHostname
become a configurable value from CLI and API usage. This will help you to test website with others device on the same network without use some proxy or internet webserver.
Enhancement:
httpSecure
not use https object if it only defined totrue
to support plateform that provide https certificate for you (e. i. Cloud9).
Updates:
- Stylus support for generate CSS.
Updates:
- Package New Description.
Updates:
- New async version.
- Less informations on NodeAtlas index bootstrap page.
Updates:
- See the link for starting page in the console.
Bugfix:
--browse
command work as expected now !
Updates:
- Less-Midleware 2.1.0 update.
Updates:
- Body Parser Module update.
Bugfix:
- Avoid Cheerio output use decodeEntities.
Updates:
- Use a couple
index.js
andbin/
directory to work.
Updates:
- Bin directory used and lib/install.js removed.
Updates:
- Update dependencies.
Updates:
- Update dependencies.
Updates:
- Update dependencies.
Updates:
- Update dependencies.
Features:
- To be able to execute code after assets generation with
--generate
via API. - Allow you to pass image compression options for generation with
--generate
Updates:
- All functionality of Roadmap for v1.0.
Updates:
- Preparation for v1.0.
Updates:
- Allow '/home/' path for example to generate 'home' path with good
urlBasePath
.
Bugfixes:
- Bad name file in the console.log for multiple Less file.
Updates:
- Compile Less with Generate feature.
Updates:
- Use Less with
urlRelativeSubPath
.
Updates:
- A nice looked Index page for webconfig.
Updates:
- Expose
currentRouteName
value for know the key of route if a key is setted.
Updates:
- Expose function for templating with variation for Back-end part.
Updates:
- Allow all webconfig param to not set with '/' in end or start.
Updates:
- Update image optimization mechanism.
Documentation:
- Documentation for feature below.
Features:
- Allow you to not generate a route with
currentRouteParameters.generate
set to false.
Documentation:
- Documentation for feature below.
Updates:
- Update of less-middleware.
Features:
- EJS 2 as template engine.
Documentation:
- Change include part for templating.
Documentation:
- tl;dr Update.
Documentation:
- Adding of tl;dr.
Bugfixes:
- Avoid a stopping of generation of HTML pages when a directory was created.
Bugfixes:
- Install
nodeatlas
command without problem on Unix system withpostinstall
. It's fixed.
Documentation:
- Add precision for
nodeatlas
command.
Bugfixes:
- Install
nodeatlas
command without problem on Unix system withpostinstall
. Tests.
Bugfixes:
- In SimpleWebServer,
browse
option with NA.run() do not start browser. It's fixed.
Features:
- CSS could be injected inline by referencing some CSS file with
injectCss
. Useful for maintain HTML assets.
Documentation:
- Add precision for
injectCss
feature.
Features:
- forceDomain could be disabled or enabled with
enableForceDomain
. By default, it's disabled.
Documentation:
- Add precision for
enableForceDomain
feature.
Features:
- Allow you to desactivate HTML generation even if a
generatesRelativePath
directory exist. indexPage
property becomeenableIndex
.
Documentation:
- Add precision for
htmlGenerateEnable
feature.
Bugfixes:
- Bad type for javascriptBundlesEnable, stylesheetsBundlesEnable, javascriptBundlesBeforeResponse, stylesheetsBundlesBeforeResponse and autoGenerate. Setted to boolean, not string.
Bugfixes:
- Avoid copy of
assetsRelativePath
intogeneratesRelativePath
ifgeneratesRelativePath
do not exist.
Documentation:
- Add precision for generation of HTML asset.
Features:
- Optimization of images.
autoGenerate
becomehtmlGenerateBeforeResponse
Bugfixes:
- Conflict with "true" and true in the webconfig for javascriptBundlesEnable, stylesheetsBundlesEnable, javascriptBundlesBeforeResponse, stylesheetsBundlesBeforeResponse and autoGenerate.
Documentation:
- Explain how to activate Optimizations.
Bugfixes:
- Allow utilisation of
nodeatlas
command on linux and MacOS. Tests.
Bugfixes:
- Because of HTTPs implementation, Simple Server Mode return an error. It's fixed.
Bugfixes:
- Because of HTTPs implementation, Simple Server Mode return an error. Tests.
Bugfixes:
- Because of HTTPs implementation, Simple Server Mode return an error. Tests.
Bugfixes:
- Insert commands directory.
Bugfixes:
- npm debug for install.js.
Features:
- Easilly support HTTPs protocol (and WSs prococol) with webconfig.
Documentation:
- Explain how to activate HTTPs.
Documentation:
- Change a 404 external link.
Documentation:
- New website example.
- Example for multilingual 404 page.
Bugfixes:
- The error page of
pageNotFound
was never matched if theurl
property was used. It's fixed.
Features:
- With
--generate
command, allassetsRelativePath
content will be copied intogeneratesRelativePath
if this two path are different.
Documentation:
- Update with new information.
Features:
- The
preRender
hook become thechangeVariation
hook. - The
render
hook become thechangeDom
hook. - The
params.data
ofrender
becomeparams.dom
ofchangeDom
.
Bugfixes:
- If a port is already in used, the error message said the port 80 is used even if the port used is 7777 for example.
Documentation:
- Update with new information.
Features:
- The
--run
opition become the--browse
option and-r
become-b
. - Adding of
--browse [subpath]
.
Documentation:
- Update with new information.
Information:
- Creation of CHANGELOG.md file.