contentful-migration 4.12.0 → 4.12.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 +1 -6
- package/README.md +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Features
|
|
5
|
-
|
|
6
|
-
* add resource link support and validation ([#1124](https://github.com/contentful/contentful-migration/issues/1124)) ([e5a5ea1](https://github.com/contentful/contentful-migration/commit/e5a5ea1217c5e9dceeff0d7f4d46a730f278795b))
|
|
1
|
+
## [4.12.1](https://github.com/contentful/contentful-migration/compare/v4.12.0...v4.12.1) (2022-11-08)
|
|
7
2
|
|
|
8
3
|
# Change Log
|
|
9
4
|
|
package/README.md
CHANGED
|
@@ -288,6 +288,7 @@ The transform function is expected to return an object with the desired target f
|
|
|
288
288
|
- **`transformEntryForLocale : function (fields, locale): object`** _(required)_ – Transformation function to be applied.
|
|
289
289
|
- `fields` is an object containing each of the `from` fields. Each field will contain their current localized values (i.e. `fields == {myField: {'en-US': 'my field value'}}`)
|
|
290
290
|
- `locale` one of the locales in the space being transformed
|
|
291
|
+
|
|
291
292
|
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.
|
|
292
293
|
- **`shouldPublish : bool | 'preserve'`** _(optional)_ – Flag that specifies publishing of target entries, `preserve` will keep current states of the source entries (default `'preserve'`)
|
|
293
294
|
|