@adobe/aio-commerce-lib-app 1.10.1-alpha-20260819113253 → 1.10.1
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 +10 -11
- package/dist/cjs/actions/app-config/index.cjs +2 -2
- package/dist/cjs/commands/index.cjs +3 -3
- package/dist/cjs/{openapi-C_y_Y5YX.cjs → openapi-4EYZryTG.cjs} +1 -1
- package/dist/es/actions/app-config/index.mjs +2 -2
- package/dist/es/commands/index.mjs +3 -3
- package/dist/es/{openapi-Brn9plmt.mjs → openapi-B_fZbtfP.mjs} +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
# @adobe/aio-commerce-lib-app
|
|
2
2
|
|
|
3
|
-
## 1.10.1
|
|
4
|
-
### Patch Changes
|
|
5
|
-
|
|
3
|
+
## 1.10.1
|
|
6
4
|
|
|
5
|
+
### Patch Changes
|
|
7
6
|
|
|
8
|
-
- [#635](https://github.com/adobe/aio-commerce-sdk/pull/635) [`
|
|
7
|
+
- [#635](https://github.com/adobe/aio-commerce-sdk/pull/635) [`71bf666`](https://github.com/adobe/aio-commerce-sdk/commit/71bf66656ef1fc6dd272a0821e8b00aab5dc197e) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - The app build hooks now set `NODE_ENV` in the project `.env` so the web bundler builds for the correct environment (production on build, development on dev and run).
|
|
9
8
|
|
|
10
|
-
- Updated dependencies [[`
|
|
11
|
-
- @adobe/aio-commerce-lib-admin-ui@1.0.1
|
|
12
|
-
- @adobe/aio-commerce-lib-auth@1.1.3
|
|
13
|
-
- @adobe/aio-commerce-lib-api@1.3.1
|
|
14
|
-
- @adobe/aio-commerce-lib-config@1.6.1
|
|
15
|
-
- @adobe/aio-commerce-lib-events@1.3.1
|
|
16
|
-
- @adobe/aio-commerce-lib-webhooks@1.2.1
|
|
9
|
+
- Updated dependencies [[`71bf666`](https://github.com/adobe/aio-commerce-sdk/commit/71bf66656ef1fc6dd272a0821e8b00aab5dc197e), [`71bf666`](https://github.com/adobe/aio-commerce-sdk/commit/71bf66656ef1fc6dd272a0821e8b00aab5dc197e)]:
|
|
10
|
+
- @adobe/aio-commerce-lib-admin-ui@1.0.1
|
|
11
|
+
- @adobe/aio-commerce-lib-auth@1.1.3
|
|
12
|
+
- @adobe/aio-commerce-lib-api@1.3.1
|
|
13
|
+
- @adobe/aio-commerce-lib-config@1.6.1
|
|
14
|
+
- @adobe/aio-commerce-lib-events@1.3.1
|
|
15
|
+
- @adobe/aio-commerce-lib-webhooks@1.2.1
|
|
17
16
|
|
|
18
17
|
## 1.10.0
|
|
19
18
|
|
|
@@ -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-
|
|
32
|
+
const importOpenApi = () => Promise.resolve().then(() => require("../../openapi-4EYZryTG.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 = `1.10.1
|
|
83
|
+
const input = `1.10.1:${[...domains].sort().join(",")}:2.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. */
|
|
@@ -357,7 +357,7 @@ const LEADING_DOT_SLASH_PATTERN$1 = /^\.\//u;
|
|
|
357
357
|
const WEB_SOURCE_DEPENDENCIES = [
|
|
358
358
|
{
|
|
359
359
|
name: "@adobe/aio-commerce-lib-admin-ui",
|
|
360
|
-
version: "^1.0.1
|
|
360
|
+
version: "^1.0.1"
|
|
361
361
|
},
|
|
362
362
|
{
|
|
363
363
|
name: "react",
|
|
@@ -1827,7 +1827,7 @@ async function ensureAppConfig(domains, cwd = process.cwd()) {
|
|
|
1827
1827
|
*/
|
|
1828
1828
|
function installDependencies(packageManager, domains, cwd = process.cwd()) {
|
|
1829
1829
|
const packages = [];
|
|
1830
|
-
if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.6.1
|
|
1830
|
+
if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.6.1`);
|
|
1831
1831
|
if (packages.length === 0) {
|
|
1832
1832
|
consola.consola.info("No additional domain dependencies to install.");
|
|
1833
1833
|
return;
|
|
@@ -1854,7 +1854,7 @@ async function ensureInstallYaml(domains, cwd = process.cwd()) {
|
|
|
1854
1854
|
|
|
1855
1855
|
//#endregion
|
|
1856
1856
|
//#region source/commands/init/main.ts
|
|
1857
|
-
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@1.10.1
|
|
1857
|
+
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@1.10.1`];
|
|
1858
1858
|
/** Initialize the project */
|
|
1859
1859
|
async function run(flags, extraOptions) {
|
|
1860
1860
|
consola.consola.start("Initializing app...");
|
|
@@ -26,7 +26,7 @@ import { createHash } from "crypto";
|
|
|
26
26
|
* Loads the committed OpenAPI spec via dynamic import so it
|
|
27
27
|
* lands in its own chunk and is not parsed on every cold start.
|
|
28
28
|
*/
|
|
29
|
-
const importOpenApi = () => import("../../openapi-
|
|
29
|
+
const importOpenApi = () => import("../../openapi-B_fZbtfP.mjs");
|
|
30
30
|
/** Matches component schema `$ref` strings, capturing the schema name. */
|
|
31
31
|
const SCHEMA_REF_PATTERN = /"#\/components\/schemas\/(\w+)"/g;
|
|
32
32
|
/**
|
|
@@ -77,7 +77,7 @@ function pruneUnusedTags(spec) {
|
|
|
77
77
|
* @param domains - The active config domains.
|
|
78
78
|
*/
|
|
79
79
|
function getOpenApiCacheKey(domains) {
|
|
80
|
-
const input = `1.10.1
|
|
80
|
+
const input = `1.10.1:${[...domains].sort().join(",")}:2.0.0`;
|
|
81
81
|
return createHash("sha256").update(input).digest("hex").slice(0, 8);
|
|
82
82
|
}
|
|
83
83
|
/** Returns the server URL to be set in the OpenAPI spec, based on the current namespace. */
|
|
@@ -350,7 +350,7 @@ const LEADING_DOT_SLASH_PATTERN$1 = /^\.\//u;
|
|
|
350
350
|
const WEB_SOURCE_DEPENDENCIES = [
|
|
351
351
|
{
|
|
352
352
|
name: "@adobe/aio-commerce-lib-admin-ui",
|
|
353
|
-
version: "^1.0.1
|
|
353
|
+
version: "^1.0.1"
|
|
354
354
|
},
|
|
355
355
|
{
|
|
356
356
|
name: "react",
|
|
@@ -1820,7 +1820,7 @@ async function ensureAppConfig(domains, cwd = process.cwd()) {
|
|
|
1820
1820
|
*/
|
|
1821
1821
|
function installDependencies(packageManager, domains, cwd = process.cwd()) {
|
|
1822
1822
|
const packages = [];
|
|
1823
|
-
if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.6.1
|
|
1823
|
+
if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.6.1`);
|
|
1824
1824
|
if (packages.length === 0) {
|
|
1825
1825
|
consola.info("No additional domain dependencies to install.");
|
|
1826
1826
|
return;
|
|
@@ -1847,7 +1847,7 @@ async function ensureInstallYaml(domains, cwd = process.cwd()) {
|
|
|
1847
1847
|
|
|
1848
1848
|
//#endregion
|
|
1849
1849
|
//#region source/commands/init/main.ts
|
|
1850
|
-
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@1.10.1
|
|
1850
|
+
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@1.10.1`];
|
|
1851
1851
|
/** Initialize the project */
|
|
1852
1852
|
async function run(flags, extraOptions) {
|
|
1853
1853
|
consola.start("Initializing app...");
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@adobe/aio-commerce-lib-app",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"author": "Adobe Inc.",
|
|
5
|
-
"version": "1.10.1
|
|
5
|
+
"version": "1.10.1",
|
|
6
6
|
"private": false,
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=22 <=24"
|
|
@@ -120,13 +120,13 @@
|
|
|
120
120
|
"type-fest": "^5.0.0",
|
|
121
121
|
"valibot": "^1.1.0",
|
|
122
122
|
"yaml": "^2.8.1",
|
|
123
|
-
"@adobe/aio-commerce-lib-admin-ui": "1.0.1
|
|
124
|
-
"@adobe/aio-commerce-lib-api": "1.3.1
|
|
125
|
-
"@adobe/aio-commerce-lib-auth": "1.1.3
|
|
126
|
-
"@adobe/aio-commerce-lib-config": "1.6.1
|
|
123
|
+
"@adobe/aio-commerce-lib-admin-ui": "1.0.1",
|
|
124
|
+
"@adobe/aio-commerce-lib-api": "1.3.1",
|
|
125
|
+
"@adobe/aio-commerce-lib-auth": "1.1.3",
|
|
126
|
+
"@adobe/aio-commerce-lib-config": "1.6.1",
|
|
127
127
|
"@adobe/aio-commerce-lib-core": "1.2.0",
|
|
128
|
-
"@adobe/aio-commerce-lib-events": "1.3.1
|
|
129
|
-
"@adobe/aio-commerce-lib-webhooks": "1.2.1
|
|
128
|
+
"@adobe/aio-commerce-lib-events": "1.3.1",
|
|
129
|
+
"@adobe/aio-commerce-lib-webhooks": "1.2.1"
|
|
130
130
|
},
|
|
131
131
|
"peerDependencies": {
|
|
132
132
|
"@tsconfig/bases": "^1.0.26",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"@aio-commerce-sdk/config-typedoc": "1.0.0",
|
|
159
159
|
"@aio-commerce-sdk/config-typescript": "1.0.0",
|
|
160
160
|
"@aio-commerce-sdk/config-vitest": "1.0.0",
|
|
161
|
-
"@aio-commerce-sdk/scripting-utils": "0.3.5
|
|
161
|
+
"@aio-commerce-sdk/scripting-utils": "0.3.5",
|
|
162
162
|
"@aio-commerce-sdk/scripts": "0.1.1"
|
|
163
163
|
},
|
|
164
164
|
"sideEffects": false,
|