Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions .changeset/tender-coins-wish.md

This file was deleted.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
"description": "Modules to generate test data for commercetools APIs",
"private": true,
"preconstruct": {
"packages": [
"generators",
"standalone"
]
"packages": ["generators", "standalone"]
},
"scripts": {
"preinstall": "npx only-allow pnpm",
Expand Down
30 changes: 30 additions & 0 deletions standalone/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# @commercetools/composable-commerce-test-data

## 11.0.0

### Major Changes

- [#801](https://github.com/commercetools/test-data/pull/801) [`9d32daa`](https://github.com/commercetools/test-data/commit/9d32daab440394a24832b65423c13dc6ee73bc31) Thanks [@emmenko](https://github.com/emmenko)! - BREAKING: all packages `@commercetools-test-data/*` are considered now deprecated and won't be published anymore.
We now have a single package `@commercetools/composable-commerce-test-data` that contains all the test data models.

The package is configured to be consumed using named entry points to be compatible with the previous individual packages and to help keeping the bundle size for consumers to a minimum.

For example:

```ts
// Before
import { ChannelGraphql } from '@commercetools-test-data/channel';

// After
import { ChannelGraphql } from '@commercetools/composable-commerce-test-data/channel';
```

To facilitate the migration, we provide a codemod script `scripts/transform-imports.mjs` to be executed in your repository that you need to migrate.

You can use the following command:

```
curl -sSL https://raw.githubusercontent.com/commercetools/test-data/main/scripts/transform-imports.mjs | node -
```

Alternatively, copy the script content and create a new script file in your repository. Then execute the script with `node`.
See JSDoc inside the script for more information.

## 10.18.2

### Patch Changes
Expand Down
10 changes: 3 additions & 7 deletions standalone/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{
"name": "@commercetools/composable-commerce-test-data",
"version": "10.18.2",
"version": "11.0.0",
"description": "Data models for commercetools platform APIs",
"repository": {
"type": "git",
"url": "https://github.com/commercetools/test-data.git",
"directory": "presets/all-packages"
},
"keywords": [
"javascript",
"typescript",
"test-data"
],
"keywords": ["javascript", "typescript", "test-data"],
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -135,4 +131,4 @@
"lodash": "^4.17.21",
"omit-deep": "^0.3.0"
}
}
}