@adobe/aio-commerce-lib-app 2.0.0-alpha-20260820115733 → 2.0.0-beta-20260820174436

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 (44) hide show
  1. package/CHANGELOG.md +16 -3
  2. package/dist/cjs/actions/app-config/index.cjs +3 -3
  3. package/dist/cjs/actions/app-config/index.d.cts +1 -1
  4. package/dist/cjs/actions/installation/index.cjs +4 -3
  5. package/dist/cjs/actions/installation/index.d.cts +2 -2
  6. package/dist/cjs/{app-B6NbKRr4.d.cts → app-Cf3EmtUh.d.cts} +320 -32
  7. package/dist/cjs/commands/index.cjs +18 -9
  8. package/dist/cjs/{common-DpEEOegZ.cjs → common-B70f39vI.cjs} +1 -1
  9. package/dist/cjs/config/index.browser.d.cts +1 -1
  10. package/dist/cjs/config/index.node.cjs +3 -3
  11. package/dist/cjs/config/index.node.d.cts +177 -31
  12. package/dist/{es/define-1_BUUPMg.d.mts → cjs/define-B-_oKmCe.d.cts} +1 -1
  13. package/dist/{es/index-vv3xbQdD.d.mts → cjs/index-CkwCGvut.d.cts} +3 -3
  14. package/dist/cjs/index.cjs +1 -1
  15. package/dist/cjs/{index.node-DlL5FTKN.cjs → index.node-CXeIG8SS.cjs} +1 -1
  16. package/dist/cjs/management/index.cjs +1 -1
  17. package/dist/cjs/management/index.d.cts +1 -1
  18. package/dist/cjs/{management-DxcRndEA.cjs → management-BhMdRr8i.cjs} +379 -23
  19. package/dist/cjs/{openapi-Ik9Pxn48.cjs → openapi-DVJUTOXY.cjs} +9 -4
  20. package/dist/cjs/{utils-Dmd7HTsS.cjs → utils-CHfNw_aP.cjs} +51 -0
  21. package/dist/cjs/{validate-JFPMmboE.cjs → validate-Dff0nrqM.cjs} +1 -1
  22. package/dist/cjs/{webhooks-uYZZmgTg.cjs → webhooks-E1KDx3Yu.cjs} +24 -8
  23. package/dist/es/actions/app-config/index.d.mts +1 -1
  24. package/dist/es/actions/app-config/index.mjs +3 -3
  25. package/dist/es/actions/installation/index.d.mts +2 -2
  26. package/dist/es/actions/installation/index.mjs +4 -3
  27. package/dist/es/{app-B6NbKRr4.d.mts → app-Cf3EmtUh.d.mts} +320 -32
  28. package/dist/es/commands/index.mjs +18 -9
  29. package/dist/es/{common-u9f2-ViI.mjs → common-BVG9tiX0.mjs} +1 -1
  30. package/dist/es/config/index.browser.d.mts +1 -1
  31. package/dist/es/config/index.node.d.mts +177 -31
  32. package/dist/es/config/index.node.mjs +3 -3
  33. package/dist/{cjs/define-CnCtE1d2.d.cts → es/define-DSU8Kgu0.d.mts} +1 -1
  34. package/dist/{cjs/index-B5Tr9C3Q.d.cts → es/index-COLnI6Ok.d.mts} +3 -3
  35. package/dist/es/index.mjs +1 -1
  36. package/dist/es/{index.node-Dv96K2iC.mjs → index.node-DRTF5Hue.mjs} +1 -1
  37. package/dist/es/management/index.d.mts +1 -1
  38. package/dist/es/management/index.mjs +1 -1
  39. package/dist/es/{management-DfsRwEPg.mjs → management-BTWQdJNO.mjs} +379 -23
  40. package/dist/es/{openapi-B7RH7ftf.mjs → openapi-D18LT0Wp.mjs} +9 -4
  41. package/dist/es/{utils-Dh2XpzwX.mjs → utils-DgpVB4lT.mjs} +44 -1
  42. package/dist/es/{validate-DIayUTra.mjs → validate-8AXMGEwr.mjs} +1 -1
  43. package/dist/es/{webhooks-DsMMtG05.mjs → webhooks-BQ8kSN2Z.mjs} +24 -8
  44. package/package.json +11 -7
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @adobe/aio-commerce-lib-app
2
2
 
3
- ## 2.0.0-alpha-20260820115733
3
+ ## 2.0.0-beta-20260820174436
4
4
 
5
5
  ### Major Changes
6
6
 
@@ -10,7 +10,13 @@
10
10
 
11
11
  ### Minor Changes
12
12
 
