Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardalan Amini committed Aug 20, 2018
1 parent 5c2b943 commit 278a789
Show file tree
Hide file tree
Showing 52 changed files with 9,760 additions and 4,389 deletions.
140 changes: 67 additions & 73 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,103 +1,97 @@
# Changelog

## [v0.8.0](https://github.com/foxifyjs/foxify/releases/tag/v0.8.0) - *2018-07-09*
## Emojis

**Implemented enhancements:**
- New Features -> :zap:
- Enhancements -> :star2:
- Breaking Changes -> :boom:
- Bugs -> :beetle:
- Pull Requests -> :book:
- Documents -> :mortar_board:
- Tests -> :eyeglasses:

- added `https` option
- added `https.key` setting
- added `https.cert` setting
- added `json schema` option to routing
- added `stop` ability
- added `reload` ability
- improved performance
---

## [v0.7.0](https://github.com/foxifyjs/foxify/releases/tag/v0.7.0) - *2018-05-19*
## [v0.9.0](https://github.com/foxifyjs/foxify/releases/tag/v0.9.0) - *(2018-08-21)*

**Implemented enhancements:**
- :zap: Added `subdomain.offset` setting
- :zap: Added `subdomains` getter to `http.IncomingMessage`
- :star2: Made `http` constants global by `HTTP` name
- :star2: Improved performance
- :boom: Removed `content-length` option (and content-length calculation)
- :beetle: Fixed route with prefix `use` not applying prefix bug
- :beetle: Fixed typescript usage

