diff --git a/lib/utils/cursor-pagninate.ts b/lib/utils/cursor-pagninate.ts index 048adb6f6..9401c0c9d 100644 --- a/lib/utils/cursor-pagninate.ts +++ b/lib/utils/cursor-pagninate.ts @@ -1,4 +1,4 @@ -import { CursorPaginatedCollectionProp } from 'contentful-management/dist/typings/common-types' +import { CursorPaginatedCollectionProp } from 'contentful-management' export async function cursorPaginate({ queryPage diff --git a/package-lock.json b/package-lock.json index 96076684c..e66a71462 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "contentful-collection": "^0.0.4", "contentful-export": "^7.21.78", "contentful-import": "9.4.127", - "contentful-management": "^11.39.0", + "contentful-management": "^12.0.0-new-beta.9", "contentful-migration": "^4.21.0", "emojic": "^1.1.11", "execa": "^5.0.0", @@ -2107,6 +2107,30 @@ "node": ">=14" } }, + "node_modules/@contentful/integration-test-utils/node_modules/contentful-sdk-core": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/contentful-sdk-core/-/contentful-sdk-core-8.3.2.tgz", + "integrity": "sha512-L2LNWRXb1/5RLpLemCoP2Lzz6211xyE63GXh2nVXekvM4Dnswo+9N2D6JmWTne9zq89Izo88vOGAzzIAxb4Ukw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-copy": "^2.1.7", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "p-throttle": "^4.1.1", + "qs": "^6.11.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@contentful/integration-test-utils/node_modules/contentful-sdk-core/node_modules/fast-copy": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/fast-copy/-/fast-copy-2.1.7.tgz", + "integrity": "sha512-ozrGwyuCTAy7YgFCua8rmqmytECYk/JYAMXcswOcm0qvGoE3tPb7ivBeIHTOK2DiapBhDZgacIhzhQIKU5TCfA==", + "dev": true, + "license": "MIT" + }, "node_modules/@contentful/integration-test-utils/node_modules/type-fest": { "version": "4.26.1", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.26.1.tgz", @@ -7141,6 +7165,22 @@ "url": "https://opencollective.com/date-fns" } }, + "node_modules/contentful-export/node_modules/contentful-management": { + "version": "11.66.0", + "resolved": "https://registry.npmjs.org/contentful-management/-/contentful-management-11.66.0.tgz", + "integrity": "sha512-rMI8LnNljyOBnREIT9V5MDLtxlPctO7dYwIszNZuHdBvd5C10CM8apglCrm87nFTuRGpbJ0q+y7cv/c8IQyfZw==", + "license": "MIT", + "dependencies": { + "@contentful/rich-text-types": "^16.6.1", + "axios": "^1.12.2", + "contentful-sdk-core": "^9.0.1", + "fast-copy": "^3.0.0", + "globals": "^15.15.0" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/contentful-export/node_modules/emoji-regex": { "version": "10.5.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.5.0.tgz", @@ -7304,6 +7344,22 @@ "node": ">=18" } }, + "node_modules/contentful-import/node_modules/contentful-management": { + "version": "11.66.0", + "resolved": "https://registry.npmjs.org/contentful-management/-/contentful-management-11.66.0.tgz", + "integrity": "sha512-rMI8LnNljyOBnREIT9V5MDLtxlPctO7dYwIszNZuHdBvd5C10CM8apglCrm87nFTuRGpbJ0q+y7cv/c8IQyfZw==", + "license": "MIT", + "dependencies": { + "@contentful/rich-text-types": "^16.6.1", + "axios": "^1.12.2", + "contentful-sdk-core": "^9.0.1", + "fast-copy": "^3.0.0", + "globals": "^15.15.0" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/contentful-import/node_modules/date-fns": { "version": "2.30.0", "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", @@ -7371,29 +7427,30 @@ } }, "node_modules/contentful-management": { - "version": "11.62.1", - "resolved": "https://registry.npmjs.org/contentful-management/-/contentful-management-11.62.1.tgz", - "integrity": "sha512-E7WctyR/POVntaacPpY965JljHbthOqtIv9oOTHPKd9UMoAgyogR+hgiB2GLswUxFnSumVVDh3VoG/e2/79aFg==", + "version": "12.0.0-new-beta.9", + "resolved": "https://registry.npmjs.org/contentful-management/-/contentful-management-12.0.0-new-beta.9.tgz", + "integrity": "sha512-OetW3IZWYqwP2rCRke95QSyCQtRyP5a/39No7w6BIfbehnLNrpoZ1z2Usf/WqwasuNhiIFOM5R14Ef7TfD0ABA==", "license": "MIT", "dependencies": { "@contentful/rich-text-types": "^16.6.1", "axios": "^1.12.2", - "contentful-sdk-core": "^9.0.1", + "contentful-sdk-core": "^9.4.0-add-cjs-build.5", "fast-copy": "^3.0.0", - "globals": "^15.15.0" + "globals": "^15.15.0", + "process": "^0.11.10" }, "engines": { - "node": ">=18" + "node": ">=20" } }, "node_modules/contentful-management/node_modules/contentful-sdk-core": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/contentful-sdk-core/-/contentful-sdk-core-9.0.1.tgz", - "integrity": "sha512-Ao/5Y74ERPn6kjzb/8okYPuQJnikMtR+dnv0plLw8IvPomwXonLq3qom0rLSyo5KuvQkBMa9AApy1izunxW4mw==", + "version": "9.4.0-add-cjs-build.5", + "resolved": "https://registry.npmjs.org/contentful-sdk-core/-/contentful-sdk-core-9.4.0-add-cjs-build.5.tgz", + "integrity": "sha512-2YRUSz8hvVuEpbvr9lp+M6TNuQt6farjqnEoKtIYGQzpJU2B/dxinSZybzwQJc03V+uzSy8DnJwVjzvOuSV8Cg==", + "license": "MIT", "dependencies": { "fast-copy": "^3.0.2", "lodash": "^4.17.21", - "p-throttle": "^6.1.0", "process": "^0.11.10", "qs": "^6.12.3" }, @@ -7404,29 +7461,6 @@ "@rollup/rollup-linux-x64-gnu": "^4.18.0" } }, - "node_modules/contentful-management/node_modules/globals": { - "version": "15.15.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", - "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/contentful-management/node_modules/p-throttle": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/p-throttle/-/p-throttle-6.2.0.tgz", - "integrity": "sha512-NCKkOVj6PZa6NiTmfvGilDdf6vO1rFCD3KDnkHko8dTOtkpk4cSR/VTAhhLMG9aiQ7/A9HYgEDNmxzf6hxzR3g==", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/contentful-migration": { "version": "4.31.5", "resolved": "https://registry.npmjs.org/contentful-migration/-/contentful-migration-4.31.5.tgz", @@ -7487,6 +7521,22 @@ "wrap-ansi": "^6.2.0" } }, + "node_modules/contentful-migration/node_modules/contentful-management": { + "version": "11.66.0", + "resolved": "https://registry.npmjs.org/contentful-management/-/contentful-management-11.66.0.tgz", + "integrity": "sha512-rMI8LnNljyOBnREIT9V5MDLtxlPctO7dYwIszNZuHdBvd5C10CM8apglCrm87nFTuRGpbJ0q+y7cv/c8IQyfZw==", + "license": "MIT", + "dependencies": { + "@contentful/rich-text-types": "^16.6.1", + "axios": "^1.12.2", + "contentful-sdk-core": "^9.0.1", + "fast-copy": "^3.0.0", + "globals": "^15.15.0" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/contentful-migration/node_modules/find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", @@ -7624,31 +7674,9 @@ "license": "MIT" }, "node_modules/contentful-sdk-core": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/contentful-sdk-core/-/contentful-sdk-core-8.3.2.tgz", - "integrity": "sha512-L2LNWRXb1/5RLpLemCoP2Lzz6211xyE63GXh2nVXekvM4Dnswo+9N2D6JmWTne9zq89Izo88vOGAzzIAxb4Ukw==", - "dev": true, - "dependencies": { - "fast-copy": "^2.1.7", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", - "p-throttle": "^4.1.1", - "qs": "^6.11.2" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/contentful-sdk-core/node_modules/fast-copy": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/fast-copy/-/fast-copy-2.1.7.tgz", - "integrity": "sha512-ozrGwyuCTAy7YgFCua8rmqmytECYk/JYAMXcswOcm0qvGoE3tPb7ivBeIHTOK2DiapBhDZgacIhzhQIKU5TCfA==", - "dev": true - }, - "node_modules/contentful/node_modules/contentful-sdk-core": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/contentful-sdk-core/-/contentful-sdk-core-9.2.0.tgz", - "integrity": "sha512-cUvHbC2u8ouJHhG3tofQhUc0FAmM/QBcalYjiczMtFKrR77BW+eSPcPg+A9DQlhIP0UGcQ/knXxoJpBvrERXTA==", + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/contentful-sdk-core/-/contentful-sdk-core-9.2.1.tgz", + "integrity": "sha512-Y+Qz2tGYE2ia6o42R8DG4uFSMSLJ6qfAbKQLU6p2+KxsqvbK1Fg60wKVKF+FHMShuCnlg2EwToOvxVsM2N+BrQ==", "license": "MIT", "dependencies": { "fast-copy": "^3.0.2", @@ -7664,7 +7692,7 @@ "@rollup/rollup-linux-x64-gnu": "^4.18.0" } }, - "node_modules/contentful/node_modules/p-throttle": { + "node_modules/contentful-sdk-core/node_modules/p-throttle": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/p-throttle/-/p-throttle-6.2.0.tgz", "integrity": "sha512-NCKkOVj6PZa6NiTmfvGilDdf6vO1rFCD3KDnkHko8dTOtkpk4cSR/VTAhhLMG9aiQ7/A9HYgEDNmxzf6hxzR3g==", @@ -10370,6 +10398,18 @@ "which": "bin/which" } }, + "node_modules/globals": { + "version": "15.15.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", + "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/globalthis": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", diff --git a/package.json b/package.json index 43749bd01..e33a2a4bb 100644 --- a/package.json +++ b/package.json @@ -14,12 +14,12 @@ "license": "MIT", "scripts": { "build:standalone": "npm run tsc && pkg .", - "build:package": "npm run build:standalone && script/package", + "build:package": "npm run postinstall && npm run build:standalone && script/package", "lint": "eslint bin lib test", "test": "npm run test:coverage", "test:coverage": "nyc npm run test:unit", "test:html-coverage": "nyc --reporter=html npm run test:unit", - "test:unit": "JEST_SUITE_NAME=\"Unit Tests\" JEST_JUNIT_OUTPUT_NAME=\"unit-tests.xml\" jest --runInBand test/unit/** --verbose", + "test:unit": "npm run postinstall && JEST_SUITE_NAME=\"Unit Tests\" JEST_JUNIT_OUTPUT_NAME=\"unit-tests.xml\" jest --runInBand test/unit/** --verbose", "test:unit:watch": "jest test/unit/** --verbose --watch", "tsc": "tsc", "tsc:watch": "tsc --watch", @@ -94,7 +94,7 @@ "contentful-collection": "^0.0.4", "contentful-export": "^7.21.78", "contentful-import": "9.4.127", - "contentful-management": "^11.39.0", + "contentful-management": "^12.0.0-new-beta.9", "contentful-migration": "^4.21.0", "emojic": "^1.1.11", "execa": "^5.0.0",