Bump version

This commit is contained in:
Joe Nelson
2017-01-20 00:21:08 -08:00
committed by GitHub
parent c15f693dbb
commit 9b407034a8
5 changed files with 23 additions and 25 deletions
+6
View File
@@ -5,6 +5,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## Unreleased
### Added
### Fixed
## [0.4.0.0] - 2017-01-19
### Added
- Allow test database to be on another host - @dsimunic
- `Prefer: params=single-object` to treat payload as single json argument in RPC - @dsimunic
+14 -22
View File
@@ -20,7 +20,7 @@ You can use it as inspiration for test-driven server migrations in
your own projects.
Also try other tools in the PostgREST
[ecosystem](http://postgrest.com/install/ecosystem).
[ecosystem](http://postgrest.com/en/v0.4/intro.html#ecosystem).
### Usage
@@ -35,12 +35,9 @@ Also try other tools in the PostgREST
### Performance
TLDR; subsecond response times for up to 2000 requests/sec on Heroku
free tier. ([see the load
test](http://postgrest.com/admin/performance/#benchmarks))
If you're used to servers written in interpreted languages (or named
after precious gems), prepare to be pleasantly surprised by PostgREST
performance.
free tier. If you're used to servers written in interpreted languages
(or named after precious gems), prepare to be pleasantly surprised by
PostgREST performance.
Three factors contribute to the speed. First the server is written
in [Haskell](https://www.haskell.org/) using the
@@ -63,25 +60,20 @@ by
* Using the PostgreSQL binary protocol
* Being stateless to allow horizontal scaling
Ultimately the server (when load balanced) is constrained by database
performance. This may make it inappropriate for very large traffic
load. To learn more about scaling with Heroku and Amazon RDS see
the [performance guide](http://postgrest.com/admin/performance/).
Other optimizations are possible, and some are outlined in the
[Future Features](#future-features).
### Security
PostgREST handles authentication (via [JSON Web
Tokens](http://postgrest.com/admin/security/#json-web-tokens))
and delegates authorization to the role information defined in the
database. This ensures there is a single declarative source of truth
for security. When dealing with the database the server assumes
the identity of the currently authenticated user, and for the
duration of the connection cannot do anything the user themselves
couldn't. Other forms of authentication can be built on top
of the JWT primitive. See the docs for more information.
PostgREST [handles
authentication](http://postgrest.com/en/v0.4/auth.html) (via JSON Web
Tokens) and delegates authorization to the role information defined in
the database. This ensures there is a single declarative source of truth
for security. When dealing with the database the server assumes the
identity of the currently authenticated user, and for the duration of
the connection cannot do anything the user themselves couldn't. Other
forms of authentication can be built on top of the JWT primitive. See
the docs for more information.
PostgreSQL 9.5 supports true [row-level
security](http://www.postgresql.org/docs/9.5/static/ddl-rowsecurity.html).
@@ -124,7 +116,7 @@ surprises, such as enforcing idempotent PUT requests, and
See examples of [PostgreSQL
constraints](http://www.tutorialspoint.com/postgresql/postgresql_constraints.htm)
and the [guide to routing](http://postgrest.com/api/reading/).
and the [API guide](http://postgrest.com/en/v0.4/api.html).
### Thanks
+1 -1
View File
@@ -10,7 +10,7 @@
},
"POSTGREST_VER": {
"description": "Version of PostgREST to deploy",
"value": "0.3.2.0"
"value": "0.4.0.0"
},
"DB_NAME": {
"description": "Database name",
+1 -1
View File
@@ -2,7 +2,7 @@ name: postgrest
description: Reads the schema of a PostgreSQL database and creates RESTful routes
for the tables and views, supporting all HTTP verbs that security
permits.
version: 0.3.2.0
version: 0.4.0.0
synopsis: REST API for any Postgres database
license: MIT
license-file: LICENSE
+1 -1
View File
@@ -4,6 +4,6 @@ extra-deps:
- hasql-pool-0.4.1
- hasql-transaction-0.5
ghc-options:
postgrest: -O2 -Werror -Wall -fwarn-identities
postgrest: -O2 -Werror -Wall -fwarn-identities -fno-warn-redundant-constraints
nix:
packages: [postgresql, zlib]