You should no longer pass images array as an option, you are now supposed to pass it as the first argument of Chocolat.
You can learn more on how to instanciate Chocolat here.
container
container must be an HTMLElement .
Selectors are no longer valid.
jQuery objects are no longer valid.
setTitle
setTitle is now a function returning a string.
You can no longer use data-chocolat-title on your html element to set the title.
separator2
separator2 has been replaced with the pagination function.
firstImage
firstImage has been renamed to firstImageIndex .
lastImage
lastImage has been renamed to lastImageIndex .
currentImage
currentImage has been renamed to currentImageIndex .
imageSize
imageSize default value 'default' as been renamed to 'scale-down'
enableZoom
enableZoom has been renamed to allowZoom .
Api
API can now be accessed without calling the api() function.
You can learn more on how to use the API here
// replace:
const instance = $(...).Chocolat().data('chocolat')
instance.api().open() // open() is taken as an example here.
// with:
const instance = Chocolat(...)
instance.api.open() // open() is taken as an example here.