Skip to content

Commit

Permalink
Merge pull request #5 from Odrin/dev
Browse files Browse the repository at this point in the history
1.1.0
  • Loading branch information
Odrin committed Oct 24, 2016
2 parents 6a1cae9 + e3d26ce commit 3ccbc78
Show file tree
Hide file tree
Showing 17 changed files with 45 additions and 55 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ node_js:
- 6
install:
- npm install
- typings install
script:
- gulp
cache:
Expand Down
20 changes: 0 additions & 20 deletions .vscode/tasks.json

This file was deleted.

14 changes: 8 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<a name="1.0.0"></a>
# [1.1.0](https://github.com/Odrin/express-easy-rest/compare/1.0.0...1.1.0) (2016-10-24)

### Bug Fixes
* fixed type notation in cache.ts

### Code Refactoring
* typings replaced by @types npm package

# [1.0.0](https://github.com/Odrin/express-easy-rest/compare/1.0.0...0.3.1) (2016-10-19)

### Code Refactoring
Expand All @@ -13,13 +20,11 @@
* ControllerExceptionFilter and ActionExceptionFilter to handle exceptions
* added model validation functionality - see ModelValidator, @Required(), @StringLength(), @Range(), @RegularExpression()

<a name="0.3.2"></a>
# [0.3.2](https://github.com/Odrin/express-easy-rest/compare/0.3.1...0.3.2) (2016-08-31)

### Code Refactoring
* move express NPM dependencies to peerDependencies for better compatibility

<a name="0.3.1"></a>
# [0.3.1](https://github.com/Odrin/express-easy-rest/compare/0.3.0...0.3.1) (2016-08-30)

### Bug Fixes
Expand All @@ -29,7 +34,6 @@
### Code Refactoring
* simple session example added

<a name="0.3.0"></a>
# [0.3.0](https://github.com/Odrin/express-easy-rest/compare/0.2.2...0.3.0) (2016-08-26)

### Bug Fixes
Expand All @@ -47,14 +51,12 @@
* HttpContext and HttpActionContext added
* Caching class added

<a name="0.2.2"></a>
# [0.2.2](https://github.com/Odrin/express-easy-rest/compare/0.2.0...0.2.2) (2016-08-22)

### Code Refactoring
* fixed authorize decorator naming (authorize -> Authorize)
* some fixes and refactoring in examples

<a name="0.2.0"></a>
# [0.2.0](https://github.com/Odrin/express-easy-rest/compare/0.1.0...0.2.0) (2016-08-19)

### Bug Fixes
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,21 @@ express()
##Installation
```bash
npm install express-easy-rest
typings install node express express-serve-static-core serve-static mime
```

##Simple tsconfog.json
```JavaScript
{
"compilerOptions": {
"target": "ES6",
"module": "commonjs",
"moduleResolution": "node",
"outDir": "./lib",
"noImplicitAny": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
}
}
```

##Examples
Expand Down
1 change: 1 addition & 0 deletions lib/easy-rest/api/api-controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="express" />
import { IActionResult } from "./action-result/action-result";
import { IPrincipal } from "../security/principal/principal";
import { HttpActionContext } from "../http/http-action-context";
Expand Down
1 change: 1 addition & 0 deletions lib/easy-rest/api/controller-dispatcher.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="express" />
import * as express from "express";
import { IControllerConstructor } from "./api-controller";
import { ApplicationInstance } from "../core/application-instance";
Expand Down
1 change: 1 addition & 0 deletions lib/easy-rest/api/data-binder.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="express" />
import { Request } from "express";
import { IParameterBindingOptions } from "../decorators/binding/parameter-binding-options";
import { BindingType } from "../decorators/binding/binding-type";
Expand Down
1 change: 1 addition & 0 deletions lib/easy-rest/core/application-instance.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="express" />
import * as express from "express";
import { IAuthenticationProvider } from "../security/authentication/authentication-provider";
import { AuthorizationFilter } from "../security/authorization/authorization-filter";
Expand Down
1 change: 1 addition & 0 deletions lib/easy-rest/exceptions/application-error.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="node" />
export declare abstract class ApplicationError extends Error {
constructor(message?: string);
}
1 change: 1 addition & 0 deletions lib/easy-rest/http/http-context.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="express" />
import { Request, Response, NextFunction } from "express";
import { IPrincipal } from "../security/principal/principal";
import { Cache } from "../caching/cache";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="express" />
import { IPrincipal } from "../principal/principal";
import { Request } from "express";
import { Response } from "express";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="express" />
import { IPrincipal } from "../principal/principal";
import { Request } from "express";
import { Response } from "express";
Expand Down
1 change: 1 addition & 0 deletions lib/easy-rest/util/http-context-provider.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="express" />
import { Request } from "express";
import { HttpContext } from "../http/http-context";
export declare class HttpContextProvider {
Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express-easy-rest",
"version": "1.0.0",
"version": "1.1.0",
"description": "express-easy-rest",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -30,6 +30,15 @@
"body-parser": "1.x"
},
"dependencies": {
"@types/body-parser": "0.0.33",
"@types/express": "4.x.x",
"@types/express-serve-static-core": "4.x.x",
"@types/glob": "5.x.x",
"@types/jasmine": "2.x.x",
"@types/mime": "0.0.29",
"@types/node": "6.x.x",
"@types/reflect-metadata": "0.0.5",
"@types/serve-static": "1.x.x",
"glob": "7.x",
"reflect-metadata": "0.x"
},
Expand All @@ -47,8 +56,7 @@
"gulp-tslint": "3.x",
"jasmine": "2.x",
"tslint": "3.x",
"typescript": "2.x",
"typings": "1.x"
"typescript": "2.x"
},
"engines": {
"node": ">=6.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/easy-rest/caching/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class Cache {
* @return {T} A reference to the cache entry that is identified by key, if the entry exists; otherwise, null.
*/
get<T>(key: string): T | null {
let item: CacheItem<T> = this._map.get(key);
let item: CacheItem<T> | undefined = this._map.get(key);

if (typeof (item) === 'undefined') {
return null;
Expand Down
8 changes: 1 addition & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,5 @@
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"strictNullChecks": true
},
"exclude": [
"node_modules",
"lib",
"typings/globals",
"typings/modules"
]
}
}
16 changes: 0 additions & 16 deletions typings.json

This file was deleted.

0 comments on commit 3ccbc78

Please sign in to comment.