@commercetools/sync-actions 7.0.0-rc.2 → 7.1.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.
Files changed (36) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -1
  3. package/dist/{sync-actions.cjs.js → commercetools-sync-actions.cjs.dev.js} +323 -1786
  4. package/dist/commercetools-sync-actions.cjs.js +7 -0
  5. package/dist/commercetools-sync-actions.cjs.prod.js +3747 -0
  6. package/dist/{sync-actions.es.js → commercetools-sync-actions.esm.js} +227 -1723
  7. package/package.json +16 -11
  8. package/dist/sync-actions.umd.js +0 -5207
  9. package/dist/sync-actions.umd.min.js +0 -1
  10. package/lib/cart-discounts-actions.js +0 -31
  11. package/lib/cart-discounts.js +0 -70
  12. package/lib/categories.js +0 -106
  13. package/lib/category-actions.js +0 -117
  14. package/lib/channels.js +0 -0
  15. package/lib/customer-actions.js +0 -125
  16. package/lib/customer-group-actions.js +0 -23
  17. package/lib/customer-group.js +0 -70
  18. package/lib/customers.js +0 -95
  19. package/lib/discount-codes-actions.js +0 -31
  20. package/lib/discount-codes.js +0 -80
  21. package/lib/index.js +0 -90
  22. package/lib/inventories.js +0 -89
  23. package/lib/inventory-actions.js +0 -42
  24. package/lib/order-actions.js +0 -71
  25. package/lib/orders.js +0 -89
  26. package/lib/product-actions.js +0 -779
  27. package/lib/product-discounts-actions.js +0 -27
  28. package/lib/product-discounts.js +0 -71
  29. package/lib/products.js +0 -208
  30. package/lib/utils/clone.js +0 -9
  31. package/lib/utils/common-actions.js +0 -157
  32. package/lib/utils/create-build-actions.js +0 -74
  33. package/lib/utils/create-build-array-actions.js +0 -146
  34. package/lib/utils/create-map-action-group.js +0 -35
  35. package/lib/utils/diffpatcher.js +0 -93
  36. package/lib/utils/find-matching-pairs.js +0 -67
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "node": ">=18"
7
7
  },
8
8
  "name": "@commercetools/sync-actions",
9
- "version": "7.0.0-rc.2",
9
+ "version": "7.1.0",
10
10
  "description": "Build API update actions for the commercetools platform.",
11
11
  "keywords": [
12
12
  "commercetools",
@@ -17,9 +17,15 @@
17
17
  "bugs": "https://github.com/commercetools/nodejs/issues",
18
18
  "license": "MIT",
19
19
  "author": "Nicola Molinari <nicola.molinari@commercetools.com> (https://github.com/emmenko)",
20
- "main": "dist/sync-actions.cjs.js",
21
- "module": "dist/sync-actions.es.js",
22
- "browser": "dist/sync-actions.umd.js",
20
+ "main": "dist/commercetools-sync-actions.cjs.js",
21
+ "module": "dist/commercetools-sync-actions.esm.js",
22
+ "umd:min": "dist/commercetools-sync-actions.umd.js",
23
+ "preconstruct": {
24
+ "entrypoints": [
25
+ "./index.js"
26
+ ],
27
+ "umdName": "commercetoolsSyncActions"
28
+ },
23
29
  "repository": {
24
30
  "type": "git",
25
31
  "url": "https://github.com/commercetools/nodejs.git"
@@ -28,14 +34,9 @@
28
34
  "dist",
29
35
  "lib"
30
36
  ],
31
- "scripts": {
32
- "prebuild": "rimraf dist/**",
33
- "build": "yarn build:bundles",
34
- "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -n CommercetoolsSyncActions -i ./src/index.js"
35
- },
36
37
  "dependencies": {
37
38
  "fast-equals": "^2.0.0",
38
- "jsondiffpatch": "0.6.0",
39
+ "jsondiffpatch": "0.7.3",
39
40
  "lodash.flatten": "^4.4.0",
40
41
  "lodash.foreach": "^4.5.0",
41
42
  "lodash.intersection": "^4.4.0",
@@ -45,5 +46,9 @@
45
46
  "lodash.sortby": "^4.7.0",
46
47
  "lodash.uniqwith": "^4.5.0",
47
48
  "lodash.without": "^4.4.0"
49
+ },
50
+ "scripts": {
51
+ "prebuild": "rimraf dist/**",
52
+ "build": "exit 0;"
48
53
  }
49
- }
54
+ }