diff --git a/README.md b/README.md index c4f183b..484aa81 100755 --- a/README.md +++ b/README.md @@ -22,10 +22,14 @@ all these common modules and utilities into a single package, making it damn eas * You hate TypeScript * You need ultimate performance and as little overhead as possible -## New version 4 +## Major breaking changes on v4 Expresser is being rebuilt! CoffeeScript gives way to TypeScript. All-in-one gives way to only-what-you-need. -More info coming soon... +Apps using Expresser v3.x.x will most certaiinly need to be updated. + +To make the upgrade-path easier, you might use the expresser-legacy module while +you change your app's code to use the recommended replacement features. +More info here: https://github.com/igoramadas/expresser/wiki/Migration-from-v3-to-v4 ## API documentation diff --git a/docs/assets/js/search.js b/docs/assets/js/search.js index 3202d7b..521adf6 100644 --- a/docs/assets/js/search.js +++ b/docs/assets/js/search.js @@ -1,3 +1,3 @@ var typedoc = typedoc || {}; typedoc.search = typedoc.search || {}; - typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","2097152":"Object literal"},"rows":[{"id":0,"kind":1,"name":"\"app\"","url":"modules/_app_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"MiddlewareDefs","url":"interfaces/_app_.middlewaredefs.html","classes":"tsd-kind-interface tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"app\""},{"id":2,"kind":1024,"name":"prepend","url":"interfaces/_app_.middlewaredefs.html#prepend","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"app\".MiddlewareDefs"},{"id":3,"kind":1024,"name":"append","url":"interfaces/_app_.middlewaredefs.html#append","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"app\".MiddlewareDefs"},{"id":4,"kind":128,"name":"App","url":"classes/_app_.app.html","classes":"tsd-kind-class tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"app\""},{"id":5,"kind":2048,"name":"newInstance","url":"classes/_app_.app.html#newinstance","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":6,"kind":512,"name":"constructor","url":"classes/_app_.app.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":7,"kind":1024,"name":"expressApp","url":"classes/_app_.app.html#expressapp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":8,"kind":1024,"name":"server","url":"classes/_app_.app.html#server","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":9,"kind":1024,"name":"events","url":"classes/_app_.app.html#events","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":10,"kind":2048,"name":"init","url":"classes/_app_.app.html#init","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":11,"kind":2048,"name":"start","url":"classes/_app_.app.html#start","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":12,"kind":2048,"name":"kill","url":"classes/_app_.app.html#kill","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":13,"kind":2048,"name":"all","url":"classes/_app_.app.html#all","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":14,"kind":2048,"name":"get","url":"classes/_app_.app.html#get","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":15,"kind":2048,"name":"post","url":"classes/_app_.app.html#post","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":16,"kind":2048,"name":"put","url":"classes/_app_.app.html#put","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":17,"kind":2048,"name":"patch","url":"classes/_app_.app.html#patch","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":18,"kind":2048,"name":"delete","url":"classes/_app_.app.html#delete","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":19,"kind":2048,"name":"use","url":"classes/_app_.app.html#use","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":20,"kind":2048,"name":"route","url":"classes/_app_.app.html#route","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":21,"kind":2048,"name":"renderView","url":"classes/_app_.app.html#renderview","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":22,"kind":2048,"name":"renderText","url":"classes/_app_.app.html#rendertext","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":23,"kind":2048,"name":"renderJson","url":"classes/_app_.app.html#renderjson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":24,"kind":2048,"name":"renderImage","url":"classes/_app_.app.html#renderimage","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":25,"kind":2048,"name":"renderError","url":"classes/_app_.app.html#rendererror","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":26,"kind":1,"name":"\"index\"","url":"modules/_index_.html","classes":"tsd-kind-external-module"},{"id":27,"kind":2097152,"name":"index","url":"modules/_index_.html#index","classes":"tsd-kind-object-literal tsd-parent-kind-external-module","parent":"\"index\""},{"id":28,"kind":32,"name":"app","url":"modules/_index_.html#index.app","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"index\".index"},{"id":29,"kind":32,"name":"version","url":"modules/_index_.html#index.version","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"index\".index"},{"id":30,"kind":1,"name":"\"logger\"","url":"modules/_logger_.html","classes":"tsd-kind-external-module"},{"id":31,"kind":128,"name":"Logger","url":"classes/_logger_.logger.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"logger\""},{"id":32,"kind":2048,"name":"argsCleaner","url":"classes/_logger_.logger.html#argscleaner","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"\"logger\".Logger"},{"id":33,"kind":2048,"name":"clean","url":"classes/_logger_.logger.html#clean","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"\"logger\".Logger"}]}; \ No newline at end of file + typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","2097152":"Object literal","8388608":"Event"},"rows":[{"id":0,"kind":1,"name":"\"app\"","url":"modules/_app_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"MiddlewareDefs","url":"interfaces/_app_.middlewaredefs.html","classes":"tsd-kind-interface tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"app\""},{"id":2,"kind":1024,"name":"prepend","url":"interfaces/_app_.middlewaredefs.html#prepend","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"app\".MiddlewareDefs"},{"id":3,"kind":1024,"name":"append","url":"interfaces/_app_.middlewaredefs.html#append","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"app\".MiddlewareDefs"},{"id":4,"kind":128,"name":"App","url":"classes/_app_.app.html","classes":"tsd-kind-class tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"app\""},{"id":5,"kind":2048,"name":"newInstance","url":"classes/_app_.app.html#newinstance","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":6,"kind":512,"name":"constructor","url":"classes/_app_.app.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":7,"kind":1024,"name":"expressApp","url":"classes/_app_.app.html#expressapp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":8,"kind":1024,"name":"server","url":"classes/_app_.app.html#server","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":9,"kind":1024,"name":"events","url":"classes/_app_.app.html#events","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":10,"kind":2048,"name":"on","url":"classes/_app_.app.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":11,"kind":2048,"name":"once","url":"classes/_app_.app.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":12,"kind":2048,"name":"off","url":"classes/_app_.app.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":13,"kind":8388608,"name":"init","url":"classes/_app_.app.html#init","classes":"tsd-kind-event tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":14,"kind":8388608,"name":"start","url":"classes/_app_.app.html#start","classes":"tsd-kind-event tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":15,"kind":8388608,"name":"kill","url":"classes/_app_.app.html#kill","classes":"tsd-kind-event tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":16,"kind":2048,"name":"all","url":"classes/_app_.app.html#all","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":17,"kind":2048,"name":"get","url":"classes/_app_.app.html#get","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":18,"kind":2048,"name":"post","url":"classes/_app_.app.html#post","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":19,"kind":2048,"name":"put","url":"classes/_app_.app.html#put","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":20,"kind":2048,"name":"patch","url":"classes/_app_.app.html#patch","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":21,"kind":2048,"name":"delete","url":"classes/_app_.app.html#delete","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":22,"kind":2048,"name":"use","url":"classes/_app_.app.html#use","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":23,"kind":2048,"name":"route","url":"classes/_app_.app.html#route","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":24,"kind":2048,"name":"renderView","url":"classes/_app_.app.html#renderview","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":25,"kind":2048,"name":"renderText","url":"classes/_app_.app.html#rendertext","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":26,"kind":2048,"name":"renderJson","url":"classes/_app_.app.html#renderjson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":27,"kind":2048,"name":"renderImage","url":"classes/_app_.app.html#renderimage","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":28,"kind":2048,"name":"renderError","url":"classes/_app_.app.html#rendererror","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"app\".App"},{"id":29,"kind":1,"name":"\"index\"","url":"modules/_index_.html","classes":"tsd-kind-external-module"},{"id":30,"kind":2097152,"name":"index","url":"modules/_index_.html#index","classes":"tsd-kind-object-literal tsd-parent-kind-external-module","parent":"\"index\""},{"id":31,"kind":32,"name":"app","url":"modules/_index_.html#index.app","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"index\".index"},{"id":32,"kind":32,"name":"version","url":"modules/_index_.html#index.version","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"index\".index"},{"id":33,"kind":1,"name":"\"logger\"","url":"modules/_logger_.html","classes":"tsd-kind-external-module"},{"id":34,"kind":128,"name":"Logger","url":"classes/_logger_.logger.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"logger\""},{"id":35,"kind":2048,"name":"argsCleaner","url":"classes/_logger_.logger.html#argscleaner","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"\"logger\".Logger"},{"id":36,"kind":2048,"name":"clean","url":"classes/_logger_.logger.html#clean","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"\"logger\".Logger"}]}; \ No newline at end of file diff --git a/docs/classes/_app_.app.html b/docs/classes/_app_.app.html index 3a472db..911453f 100644 --- a/docs/classes/_app_.app.html +++ b/docs/classes/_app_.app.html @@ -92,6 +92,14 @@
Init the app module and start the HTTP(S) server.
+List of middlewares to be appended / prepended.
+Kill the underlying HTTP(S) server(s).
+Start the HTTP(S) server.
+The HTTP(S) server created by Express.
+Init the app module and start the HTTP(S) server.
+Returns a new fresh instance of the App module.
+Unbind callback from event. Shortcut to events.off()
.
List of middlewares to be appended / prepended.
+The name of the event.
+Callback function.
Kill the underlying HTTP(S) server(s).
+Bind callback to event. Shortcut to events.on()
.
The name of the event.
+Callback function.
+Returns a new fresh instance of the App module.
+Bind callback to event that will be triggered only once. Shortcut to events.once()
.
The name of the event.
+Callback function.
+Start the HTTP(S) server.
-The HTTP(S) server created by Express.
-Expresser is being rebuilt! CoffeeScript gives way to TypeScript. All-in-one gives way to only-what-you-need. - More info coming soon...
+ Apps using Expresser v3.x.x will most certaiinly need to be updated. +To make the upgrade-path easier, you might use the expresser-legacy module while + you change your app's code to use the recommended replacement features. + More info here: https://github.com/igoramadas/expresser/wiki/Migration-from-v3-to-v4
You can browse the full API documentation at https://expresser.devv.com.
Default App constructor. Binds the Logger clean by default for logging.
+Default App constructor.