Releases: bfitech/zapcore
Releases · bfitech/zapcore
2.3.1
2.3.0
- Fix ParserError::PARAM_KEY_REUSED value.
- Add middleware management.
- Add Header::send_cookie_with_opts to send cookie with samesite and other future attributes. This is supported on PHP>=7.0.
- Deprecate Header::send_cookie. This still works but is unable to send samesite attribute.
2.2.0
- Reimplement static file serving. This is a breaking change at a lower level.
- Strict type checking. Additionally, always use type hinting unless a parameter is intentionally able to have multiple types.
- Add logger resource getter. Useful to merge log with other existing loggers.
- Move path parsing functionalities to separate
Parser
class. - Reorganize default routing methods into separate
RouteDefault
class. - Improve
Rout{er,ing}Dev
classes. Allow merging request headers with those from environment variable. - Introduce JSON body parser.
- Add additional reference parameter to
Common::exec
to separate output lines and return code. This is a breaking change in return value. - PHP 7.4 support.
2.1.1
1.4.1
2.1.0
- Add
ZapCore\Config
, a generic configuration management. - Fix unexpected behaviour of
ZapCoreDev\RoutingDev::request
. - Add
ZapCoreDev\TestCase
, a wrapper of PHPUnit for lazy typers. - Bring back test directory checker, now renamed to
ZapCoreDev\TestCase::tdir
. - Strict type checking.
1.4.0
2.0.0
- Drop PHP 5.6 support.
- Support PHP 7.3.
- Comprehensive type hinting.
- Simplify constructor parameters of Router.
- Throw exceptions on route path errors.
- Change parameters of Header::send_file.
- Remove HTTP-based test classes.
- Remove logging temporary de/activation.
- Stricter linter.