13
- - [#627](https://github.com/adobe/aio-commerce-sdk/pull/627) [`6cfd0f0`](https://github.com/adobe/aio-commerce-sdk/commit/6cfd0f06b2d78f59347acf2e8325c28d9571f225) Thanks [@obarcelonap](https://github.com/obarcelonap)! - Apply webhook configuration changes during upgrades when fields, conditions, headers, or other mutable settings change without changing webhook identity.
13
+ - [#626](https://github.com/adobe/aio-commerce-sdk/pull/626) [`f012ae0`](https://github.com/adobe/aio-commerce-sdk/commit/f012ae0d8eaac5cac314a62de3902fca842bd936) Thanks [@vinayrao2000](https://github.com/vinayrao2000)! - Add Admin UI upgrade reconciliation. The Admin UI step now diffs the installed baseline against the target configuration component-by-component, registering newly added components, removing dropped ones, and unregistering the extension when Admin UI is removed entirely. Registration requires at least one declared component, and ids within `massActions`/`viewButtons` arrays must be unique.
14
+
15
+ - [#627](https://github.com/adobe/aio-commerce-sdk/pull/627) [`e5cbdf1`](https://github.com/adobe/aio-commerce-sdk/commit/e5cbdf14f5bda56430eeeaf495889b8a1a514fe3) Thanks [@obarcelonap](https://github.com/obarcelonap)! - Apply webhook configuration changes during upgrades when fields, conditions, headers, or other mutable settings change without changing webhook identity.
16
+
17
+ - [#634](https://github.com/adobe/aio-commerce-sdk/pull/634) [`f8f13c1`](https://github.com/adobe/aio-commerce-sdk/commit/f8f13c139d449e7fd96afceddeed33ad103cae89) Thanks [@vinayrao2000](https://github.com/vinayrao2000)! - Reconcile configuration changes to existing Admin UI components during an upgrade. The Admin UI step now detects when a component present in both the installed and target versions has a changed configuration (ACL, labels, descriptions, notifications) and refreshes the extension to apply it, instead of leaving the change unapplied.
18
+
19
+ - [#625](https://github.com/adobe/aio-commerce-sdk/pull/625) [`e0852d1`](https://github.com/adobe/aio-commerce-sdk/commit/e0852d11e1b4f7c23a0c0dfd1d41acf984aeba7a) Thanks [@oshmyheliuk](https://github.com/oshmyheliuk)! - Reconcile Commerce event subscription configuration changes during an app upgrade. When an event that exists in both the installed baseline and the target config changes its fields, rules, priority or HIPAA flag, the upgrade now updates the live subscription instead of leaving it stale.
14
20
 
15
21
  - [#624](https://github.com/adobe/aio-commerce-sdk/pull/624) [`4b42092`](https://github.com/adobe/aio-commerce-sdk/commit/4b420929c221a850a4416507bd9bebb8cb6010ec) Thanks [@oshmyheliuk](https://github.com/oshmyheliuk)! - Add upgrade `plan`/`apply` support to the eventing domain. During an app upgrade the Commerce and external event leaves now diff the installed baseline against the target config and converge Adobe I/O Events and Commerce state: adding and removing providers, event metadata, registrations and Commerce subscriptions, and updating registrations whose event set changed.
16
22
 
@@ -28,7 +34,14 @@
28
34
 
29
35
  - [#639](https://github.com/adobe/aio-commerce-sdk/pull/639) [`74b9a3b`](https://github.com/adobe/aio-commerce-sdk/commit/74b9a3b6274215ba2e97fa56a94e737c62e2b8bb) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Ensure CLI commands find the project root before generating files or updating project configuration.
30
36
 
31
- - [#627](https://github.com/adobe/aio-commerce-sdk/pull/627) [`a3a0618`](https://github.com/adobe/aio-commerce-sdk/commit/a3a0618f2dbd5c9d149f8d5be9adf763127266b1) Thanks [@obarcelonap](https://github.com/obarcelonap)! - Prune app-owned Commerce webhooks that are absent from the target configuration during upgrades.
37
+ - [#642](https://github.com/adobe/aio-commerce-sdk/pull/642) [`79dcda0`](https://github.com/adobe/aio-commerce-sdk/commit/79dcda035d322d47d2e19566ae4a20fd6124682b) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Install Node.js type definitions when initializing TypeScript projects.
38
+
39
+ - [#627](https://github.com/adobe/aio-commerce-sdk/pull/627) [`e5cbdf1`](https://github.com/adobe/aio-commerce-sdk/commit/e5cbdf14f5bda56430eeeaf495889b8a1a514fe3) Thanks [@obarcelonap](https://github.com/obarcelonap)! - Reject webhook configurations with unsupported webhook types or HTTP methods.
40
+
41
+ - [#643](https://github.com/adobe/aio-commerce-sdk/pull/643) [`d13ca97`](https://github.com/adobe/aio-commerce-sdk/commit/d13ca977cbe5c683e0515c24350863a46dc52792) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Prune app-owned Commerce webhooks that are absent from the target configuration during upgrades.
42
+ - Updated dependencies [[`f012ae0`](https://github.com/adobe/aio-commerce-sdk/commit/f012ae0d8eaac5cac314a62de3902fca842bd936), [`e0852d1`](https://github.com/adobe/aio-commerce-sdk/commit/e0852d11e1b4f7c23a0c0dfd1d41acf984aeba7a)]:
43
+ - @adobe/aio-commerce-lib-admin-ui@1.1.0-beta-20260820174436
44
+ - @adobe/aio-commerce-lib-events@1.4.0-beta-20260820174436
32
45
 
33
46
  ## 1.10.1
34
47
 
@@ -15,7 +15,7 @@
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
16
  const require_rolldown_runtime = require('../../rolldown-runtime-CDQd2xEI.cjs');
17
17
  const require_environment = require('../../environment-B6533pAY.cjs');
18
- const require_validate = require('../../validate-JFPMmboE.cjs');
18
+ const require_validate = require('../../validate-Dff0nrqM.cjs');
19
19
  const require_router = require('../../router-CxDTb6r1.cjs');
20
20
  let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
21
21
  let valibot = require("valibot");
@@ -29,7 +29,7 @@ let crypto = require("crypto");
29
29
  * Loads the committed OpenAPI spec via dynamic import so it
30
30
  * lands in its own chunk and is not parsed on every cold start.
31
31
  */
32
- const importOpenApi = () => Promise.resolve().then(() => require("../../openapi-Ik9Pxn48.cjs"));
32
+ const importOpenApi = () => Promise.resolve().then(() => require("../../openapi-DVJUTOXY.cjs"));
33
33
  /** Matches component schema `$ref` strings, capturing the schema name. */
34
34
  const SCHEMA_REF_PATTERN = /"#\/components\/schemas\/(\w+)"/g;
35
35
  /**
@@ -80,7 +80,7 @@ function pruneUnusedTags(spec) {
80
80
  * @param domains - The active config domains.
81
81
  */
82
82
  function getOpenApiCacheKey(domains) {
83
- const input = `2.0.0-alpha-20260820115733:${[...domains].sort().join(",")}:3.0.0`;
83
+ const input = `2.0.0-beta-20260820174436:${[...domains].sort().join(",")}:3.0.0`;
84
84
  return (0, crypto.createHash)("sha256").update(input).digest("hex").slice(0, 8);
85
85
  }
86
86
  /** Returns the server URL to be set in the OpenAPI spec, based on the current namespace. */
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
  import "../../index-DWEigxhy.cjs";
16
- import { n as CommerceAppConfig } from "../../app-B6NbKRr4.cjs";
16
+ import { n as CommerceAppConfig } from "../../app-Cf3EmtUh.cjs";
17
17
  import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
18
18
  //#region source/actions/app-config/router.d.ts
19
19
  /** The arguments required to create the runtime action for the app-config action. */
@@ -16,9 +16,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
16
  const require_rolldown_runtime = require('../../rolldown-runtime-CDQd2xEI.cjs');
17
17
  const require_repository = require('../../repository-CbceYZqc.cjs');
18
18
  const require_schemas = require('../../schemas-3e49M8zz.cjs');
19
- const require_validate = require('../../validate-JFPMmboE.cjs');
20
- const require_common = require('../../common-DpEEOegZ.cjs');
21
- const require_management = require('../../management-DxcRndEA.cjs');
19
+ const require_validate = require('../../validate-Dff0nrqM.cjs');
20
+ const require_common = require('../../common-B70f39vI.cjs');
21
+ const require_management = require('../../management-BhMdRr8i.cjs');
22
22
  const require_router = require('../../router-CxDTb6r1.cjs');
23
23
  let valibot = require("valibot");
24
24
  valibot = require_rolldown_runtime.__toESM(valibot, 1);
@@ -712,6 +712,7 @@ async function startUpgrade({ appConfig, baseline, body, logger, rawParams }) {
712
712
  message: "The app is not installed.",
713
713
  reason: "not-installed"
714
714
  } });
715
+ if (baseline.config.metadata.id !== appConfig.metadata.id) return (0, _adobe_aio_commerce_lib_core_responses.conflict)({ body: { message: `The application ID (metadata.id) cannot be changed during an upgrade. Expected "${baseline.config.metadata.id}", received "${appConfig.metadata.id}".` } });
715
716
  if (baseline.config.metadata.version === appConfig.metadata.version) return (0, _adobe_aio_commerce_lib_core_responses.conflict)({ body: {
716
717
  message: "The app is already on the target version.",
717
718
  reason: "already-current"
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
  import "../../index-DWEigxhy.cjs";
16
- import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-B6NbKRr4.cjs";
17
- import { J as LifecycleContext } from "../../index-B5Tr9C3Q.cjs";
16
+ import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-Cf3EmtUh.cjs";
17
+ import { J as LifecycleContext } from "../../index-CkwCGvut.cjs";
18
18
  import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
19
19
  import "@adobe/aio-commerce-lib-core/responses";
20
20
  //#region source/actions/installation/common.d.ts