v0.4.0
What's New
.travis.yml
- Unit tests. Most of the code is covered. Coveralls will be implemented soon.
Drash.Dictionaries.LogLevels
- Contains a list of log levels and their ranks
Drash.Loggers.Logger
debug(message)
: Log debug messages.error(message)
: Log error messages.fatal(message)
: Log fatal messages.info(message)
: Log info messages.trace(message)
: Log trace messages.warn(message)
: Log warning messages.
Drash.Loggers.ConsoleLogger
- Inherits
Drash.Loggers.Logger
and makes its typeLogger.TYPE_CONSOLE
so that it's messages are written to the console. TheFileLogger
class is coming soon.
- Inherits
Drash.Services.HttpService
hydrateHttpRequest(request)
: Hydrate the request with data that is useful for theDrash.Http.Server class
.getHttpRequestUrlQueryParams(request)
: Get the request's query params by parsing its URL.
Fixes
- Fixed issue where static properties on the
Drash.Http.Server
were being used by other servers when they shouldn't have been. These properties are now gone and part of the configs so multiple servers can be created without fear of a cached static property. - Fixed type definitions
- Fixed issue where URL query params weren't being added (thanks unit tests... seriously... unit tests are important)