Skip to content

Commit

Permalink
Update verson
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalanamini committed Jan 7, 2019
1 parent 7e8ee6a commit 8b1de46
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

---

## [v1.8.0](https://github.com/foxifyjs/foxify-restify-odin/releases/tag/v1.8.0) - *(2019-01-07)*

- :star2: Added ability to modify `qs.parse` options

## [v1.7.0](https://github.com/foxifyjs/foxify-restify-odin/releases/tag/v1.7.0) - *(2019-01-02)*

- :star2: Added ability to add `pre` handler to all routes
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ interface FilterObject {
interface Filter {
and?: Array<FilterObject | Filter>;
or?: Array<FilterObject | Filter>;
has?: string;
has?: string | { relation: string, filter: Filter | FilterObject };
}

interface Query {
Expand Down Expand Up @@ -112,8 +112,9 @@ interface RoutesOptions {
interface Options {
name: string;
prefix: string;
qs: QSParseOptions;
defaults: Query;
pre?: Foxify.Handler | Foxify.Handler[];
pre: Foxify.Handler | Foxify.Handler[];
routes: Partial<RoutesOptions>;
}

Expand Down Expand Up @@ -162,7 +163,7 @@ qs.stringify({
},
{
field: "email",
operator: "ex",
operator: "exists",
value: true,
},
],
Expand All @@ -176,7 +177,7 @@ filter can be a single filter object or `and`/`or` of Array\<filter object\>

possible operators:

`lt` | `lte` | `eq` | `ne` | `gte` | `gt` | `ex` | `in` | `nin` | `bet` | `nbe` | `lk` | `nlk`
`lt` | `lte` | `eq` | `ne` | `gte` | `gt` | `exists` | `in` | `nin` | `bet` | `nbe` | `like` | `nlike`

### include

Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "foxify-restify-odin",
"version": "1.7.0",
"version": "1.8.0",
"description": "Easily restify odin databases",
"author": "Ardalan Amini <[email protected]> [https://github.com/ardalanamini]",
"license": "MIT",
Expand Down Expand Up @@ -45,7 +45,7 @@
"@foxify/odin": "^0.8.0",
"@foxify/schema": "^1.0.1",
"@types/body-parser": "^1.17.0",
"@types/jest": "^23.3.11",
"@types/jest": "^23.3.12",
"@types/qs": "^6.5.1",
"body-parser": "^1.18.3",
"codecov": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as DB from "@foxify/odin/dist/DB";
import * as Foxify from "foxify";
import { Router } from "foxify/framework/routing";
import * as pluralize from "prototyped.js/es6/string/pluralize/method";
import { IParseOptions,parse } from "qs";
import { IParseOptions, parse } from "qs";
import {
count, delete as deleteController, index, responder, show, store, update,
} from "./controllers";
Expand Down

0 comments on commit 8b1de46

Please sign in to comment.