The focus of release 0.8 is to improve and unify routing, and to support reference:jetty.adoc
and reference:http-kit.adoc, but a secondary focus
is to remove dead code.
Many functions, macros, and even namespaces deprecated in 0.7.0 have been fully removed in 0.8.0.
There have been significant changes to routing, including some
non-backwards compatible changes to functions, namespaces, and protocols; these changes should only be
concerning if you have previously implemented your own routing specifications or routers.
Newly deprecated namespaces:
These represent functionality that is not well supported by Pedestal, or internal namespaces that should not be
used by application code.
WebSocket upgrade requests are now routed, like any other request; the prior approach
(the ::http/websockets service map key) has been deprecated.
In io.pedestal.websocket
, the following functions are deprecated:
- add-endpoint
- add-endpoints
In io.pedestal.interceptor
- Support for the deferred interceptors (via :interceptor or :interceptorfn metadata) was removed
- Anonymous interceptors are deprecated
All of api:*[ns=io.pedestal.http] has been deprecated in favor of api:*[ns=io.pedestal.connector].
The number of warnings concerning deprecated functions has grown considerably in 0.8.0;
although in the future many of these functions may actually be removed, it still causes considerable noise
(which may drive users to move to the new APIs). However, this also results in a flurry of output when
an applicaton is first started, which can be annoying during development.
It is now possible to suppress deprecation warnings.