contentful-migration 4.13.0 → 4.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -3
- package/index.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
## [4.13.1](https://github.com/contentful/contentful-migration/compare/v4.13.0...v4.13.1) (2023-06-21)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* Add missing typing ([#1219](https://github.com/contentful/contentful-migration/issues/1219)) ([46cfd51](https://github.com/contentful/contentful-migration/commit/46cfd5184fe54ada8e18aef445d9beae3c4956a4))
|
|
7
7
|
|
|
8
8
|
# Change Log
|
|
9
9
|
|
package/index.d.ts
CHANGED
|
@@ -427,7 +427,7 @@ export interface ITransformEntriesConfig {
|
|
|
427
427
|
*
|
|
428
428
|
* The return value must be an object with the same keys as specified in to. Their values will be written to the respective entry fields for the current locale (i.e. {nameField: 'myNewValue'}). If it returns undefined, this the values for this locale on the entry will be left untouched.
|
|
429
429
|
*/
|
|
430
|
-
transformEntryForLocale: (fromFields: ContentFields, currentLocale: string) => any
|
|
430
|
+
transformEntryForLocale: (fromFields: ContentFields, currentLocale: string, { id }: { id: string }) => any
|
|
431
431
|
/** (optional) – If true, the transformed entries will be published. If false, they will remain in draft state. When the value is set to "preserve" items will be published only if the original entry was published as well (default true) */
|
|
432
432
|
shouldPublish?: boolean | 'preserve'
|
|
433
433
|
}
|