- Corrected the declaration of routes with plug when conditionaly removing declared resource.
(eg. Surrounding a
resource
with an if.)
2.3.1 (2021-12-17)
Ewebmachine.Plug.Send.call
now threads theconn
struct to keep the updates instead of reusing the original one.Ewebmachine.Builder.Handles.add.add_handlers/2
: internal changes to satisfy dialyzer.
- Code janitoring wrt elixir versions: supports 1.3 - 1.6
- Validated against Cowboy 1 & 2
- Fix
- Compilation with Plulg > 1.5 (#38)
- Feature: allow to name resources modules
- Bug fixes
- make it compatible with elixir 1.4 without warnings
- fix related regression
- Bug fixes
- Plug version spec and plug update to 1.0
- Bug fixes
accept_helper
is used in non terminal decision, so halt conn in case of 415 (else in some case, 415 became 200)
- Bug fixes
- All headers must be lower case to respect Plug.conn convention, updated tests
- add PATCH to default known methods, currently no other support, so to use PATCH
- set Accept-Patch in
option
with accepted media types, - set handler for these types in
content-types-accepted
- implement
resources_exists
to convertPATCH
method toPUT
if the resource exists
- set Accept-Patch in
- Bug fixes
- Debug call log size were O(n^2), make it O(n) removing
conn.private
from the log
- Debug call log size were O(n^2), make it O(n) removing
-
Enhancements
{:halt,code}
works in more cases because it nowthrows
theconn
to break the decision flow.- Make it possible to use
Ewebmachine.Plug.Debug
not at the routing root, with relative assets. Thanks to @yrashk. - Make it possible to use a fuzzy
content_types_accepted
media type. Thanks again to @yrashk. - little changes to allow to chain ewebmachine handler definitions and run
- 2 nice plugs to handle errors after a run :
ErrorAsException
andErrorAsForward
- A macro to set common plug pipeline use cases :
resources_plugs
- Change Logging from a simple Agent to ETS
- add this CHANGELOG
-
Bug fixes
- Bug in create path relative handling, use Conn.full_path to use the
script_name
and thepath_info
- Bug in create path relative handling, use Conn.full_path to use the
- Bug fixes
- Avoid module name collision with resource module function changing the naming scheme.
- Bug fixes
Ewebmachine.Plug.Run
should run only if the:machine_init
option has been set.
- Enhancements
- Add
:default_plugs
option toEwebmachine.Builder.Resources
.
- Add
- Bug fixes
- Makes
{:halt,code}
management works correctly, add test.
- Makes
- Bug fixes
- Makes
{:halt,code}
management works correctly.
- Makes