Skip to content

[BUG] @cdklabs/generative-ai-cdk-constructs v0.1.312 Breaking Change: Migrate to Namespaced Imports #388

Description

@weklund

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions