zephyr-edge-contract 0.0.0-canary-20250708173858 → 0.0.0-canary-20250728152440

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/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export type { PublishRequest, StageZeroPublishRequest, PublishTarget, } from './lib/edge-api/publish-request';
1
+ export type { PublishRequest, PublishTarget, StageZeroPublishRequest, } from './lib/edge-api/publish-request';
2
2
  export type { ZeEnvs, ZeUploadBuildStats } from './lib/edge-api/ze-envs-request';
3
3
  export type { ZephyrPluginOptions } from './lib/plugin-options/zephyr-webpack-plugin-options';
4
+ export * as ZeUtils from './lib/promise';
4
5
  export type { Snapshot, SnapshotAsset, SnapshotMetadata } from './lib/snapshot';
5
6
  export { createApplicationUid } from './lib/utils/create-application-uid';
6
7
  export { createSnapshotId, flatCreateSnapshotId } from './lib/utils/create-snapshot-id';
7
- export * as ZeUtils from './lib/promise';
8
8
  export { safe_json_parse } from './lib/utils/safe-json-parse';
9
9
  export type { ZeApplicationList } from './lib/ze-api/app-list';
10
10
  export type { ZeAppVersion, ZeAppVersionResponse } from './lib/ze-api/app-version';
@@ -12,7 +12,8 @@ export type { ConvertedGraph } from './lib/ze-api/converted-graph';
12
12
  export type { LocalPackageJson } from './lib/ze-api/local-package-json';
13
13
  export type { ZephyrBuildStats } from './lib/zephyr-build-stats';
14
14
  export type { Asset, SnapshotUploadRes, Source, UploadableAsset, ZeBuildAsset, ZeBuildAssetsMap, ZeUploadAssetsOptions, } from './lib/zephyr-edge-contract';
15
- export { ZEPHYR_API_ENDPOINT, ZE_API_ENDPOINT, ZE_IS_PREVIEW, ze_api_gateway, ZE_API_ENDPOINT_HOST, } from './lib/api-contract-negotiation/get-api-contract';
16
- export { forEachLimit, PromiseTuple, isSuccessTuple, PromiseLazyLoad, PromiseWithResolvers, deferred, } from './lib/promise';
17
- export { type FindTemplates, formatString } from './lib/string/string';
15
+ export { ZE_API_ENDPOINT, ZE_API_ENDPOINT_HOST, ze_api_gateway, ZE_IS_PREVIEW, ZEPHYR_API_ENDPOINT, } from './lib/api-contract-negotiation/get-api-contract';
16
+ export { deferred, forEachLimit, isSuccessTuple, PromiseLazyLoad, PromiseTuple, PromiseWithResolvers, } from './lib/promise';
17
+ export { formatString, type FindTemplates } from './lib/string/string';
18
18
  export { stripAnsi } from './lib/string/strip-ansi';
19
+ export type { ApplicationConsumes, UsedIn } from './lib/zephyr-build-stats';
package/dist/index.js CHANGED
@@ -1,31 +1,31 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.stripAnsi = exports.formatString = exports.deferred = exports.PromiseWithResolvers = exports.PromiseLazyLoad = exports.isSuccessTuple = exports.PromiseTuple = exports.forEachLimit = exports.ZE_API_ENDPOINT_HOST = exports.ze_api_gateway = exports.ZE_IS_PREVIEW = exports.ZE_API_ENDPOINT = exports.ZEPHYR_API_ENDPOINT = exports.safe_json_parse = exports.ZeUtils = exports.flatCreateSnapshotId = exports.createSnapshotId = exports.createApplicationUid = void 0;
4
+ exports.stripAnsi = exports.formatString = exports.PromiseWithResolvers = exports.PromiseTuple = exports.PromiseLazyLoad = exports.isSuccessTuple = exports.forEachLimit = exports.deferred = exports.ZEPHYR_API_ENDPOINT = exports.ZE_IS_PREVIEW = exports.ze_api_gateway = exports.ZE_API_ENDPOINT_HOST = exports.ZE_API_ENDPOINT = exports.safe_json_parse = exports.flatCreateSnapshotId = exports.createSnapshotId = exports.createApplicationUid = exports.ZeUtils = void 0;
5
5
  const tslib_1 = require("tslib");
6
+ exports.ZeUtils = tslib_1.__importStar(require("./lib/promise"));
6
7
  var create_application_uid_1 = require("./lib/utils/create-application-uid");
7
8
  Object.defineProperty(exports, "createApplicationUid", { enumerable: true, get: function () { return create_application_uid_1.createApplicationUid; } });
8
9
  var create_snapshot_id_1 = require("./lib/utils/create-snapshot-id");
9
10
  Object.defineProperty(exports, "createSnapshotId", { enumerable: true, get: function () { return create_snapshot_id_1.createSnapshotId; } });
