From a0fbdf201232d59c44ce74a853928b63ac47cce8 Mon Sep 17 00:00:00 2001 From: harshitha-cstk Date: Tue, 18 Aug 2026 11:41:11 +0530 Subject: [PATCH 1/2] fix(import): clarify global field reference-field warning message Reword the warning logged when a referenced content type is not yet imported so it no longer implies permanent data loss. The reference is deferred and restored later in the same run, so the previous "Removing the field from schema..." wording was misleading. DX-10153 Co-Authored-By: Claude Opus 4.8 --- packages/contentstack-import/src/utils/content-type-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contentstack-import/src/utils/content-type-helper.ts b/packages/contentstack-import/src/utils/content-type-helper.ts index 1599e106f..954cc0a8b 100644 --- a/packages/contentstack-import/src/utils/content-type-helper.ts +++ b/packages/contentstack-import/src/utils/content-type-helper.ts @@ -132,7 +132,7 @@ export const removeReferenceFields = async function ( } catch (error) { // Else warn and modify the schema object. isContentTypeError = true; - log.warn(`Content type ${schema[i].reference_to[j]} does not exist. Removing the field from schema...`); + log.warn(`Content type ${schema[i].reference_to[j]} is not imported yet; its reference will be restored once it is imported.`); } } From a816e310b64204d46f4a8968f9eb57751b2c4784 Mon Sep 17 00:00:00 2001 From: harshitha-cstk Date: Mon, 24 Aug 2026 11:01:11 +0530 Subject: [PATCH 2/2] version bump --- packages/contentstack-import/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contentstack-import/package.json b/packages/contentstack-import/package.json index 37ecb21d7..0ebc96ef2 100644 --- a/packages/contentstack-import/package.json +++ b/packages/contentstack-import/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-import", "description": "Contentstack CLI plugin to import content into stack", - "version": "2.0.0", + "version": "2.0.1", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli-plugins/issues", "dependencies": {