Skip to content

Release 0.8.0

Compare
Choose a tag to compare
@seancorfield seancorfield released this 20 Oct 22:51
· 36 commits to master since this release

Potentially breaking release. Some APIs have changes a little, as has the way that core request metadata is held inside the rc.

The rc now contains the entire original Ring request (as :framework.one/ring) and the FW/1 per-event metadata (as :framework.one/event). The previous :framework.one/request structure has been removed. Several of the APIs that previously operated on that now operate directly on the Ring request structure. This has streamlined a number of operations within the framework, as well as making it easier to add Ring-related enhancements, and handle custom Ring middleware.

Other changes:

  • You can no longer read the 'flash' scope, only update it.
  • (parameters rc) returns the request context without the Ring and FW/1 metadata (for when you want to iterate over the elements of the request context, such as form scope data).
  • (ring rc) has replaced (ring rc name) so that you can easily access the whole Ring request.
  • (scope-access scope) has been removed. It was mostly an internal convenience and was never really intended for public use.
  • A first draft of clojure.spec specifications now exists for the request context (and the FW/1 event and Ring metadata), in framework.one.spec. This will evolve over the next few releases, based on real world usage. Feedback welcome!