Skip to content

Commit

Permalink
chore(release): latest
Browse files Browse the repository at this point in the history
 - @reflet/express@2.0.0
 - @reflet/express-middlewares@2.0.0
 - @reflet/http@1.0.0
 - @reflet/mongoose@2.0.0
  • Loading branch information
jeremyben committed Jul 30, 2023
1 parent 0a000ea commit d05ed69
Show file tree
Hide file tree
Showing 12 changed files with 704 additions and 247 deletions.
27 changes: 27 additions & 0 deletions express-middlewares/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,33 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.0.0](https://github.com/jeremyben/reflet/compare/@reflet/express-middlewares@1.1.10...@reflet/express-middlewares@2.0.0) (2023-07-30)


### Bug Fixes

* **express-middlewares:** add common extensions as shorthands for UseType decorator ([84b16cc](https://github.com/jeremyben/reflet/commit/84b16ccd56bb4cdc894102a40e9a0635b529cb04))
* **express-middlewares:** remove aliases ([429b0fd](https://github.com/jeremyben/reflet/commit/429b0fd07e39d2b06c5ecba8744af7db15f4d27a))
* **express-middlewares:** response readonly interface ([55c0cd5](https://github.com/jeremyben/reflet/commit/55c0cd54df4fbb27cfd4ecb02d56040bb2b12f54))
* **express-middlewares:** use response property writableEnded instead of deprecated finished ([92a9b38](https://github.com/jeremyben/reflet/commit/92a9b386f4c8d8f0fdf29cde7d519a498c85caed))
* **express:** remove need for reflect-metadata ([a0eea93](https://github.com/jeremyben/reflet/commit/a0eea9386011c14787d5722b775ff0c60e70cbdc))
* use reflet/http for header and status types ([3a1c362](https://github.com/jeremyben/reflet/commit/3a1c36206c0a9afd1e8315d2f15d7db8529c9f96))


### Features

* **express-middlewares:** add UseHeader.Append decorator ([dd208d7](https://github.com/jeremyben/reflet/commit/dd208d758c4583c5446471448785e56abb5e6096))


### BREAKING CHANGES

* reflet/http is now a required peer dependency
* **express-middlewares:** UseSet and UseContentType have been removed





## [1.1.10](https://github.com/jeremyben/reflet/tree/master/express-middlewares/compare/@reflet/express-middlewares@1.1.9...@reflet/express-middlewares@1.1.10) (2021-08-05)

**Note:** Version bump only for package @reflet/express-middlewares
Expand Down
86 changes: 46 additions & 40 deletions express-middlewares/coverage-summary.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,42 @@
{
"total": {
"lines": {
"total": 154,
"covered": 151,
"total": 162,
"covered": 154,
"skipped": 0,
"pct": 98.05
"pct": 95.06
},
"statements": {
"total": 175,
"covered": 172,
"total": 179,
"covered": 171,
"skipped": 0,
"pct": 98.29
"pct": 95.53
},
"functions": {
"total": 39,
"covered": 37,
"total": 40,
"covered": 38,
"skipped": 0,
"pct": 94.87
"pct": 95
},
"branches": {
"total": 57,
"covered": 52,
"total": 48,
"covered": 44,
"skipped": 0,
"pct": 91.66
},
"branchesTrue": {
"total": 0,
"covered": 0,
"skipped": 0,
"pct": 91.23
"pct": "Unknown"
}
},
"src/guards-decorator.ts": {
"lines": {
"total": 19,
"covered": 19,
"total": 23,
"covered": 21,
"skipped": 0,
"pct": 100
"pct": 91.3
},
"functions": {
"total": 5,
Expand All @@ -39,10 +45,10 @@
"pct": 100
},
"statements": {
"total": 21,
"covered": 21,
"total": 24,
"covered": 22,
"skipped": 0,
"pct": 100
"pct": 91.66
},
"branches": {
"total": 6,
Expand Down Expand Up @@ -85,14 +91,14 @@
"pct": 100
},
"functions": {
"total": 9,
"total": 7,
"covered": 7,
"skipped": 0,
"pct": 77.78
"pct": 100
},
"statements": {
"total": 15,
"covered": 15,
"total": 13,
"covered": 13,
"skipped": 0,
"pct": 100
},
Expand All @@ -105,8 +111,8 @@
},
"src/interceptor-decorator.ts": {
"lines": {
"total": 35,
"covered": 35,
"total": 36,
"covered": 36,
"skipped": 0,
"pct": 100
},
Expand All @@ -123,8 +129,8 @@
"pct": 100
},
"branches": {
"total": 17,
"covered": 17,
"total": 13,
"covered": 13,
"skipped": 0,
"pct": 100
}
Expand All @@ -134,7 +140,7 @@
"total": 68,
"covered": 65,
"skipped": 0,
"pct": 95.59
"pct": 95.58
},
"functions": {
"total": 9,
Expand All @@ -149,36 +155,36 @@
"pct": 95.83
},
"branches": {
"total": 28,
"covered": 23,
"total": 21,
"covered": 18,
"skipped": 0,
"pct": 82.14
"pct": 85.71
}
},
"src/response-headers-decorators.ts": {
"lines": {
"total": 12,
"total": 15,
"covered": 12,
"skipped": 0,
"pct": 100
"pct": 80
},
"functions": {
"total": 4,
"covered": 4,
"total": 7,
"covered": 5,
"skipped": 0,
"pct": 100
"pct": 71.42
},
"statements": {
"total": 12,
"total": 15,
"covered": 12,
"skipped": 0,
"pct": 100
"pct": 80
},
"branches": {
"total": 2,
"covered": 2,
"total": 4,
"covered": 3,
"skipped": 0,
"pct": 100
"pct": 75
}
},
"src/status-decorator.ts": {
Expand Down
6 changes: 3 additions & 3 deletions express-middlewares/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reflet/express-middlewares",
"version": "2.0.0-next.4",
"version": "2.0.0",
"author": "Jeremy Bensimon",
"license": "MIT",
"repository": "https://github.com/jeremyben/reflet/tree/master/express-middlewares",
Expand Down Expand Up @@ -33,8 +33,8 @@
"express": "^4.17.1"
},
"devDependencies": {
"@reflet/express": "^2.0.0-next.3",
"@reflet/http": "^1.0.0-next.2"
"@reflet/express": "^2.0.0",
"@reflet/http": "^1.0.0"
},
"scripts": {
"build": "ts-node -T ../build.ts",
Expand Down
61 changes: 61 additions & 0 deletions express/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,67 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.0.0](https://github.com/jeremyben/reflet/compare/@reflet/express@1.6.1...@reflet/express@2.0.0) (2023-07-30)


### Bug Fixes

* **express:** aconvenient types with each param decorator ([e3a86bf](https://github.com/jeremyben/reflet/commit/e3a86bf8a503e2fefe50f277517f20917758146b))
* **express:** allow Send.Dont to be applied without invokation ([c701586](https://github.com/jeremyben/reflet/commit/c701586e5d845a3b3d8bd5f73a61e055c0e8c7dc))
* **express:** bug with mutated middewares reference in Use decorator ([0622483](https://github.com/jeremyben/reflet/commit/0622483195510287a284dcd37edbe1cdb40ac39e))
* **express:** change final-handler signature for booleans ([e796dc1](https://github.com/jeremyben/reflet/commit/e796dc16de0cd9b6355bf494eb6c7e3bb890d144))
* **express:** change path constraint object to a tuple and unwrap RegistrationArray to Registration ([58cc9a2](https://github.com/jeremyben/reflet/commit/58cc9a2031af52ddccc8a4892b0a7f80a909c6ea))
* **express:** dedicated reflet express error ([ddf9c90](https://github.com/jeremyben/reflet/commit/ddf9c9053b40ce25abde535f1370cd0808f67e1a))
* **express:** easier and more flexible finalHandler ([32fb80f](https://github.com/jeremyben/reflet/commit/32fb80faa7803723055fb9bcb342e3c12df830da))
* **express:** improve internal errors ([8a90790](https://github.com/jeremyben/reflet/commit/8a907905eb0b5b4477f62fba263670840050e181))
* **express:** improve signature for param middleware deduplication ([3206e26](https://github.com/jeremyben/reflet/commit/3206e262f9ee53d8bf7bf71a617cfe613e04f9e8))
* **express:** make Router decorator mandatory ([1da8201](https://github.com/jeremyben/reflet/commit/1da82012fcb0807d6eb203456d9512d595b5f00f))
* **express:** more control for middleware deduplication in createParamDecorator ([18e6d41](https://github.com/jeremyben/reflet/commit/18e6d41bef340dc59cef6bafde7a64b951e8f4bd))
* **express:** more options to reveal error name and message ([1c0824c](https://github.com/jeremyben/reflet/commit/1c0824c7805d26a1a5c39c4201b7a44ea3f9949b))
* **express:** proper reflet error for sending response object ([16a7e50](https://github.com/jeremyben/reflet/commit/16a7e50fcd7bbef81ce2513f5d0eccab4ab1fdf4))
* **express:** remove deprecated APIs ([9097d60](https://github.com/jeremyben/reflet/commit/9097d601db62c0a7d014c2b48fadbb104cb07690))
* **express:** remove every "controller" word occurence ([c68bca8](https://github.com/jeremyben/reflet/commit/c68bca8b3b0b13b52c62f5b87118de03215d6071))
* **express:** remove generic from ClassOrMethodDecorator interface ([b450227](https://github.com/jeremyben/reflet/commit/b4502278fd8cb493e784090279e580dd3f9bb4e7))
* **express:** remove global error handler to avoid magic ([fd5a286](https://github.com/jeremyben/reflet/commit/fd5a2865d379d3069cef0be595d429ea4cebd3c9))
* **express:** remove need for reflect-metadata ([a0eea93](https://github.com/jeremyben/reflet/commit/a0eea9386011c14787d5722b775ff0c60e70cbdc))
* **express:** Remove way of registering childrens router in parent constructor ([002f551](https://github.com/jeremyben/reflet/commit/002f5510eed0b5e933142f8f914b1211ff044684))
* **express:** rename Method decorator to Route ([9425ee4](https://github.com/jeremyben/reflet/commit/9425ee4550b7892f75610e91dd579e157c7eebb3))
* **express:** rename reveal to expose in final handler options ([a3da648](https://github.com/jeremyben/reflet/commit/a3da648d8cc42b9467c471762c8452071400c401))
* **express:** ScopedMiddlewares out of Router namespace ([7987be4](https://github.com/jeremyben/reflet/commit/7987be44c25b84fa0b460eaee60a4d7139f4d8c9))
* **express:** send not detected on decorated application ([f8656d6](https://github.com/jeremyben/reflet/commit/f8656d6565187779dd629f3c4fd02482213830d7))
* **express:** simplify regex for json detection in final handler ([9ce7f5a](https://github.com/jeremyben/reflet/commit/9ce7f5a02594ce5b6424884dabcaa01deea8289c))
* **express:** throw an error if Router.Children are defined without Router ([da7a357](https://github.com/jeremyben/reflet/commit/da7a35792cf7e9d8bcc8631d4f04ea35b59efbc5))
* **express:** throw error on multiple param decorators overriding each other ([93081e5](https://github.com/jeremyben/reflet/commit/93081e5e7d2bc9eb1e78e32d12612b0cf2b98467))
* use reflet/http for header and status types ([3a1c362](https://github.com/jeremyben/reflet/commit/3a1c36206c0a9afd1e8315d2f15d7db8529c9f96))


### Features

* **express:** allow uppercase http method in Route decorator ([c890fc5](https://github.com/jeremyben/reflet/commit/c890fc51cf3e61873c91e130264cbe1b1a5e9713))
* **express:** custom handler for Send decorator ([36c5103](https://github.com/jeremyben/reflet/commit/36c5103b45cad3754a282edf9e4716e15d91bee3))
* **express:** custom status code for notFoundHandler ([2fd6d99](https://github.com/jeremyben/reflet/commit/2fd6d99eef47d0b48f330785aab600d3956e636e))
* **express:** decorator Router.ScopedMiddlewares ([6b46032](https://github.com/jeremyben/reflet/commit/6b46032d155b1a7f3da07a84bc4bdf4d6c2e1bbb))
* **express:** final handler ([4f08c3e](https://github.com/jeremyben/reflet/commit/4f08c3eb89bb17cd6ef60cf77cc28ab1309a650d))
* **express:** simpler and more flexible option to whitelist error properties in finalHandler ([800698d](https://github.com/jeremyben/reflet/commit/800698dc4883a1c283b62a4d5550d5b956b8f1ae))


### BREAKING CHANGES

* **express:** Send decorator no longer has status, nullStatus and undefinedStatus options.
* reflet/http is now a required peer dependency
* **express:** Path constraint in registration is no longer an object
* **express:** signature has changed from a single boolean to a full object for each middleware.
* **express:** Router decorator must be applied on routing classes
* **express:** overload of register method for chidren routers has been removed
* **express:** rename Controllers to RegistrationArray
* **express:** DontSend decorator and Router.register method are removed
* **express:** global error handler has been removed (no more automatic json detection in global errors)
* **express:** Method replaced by Route





## [1.6.1](https://github.com/jeremyben/reflet/tree/master/express/compare/@reflet/express@1.6.0...@reflet/express@1.6.1) (2022-04-11)


Expand Down
Loading

0 comments on commit d05ed69

Please sign in to comment.