fern-api 0.15.0-rc77 → 0.15.0-rc80
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/bundle.cjs +27 -11
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -707949,7 +707949,7 @@ var AccessTokenPosthogManager = class {
|
|
|
707949
707949
|
properties: {
|
|
707950
707950
|
...event,
|
|
707951
707951
|
...event.properties,
|
|
707952
|
-
version: "0.15.0-
|
|
707952
|
+
version: "0.15.0-rc80",
|
|
707953
707953
|
usingAccessToken: true
|
|
707954
707954
|
}
|
|
707955
707955
|
});
|
|
@@ -708011,7 +708011,7 @@ var UserPosthogManager = class {
|
|
|
708011
708011
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
708012
708012
|
event: "CLI",
|
|
708013
708013
|
properties: {
|
|
708014
|
-
version: "0.15.0-
|
|
708014
|
+
version: "0.15.0-rc80",
|
|
708015
708015
|
...event,
|
|
708016
708016
|
...event.properties
|
|
708017
708017
|
}
|
|
@@ -725067,10 +725067,19 @@ async function validateVersionedDependencyAndGetDefinition({ dependency, context
|
|
|
725067
725067
|
context.failWithoutThrowing("Dependency must be a fern workspace.");
|
|
725068
725068
|
return void 0;
|
|
725069
725069
|
}
|
|
725070
|
-
const
|
|
725071
|
-
|
|
725072
|
-
|
|
725073
|
-
|
|
725070
|
+
const hasEndpoints = Object.values(workspaceOfDependency.definition.namedDefinitionFiles).filter((file) => {
|
|
725071
|
+
var _a2;
|
|
725072
|
+
return Object.keys(((_a2 = file.contents.service) == null ? void 0 : _a2.endpoints) ?? {}).length > 0;
|
|
725073
|
+
}).length > 0 || Object.values(workspaceOfDependency.definition.packageMarkers).filter((file) => {
|
|
725074
|
+
var _a2;
|
|
725075
|
+
return Object.keys(((_a2 = file.contents.service) == null ? void 0 : _a2.endpoints) ?? {}).length > 0;
|
|
725076
|
+
}).length > 0;
|
|
725077
|
+
if (hasEndpoints) {
|
|
725078
|
+
const { equal, differences } = await getAreRootApiFilesEquivalent(rootApiFile, workspaceOfDependency);
|
|
725079
|
+
if (!equal) {
|
|
725080
|
+
context.failWithoutThrowing(`Failed to incorporate dependency because ${ROOT_API_FILENAME} is meaningfully different for the following keys: [${differences.join(", ")}]`);
|
|
725081
|
+
return void 0;
|
|
725082
|
+
}
|
|
725074
725083
|
}
|
|
725075
725084
|
return workspaceOfDependency.definition;
|
|
725076
725085
|
}
|
|
@@ -732130,10 +732139,10 @@ var CliContext = class {
|
|
|
732130
732139
|
return "fern-api";
|
|
732131
732140
|
}
|
|
732132
732141
|
getPackageVersion() {
|
|
732133
|
-
if ("0.15.0-
|
|
732142
|
+
if ("0.15.0-rc80" == null) {
|
|
732134
732143
|
this.logger.error("CLI_VERSION is not defined");
|
|
732135
732144
|
}
|
|
732136
|
-
return "0.15.0-
|
|
732145
|
+
return "0.15.0-rc80";
|
|
732137
732146
|
}
|
|
732138
732147
|
getCliName() {
|
|
732139
732148
|
if ("fern" == null) {
|
|
@@ -732521,6 +732530,12 @@ function convertTypeShape(irType) {
|
|
|
732521
732530
|
});
|
|
732522
732531
|
},
|
|
732523
732532
|
union: (union2) => {
|
|
732533
|
+
const baseProperties = union2.baseProperties.map((baseProperty2) => {
|
|
732534
|
+
return {
|
|
732535
|
+
key: baseProperty2.name.wireValue,
|
|
732536
|
+
valueType: convertTypeReference(baseProperty2.valueType)
|
|
732537
|
+
};
|
|
732538
|
+
});
|
|
732524
732539
|
return import_registry_node2.FernRegistry.api.v1.register.TypeShape.discriminatedUnion({
|
|
732525
732540
|
discriminant: union2.discriminant.wireValue,
|
|
732526
732541
|
variants: union2.types.map((variant) => {
|
|
@@ -732530,7 +732545,7 @@ function convertTypeShape(irType) {
|
|
|
732530
732545
|
additionalProperties: import_ir_sdk.FernIr.types.SingleUnionTypeProperties._visit(variant.shape, {
|
|
732531
732546
|
samePropertiesAsObject: (extension2) => ({
|
|
732532
732547
|
extends: [convertTypeId(extension2.typeId)],
|
|
732533
|
-
properties:
|
|
732548
|
+
properties: baseProperties
|
|
732534
732549
|
}),
|
|
732535
732550
|
singleProperty: (singleProperty) => ({
|
|
732536
732551
|
extends: [],
|
|
@@ -732538,12 +732553,13 @@ function convertTypeShape(irType) {
|
|
|
732538
732553
|
{
|
|
732539
732554
|
key: singleProperty.name.wireValue,
|
|
732540
732555
|
valueType: convertTypeReference(singleProperty.type)
|
|
732541
|
-
}
|
|
732556
|
+
},
|
|
732557
|
+
...baseProperties
|
|
732542
732558
|
]
|
|
732543
732559
|
}),
|
|
732544
732560
|
noProperties: () => ({
|
|
732545
732561
|
extends: [],
|
|
732546
|
-
properties:
|
|
732562
|
+
properties: baseProperties
|
|
732547
732563
|
}),
|
|
732548
732564
|
_other: () => {
|
|
732549
732565
|
throw new Error("Unknown SingleUnionTypeProperties: " + variant.shape.propertiesType);
|