Skip to content

v0.4.0

Compare
Choose a tag to compare
@crookse crookse released this 27 Feb 06:08
2110142

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 type Logger.TYPE_CONSOLE so that it's messages are written to the console. The FileLogger class is coming soon.
  • Drash.Services.HttpService
    • hydrateHttpRequest(request): Hydrate the request with data that is useful for the Drash.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)