Commit 6b9c061
fix!: update to CMA.js v12 and drop Node <22 support [DX-781] (#2194)
* chore: update to v12
* chore: bump contentful-management to 12.0.0-new-beta.14
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* fix: update get-space-data to use PlainClientAPI
Replace chain client entity methods with PlainClientAPI equivalents:
- client.space.get() / client.environment.get() for connecting
- client.contentType/entry/asset/locale/tag/webhook/role.getMany()
- client.editorInterface.get() instead of contentType.getEditorInterface()
- Refactor pagedGet to accept a fetcher function
Update unit tests to mock the new PlainClientAPI structure.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* chore: bump contentful-management to 12.0.0-new-beta.16
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore: update contentful-management to 12.0.0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix!: drop Node <22 support, bump CI and .nvmrc to Node 24 LTS
BREAKING CHANGE: Node >=22 is now required. Older Node versions are no longer supported.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: use CMA v12 legacy client to preserve existing API surface
Passes { type: 'legacy' } to createClient so get-space-data.js continues
using the high-level nested client (space.getEnvironment, environment.getEntries,
etc.) without requiring a functional migration.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: bump contentful-management to ^12.2.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent b9f9ee2 commit 6b9c061
7 files changed
Lines changed: 15 additions & 14 deletions
File tree
- .github/workflows
- lib/tasks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments