Breaking changes in JavaScript SDK: December 17, 2024 release
This document outlines the breaking changes introduced in the December 17, 2024 release of the Webflow Data API and JavaScript SDK. Review these changes carefully as they may require updates to your existing implementations.
Breaking changes in JavaScript SDK
These changes require updates to existing code if you’re using the JavaScript SDK. Review and update your implementation to ensure compatibility.
Collection management
-
Changed method name for deleting collections
-
New method for deleting collection fields
CMS item creation
- Changed:
client.collections.createItems()
replaces previous methods - Removed:
client.collections.createItemForMultipleLocales()
Pages localization
- Changed parameter name: The
locale
query parameter is nowlocaleId
Migration guide
Deleting collection items
If you’re using the existing collection deletion method, update your code to use the new method name:
Collection item creation
Replace any usage of the deprecated methods with the new unified method:
Page localization
Update any code that queries localized pages to use the new parameter name:
If you encounter any issues with these changes, please contact our support team for assistance.
SDK improvements
-
Type improvements
- Removed requirement for
id
in request payloads when creating resources fieldData
type in CMS Items now allows arbitrary key/value pairs, supporting custom fields
- Removed requirement for
-
Flexible CMS item creation The SDK now allows creation of CMS items with custom fields without requiring type updates