@commercetools/history-sdk 5.0.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @commercetools/history-sdk
2
2
 
3
+ ## 5.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#941](https://github.com/commercetools/commercetools-sdk-typescript/pull/941) [`745f2c0`](https://github.com/commercetools/commercetools-sdk-typescript/commit/745f2c06e2cd0b32486e09ab53fdde43c31ef6d3) Thanks [@ct-sdks](https://github.com/apps/ct-sdks)! - **History changes**
8
+
9
+ <details>
10
+ <summary>Removed Enum(s)</summary>
11
+
12
+ - :warning: removed enum `setAsssetKey` from type `UpdateType`
13
+ </details>
14
+
15
+ <details>
16
+ <summary>Added Enum(s)</summary>
17
+
18
+ - added enum `setAssetKey` to type `UpdateType`
19
+ </details>
20
+
21
+ - [#936](https://github.com/commercetools/commercetools-sdk-typescript/pull/936) [`f702837`](https://github.com/commercetools/commercetools-sdk-typescript/commit/f702837c3ec7fde11641c94abb5ed4dab138acf9) Thanks [@barbara79](https://github.com/barbara79)! - updated documentation with client v3
22
+
23
+ ## 5.1.0
24
+
25
+ ### Minor Changes
26
+
27
+ - [#907](https://github.com/commercetools/commercetools-sdk-typescript/pull/907) [`c5344e3`](https://github.com/commercetools/commercetools-sdk-typescript/commit/c5344e33e0cb7583f8235c1fb0cfa22393e12a42) Thanks [@ct-sdks](https://github.com/apps/ct-sdks)! - **History changes**
28
+
29
+ <details>
30
+ <summary>Required Property(s)</summary>
31
+
32
+ - :warning: changed property `triggerPattern` of type `ChangeTargetPatternChangeValue` to be required
33
+ </details>
34
+
3
35
  ## 5.0.0
4
36
 
5
37
  ### Major Changes
package/README.md CHANGED
@@ -5,20 +5,20 @@
5
5
  ### Browser environment
6
6
 
7
7
  ```html
8
- <script src="https://unpkg.com/@commercetools/sdk-client-v2@latest/dist/commercetools-sdk-client-v2.umd.js"></script>
8
+ <script src="https://unpkg.com/@commercetools/ts-client@latest/dist/commercetools-sdk-client-v3.umd.js"></script>
9
9
  <script src="https://unpkg.com/@commercetools/history-sdk@latest/dist/commercetools-history-sdk.umd.js"></script>
10
10
  ```
11
11
 
12
12
  ```html
13
13
  <script>
14
- // global: @commercetools/sdk-client-v2
14
+ // global: @commercetools/ts-client
15
15
  // global: @commercetools/history-sdk
16
16
  ;(function () {
17
- // We can now access the sdk-client-v2 and history-sdk object as:
18
- // const { ClientBuilder } = this['@commercetools/sdk-client-v2']
17
+ // We can now access the ts-client and history-sdk object as:
18
+ // const { ClientBuilder } = this['@commercetools/ts-client']
19
19
  // const { createApiBuilderFromCtpClient } = this['@commercetools/history-sdk']
20
20
  // or
21
- // const { ClientBuilder } = window['@commercetools/sdk-client-v2']
21
+ // const { ClientBuilder } = window['@commercetools/ts-client']
22
22
  // const { createApiBuilderFromCtpClient } = window['@commercetools/history-sdk']
23
23
  })()
24
24
  </script>
@@ -27,7 +27,7 @@
27
27
  ### Node environment
28
28
 
29
29
  ```bash
30
- npm install --save @commercetools/sdk-client-v2
30
+ npm install --save @commercetools/ts-client
31
31
  npm install --save @commercetools/history-sdk
32
32
  ```
33
33
 
@@ -36,7 +36,7 @@ const {
36
36
  ClientBuilder,
37
37
  createAuthForClientCredentialsFlow,
38
38
  createHttpClient,
39
- } = require('@commercetools/sdk-client-v2')
39
+ } = require('@commercetools/ts-client')
40
40
  const { createApiBuilderFromCtpClient } = require('@commercetools/history-sdk')
41
41
 
42
42
  const projectKey = 'mc-project-key'
@@ -107,12 +107,12 @@ apiRoot
107
107
  })
108
108
 
109
109
  // -----------------------------------------------------------------------
110
- // The sdk-client-v2 also has support for the old syntax
110
+ // The ts-client also has support for the old syntax
111
111
  import {
112
112
  createClient,
113
113
  createHttpClient,
114
114
  createAuthForClientCredentialsFlow,
115
- } from '@commercetools/sdk-client-v2'
115
+ } from '@commercetools/ts-client'
116
116
  import { createApiBuilderFromCtpClient } from '@commercetools/history-sdk'
117
117
 
118
118
  const projectKey = 'some_project_key'