drash

A microframework for building JavaScript HTTP applications. Runtime-agnostic. Strongly typed.

GPL-3.0 License

Downloads
119
Stars
1.1K
Committers
20

Bot releases are hidden (Show)

drash - v0.18.0

Published by crookse about 5 years ago

Requirements:

Deno v0.18.0
Deno Standard Modules v0.17.0

drash - v0.17.0

Published by crookse about 5 years ago

Requirements:

Deno v0.17.0
Deno Standard Modules v0.17.0

drash - v0.16.2

Published by crookse about 5 years ago

Automate version bumping using /path/to/deno-drash/bump_versions.ts. Use console script: /path/to/deno-drash/console/bump_versions

drash - v0.16.1

Published by crookse about 5 years ago

Upgrade to use Deno Standard Modules v0.16.0.

Requirements:

Deno v0.16.0
Deno Standard Modules v0.16.0

drash - v0.16.0

Published by crookse about 5 years ago

Upgrade to use Deno v0.16.0.

Requirements:

Deno v0.16.0
Deno Standard Modules v0.15.0

drash - v0.15.0

Published by crookse about 5 years ago

Upgrade to use Deno v0.15.0.

Requirements:

Deno v0.15.0
Deno Standard Modules v0.15.0

drash - v0.14.0

Published by crookse about 5 years ago

Upgrade to use Deno v0.14.0.

Requirements:

Deno v0.14.0
Deno Standard Modules v0.12.0

drash - v0.13.0

Published by crookse about 5 years ago

Upgrade to use Deno v0.13.0.

Requirements:

Deno v0.13.0
Deno Standard Modules v0.12.0

drash - v0.12.0

Published by crookse about 5 years ago

Upgrade to use Deno v0.12.0.

Requirements:

Deno v0.12.0
Deno Standard Modules v0.12.0

drash - v0.11.0

Published by crookse about 5 years ago

Upgrade to use Deno v0.11.0.

Requirements:

Deno v0.11.0
Deno Standard Modules v0.11.0

drash - v0.10.0

Published by crookse about 5 years ago

Upgrade to use Deno v0.10.0.

Requirements:

Deno v0.10.0
Deno Standard Modules v0.9.0

drash - v0.9.0

Published by crookse about 5 years ago

Bumping minor versions to match Deno releases.

drash - v0.8.6

Published by crookse over 5 years ago

  • file.path no longer exists when reading files via Deno.readFileSync(). The documentation and tests were heavily reliant on file.path, so that change pretty much broke half of Drash's codebase. fs.walkSync() is now used to read a filesystem's structure. It is wrapped in Drash.Util.Exports.getFileSystemStructure(). getFileSystemStructure() returns the following:

    {
      basename: "filename",
      extension: "extension", // does not account for .min.extension or similar extensions
      filename: "filename.extension",
      path: "/path/to/the/file/dir/filename.extension",
      pathname: "/path/to/the/file/dir",
      snake_cased: "filename_extension"
    }
    
  • Drash.Http.Request was removed. ServerRequest no longer needs the Drash.Http.Request wrapper. ServerRequest works as expected when serving static paths and when hydrating it with useful properties that were used in Drash.Http.Request. However, ServerRequest can't be used as a type in function/method definitions because the compiler gets mad (e.g., myFunc(myParam: ServerRequest)). This is because the said useful properties don't exist on ServerRequest.

drash - v0.8.5

Published by crookse over 5 years ago

Support deno and deno_std v0.9.0.

Added REQUIREMENTS.md for compatibility tracking/info.

drash - v0.8.4

Published by crookse over 5 years ago

Drash can now use the following Deno versions:

>= 0.3.7 <= 0.5.0

Deno Standard Modules is still at v0.3.4.

drash - v0.8.3

Published by crookse over 5 years ago

Fixed doc block parsing.

See #62 for more details. Issue fixed by #63.

Added Drash.Util.Exports documentation. See https://crookse.github.io/deno-drash/#/api-reference/util/exports.

drash - v0.8.2

Published by crookse over 5 years ago

Resource classes now have hook_beforeRequest() and hook_afterRequest().

Tutorials added:

drash - v0.8.1

Published by crookse over 5 years ago

Fixed issue with Drash.Http.Server.logger not being accessible from resource class. Drash.Http.Server.logger is now public.

See issue #57 for fix.

drash - v0.8.0

Published by crookse over 5 years ago

TLDR

Resource classes now have access to this.request.body_parsed (as well as other members that have access to the request object) for the request object's body variables.


  • Added Drash.Http.Request.parseBody(). This is called in Drash.Http.Server.handleHttpRequest().
  • If the request's Content-Type header is not set (when a request body is sent), then Drash.Http.Request.parseBody() will try to parse the body as application/json. If it can't parse the body as application/json, then it will try to parse the body as application/x-www-form-urlencoded. The supported Content-Types for Drash.Http.Request.parseBody() are:
    • application/json
    • application/x-www-form-urlencoded
  • Drash.Http.Request.parseBody() sets Drash.Http.Request.body_parsed to false if it can't parse the body.
  • See the method's details here: https://github.com/crookse/deno-drash/blob/master/src/http/request.ts#L138
drash - v0.7.9

Published by crookse over 5 years ago

Drash.Http.Response.send() now supports async overrides.

See #48 for more information. Thanks @liangchunn for finding this.

Package Rankings
Top 1.1% on Deno.land
Top 24.17% on Npmjs.org
Badges
Extracted from project README
Drash Land Discord