Current section

Files

Jump to
interceptor CHANGELOG.md
Raw

CHANGELOG.md

# Changelog for v0.3.0
## Changes
* Instead of passing the intercepted function arity to the callback functions, we now pass the actual argument values.
This change allows to have the same interceptor function behaving differently with different arguments values.
# Changelog for v0.2.0
## Changes
* `Interceptor.Configurator` provides a DSL to define the intercept configuration, allowing `"Module.function/arity"` MFAs instead of tuple-based ones
* Intercept configuration can now live directly on the intercepted module, instead of being exposed by a module set on the application configuration
* Ability to intercept private functions as well
* Refactor of the configuration code to its own `Interceptor.Configuration` module
## TODO
* Allow multiple callbacks for a given moment, i.e., allow more than one callback to be invoked `after` the intercepted function is called, for example.
# Changelog for v0.1.3
## Changes
* Small documentation fixes
* Bug fix: we had an error when trying to intercept a function without arguments
- The AST of a `def foo, do: "hi"` function declaration is different from this `def foo(), do: "hi"`
# Changelog for v0.1.2
## Changes
Small documentation fixes.
# Changelog for v0.1.1
## Highlights
First version of the library, with tests and documentation. Implements the
`before`, `after`, `on_success`, `on_error` and `wrapper` strategies of
intercepting any function. As of now, it only intercepts public functions (but
it shouldn't be difficult to intercept private ones as well).