Describe the bug
Version 0.1.312 introduced an undocumented breaking change where SageMaker deployment constructs moved from barrel exports to namespaced exports.
Breaking Change:
// v0.1.311 and earlier (barrel exports)
export * from './patterns/gen-ai/aws-model-deployment-sagemaker';
// v0.1.312+ (namespaced exports)
export * as sagemaker_deployment from './patterns/gen-ai/aws-model-deployment-sagemaker';
Affected Modules
│ sagemaker-jumpstart-fm-endpoint │ 0.1.311 │ Migrate imports, unpin │
│ sagemaker-hugging-face-endpoint │ 0.1.74 │ Migrate imports, upgrade │
Migration Required
Update imports from direct to namespaced:
// Before
import { JumpStartModel, SageMakerInstanceType, JumpStartSageMakerEndpoint } from "@cdklabs/generative-ai-cdk-constructs";
// After
import { sagemaker_deployment } from "@cdklabs/generative-ai-cdk-constructs";
const { JumpStartModel, SageMakerInstanceType, JumpStartSageMakerEndpoint } = sagemaker_deployment;
Describe the bug
Version 0.1.312 introduced an undocumented breaking change where SageMaker deployment constructs moved from barrel exports to namespaced exports.
Breaking Change:
// v0.1.311 and earlier (barrel exports)
export * from './patterns/gen-ai/aws-model-deployment-sagemaker';
// v0.1.312+ (namespaced exports)
export * as sagemaker_deployment from './patterns/gen-ai/aws-model-deployment-sagemaker';
Affected Modules
│ sagemaker-jumpstart-fm-endpoint │ 0.1.311 │ Migrate imports, unpin │
│ sagemaker-hugging-face-endpoint │ 0.1.74 │ Migrate imports, upgrade │
Migration Required
Update imports from direct to namespaced:
// Before
import { JumpStartModel, SageMakerInstanceType, JumpStartSageMakerEndpoint } from "@cdklabs/generative-ai-cdk-constructs";
// After
import { sagemaker_deployment } from "@cdklabs/generative-ai-cdk-constructs";
const { JumpStartModel, SageMakerInstanceType, JumpStartSageMakerEndpoint } = sagemaker_deployment;