Skip to content

Version Packages - #944

Merged
dogayuksel merged 1 commit into
mainfrom
changeset-release/main
Aug 14, 2025
Merged

dogayuksel merged 1 commit into
mainfrom
changeset-release/main

Conversation

@ct-changesets

@ct-changesets ct-changesets Bot commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@commercetools/composable-commerce-test-data@13.4.0

Minor Changes

  • #942 89a1d1d Thanks @CarlosCortizasCT! - We're introducing a new test data model named ImageDimensions which can be consumed from the @commercetools/composable-commerce-test-data/product entry point.

    This is how it can be used:

    import {
      ImageDimensionsGraphql,
      ImageDimensionsRest,
      ImageDimensionsDraftGraphql,
      ImageDimensionsDraftRest,
    } from '@commercetools/composable-commerce-test-data/product';
    
    // Creating test data models
    const graphqlModel = ImageDimensionsGraphql.random()
      .type(CartDiscountTargetGraphql.constants.targetTypes.lineItems)
      .build();
    const restModel = ImageDimensionsRest.random()
      .type(CartDiscountTargetGraphql.constants.targetTypes.shipping)
      .build();
    
    // There are also some presets to generate test data models with
    // some specific sizes
    const thumbImageDimensionsGraphql =
      ImageDimensionsGraphql.presets.withThumbSize();
    const largeImageDimensionsRest = ImageDimensionsRest.presets.withLargeSize();
  • #945 888ba63 Thanks @dogayuksel! - We're introducing a new model named QuotesListView, which can be consumed from the @commercetools/composable-commerce-test-data/my-view entry point.

    There's only a GraphQL version for this model as it only exists in the MC Settings service which only exposes a GraphQL API.

    This is how the new model could be used:

    import {
      QuotesListViewGraphql,
    } from '@commercetools/composable-commerce-test-data/my-view';
    
    const quotesListView = QuotesListViewGraphql.random().build();
    

Patch Changes

  • #943 96484ad Thanks @CarlosCortizasCT! - We've migrated the Image model to the new implementation patterns.

    This change does not have any impact on consumers, however the Image model is now deprecated and you're expected to start using the ImageGraphql or ImageRest models instead depending of the type of API you're mocking.

    import {
      ImageGraphql,
      ImageRest,
    } from '@commercetools/composable-commerce-test-data/product';
    
    const graphqlImage = ImageGraphql.random().build();
    const restImage = ImageRest.random().build();

@ct-changesets
ct-changesets Bot force-pushed the changeset-release/main branch 2 times, most recently from f9df82a to 7754dd1 Compare August 7, 2025 08:30
@ct-changesets
ct-changesets Bot force-pushed the changeset-release/main branch from 7754dd1 to 770a149 Compare August 14, 2025 08:44
@dogayuksel
dogayuksel merged commit 6d33d7f into main Aug 14, 2025
4 checks passed
@dogayuksel
dogayuksel deleted the changeset-release/main branch August 14, 2025 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant