Upgrading from JSS 15.0 to JSS 16.0
- Update peer dependencies version.
- Update all @sitecore-jss/* packages to the latest 16.x version.
- Check usages of
any
type (and fix any build/lint errors) as we start to migrate fromany
tounknown
or more specific types. - If you are using
resolveScJssConfig
from@sitecore-jss/sitecore-jss-dev-tools
, you should update the calling signature to use:
resolveScJssConfig({
configPath,
configName,
assert
})
instead of the old signature.
- If you are using
ComponentFactory
from@sitecore-jss/sitecore-jss-react
, check/fix types related toComponentFactory
, currently it returnsComponentType | null
(component definition) instead ofComponent
(instantiated component).