Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonwocky committed Feb 16, 2022
1 parent b9ce213 commit dfe0d52
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 56 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## v0.2.0 (wip)
## v0.2.0 (2022-02-16)

### Added

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# 🐍 nadder

**nadder** is an opinionated HTTP/WebSocket server framework for Deno.
**nadder** is an opinionated web server framework for Deno.

It includes **[URL Pattern](https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API)**
It includes [URL Pattern](https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API)
routing, post-route middleware, helpers for creating/reading/manipulating cookies and responses,
upgrading HTTP connections to WebSocket connections (inc. sorting into channels),
**PostgreSQL** (or in-memory) session storage (inc. garbage collection and expiry), a React-free
**JSX transformer** and atomic CSS with [**Uno**](https://github.com/unocss/unocss).
PostgreSQL (or in-memory) session storage (inc. garbage collection and expiry), a React-free
JSX transformer and atomic CSS with [Uno](https://github.com/unocss/unocss).

## Quick start

Expand Down Expand Up @@ -51,12 +51,12 @@ nadder.handleRoute('GET', '/{index.html}?', async (ctx) => {
nadder.listenAndServe();
```

All other features are also made available as exports of the `mod.ts` file.
All features are made available as exports of the `mod.ts` file
and documented in the `types.ts` file.

For convenience, the following dependencies are re-exported:

- `setCookie`, `deleteCookie`, `Cookie`, `HTTPStatus` and `HTTPStatusText` from [`std/http`](https://deno.land/std/http).
- `contentType` from [`https://deno.land/x/media_types`](https://deno.land/x/media_types)

---

Expand Down
1 change: 0 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

export * as default from "./server.ts";

export { contentType } from "./deps.ts";
export { HTTPStatus, HTTPStatusText } from "./deps.ts";
export { deleteCookie, setCookie } from "./deps.ts";

Expand Down
6 changes: 3 additions & 3 deletions storage/drivers/postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
import { postgres } from "../../deps.ts";

const postgresConnection = ({
user = "postgres",
user = Deno.env.get("POSTGRES_USER") ?? "postgres",
password = Deno.env.get("POSTGRES_PWD"),
hostname = Deno.env.get("POSTGRES_HOST"),
port = "6543",
database = "postgres",
port = Deno.env.get("POSTGRES_PORT") ?? "6543",
database = Deno.env.get("POSTGRES_DB") ?? "postgres",
} = {}) => {
// creates lazy/on-demand connections
// for concurrent query execution handling
Expand Down
45 changes: 0 additions & 45 deletions test.tsx

This file was deleted.

0 comments on commit dfe0d52

Please sign in to comment.