contentful-import 9.5.0-testing-publishing-to-github-packages.3 → 10.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/README.md +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +25 -21
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Contentful import tool
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/contentful-import)
|
|
4
|
-
[](https://github.com/contentful/contentful-import/actions/workflows/main.yaml)
|
|
5
5
|
|
|
6
6
|
[](https://github.com/semantic-release/semantic-release) [](http://standardjs.com/)
|
|
7
7
|
|
|
@@ -19,7 +19,7 @@ This library helps you to import files generated by [contentful-export](https://
|
|
|
19
19
|
|
|
20
20
|
### Pre-requisites
|
|
21
21
|
|
|
22
|
-
- Node
|
|
22
|
+
- Node >= 22
|
|
23
23
|
|
|
24
24
|
### Installation
|
|
25
25
|
|
|
@@ -229,7 +229,7 @@ contentfulImport({
|
|
|
229
229
|
|
|
230
230
|
### Embargoed Assets
|
|
231
231
|
|
|
232
|
-
If a space is configured to use the [embargoed assets feature](https://www.contentful.com/help/media/embargoed-assets/), certain options will need to be set to use the export/import tooling. When exporting content ([using `contentful-export`](https://github.com/contentful/contentful-export)), the `downloadAssets` option must be set to `true`. This will download the asset files to your local machine. Then when importing content, the `uploadAssets` option must be set to `true` and the `assetsDirectory` must be set to the directory that contains all of the exported asset folders.
|
|
232
|
+
If a space is configured to use the [embargoed assets feature](https://www.contentful.com/help/media/embargoed-assets/), certain options will need to be set to use the export/import tooling. When exporting content ([using `contentful-export`](https://github.com/contentful/contentful-export)), the `downloadAssets` option must be set to `true`. This will download the asset files to your local machine. Then, when importing content, the `uploadAssets` option must be set to `true` and the `assetsDirectory` must be set to the directory that contains all of the exported asset folders.
|
|
233
233
|
|
|
234
234
|
```javascript
|
|
235
235
|
const contentfulImport = require('contentful-import')
|
package/dist/index.js
CHANGED
|
@@ -58,7 +58,7 @@ function initClient(opts) {
|
|
|
58
58
|
...defaultOpts,
|
|
59
59
|
...opts
|
|
60
60
|
};
|
|
61
|
-
return (0, import_contentful_management.createClient)(config);
|
|
61
|
+
return (0, import_contentful_management.createClient)(config, { type: "legacy" });
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
// lib/tasks/get-destination-data.ts
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-import",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "this tool allows you to import JSON dump exported by contentful-export",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=
|
|
9
|
+
"node": ">=22"
|
|
10
10
|
},
|
|
11
11
|
"exports": {
|
|
12
12
|
"require": "./dist/index.js",
|
|
@@ -63,39 +63,39 @@
|
|
|
63
63
|
"@discoveryjs/json-ext": "^0.6.3",
|
|
64
64
|
"bluebird": "^3.7.2",
|
|
65
65
|
"cli-table3": "^0.6.5",
|
|
66
|
-
"contentful-batch-libs": "^9.
|
|
67
|
-
"contentful-management": "^
|
|
66
|
+
"contentful-batch-libs": "^9.7.0",
|
|
67
|
+
"contentful-management": "^12.2.0",
|
|
68
68
|
"date-fns": "^2.30.0",
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"joi": "^18.0.1",
|
|
72
|
-
"listr": "^0.14.1",
|
|
69
|
+
"joi": "^18.1.2",
|
|
70
|
+
"listr": "^0.14.3",
|
|
73
71
|
"listr-update-renderer": "^0.5.0",
|
|
74
72
|
"listr-verbose-renderer": "^0.6.0",
|
|
75
|
-
"lodash": "^4.17.
|
|
73
|
+
"lodash": "^4.17.23",
|
|
76
74
|
"p-queue": "^6.6.2",
|
|
77
75
|
"yargs": "^17.7.2"
|
|
78
76
|
},
|
|
79
77
|
"devDependencies": {
|
|
80
78
|
"@semantic-release/changelog": "^6.0.3",
|
|
81
79
|
"@types/jest": "^29.5.14",
|
|
82
|
-
"@types/lodash": "^4.17.
|
|
80
|
+
"@types/lodash": "^4.17.24",
|
|
83
81
|
"@types/node": "^20.6.3",
|
|
84
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
85
|
-
"@typescript-eslint/parser": "^
|
|
86
|
-
"cz-conventional-changelog": "^3.
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
83
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
84
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
85
|
+
"eslint": "^8.57.1",
|
|
86
|
+
"eslint-config-standard": "^17.1.0",
|
|
87
87
|
"eslint-plugin-import": "^2.32.0",
|
|
88
88
|
"eslint-plugin-jest": "^28.14.0",
|
|
89
|
-
"eslint-plugin-
|
|
90
|
-
"eslint-plugin-promise": "^6.
|
|
89
|
+
"eslint-plugin-n": "^16.6.2",
|
|
90
|
+
"eslint-plugin-promise": "^6.6.0",
|
|
91
91
|
"eslint-plugin-standard": "^5.0.0",
|
|
92
92
|
"jest": "^29.7.0",
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
93
|
+
"nixt": "^0.5.1",
|
|
94
|
+
"rimraf": "^6.1.3",
|
|
95
|
+
"semantic-release": "^25.0.3",
|
|
96
|
+
"ts-jest": "^29.4.6",
|
|
97
|
+
"tsup": "^8.5.1",
|
|
98
|
+
"typescript": "^5.9.3"
|
|
99
99
|
},
|
|
100
100
|
"files": [
|
|
101
101
|
"bin",
|
|
@@ -126,6 +126,10 @@
|
|
|
126
126
|
"@semantic-release/commit-analyzer",
|
|
127
127
|
{
|
|
128
128
|
"releaseRules": [
|
|
129
|
+
{
|
|
130
|
+
"breaking": true,
|
|
131
|
+
"release": "major"
|
|
132
|
+
},
|
|
129
133
|
{
|
|
130
134
|
"type": "build",
|
|
131
135
|
"scope": "deps",
|