diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bb3e1142..dc9ee4857 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 5b6a26fad..dcac6062d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/app.json b/app.json index 66f390416..e5665ade0 100644 --- a/app.json +++ b/app.json @@ -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", diff --git a/postgrest.cabal b/postgrest.cabal index ac22cb0dc..83c86742b 100644 --- a/postgrest.cabal +++ b/postgrest.cabal @@ -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 diff --git a/stack.yaml b/stack.yaml index 6424103c5..2f2b5528e 100644 --- a/stack.yaml +++ b/stack.yaml @@ -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]