contentful-export 8.2.0 → 8.2.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/README.md CHANGED
@@ -216,6 +216,14 @@ Skip exporting webhooks
216
216
 
217
217
  Untag assets and entries
218
218
 
219
+ #### `includeExperienceOrchestration` [boolean] [default: true]
220
+
221
+ Export Experience Orchestration (ExO) entities: Design Tokens, Components, Experience Templates, Data Assemblies, Experience Fragments, and Experiences.
222
+
223
+ Requires the Organization to have the `exo_m1` entitlement. If the Organization is not entitled, the export will not throw — each ExO array will be empty and a warning will be logged.
224
+
225
+ See [docs/exo-export.md](./docs/exo-export.md) for full details.
226
+
219
227
  #### `contentOnly` [boolean] [default: false]
220
228
 
221
229
  Only export entries and assets
@@ -340,6 +348,19 @@ This is an overview of the exported data:
340
348
  }
341
349
  ```
342
350
 
351
+ When `includeExperienceOrchestration: true` is set, six additional arrays are included:
352
+
353
+ ```json
354
+ {
355
+ "designTokens": [],
356
+ "components": [],
357
+ "experienceTemplates": [],
358
+ "dataAssemblies": [],
359
+ "experienceFragments": [],
360
+ "experiences": []
361
+ }
362
+ ```
363
+
343
364
  _Note:_ Tags feature is not available for all users. If you do not have access to this feature, the tags array will always be empty.
344
365
 
345
366
  _Note:_ `designTokens`, `components`, `experienceTemplates`, `dataAssemblies`, `experienceFragments`, and `experiences` are Experience Orchestration (ExO) entities — present by default; absent only if you explicitly set `includeExperienceOrchestration: false` — see the "Experience Orchestration (ExO) entities" section below.
package/dist/index.js CHANGED
@@ -118,8 +118,11 @@ function runContentfulExport(params) {
118
118
  return _bfj.default.write(options.logFilePath, ctx.data, {
119
119
  circular: 'ignore',
120
120
  space: 2,
121
- bufferLength: 1024,
122
- yieldRate: 16384
121
+ // Do not set `yieldRate` -- values above `bufferLength`
122
+ // make bfj 9's serialization quadratic and it never
123
+ // finishes. See DX-1343.
124
+ bufferLength: 65536,
125
+ highWaterMark: 1024 * 1024
123
126
  });
124
127
  }
125
128
  }]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-export",
3
- "version": "8.2.0",
3
+ "version": "8.2.1",
4
4
  "description": "this tool allows you to export a space to a JSON dump",
5
5
  "main": "dist/index.js",
6
6
  "types": "types.d.ts",