contentful-migration 4.17.0 → 4.17.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/README.md +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
## [4.17.1](https://github.com/contentful/contentful-migration/compare/v4.17.0...v4.17.1) (2023-10-20)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* **docs:** Fix `linkType` values & typos ([#1236](https://github.com/contentful/contentful-migration/issues/1236)) ([1ee63b8](https://github.com/contentful/contentful-migration/commit/1ee63b85f40bc544d0d84e0461da59addba432a9))
|
|
7
7
|
|
|
8
8
|
# Change Log
|
|
9
9
|
|
package/README.md
CHANGED
|
@@ -390,7 +390,7 @@ For the given (source) content type, transforms all its entries according to the
|
|
|
390
390
|
- `locale` one of the locales in the space being transformed
|
|
391
391
|
- `id` id of the current entry in scope
|
|
392
392
|
|
|
393
|
-
|
|
393
|
+
The return value must be an object with the same keys as specified in the `targetContentType`. Their values will be written to the respective entry fields for the current locale (i.e. `{nameField: 'myNewValue'}`). If it returns `undefined`, the values for this locale on the entry will be left untouched.
|
|
394
394
|
|
|
395
395
|
##### `transformEntriesToType` Example
|
|
396
396
|
|
|
@@ -541,7 +541,7 @@ Creates a field with provided `id`.
|
|
|
541
541
|
- `Array` (requires `items`)
|
|
542
542
|
- `Link` (requires `linkType`)
|
|
543
543
|
- `ResourceLink` (requires `allowedResources`)
|
|
544
|
-
- **`items : Object`** _(required for type
|
|
544
|
+
- **`items : Object`** _(required for type `Array`)_ – Defines the items of an Array field.
|
|
545
545
|
Example:
|
|
546
546
|
|
|
547
547
|
```javascript
|
|
@@ -554,9 +554,9 @@ Creates a field with provided `id`.
|
|
|
554
554
|
}
|
|
555
555
|
```
|
|
556
556
|
|
|
557
|
-
- **`linkType : string`** _(required for type
|
|
558
|
-
|
|
559
|
-
- **`allowedResources`** _(required for type
|
|
557
|
+
- **`linkType : string`** _(required for type `Link`)_ – Type of the referenced entry.
|
|
558
|
+
Value must be either `Asset` or `Entry`.
|
|
559
|
+
- **`allowedResources`** _(required for type `ResourceLink`)_ - Defines which resources can be linked through the field.
|
|
560
560
|
- **`required : boolean`** – Sets the field as required.
|
|
561
561
|
- **`validations : Array`** – Validations for the field.
|
|
562
562
|
Example:
|