1 | # Changelog
|
2 | All notable changes to this project will be documented in this file.
|
3 |
|
4 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6 |
|
7 | ## [Unreleased]
|
8 |
|
9 | ## [2.3.3] - 2021-10-08
|
10 | ### Fixed
|
11 | - Proxy did send GET request with a wrong Content-Length header. Fixed.
|
12 |
|
13 | ## [2.3.2] - 2021-09-08
|
14 | ### Fixed
|
15 | - The curly braces parameters are really replaced inside static json now.
|
16 |
|
17 | ### Changed
|
18 | - Reworked the proxy workflow to modularize response hooks + used http-proxy-middleware built-in response handler.
|
19 |
|
20 | ### Added
|
21 | - Added a proxy response hook to transform hateoas links and remove their baseUrl (useful to avoid CORS issue when calling an hateoas API through Drosse's proxy)
|
22 |
|
23 | ## [2.3.1] - 2021-08-31
|
24 | ### Fixed
|
25 | - Fix an issue when running the `exit` command in CLI. A node sub-process was staying alive when it should have been killed.
|
26 | - Fix an issue when running the `rs` command in CLI. The server was restarted with CLI context lost.
|
27 |
|
28 | ## [2.3.0] - 2021-08-30
|
29 | ### Added
|
30 | - Added log message if the .drosserc.js file isn't loaded for some reason.
|
31 | - Added new 'rs' command in CLI to restart the server
|
32 |
|
33 | ### Changed
|
34 | - Simplified startup script. If no `-r` or `--root` param is provided, the first term passed after the command name will be taken as root directory.
|
35 |
|
36 | ## [2.2.0] - 2021-05-25
|
37 | ### Fixed
|
38 | - custom errorHandler was not loaded
|
39 | - dependencies issues
|
40 |
|
41 | ## [2.1.0] - 2021-04-17
|
42 | ### Added
|
43 | - Added a 'restart' function in the CLI context
|
44 | - Added drosse version on startup
|
45 | - Added a `dbAdapter` config property to allow database persistence adapter change. Supports custom adapters.
|
46 |
|
47 | ### Fixed
|
48 | - Error handling in services
|
49 |
|
50 | ## [2.0.0] - 2021-03-22
|
51 | ### Changed
|
52 | - Drosse runs now at 2 different layers. When it's started, it will start the express app in a child process and keep the CLI on the parent process. This will be helpful to offer a better control on the express app from external tools, like e2e testing frameworks or the upcoming Drosse-UI. And this separates as well the CLI (vorpal) layer, which needs to stay an Interface and not be mixed with business logic, from the pure app commands layer.
|
53 |
|
54 | ## [1.13.2] - 2021-03-10
|
55 | ### Added
|
56 | - added a `basePath` config
|
57 |
|
58 | ## [1.13.1] - 2021-03-09
|
59 | ### Added
|
60 | - added a `baseUrl` config
|
61 |
|
62 | ## [1.13.0] - 2021-03-05
|
63 | ### Added
|
64 | - auto scraping mode, no service needed
|
65 | - fallback from static files to scraped files
|
66 |
|
67 | ### Changed
|
68 | - renamed 'hoover' feature to 'scraper'
|
69 |
|
70 | ## [1.12.0] - 2021-02-26
|
71 | ### Added
|
72 | - new route option 'hoover' to use along with 'proxy'. Allow to save proxied route response body as a drosse mock content.
|
73 |
|
74 | ### Changed
|
75 | - Pass drosse config (state) and db to the vorpal CLI. Which allows to make db queries in CLI commands.
|
76 |
|
77 | ## [1.11.3] - 2021-02-25
|
78 | ### Added
|
79 | - Added new `configureExpress` property in `.drosserc.js` to define custom configurations on the `express` app instance.
|
80 |
|
81 | ## [1.11.2] - 2021-02-24
|
82 | ### Changed
|
83 | - App middlewares can now take a fourth argument (at the first place) and will then be curried and having the drosse API injected into the middleware function
|
84 |
|
85 | ## [1.11.1] - 2021-02-18
|
86 | ### Added
|
87 | - Support for async services
|
88 |
|
89 | ## [1.11.0] - 2021-02-12
|
90 | ### Added
|
91 | - Allow throttle for proxied routes
|
92 | - Allow to define throttle only with min or max
|
93 |
|
94 | ## [1.10.0] - 2021-01-20
|
95 | ### Changed
|
96 | - Changed the proxy configuration to make it actually usable intuitively. From now, the URL path to where the proxy is defined is removed from the proxied path.
|
97 |
|
98 | ### Added
|
99 | - Added `db drop` command in the REPL CLI.
|
100 | - Added documentation and examples for the proxy feature.
|
101 | - Added documentation for the assets feature.
|
102 | - Added documentation for the template feature.
|
103 | - Added documentation for the DB api.
|
104 |
|
105 | ### Fixed
|
106 | - Fix db.get.byRef to not overwrite custom content with generic content
|
107 |
|
108 | ## [1.9.0] - 2021-01-13
|
109 | ### Changed
|
110 | - Changed the Drosse repository to a monorepo. Now it holds as well drosse UI and drosse website.
|
111 |
|
112 | ## [1.8.0] - 2021-01-05
|
113 | ### Added
|
114 | - Added a REPL CLI with an extensible command system.
|
115 |
|
116 | ### Fixed
|
117 | - Avoid errors in case of silent:false configuration in the child-process
|
118 |
|
119 | ## [1.7.0] - 2020-12-30
|
120 | ### Added
|
121 | - Added a `config` property (aka state.get()) in the exposed API.
|
122 |
|
123 | ## [1.6.0] - 2020-12-24
|
124 | ### Added
|
125 | - Added `responseType` DROSSE config with "file" as possible value.
|
126 | - Added possibility to _cancel_ an inherited template by passing `"template": null` in the DROSSE config object.
|
127 | - Added support for loki `where()` method in both `db.get` and `db.list` namespaces from db API.
|
128 |
|
129 | ## [1.5.0] - 2020-12-18
|
130 | ### Added
|
131 | - Support for static assets through the `assets` keyword in `DROSSE` object.
|
132 |
|
133 | ## [1.4.1] - 2020-12-01
|
134 | ### Fixed
|
135 | - Fix routes creation order
|
136 |
|
137 | ## [1.4.0] - 2020-12-01
|
138 | ### Added
|
139 | - Add `drosse-serve` bin entry in package.json
|
140 | - A collection can be defined as a unique JSON file containing an array of objects.
|
141 |
|
142 | ### Changed
|
143 | - Skip reserved routes in logging module
|
144 | - Improved logging on startup
|
145 |
|
146 | ### Removed
|
147 | - Remove old logging module
|
148 |
|
149 |
|
150 | ## [1.3.0] - 2020-11-19
|
151 | TODO
|
152 |
|
153 | ## [1.2.0] - 2020-11-17
|
154 | TODO
|
155 |
|
156 | ## [1.1.0] - 2020-11-10
|
157 | TODO
|
158 |
|
159 | ## [1.0.0] - 2020-10-28
|
160 | TODO
|
161 |
|
162 | [Unreleased]: https://github.com/jota-one/drosse/compare/2.3.2...develop
|
163 | [2.3.2]: https://github.com/jota-one/drosse/compare/2.3.1...2.3.2
|
164 | [2.3.1]: https://github.com/jota-one/drosse/compare/2.3.0...2.3.1
|
165 | [2.3.0]: https://github.com/jota-one/drosse/compare/2.2.0...2.3.0
|
166 | [2.2.0]: https://github.com/jota-one/drosse/compare/2.1.0...2.2.0
|
167 | [2.1.0]: https://github.com/jota-one/drosse/compare/2.0.0...2.1.0
|
168 | [2.0.0]: https://github.com/jota-one/drosse/compare/1.13.2...2.0.0
|
169 | [1.13.2]: https://github.com/jota-one/drosse/compare/1.13.1...1.13.2
|
170 | [1.13.1]: https://github.com/jota-one/drosse/compare/1.13.0...1.13.1
|
171 | [1.13.0]: https://github.com/jota-one/drosse/compare/1.12.0...1.13.0
|
172 | [1.12.0]: https://github.com/jota-one/drosse/compare/1.11.3...1.12.0
|
173 | [1.11.3]: https://github.com/jota-one/drosse/compare/1.11.2...1.11.3
|
174 | [1.11.2]: https://github.com/jota-one/drosse/compare/1.11.1...1.11.2
|
175 | [1.11.1]: https://github.com/jota-one/drosse/compare/1.11.0...1.11.1
|
176 | [1.11.0]: https://github.com/jota-one/drosse/compare/1.10.0...1.11.0
|
177 | [1.10.0]: https://github.com/jota-one/drosse/compare/1.9.0...1.10.0
|
178 | [1.9.0]: https://github.com/jota-one/drosse/compare/1.8.0...1.9.0
|
179 | [1.8.0]: https://github.com/jota-one/drosse/compare/1.7.0...1.8.0
|
180 | [1.7.0]: https://github.com/jota-one/drosse/compare/1.6.0...1.7.0
|
181 | [1.6.0]: https://github.com/jota-one/drosse/compare/1.5.0...1.6.0
|
182 | [1.5.0]: https://github.com/jota-one/drosse/compare/1.4.1...1.5.0
|
183 | [1.4.1]: https://github.com/jota-one/drosse/compare/1.4.0...1.4.1
|
184 | [1.4.0]: https://github.com/jota-one/drosse/compare/1.3.0...1.4.0
|
185 | [1.3.0]: https://github.com/jota-one/drosse/compare/1.2.0...1.3.0
|
186 | [1.2.0]: https://github.com/jota-one/drosse/compare/1.1.0...1.2.0
|
187 | [1.1.0]: https://github.com/jota-one/drosse/compare/1.0.0...1.1.0
|
188 | [1.0.0]: https://github.com/jota-one/drosse/releases/tag/1.0.0
|