Skip to content

v0.41.1

Compare
Choose a tag to compare
@crookse crookse released this 20 Apr 01:51
  • BREAKING: remove address server config. HTTP servers now run with HTTPOptions as argument. for example:
const server = new Drash.Http.Server({
  response_output: "application/json"
});

server.run({
  hostname: "localhost",
  port: 1447
});
const server = new Drash.Http.Server({
  response_output: "application/json"
});

server.runTLS({
  hostname: "localhost",
  port: 1447,
  cert: "/path/to/cert_file.crt",
  key: "/path/to/key_file.key"
});
  • fix: make resources server config optional again
  • improvement: remove unncessary default keywords
  • improvement: remove unnecessary --allow-env requirement. users will NOT see the Deno server started at {address}:{port} message anymore. they will have to add console.log("Deno server started at {address}:{port}") themselves now.