Major Changes
-
d85098a: BREAKING CHANGE: We have had to modify the the template parameters for
wrapFetch
,
decorateFetchResponse
,adaptFetchInputs
,addFragmentSupportToFetch
,fetchFragment
andfetchLink
, replacing theFetchImpl
parameter with andArguments
andResponseType
parameter. Originally the intention was to try and leverage Typescript's
type inference and have it figure out the types based on the passed in fetch implementation,
but we couldn't figure out how to make it work properly and we were getting lots of type
errors. Replacing theFetchImpl
parameter with theArguments
andResponseType
parameters solve those errors.fetchLink
will now check if the link has afragment
and use that to return a fragment
response instead of fetching the resource and getting the fragment from it. For iterating
over items in a collection, this is orders of magnitude faster.