All notable changes to Rack::Params
will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- updated to recent rack/ruby, handled the ruby 2.7 keyword changes
This is a pretty major refactor, but since we're not really released at all yet, I'm just including highlights in the changelog - check the diff for explicit changes, but so much got moved around, I'm not sure that'll be easy. Such are the perogotives of personal projects :)
- added a changelog!
#param
and#every
now take a block for any type, which is passed the value for transformation (think #map), which makes the Hash/Array handling less special (though still special, since they're recursed, not transformed given the block).- extracted the
Validator
module fromContext
; easier to test, makes more sense architecturally (context is only concerned with beingself
for the block), and allows the use of the validation helpers elsewhere. - much more robust specs.
- all basic functionality