10
11
  Object.defineProperty(exports, "flatCreateSnapshotId", { enumerable: true, get: function () { return create_snapshot_id_1.flatCreateSnapshotId; } });
11
- exports.ZeUtils = tslib_1.__importStar(require("./lib/promise"));
12
12
  var safe_json_parse_1 = require("./lib/utils/safe-json-parse");
13
13
  Object.defineProperty(exports, "safe_json_parse", { enumerable: true, get: function () { return safe_json_parse_1.safe_json_parse; } });
14
14
  // api contract negotiation
15
15
  var get_api_contract_1 = require("./lib/api-contract-negotiation/get-api-contract");
16
- Object.defineProperty(exports, "ZEPHYR_API_ENDPOINT", { enumerable: true, get: function () { return get_api_contract_1.ZEPHYR_API_ENDPOINT; } });
17
16
  Object.defineProperty(exports, "ZE_API_ENDPOINT", { enumerable: true, get: function () { return get_api_contract_1.ZE_API_ENDPOINT; } });
18
- Object.defineProperty(exports, "ZE_IS_PREVIEW", { enumerable: true, get: function () { return get_api_contract_1.ZE_IS_PREVIEW; } });
19
- Object.defineProperty(exports, "ze_api_gateway", { enumerable: true, get: function () { return get_api_contract_1.ze_api_gateway; } });
20
17
  Object.defineProperty(exports, "ZE_API_ENDPOINT_HOST", { enumerable: true, get: function () { return get_api_contract_1.ZE_API_ENDPOINT_HOST; } });
18
+ Object.defineProperty(exports, "ze_api_gateway", { enumerable: true, get: function () { return get_api_contract_1.ze_api_gateway; } });
19
+ Object.defineProperty(exports, "ZE_IS_PREVIEW", { enumerable: true, get: function () { return get_api_contract_1.ZE_IS_PREVIEW; } });
20
+ Object.defineProperty(exports, "ZEPHYR_API_ENDPOINT", { enumerable: true, get: function () { return get_api_contract_1.ZEPHYR_API_ENDPOINT; } });
21
21
  // promise proto methods
22
22
  var promise_1 = require("./lib/promise");
23
+ Object.defineProperty(exports, "deferred", { enumerable: true, get: function () { return promise_1.deferred; } });
23
24
  Object.defineProperty(exports, "forEachLimit", { enumerable: true, get: function () { return promise_1.forEachLimit; } });
24
- Object.defineProperty(exports, "PromiseTuple", { enumerable: true, get: function () { return promise_1.PromiseTuple; } });
25
25
  Object.defineProperty(exports, "isSuccessTuple", { enumerable: true, get: function () { return promise_1.isSuccessTuple; } });
26
26
  Object.defineProperty(exports, "PromiseLazyLoad", { enumerable: true, get: function () { return promise_1.PromiseLazyLoad; } });
27
+ Object.defineProperty(exports, "PromiseTuple", { enumerable: true, get: function () { return promise_1.PromiseTuple; } });
27
28
  Object.defineProperty(exports, "PromiseWithResolvers", { enumerable: true, get: function () { return promise_1.PromiseWithResolvers; } });
28
- Object.defineProperty(exports, "deferred", { enumerable: true, get: function () { return promise_1.deferred; } });
29
29
  // string proto methods
30
30
  var string_1 = require("./lib/string/string");
