@adobe/aio-commerce-lib-app 1.10.0-beta-20260805105734 → 1.10.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 +2 -6
- package/dist/cjs/actions/app-config/index.cjs +2 -2
- package/dist/cjs/commands/index.cjs +1 -1
- package/dist/cjs/{openapi-BwlVkeez.cjs → openapi-C_y_Y5YX.cjs} +1 -1
- package/dist/es/actions/app-config/index.mjs +2 -2
- package/dist/es/commands/index.mjs +1 -1
- package/dist/es/{openapi-QEV7W6DH.mjs → openapi-Brn9plmt.mjs} +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
# @adobe/aio-commerce-lib-app
|
|
2
2
|
|
|
3
|
-
## 1.10.0
|
|
4
|
-
### Minor Changes
|
|
5
|
-
|
|
3
|
+
## 1.10.0
|
|
6
4
|
|
|
5
|
+
### Minor Changes
|
|
7
6
|
|
|
8
7
|
- [#606](https://github.com/adobe/aio-commerce-sdk/pull/606) [`a18a250`](https://github.com/adobe/aio-commerce-sdk/commit/a18a2506b9d6fafb0b96ca8b7960208e51546dc3) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Custom installation step scripts can now be TypeScript (`.ts`) files, not just JavaScript.
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
9
|
- [#606](https://github.com/adobe/aio-commerce-sdk/pull/606) [`a18a250`](https://github.com/adobe/aio-commerce-sdk/commit/a18a2506b9d6fafb0b96ca8b7960208e51546dc3) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Add TypeScript project scaffolding and support TypeScript Commerce configuration in generated Runtime actions.
|
|
13
10
|
|
|
14
|
-
|
|
15
11
|
### Patch Changes
|
|
16
12
|
|
|
17
13
|
- Updated dependencies []:
|
|
@@ -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-C_y_Y5YX.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.0
|
|
83
|
+
const input = `1.10.0:${[...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. */
|
|
@@ -1789,7 +1789,7 @@ async function ensureInstallYaml(domains, cwd = process.cwd()) {
|
|
|
1789
1789
|
|
|
1790
1790
|
//#endregion
|
|
1791
1791
|
//#region source/commands/init/main.ts
|
|
1792
|
-
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@1.10.0
|
|
1792
|
+
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@1.10.0`];
|
|
1793
1793
|
/** Initialize the project */
|
|
1794
1794
|
async function run(flags, extraOptions) {
|
|
1795
1795
|
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-Brn9plmt.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.0
|
|
80
|
+
const input = `1.10.0:${[...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. */
|
|
@@ -1782,7 +1782,7 @@ async function ensureInstallYaml(domains, cwd = process.cwd()) {
|
|
|
1782
1782
|
|
|
1783
1783
|
//#endregion
|
|
1784
1784
|
//#region source/commands/init/main.ts
|
|
1785
|
-
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@1.10.0
|
|
1785
|
+
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@1.10.0`];
|
|
1786
1786
|
/** Initialize the project */
|
|
1787
1787
|
async function run(flags, extraOptions) {
|
|
1788
1788
|
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.0
|
|
5
|
+
"version": "1.10.0",
|
|
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-api": "1.3.0",
|
|
124
|
-
"@adobe/aio-commerce-lib-auth": "1.1.2",
|
|
125
123
|
"@adobe/aio-commerce-lib-admin-ui": "1.0.0",
|
|
124
|
+
"@adobe/aio-commerce-lib-api": "1.3.0",
|
|
126
125
|
"@adobe/aio-commerce-lib-config": "1.6.0",
|
|
126
|
+
"@adobe/aio-commerce-lib-auth": "1.1.2",
|
|
127
127
|
"@adobe/aio-commerce-lib-core": "1.2.0",
|
|
128
|
-
"@adobe/aio-commerce-lib-
|
|
129
|
-
"@adobe/aio-commerce-lib-
|
|
128
|
+
"@adobe/aio-commerce-lib-events": "1.3.0",
|
|
129
|
+
"@adobe/aio-commerce-lib-webhooks": "1.2.0"
|
|
130
130
|
},
|
|
131
131
|
"peerDependencies": {
|
|
132
132
|
"@tsconfig/bases": "^1.0.26",
|
|
@@ -155,11 +155,11 @@
|
|
|
155
155
|
"typescript": "^6.0.0",
|
|
156
156
|
"@aio-commerce-sdk/common-utils": "0.2.6",
|
|
157
157
|
"@aio-commerce-sdk/config-tsdown": "1.0.1",
|
|
158
|
-
"@aio-commerce-sdk/config-typescript": "1.0.0",
|
|
159
|
-
"@aio-commerce-sdk/config-vitest": "1.0.0",
|
|
160
158
|
"@aio-commerce-sdk/config-typedoc": "1.0.0",
|
|
159
|
+
"@aio-commerce-sdk/config-vitest": "1.0.0",
|
|
161
160
|
"@aio-commerce-sdk/scripting-utils": "0.3.4",
|
|
162
|
-
"@aio-commerce-sdk/
|
|
161
|
+
"@aio-commerce-sdk/config-typescript": "1.0.0",
|
|
162
|
+
"@aio-commerce-sdk/scripts": "0.1.1"
|
|
163
163
|
},
|
|
164
164
|
"sideEffects": false,
|
|
165
165
|
"scripts": {
|