- added `content-length` option
- moved `Database` to a new repository named [Odin](https://github.com/foxifyjs/odin)
- improved performance
## [v0.8.0](https://github.com/foxifyjs/foxify/releases/tag/v0.8.0) - *(2018-07-09)*

## [v0.6.0](https://github.com/foxifyjs/foxify/releases/tag/v0.6.0) - *2018-03-26*
- :zap: Added `https` option
- :zap: Added `https.key` setting
- :zap: Added `https.cert` setting
- :zap: Added json schema validation option to routing
- :zap: Added `stop` ability to server
- :zap: Added `reload` ability to server
- :star2: Improved performance

**Implemented enhancements:**
## [v0.7.0](https://github.com/foxifyjs/foxify/releases/tag/v0.7.0) - *(2018-05-19)*

- added multiple `controller` support to `route` instance
- added static method `dotenv` to `Foxify` class to specify `.env` file path
- added method `of` to database type `Array`
- added `function` support to default values in database types
- added `graphql` support to database models
- improved performance
- improved `Typescript` usage
- :zap: Added `content-length` option
- :boom: Moved `Database` to a new repository named [Odin](https://github.com/foxifyjs/odin)
- :star2: Improved performance

## [v0.5.1](https://github.com/foxifyjs/foxify/releases/tag/v0.5.1) - *2018-03-10*
## [v0.6.0](https://github.com/foxifyjs/foxify/releases/tag/v0.6.0) - *(2018-03-26)*

**Implemented enhancements:**
- :zap: Added multiple `controller` support to `route` instance
- :zap: Added static method `dotenv` to `Foxify` class to specify `.env` file path
- :zap: Added method `of` to database type `Array`
- :zap: Added `function` support to default values in database types
- :zap: Added `graphql` support to database models
- :star2: Improved `Typescript` usage
- :star2: Improved performance

- renamed `clusters` setting into `workers`
## [v0.5.1](https://github.com/foxifyjs/foxify/releases/tag/v0.5.1) - *(2018-03-10)*

## [v0.5.0](https://github.com/foxifyjs/foxify/releases/tag/v0.5.0) - *2018-03-08*
- :boom: Renamed `clusters` setting into `workers`

**Implemented enhancements:**
## [v0.5.0](https://github.com/foxifyjs/foxify/releases/tag/v0.5.0) - *(2018-03-08)*

- added clustering
- added multiple model relations [`hasOne`, `hasMany`]
- added multiple options [`x-powered-by`, `routing.strict`, `routing.sensitive`, `json.escape`]
- added multiple settings [`env`, `url`, `port`, `clusters`, `json.replacer`, `json.spaces`, `query.parser`]
- improved usage
- :zap: Added clustering
- :zap: Added multiple model relations [`hasOne`, `hasMany`]
- :zap: Added multiple options [`x-powered-by`, `routing.strict`, `routing.sensitive`, `json.escape`]
- :zap: Added multiple settings [`env`, `url`, `port`, `clusters`, `json.replacer`, `json.spaces`, `query.parser`]
- :star2: Improved usage

## [v0.4.0](https://github.com/foxifyjs/foxify/releases/tag/v0.4.0) - *2018-02-22*
## [v0.4.0](https://github.com/foxifyjs/foxify/releases/tag/v0.4.0) - *(2018-02-22)*

**Implemented enhancements:**
- :zap: Logging errors when `NODE_ENV` is set to `debug`
- :star2: Improved performance
- :star2: Improved error responses
- :star2: Improved database schema validation
- :beetle: Wrong database name according to model name

- improved performance
- improved error responses
- improved database schema validation
- logging errors when `NODE_ENV` is set to `debug`
## [v0.3.2](https://github.com/foxifyjs/foxify/releases/tag/v0.3.2) - *(2018-02-20)*

**Fixed bugs:**
- :star2: Improved database model schema validation
- :beetle: Database model schema validation instance
- :beetle: Default database connection when there is no `.env` file

- wrong database name according to model name
## [v0.3.0](https://github.com/foxifyjs/foxify/releases/tag/v0.3.0) - *(2018-02-18)*

## [v0.3.2](https://github.com/foxifyjs/foxify/releases/tag/v0.3.2) - *2018-02-20*
- :zap: Added simple database model schema validation
- :star2: Default database connection will be set according to `.env` file

**Implemented enhancements:**
## [v0.2.1](https://github.com/foxifyjs/foxify/releases/tag/v0.2.1) - *(2018-02-14)*

- improved database model schema validation
- :beetle: Encapsulation

**Fixed bugs:**
## [v0.2.0](https://github.com/foxifyjs/foxify/releases/tag/v0.2.0) - *(2018-02-10)*

- database model schema validation instance
- default database connection when there is no `.env` file
- :star2: Routing speed got doubled
- :star2: Http routing methods are accessible from app too

## [v0.3.0](https://github.com/foxifyjs/foxify/releases/tag/v0.3.0) - *2018-02-18*
## [v0.1.1](https://github.com/foxifyjs/foxify/releases/tag/v0.1.1) - *(2018-02-10)*

**Implemented enhancements:**
- :beetle: Fixed #1

- added simple database model schema validation
- Default database connection will be set according to `.env` file
## [v0.1.0](https://github.com/foxifyjs/foxify/releases/tag/v0.1.0) - *(2018-02-09)*

## [v0.2.1](https://github.com/foxifyjs/foxify/releases/tag/v0.2.1) - *2018-02-14*

**Fixed bugs:**

- Encapsulation

## [v0.2.0](https://github.com/foxifyjs/foxify/releases/tag/v0.2.0) - *2018-02-10*

**Implemented enhancements:**

- routing speed got doubled
- http routing methods are accessible from app too

## [v0.1.1](https://github.com/foxifyjs/foxify/releases/tag/v0.1.1) - *2018-02-10*

**Closed issues:**

- Fixed #1

## [v0.1.0](https://github.com/foxifyjs/foxify/releases/tag/v0.1.0) - *2018-02-09*

First Release
- :tada: First Release
2 changes: 0 additions & 2 deletions demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ Foxify.dotenv(path.join(__dirname, ".env"));

const app = new Foxify();

app.disable("content-length");

// template engine support
app.engine("ejs", path.join(__dirname, "views"), require("ejs").__express)

Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/search.js

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions docs/classes/encapsulation.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/foxifyjs/foxify/blob/08168d5/src/exceptions/Encapsulation.ts#L8">exceptions/Encapsulation.ts:8</a></li>
<li>Defined in <a href="https://github.com/foxifyjs/foxify/blob/5c2b943/src/exceptions/Encapsulation.ts#L9">exceptions/Encapsulation.ts:9</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -121,17 +121,17 @@ <h5>fn: <span class="tsd-signature-type">function</span></h5>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>req<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IncomingMessage</span>, res<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ServerResponse</span>, <span class="tsd-signature-symbol">...</span>rest<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>req<span class="tsd-signature-symbol">: </span><a href="request.html" class="tsd-signature-type">Request</a>, res<span class="tsd-signature-symbol">: </span><a href="response.html" class="tsd-signature-type">Response</a>, <span class="tsd-signature-symbol">...</span>rest<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>req: <span class="tsd-signature-type">IncomingMessage</span></h5>
<h5>req: <a href="request.html" class="tsd-signature-type">Request</a></h5>
</li>
<li>
<h5>res: <span class="tsd-signature-type">ServerResponse</span></h5>
<h5>res: <a href="response.html" class="tsd-signature-type">Response</a></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>rest: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h5>
Expand All @@ -157,25 +157,25 @@ <h3><span class="tsd-flag ts-flagProtected">Protected</span> _fn</h3>
<div class="tsd-signature tsd-kind-icon">_fn<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/foxifyjs/foxify/blob/08168d5/src/exceptions/Encapsulation.ts#L8">exceptions/Encapsulation.ts:8</a></li>
<li>Defined in <a href="https://github.com/foxifyjs/foxify/blob/5c2b943/src/exceptions/Encapsulation.ts#L9">exceptions/Encapsulation.ts:9</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
<h4>Type declaration</h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-property">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>req<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IncomingMessage</span>, res<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ServerResponse</span>, <span class="tsd-signature-symbol">...</span>rest<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>req<span class="tsd-signature-symbol">: </span><a href="request.html" class="tsd-signature-type">Request</a>, res<span class="tsd-signature-symbol">: </span><a href="response.html" class="tsd-signature-type">Response</a>, <span class="tsd-signature-symbol">...</span>rest<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>req: <span class="tsd-signature-type">IncomingMessage</span></h5>
<h5>req: <a href="request.html" class="tsd-signature-type">Request</a></h5>
</li>
<li>
<h5>res: <span class="tsd-signature-type">ServerResponse</span></h5>
<h5>res: <a href="response.html" class="tsd-signature-type">Response</a></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>rest: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h5>
Expand All @@ -195,22 +195,22 @@ <h2>Methods</h2>
<a name="run" class="tsd-anchor"></a>
<h3>run</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">run<span class="tsd-signature-symbol">(</span>req<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IncomingMessage</span>, res<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ServerResponse</span>, <span class="tsd-signature-symbol">...</span>rest<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-signature tsd-kind-icon">run<span class="tsd-signature-symbol">(</span>req<span class="tsd-signature-symbol">: </span><a href="request.html" class="tsd-signature-type">Request</a>, res<span class="tsd-signature-symbol">: </span><a href="response.html" class="tsd-signature-type">Response</a>, <span class="tsd-signature-symbol">...</span>rest<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/foxifyjs/foxify/blob/08168d5/src/exceptions/Encapsulation.ts#L14">exceptions/Encapsulation.ts:14</a></li>
<li>Defined in <a href="https://github.com/foxifyjs/foxify/blob/5c2b943/src/exceptions/Encapsulation.ts#L15">exceptions/Encapsulation.ts:15</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>req: <span class="tsd-signature-type">IncomingMessage</span></h5>
<h5>req: <a href="request.html" class="tsd-signature-type">Request</a></h5>
</li>
<li>
<h5>res: <span class="tsd-signature-type">ServerResponse</span></h5>
<h5>res: <a href="response.html" class="tsd-signature-type">Response</a></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>rest: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h5>
Expand Down Expand Up @@ -259,6 +259,12 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</spa
<li class=" tsd-kind-class">
<a href="httpexception.html" class="tsd-kind-icon">Http<wbr>Exception</a>
</li>
<li class=" tsd-kind-class">
<a href="request.html" class="tsd-kind-icon">Request</a>
</li>
<li class=" tsd-kind-class">
<a href="response.html" class="tsd-kind-icon">Response</a>
</li>
<li class=" tsd-kind-class">
<a href="route.html" class="tsd-kind-icon">Route</a>
</li>
Expand Down Expand Up @@ -298,12 +304,6 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</spa
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#normalizetypes" class="tsd-kind-icon">normalize<wbr>Types</a>
</li>
<li class=" tsd-kind-function">
<a href="../globals.html#patch" class="tsd-kind-icon">patch</a>
</li>
<li class=" tsd-kind-function">
<a href="../globals.html#query" class="tsd-kind-icon">query</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#sendfile" class="tsd-kind-icon">sendfile</a>
</li>
Expand Down
Loading

0 comments on commit 278a789

Please sign in to comment.