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 CHANGED
@@ -1,9 +1,9 @@
1
- # [4.13.0](https://github.com/contentful/contentful-migration/compare/v4.12.11...v4.13.0) (2023-06-07)
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
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * provide entry id for transform and derive functions ([#1212](https://github.com/contentful/contentful-migration/issues/1212)) ([05f1135](https://github.com/contentful/contentful-migration/commit/05f1135aa6846d15cbb14716bea71d9e7d1ef404))
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-migration",
3
- "version": "4.13.0",
3
+ "version": "4.13.1",
4
4
  "description": "Migration tooling for contentful",
5
5
  "author": "Contentful GmbH",
6
6
  "license": "MIT",