@sitecore-jss/sitecore-jss
Advanced tools
Changelog
22.4.0
[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 in escapeNonSpecialQuestionMarks
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)[all packages]
[all samples]
Remove Axios (#2006) (#2008) (#2011)(#2013)(#2015)
(#2016)
AxiosDataFetcher
is replaced by the NativeDataFetcher
.AxiosDataFetcherConfig
is replaced by NativeDataFetcherConfig
.AxiosResponse
is replaced by NativeDataFetcherResponse
.NativeDataFetcherError
: a new error type introduced for native data fetching operations.NativeDataFetcher.fetch
is of type NativeDataFetcherFunction<T>
but can be overridden by custom fetcher using the existing HttpDataFetcher<T>
type.NativeDataFetcher
now exposes fetch
, get
, post
, delete
, put
, head
methods.NativedDataFetcher.fetch
now accepts second parameter of type RequestInit
instead of unknown
.