Skip to content

Releases: teclone/r-server

v2.1.2

29 Nov 09:45
Compare
Choose a tag to compare

2.1.2 (2018-11-29)

Bug Fixes

  • only define getter request utility variables once. (d74b299)

v2.1.1

29 Nov 08:57
Compare
Choose a tag to compare

2.1.1 (2018-11-29)

Bug Fixes

  • resolve default http error files in relation to current directory (c5dc233)

v2.1.0

28 Nov 07:15
Compare
Choose a tag to compare

2.1.0 (2018-11-28)

Bug Fixes

  • add cert generator bash script file (99b2dbe)

Features

  • add ability to supply array of middlewares using the use method (70f900a)
  • enable https support (c2abdb2)
  • expose httpsListening and httpsAddress api's (0e69460)
  • extend the request object, provide isHttps and hostname getters (9411610)
  • Support byte range request (f3a7271)
  • support multi middleware usage, and update doc comments (48523d0)

v2.0.0

12 Nov 08:08
Compare
Choose a tag to compare

2.0.0 (2018-11-12)

Features

  • add Util.value method to help retrieve alternate value from object using alternate keys (9d143a2)
  • create an assign method that performs deep clone unlike native Object.assign method (68162bc)
  • extend Response module, add the redirect util method (36f5f6e)
  • extend the response module, provide the json, status, and setHeaders method which are made ch (c9c2027)
  • incorporate environment settings and custom error and access logging capability (162e41b)
  • integrate error logging, support for asynchronous middlewares and callbacks (e881e16)
  • respond to unhandled promise rejection events (4cf5c59)
  • set development as default environment, .error.log and .access.log as default error and access (f739296)
  • support the use of asynchronous middlewares and route callback controllers (c15aa4d)

Tests

  • test latest multi-file field value pattern, asynchronous middleware and callback supports (f728972)

BREAKING CHANGES

  • Multi-file field data are now organised as a collection of arrays for every key, to
    be accessed using the index location

v1.0.1

27 Jul 11:49
Compare
Choose a tag to compare

1.0.1 (2018-07-27)

Bug Fixes

  • fix module entry path directory (8ee9a4c)

v1.0.0

27 Jul 09:04
Compare
Choose a tag to compare

1.0.0 (2018-07-27)

Bug Fixes

  • fix internal httpError files resolution paths. (fff33e0)

Features

  • add a getDefaultDocument method that returns the default document for a given directory if fou (3d2203c)
  • add a logProfile method that logs the profiled request response, time, method, response status (f0153eb)
  • add a mkDirSync method that recursively creates unexisting path directories (8060dd0)
  • add a Router() method that returns a mountable mini-app Router when called. (7fce028)
  • add a serveDownload method, endStream method and getDefaultHeaders method (d4320d5)
  • add ability to override middlewares through use method (3373b40)
  • add ability to set or override middlewares (b78d27f)
  • add an endResponse method that sends out response back to the client after all processes have (d1fdd51)
  • add an onRequestEnd event handler (a5da70b)
  • create a cleanUpTempFiles that performs housekeeping once the response finish event has fired. (77c33a5)
  • create a getFileTag that computes a files eTag (d2c13b3)
  • create a parse method that drives the module, calling the appropriate parse type by inspecting (2f5b4e2)
  • create a parseJSON method that parses json encoded request bodies (ae4508a)
  • create a parseMultiPart method that parses multipart request bodies, handles file uploads both (4042c50)
  • create a parsePartHeaders method that parses a multipart part headers (fd92384)
  • create a parseUrlEncoded and parseQueryString methods that parses url encoded request bodies a (dd03de8)
  • create a processFile method that handles file uploads (b9b77f3)
  • create a RouteWrapper module, that is return by the route method, for chaining routes (80a664c)
  • create a runSafe method on the util module that executes middlewares and controllers safely, s (17293c6)
  • create a serve method that runs an integrated process, and serves a response or ignores the re (b8152fd)
  • create a serveHttpErrorFile method that serves a custom user defined http error file for a giv (fbd7753)
  • create a utility module that provides utility methods to other modules (fa178e1)
  • create an assignValue method that assigns parsed value to a target object (569e2e1)
  • create an initServer metho that initializes the server and sets up event handlers (df3dfbe)
  • create interfaces for middleware usage and for adding routes (a8bef61)
  • create internal http error status code files that gets served when errors such as 404, 504, 40 (385996c)
  • create onRequestEnd event handler, request body parser controller, and on response finish hous (d59f83f)
  • create the internal config file used by the server that contains all default server settings (dcfde45)
  • create the main export file. exposes an instanc() method that when called returns an instance (ce3f44d)
  • create the onRequest event handler, onRequestData event handler (9788d54)
  • create the route runner that specifically executes routes (380216e)
  • Create the Router module. Module that offers route api methods and middleware use interface (48988c4)
  • routing: create a run method that runs the route's controller if all processes validates. (c3db08f)
  • Create the Static File Server module. (9ee7194)
  • routing: create a validateRoute method that validates if the request method and the route's me (e8fc2eb)
  • extend http ServerResponse and IncomingMessage classes by providing additional api layers (30642a2)
  • app: Create the RServerApp, the user facing interface. it exposes all the api methods such as (075b9f1)
  • BodyParser: create the BodyParser module. This module parses url encoded request bodies, json (3055a9a)
  • content-negotiation: create a negotiateContent method that negotiates request content (87f4d77)
  • logger: Add a logger module that logs messages to the console. (ec93fa2)
  • router: creat the Router module. (3eabdb1)
  • Extend node.js http.ServerResponse class, add a download method that sends file attachments to (29a06cf)
  • routing: create a decomposeRouteToken method that performs parameter capturing (028502f)
  • routing: create a validateOptions method that validates other route's additional requirements (4c0aa6d)
  • routing: Create matchUrl method that performs url testing. it formats the current route's url (d52e772)
  • routing: create rest api endpoints, get, post, put, delete, head, options, and universal route (f8aaa7f)
  • RServer: create the server module, currently contains the ability to resolve the user defined (9b6269c)
  • validator: create a validateRequest method that validates the state of the request, and determ (8b90213)