1
+ # ambiorix 2.2.0
2
+
3
+ __ New Features__
4
+
5
+ - Enable nesting of Routers, [ pull/73] ( https://github.com/ambiorix-web/ambiorix/pull/73 ) .
6
+ - Enable full support for htmltools tags, no need for html templates, [ pull/78] ( https://github.com/ambiorix-web/ambiorix/pull/78 ) , [ pull/92] ( https://github.com/ambiorix-web/ambiorix/pull/92 ) .
7
+ - Add ` engine() ` method set custom renderers, [ pull/66] ( https://github.com/ambiorix-web/ambiorix/pull/66 ) .
8
+ - Add ` set_error() ` method to set a global error handler, [ pull/64] ( https://github.com/ambiorix-web/ambiorix/pull/64 ) .
9
+ - Add a default error handler, [ pull/88] ( https://github.com/ambiorix-web/ambiorix/pull/88 ) .
10
+
11
+ __ Changes__
12
+
13
+ - Resolve port to bind server on in a specific order, [ pull/75] ( https://github.com/ambiorix-web/ambiorix/pull/75 ) .
14
+ - Switch to {yyjsonr} for faster serialization & de-serialization, [ pull/100] ( https://github.com/ambiorix-web/ambiorix/pull/100 ) .
15
+ - Switch to {webutils} for faster parsing of multipart & urlencoded request bodies, [ pull/100] ( https://github.com/ambiorix-web/ambiorix/pull/100 ) .
16
+ - Continually process requests using ` httpuv::service() ` instead of a while loop, [ pull/98] ( https://github.com/ambiorix-web/ambiorix/pull/98 ) .
17
+ - Remove syntactic sugar to improve backwards compatibility with R <= 4.1.0, [ pull/113] ( https://github.com/ambiorix-web/ambiorix/pull/113 ) .
18
+ - Deprecate ` create_dockerfile() ` , [ pull/116] ( https://github.com/ambiorix-web/ambiorix/pull/116 )
19
+
20
+ __ Bug Fixes__
21
+
22
+ - Fix bug hindering change of the max body size of a request,
23
+ [ pull/69] ( https://github.com/ambiorix-web/ambiorix/pull/69 ) .
24
+ - Fix issue causing pattern matching in routes to throw error, [ pull/82] ( https://github.com/ambiorix-web/ambiorix/pull/82 ) , [ pull/110] ( https://github.com/ambiorix-web/ambiorix/pull/110 ) .
25
+ - Fix bug on error condition messaging when promise evaluation fails, [ pull/88] ( https://github.com/ambiorix-web/ambiorix/pull/88 ) .
26
+
1
27
# ambiorix 2.1.1
2
28
3
29
- Added ` cache_templates ` method to cache templates
@@ -6,7 +32,7 @@ in memory.
6
32
rendering.
7
33
- Custom renderers (` as_renderer ` ) are now more robust.
8
34
- Add ` limit ` field to protect against large uploads.
9
- - Fix issue with setting custom websocket handler [ #62 ] ( https://github.com/devOpifex /ambiorix/issues/62 ) .
35
+ - Fix issue with setting custom websocket handler [ #62 ] ( https://github.com/ambiorix-web /ambiorix/issues/62 ) .
10
36
- Add ` engine ` method on router to set custom renderers (` use ` deprecated for custom renderers).
11
37
12
38
# ambiorix 2.1.0
@@ -38,16 +64,16 @@ No longer force render data as JSON if using an HTML template.
38
64
- Export ` serialise `
39
65
- Fixed issue where wrong path pattern was matched.
40
66
- Catch error if no route is specified.
41
- - Do not force body to character fixes [ #44 ] ( https://github.com/devOpifex /ambiorix/issues/44 )
42
- - Do no force content type on response fixes [ #45 ] ( https://github.com/devOpifex /ambiorix/issues/45 )
67
+ - Do not force body to character fixes [ #44 ] ( https://github.com/ambiorix-web /ambiorix/issues/44 )
68
+ - Do no force content type on response fixes [ #45 ] ( https://github.com/ambiorix-web /ambiorix/issues/45 )
43
69
- Deprecate passing headers to ` response ` or ` send ` -like functions, use
44
70
` header ` method.
45
71
- Deprecate ` set_header ` in favour of ` header ` method.
46
72
- Added family of ` header_content* ` methods to easily set ` Content-Type ` .
47
73
- Request ` HEADERS ` is always a ` list ` .
48
- - Deprecate ` set ` and ` get ` on Response and Request, this is no longer
74
+ - Deprecate ` set ` and ` get ` on Response and Request, this is no longer
49
75
needed the environments are no longer locked; ` res$myVar <- 2L ` .
50
- - Deprecate ` status ` argument of responses, the active binding should
76
+ - Deprecate ` status ` argument of responses, the active binding should
51
77
be used instead; ` res$status <- 404L ` .
52
78
- Partially improved route matching.
53
79
- Allow customising the path to pattern converter.
@@ -64,9 +90,9 @@ of said router.
64
90
- Empty cookie is empty list instead of empty string.
65
91
- Added ` mockRequest ` to for testing purposes.
66
92
- Fixed ` port ` , ` host ` , and ` websocket ` active bindings.
67
- - Add ability to create custom renderer, see
68
- [ jader] ( https://github.com/devOpifex /jader ) , and
69
- [ pugger] ( https://github.com/devOpifex /pugger ) .
93
+ - Add ability to create custom renderer, see
94
+ [ jader] ( https://github.com/ambiorix-web /jader ) , and
95
+ [ pugger] ( https://github.com/ambiorix-web /pugger ) .
70
96
71
97
# ambiorix 2.0.0
72
98
@@ -76,7 +102,7 @@ The `render` and `send_file` methods of the `Response` object now
76
102
expect the full path to the template, with the file extension.
77
103
Where one would before ` res$render("home") ` , now one
78
104
` res$render("templates/home.html") ` .
79
- Similarly, in said templates, to import partials,
105
+ Similarly, in said templates, to import partials,
80
106
use full path relative to the template in which the partial is used
81
107
e.g.: from ` [! header.html !] ` to ` [! partials/header.html !] ` .
82
108
@@ -90,15 +116,15 @@ locking variables when using `set`.
90
116
- Remove the deprecated ` Logger ` class, see [ log] ( https://github.com/devOpifex/log ) package.
91
117
- Pass ` host ` to free port fetch function.
92
118
- Add hidden option to force change port for upcoming related service.
93
- - Internals of calls reworked to share response object.
94
- This is how it should always have worked, it allows middlewares to
119
+ - Internals of calls reworked to share response object.
120
+ This is how it should always have worked, it allows middlewares to
95
121
updatre request and response to be used/passed to subsequent calls.
96
122
- Middleware check for run has been fixed.
97
123
- Document and export the ` Response ` class.
98
124
- Added pre-hook to response.
99
125
- Document and export ` Request ` class.
100
126
- ` set ` and ` get ` methods on ` Request ` and ` Response ` accept character
101
- strings as ` name ` .
127
+ strings as ` name ` .
102
128
- Use R 4.1.0 + add ` Depends `
103
129
- Allow passing a list of functions to ` use ` to easily se multiple
104
130
middlewares at once.
@@ -124,19 +150,19 @@ with `sprintf`.
124
150
# ambiorix 1.0.2
125
151
126
152
- Reaches CRAN
127
- - Removed ` create_ambiorix ` , see [ ambiorix.generator] ( https://github.com/devOpifex /ambiorix.generator ) .
128
- - Removed ` add_template ` , see [ ambiorix.generator] ( https://github.com/devOpifex /ambiorix.generator ) .
153
+ - Removed ` create_ambiorix ` , see [ ambiorix.generator] ( https://github.com/ambiorix-web /ambiorix.generator ) .
154
+ - Removed ` add_template ` , see [ ambiorix.generator] ( https://github.com/ambiorix-web /ambiorix.generator ) .
129
155
- Deprecate the ` Logger ` class in favour of the [ log] ( https://github.com/devOpifex/log ) package.
130
- - Fixed ` parse_json ` [ #36 ] ( https://github.com/devOpifex /ambiorix/issues/36 )
156
+ - Fixed ` parse_json ` [ #36 ] ( https://github.com/ambiorix-web /ambiorix/issues/36 )
131
157
132
158
# ambiorix 1.0.1
133
159
134
- - Deprecate ` create_ambiorix ` : moving to [ ambiorix.generator] ( https://github.com/devOpifex /ambiorix.generator ) package.
135
- - Deprecate ` add_template ` : moving to [ ambiorix.generator] ( https://github.com/devOpifex /ambiorix.generator ) package.
160
+ - Deprecate ` create_ambiorix ` : moving to [ ambiorix.generator] ( https://github.com/ambiorix-web /ambiorix.generator ) package.
161
+ - Deprecate ` add_template ` : moving to [ ambiorix.generator] ( https://github.com/ambiorix-web /ambiorix.generator ) package.
136
162
- Added ` all ` method to define route and handler for all methods ` GET ` , ` POST ` , ` PUT ` , ` DELETE ` , and ` PATCH ` .
137
163
- The ` use ` method now accepts a function which is run every time the server receives a request.
138
164
- Add ` set ` and ` get ` to request to add and retrieve params (namely with the middleware)
139
- - Fix ` check_installed ` , see [ #33 ] ( https://github.com/devOpifex /ambiorix/issues/33 )
165
+ - Fix ` check_installed ` , see [ #33 ] ( https://github.com/ambiorix-web /ambiorix/issues/33 )
140
166
141
167
# ambiorix 1.0.0
142
168
0 commit comments