mappersmith
Advanced tools
Changelog
2.37.0
Fixed:
mappersmith/test
: Fix bug in mockRequest/mockClient where body params did not match independent of order #268Added:
mappersmith
: Make Response accept a generic type that specifies the form of the data returned #265mappersmith/test
: Add responseFactory
and requestFactory
helpers to mappersmith/test
#265mappersmith/test
: If body
is not provided to a mock, it will match on any body. #229 #152Changelog
2.36.3
Fixed:
Refactored:
ClientBuilder
to typescript #259Changelog
2.36.0
Added:
parameterEncoder
which can optionally be used to override the encoding function for request params. Default is encodeURIComponent
#251Fixed:
x-started-at
header getting set to new Date.now()
during testing and failing header match #248Request.pathTemplate
to return result of the function instead of the function itself #249Refactored:
Manifest
to typescript #254MethodDescriptor
to typescript #245Request
to typescript #245Response
to typescript #249Changelog
2.35.0
Fixed:
allowResourceHostOverride
configuration in middlewares #240error
#230Added:
mappersmith
: Request.pathTemplate
- Returns the template path, without params, before interpolation #194mappersmith/test
: unusedMocks
- get count of unused mocks #227+json
family of MIME types are parsed as json #223Deprecated:
mappersmith
: setContext
- this is not safe for concurrent use #239Changelog
2.34.0
CONTENT_TYPE_JSON
to type definition #203allowResourceHostOverride=true
#204