@jungvonmatt/contentful-migrations 7.0.0 → 7.0.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/lib/contentful.js CHANGED
@@ -76,7 +76,10 @@ const getClient = async (options) => {
76
76
  }
77
77
 
78
78
  if (params.accessToken) {
79
- client = await contentful.createClient(params);
79
+ // contentful-management v12 defaults to the "plain" client, which lacks the
80
+ // nested helpers this package relies on (client.getSpace, space.getEnvironment,
81
+ // apiKey.update, ...). Explicitly request the legacy/nested client. See #88.
82
+ client = await contentful.createClient(params, { type: "legacy" });
80
83
  return client;
81
84
  }
82
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jungvonmatt/contentful-migrations",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Helper to handle migrations in contentful",
5
5
  "keywords": [
6
6
  "content-type",