31
31
  Object.defineProperty(exports, "formatString", { enumerable: true, get: function () { return string_1.formatString; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;;AAY1B,6EAA0E;AAAjE,8HAAA,oBAAoB,OAAA;AAC7B,qEAAwF;AAA/E,sHAAA,gBAAgB,OAAA;AAAE,0HAAA,oBAAoB,OAAA;AAC/C,iEAAyC;AACzC,+DAA8D;AAArD,kHAAA,eAAe,OAAA;AAgBxB,2BAA2B;AAC3B,oFAMyD;AALvD,uHAAA,mBAAmB,OAAA;AACnB,mHAAA,eAAe,OAAA;AACf,iHAAA,aAAa,OAAA;AACb,kHAAA,cAAc,OAAA;AACd,wHAAA,oBAAoB,OAAA;AAGtB,wBAAwB;AACxB,yCAOuB;AANrB,uGAAA,YAAY,OAAA;AACZ,uGAAA,YAAY,OAAA;AACZ,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,+GAAA,oBAAoB,OAAA;AACpB,mGAAA,QAAQ,OAAA;AAGV,uBAAuB;AACvB,8CAAuE;AAA1C,sGAAA,YAAY,OAAA;AACzC,sDAAoD;AAA3C,uGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;;AAW1B,iEAAyC;AAEzC,6EAA0E;AAAjE,8HAAA,oBAAoB,OAAA;AAC7B,qEAAwF;AAA/E,sHAAA,gBAAgB,OAAA;AAAE,0HAAA,oBAAoB,OAAA;AAC/C,+DAA8D;AAArD,kHAAA,eAAe,OAAA;AAgBxB,2BAA2B;AAC3B,oFAMyD;AALvD,mHAAA,eAAe,OAAA;AACf,wHAAA,oBAAoB,OAAA;AACpB,kHAAA,cAAc,OAAA;AACd,iHAAA,aAAa,OAAA;AACb,uHAAA,mBAAmB,OAAA;AAGrB,wBAAwB;AACxB,yCAOuB;AANrB,mGAAA,QAAQ,OAAA;AACR,uGAAA,YAAY,OAAA;AACZ,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,uGAAA,YAAY,OAAA;AACZ,+GAAA,oBAAoB,OAAA;AAGtB,uBAAuB;AACvB,8CAAuE;AAA9D,sGAAA,YAAY,OAAA;AACrB,sDAAoD;AAA3C,uGAAA,SAAS,OAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './create-application-uid';
2
+ export * from './safe-json-parse';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ // Export utility functions
5
+ tslib_1.__exportStar(require("./create-application-uid"), exports);
6
+ tslib_1.__exportStar(require("./safe-json-parse"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AAC3B,mEAAyC;AACzC,4DAAkC"}
@@ -110,6 +110,10 @@ export interface ZephyrBuildStats {
110
110
  domain?: string | undefined;
111
111
  /** @deprecated */
112
112
  platform?: DeploymentIntegrationPlatform | undefined;
113
+ /**
114
+ * The target platform of the build , should be `ios`, `android`, `web` or undefined at
115
+ * the moment
116
+ */
113
117
  build_target?: string;
114
118
  /** @deprecated */
115
119
  type: unknown;
@@ -139,6 +143,27 @@ export interface ApplicationOverride {
139
143
  location: string;
140
144
  applicationID: string;
141
145
  }
146
+ /**
147
+ * If a remote's component is consumed by another app, this field should exists in the
148
+ * consuming app's build stats. This is the only way to know that a remote's component is
149
+ * being consumed by another app. It has the shape looks like
150
+ *
151
+ * {
152
+ * consumingApplicationID: 'NxWelcome',
153
+ * applicationID: 'rspack_mf_remote',
154
+ * name: 'NxWelcome',
155
+ * usedIn: [Array]
156
+ * }
157
+ *
158
+ * - ConsumingApplicationId and name are the same value
159
+ * - ApplicationId is the id of the remote application
160
+ * - UsedIn is an array of object with the following shape: { files:
161
+ * src/screens/LazyLoadedCheckoutSuccessScreen.tsx, url:
162
+ * /src/screens/LazyLoadedCheckoutSuccessScreen.tsx } This field describes where the
163
+ * remote is being used, and how are they imported, the id of the remote application
164
+ * (the id/applicationId is referring to the id of the remote application within the
165
+ * bundler context) and the name of the remote's component (ex: NxWelcome).
166
+ */
142
167
  export interface ApplicationConsumes {
143
168
  consumingApplicationID: string;
144
169
  applicationID: string;
@@ -1 +1 @@
1
- {"version":3,"file":"zephyr-build-stats.js","sourceRoot":"","sources":["../../src/lib/zephyr-build-stats.ts"],"names":[],"mappings":";AAAA,0BAA0B;;AA8H1B,IAAK,6BAMJ;AAND,WAAK,6BAA6B;IAChC,0DAAyB,CAAA;IACzB,4CAAW,CAAA;IACX,oDAAmB,CAAA;IACnB,gDAAe,CAAA;IACf,4CAAW,CAAA;AACb,CAAC,EANI,6BAA6B,KAA7B,6BAA6B,QAMjC"}
1
+ {"version":3,"file":"zephyr-build-stats.js","sourceRoot":"","sources":["../../src/lib/zephyr-build-stats.ts"],"names":[],"mappings":";AAAA,0BAA0B;;AAiI1B,IAAK,6BAMJ;AAND,WAAK,6BAA6B;IAChC,0DAAyB,CAAA;IACzB,4CAAW,CAAA;IACX,oDAAmB,CAAA;IACnB,gDAAe,CAAA;IACf,4CAAW,CAAA;AACb,CAAC,EANI,6BAA6B,KAA7B,6BAA6B,QAMjC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-edge-contract",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "description": "Edge contract for Zephyr",
5
5
  "repository": {
6
6
  "type": "git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-edge-contract",
3
- "version": "0.0.0-canary-20250708173858",
3
+ "version": "0.0.0-canary-20250728152440",
4
4
  "description": "Edge contract for Zephyr",
5
5
  "repository": {
6
6
  "type": "git",