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.37.0

Published by crookse over 4 years ago

drash - v0.35.2

Published by crookse over 4 years ago

Requires Deno v0.35.0 https://github.com/denoland/deno/releases/tag/v0.35.0

drash - v0.35.1

Published by player-4 over 4 years ago

Requires Deno v0.35.0 https://github.com/denoland/deno/releases/tag/v0.35.0

  • feat: make the following members reassignable:
    • Drash.Exceptions.HttpException
    • Drash.Exceptions.HttpMiddlewareException
    • Drash.Exceptions.HttpResponseException
    • Drash.Exceptions.NameCollisionException
    • Drash.Http.Resource
    • Drash.Http.Server
drash - v0.35.0

Published by player-4 over 4 years ago

drash - v0.34.0

Published by crookse over 4 years ago

Requires Deno v0.34.0 https://github.com/denoland/deno/releases/tag/v0.34.0

Be careful when updating to this version. Deno has become strict, so your code should be type-safe.

drash - v0.33.1

Published by crookse over 4 years ago

Requires Deno v0.33.0 https://github.com/denoland/deno/releases/tag/v0.33.0

  • improvement: #115 (PR #139) by @ebebbington
drash - v0.33.0

Published by crookse over 4 years ago

Requires Deno v0.33.0 https://github.com/denoland/deno/releases/tag/v0.33.0

  • BREAKING CHANGE: namespace Drash.Loggers changed to Drash.CoreLoggers
  • feat: Drash.addLogger() which adds loggers to the Drash.Loggers namespace for global access
    // file_1.ts
    import Drash from "https://deno.land/x/[email protected]/mod.ts"
    const configs = { ... };
    const logger = new Drash.CoreLoggers.FileLogger(configs);
    Drash.addLogger("MyCoolLogger", logger); // add your logger to the Drash.Loggers namespace
    
    // file_2.ts
    import Drash from "https://deno.land/x/[email protected]/mod.ts"
    Drash.Loggers.MyCoolLogger.info("hello");
    
drash - v0.32.0

Published by crookse over 4 years ago

drash - v0.31.3

Published by crookse over 4 years ago

Requires Deno v0.31.0 https://github.com/denoland/deno/releases/tag/v0.31.0

  • fix: run server-level middleware on error responses
drash - v0.31.2

Published by crookse over 4 years ago

Requires Deno v0.31.0 https://github.com/denoland/deno/releases/tag/v0.31.0

drash - v0.31.1

Published by crookse over 4 years ago

drash - v0.31.0

Published by crookse over 4 years ago

drash - v0.30.1

Published by crookse over 4 years ago

Requires Deno v0.30.0 (https://github.com/denoland/deno/commit/b2f01dcb50c68da2cab28b6bd64f4033e4ccf10e)
https://github.com/denoland/deno/releases/tag/v0.30.0

  • feat: add Drash.Http.Server.close() which is just a wrapper around Drash.Http.Server.deno_server.close()
drash - v0.28.3

Published by crookse almost 5 years ago

Requires Deno v0.28.1

  • fix: #122 fix parsing of request body (pull request: #123)
drash - v0.28.2

Published by crookse almost 5 years ago

Requires Deno v0.28.1

  • feat: make Drash.Http.Server.deno_server public for testing. Example test below:

    import MyResource from "./my_resource.ts";
    
    let server = new Drash.Http.Server({
      address: "localhost:1447",
      response_output: "application/json",
      resources: [MyResource],
    });
    
    server.run();
    
    test( async () => {
      const res = await fetch("http://localhost:1447/users/1");
      assertEquals(await res.text(), "{\"id\":1,\"alias\":\"Captain America\",\"name\":\"Steve Rogers\",\"api_key\":\"**********\",\"api_secret\":\"**********\"}");
      server.deno_server.close();
    });
    
    
drash - v0.28.0

Published by crookse almost 5 years ago

Requires Deno v0.28.0

drash - v0.28.1

Published by crookse almost 5 years ago

Requires Deno v0.28.1

drash - v0.27.6

Published by crookse almost 5 years ago

Requires Deno v0.27.0

  • fix: parse request body on every request
Package Rankings
Top 1.1% on Deno.land
Top 24.17% on Npmjs.org
Badges
Extracted from project README
Drash Land Discord