Jekyll 4 has introduced some changes. If you are looking to upgrade from Jekyll 3:

https://jekyllrb.com/docs/upgrading/3-to-4/