22.4.0
🐛 Bug Fixes
[sitecore-jss-nextjs]
Improve performance for redirect middleware. (#2003)[sitecore-jss-nextjs]
Fix unnecessary escaping of valid regex operators in SXA rewrite patterns (#1999)[sitecore-jss]
Fixed question marks not being handled correctly inescapeNonSpecialQuestionMarks
method, when parsing regular expressions (#2014)[templates/nextjs-sxa]
Fix font-awesome imports in custom workspaces. (#1998)[templates/nextjs]
[templates/nextjs-sxa]
Ensure DISABLE_SSG_FETCH variable is correctly handled in error pages(#2007)
🛠 Breaking Change
[all packages]
[all samples]
Remove Axios (#2006) (#2008) (#2011)(#2013)(#2015)
(#2016)AxiosDataFetcher
is replaced by theNativeDataFetcher
.AxiosDataFetcherConfig
is replaced byNativeDataFetcherConfig
.AxiosResponse
is replaced byNativeDataFetcherResponse
.NativeDataFetcherError
: a new error type introduced for native data fetching operations.- Default fetcher i.e.
NativeDataFetcher.fetch
is of typeNativeDataFetcherFunction<T>
but can be overridden by custom fetcher using the existingHttpDataFetcher<T>
type. NativeDataFetcher
now exposesfetch
,get
,post
,delete
,put
,head
methods.NativedDataFetcher.fetch
now accepts second parameter of typeRequestInit
instead ofunknown
.