Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update compile target to ES2023 and module to ES2022 #7387

Merged
merged 9 commits into from
Dec 23, 2024
34 changes: 14 additions & 20 deletions common/api/ecschema-metadata.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class Constant extends SchemaItem {
// (undocumented)
protected _phenomenon?: LazyLoadedPhenomenon;
// (undocumented)
readonly schemaItemType: SchemaItemType.Constant;
readonly schemaItemType = SchemaItemType.Constant;
// @alpha
protected setDefinition(definition: string): void;
// @alpha
Expand Down Expand Up @@ -158,7 +158,6 @@ export interface CustomAttribute {

// @beta
export class CustomAttributeClass extends ECClass {
constructor(schema: Schema, name: string, modifier?: ECClassModifier);
// (undocumented)
get appliesTo(): CustomAttributeContainerType;
// (undocumented)
Expand All @@ -170,7 +169,7 @@ export class CustomAttributeClass extends ECClass {
// (undocumented)
fromJSONSync(customAttributeProps: CustomAttributeClassProps): void;
// (undocumented)
readonly schemaItemType: SchemaItemType.CustomAttributeClass;
readonly schemaItemType = SchemaItemType.CustomAttributeClass;
// @alpha
protected setAppliesTo(containerType: CustomAttributeContainerType): void;
toJSON(standalone?: boolean, includeSchemaVersion?: boolean): CustomAttributeClassProps;
Expand Down Expand Up @@ -500,7 +499,6 @@ export class ECVersion {

// @beta
export class EntityClass extends ECClass {
constructor(schema: Schema, name: string, modifier?: ECClassModifier);
// (undocumented)
protected addMixin(mixin: Mixin): void;
// (undocumented)
Expand All @@ -524,7 +522,7 @@ export class EntityClass extends ECClass {
// (undocumented)
protected _mixins?: LazyLoadedMixin[];
// (undocumented)
readonly schemaItemType: SchemaItemType.EntityClass;
readonly schemaItemType = SchemaItemType.EntityClass;
toJSON(standalone?: boolean, includeSchemaVersion?: boolean): EntityClassProps;
// @internal (undocumented)
toXml(schemaXml: Document): Promise<Element>;
Expand Down Expand Up @@ -562,7 +560,7 @@ export class Enumeration extends SchemaItem {
// (undocumented)
get isString(): boolean;
// (undocumented)
readonly schemaItemType: SchemaItemType.Enumeration;
readonly schemaItemType = SchemaItemType.Enumeration;
// @alpha
protected setIsStrict(isStrict: boolean): void;
toJSON(standalone?: boolean, includeSchemaVersion?: boolean): EnumerationProps;
Expand Down Expand Up @@ -661,7 +659,7 @@ export class Format extends SchemaItem {
// (undocumented)
get roundFactor(): number;
// (undocumented)
readonly schemaItemType: SchemaItemType.Format;
readonly schemaItemType = SchemaItemType.Format;
// (undocumented)
get scientificType(): ScientificType | undefined;
// @alpha
Expand Down Expand Up @@ -708,7 +706,6 @@ export function getFormatProps(format: Format | OverrideFormat): FormatProps;

// @beta
export class InvertedUnit extends SchemaItem {
constructor(schema: Schema, name: string);
// (undocumented)
fromJSON(invertedUnitProps: InvertedUnitProps): Promise<void>;
// (undocumented)
Expand All @@ -720,7 +717,7 @@ export class InvertedUnit extends SchemaItem {
// @alpha (undocumented)
static isInvertedUnit(object: any): object is InvertedUnit;
// (undocumented)
readonly schemaItemType: SchemaItemType.InvertedUnit;
readonly schemaItemType = SchemaItemType.InvertedUnit;
// @alpha
protected setInvertsUnit(invertsUnit: LazyLoadedUnit): void;
// @alpha
Expand Down Expand Up @@ -803,7 +800,6 @@ export interface ISchemaPartVisitor {

// @beta
export class KindOfQuantity extends SchemaItem {
constructor(schema: Schema, name: string);
// (undocumented)
protected addPresentationFormat(format: Format | OverrideFormat, isDefault?: boolean): void;
protected createFormatOverride(parent: Format, precision?: number, unitLabelOverrides?: Array<[Unit | InvertedUnit, string | undefined]>): OverrideFormat;
Expand All @@ -825,7 +821,7 @@ export class KindOfQuantity extends SchemaItem {
// (undocumented)
protected _relativeError: number;
// (undocumented)
readonly schemaItemType: SchemaItemType.KindOfQuantity;
readonly schemaItemType = SchemaItemType.KindOfQuantity;
// @alpha
protected setRelativeError(relativeError: number): void;
toJSON(standalone?: boolean, includeSchemaVersion?: boolean): KindOfQuantityProps;
Expand Down Expand Up @@ -915,7 +911,7 @@ export class Mixin extends ECClass {
// (undocumented)
fromJSONSync(mixinProps: MixinProps): void;
// (undocumented)
readonly schemaItemType: SchemaItemType.Mixin;
readonly schemaItemType = SchemaItemType.Mixin;
// @alpha
protected setAppliesTo(appliesTo: LazyLoadedEntityClass): void;
toJSON(standalone?: boolean, includeSchemaVersion?: boolean): MixinProps;
Expand Down Expand Up @@ -1058,7 +1054,7 @@ export class Phenomenon extends SchemaItem {
// (undocumented)
fromJSONSync(phenomenonProps: PhenomenonProps): void;
// (undocumented)
readonly schemaItemType: SchemaItemType.Phenomenon;
readonly schemaItemType = SchemaItemType.Phenomenon;
// (undocumented)
protected setDefinition(definition: string): Promise<void>;
toJSON(standalone?: boolean, includeSchemaVersion?: boolean): PhenomenonProps;
Expand Down Expand Up @@ -1287,7 +1283,7 @@ export class PropertyCategory extends SchemaItem {
// (undocumented)
protected _priority: number;
// (undocumented)
readonly schemaItemType: SchemaItemType.PropertyCategory;
readonly schemaItemType = SchemaItemType.PropertyCategory;
// @alpha
protected setPriority(priority: number): void;
toJSON(standalone?: boolean, includeSchemaVersion?: boolean): PropertyCategoryProps;
Expand Down Expand Up @@ -1422,7 +1418,7 @@ export class RelationshipClass extends ECClass {
// (undocumented)
readonly schema: Schema;
// (undocumented)
readonly schemaItemType: SchemaItemType.RelationshipClass;
readonly schemaItemType = SchemaItemType.RelationshipClass;
// @alpha
protected setSourceConstraint(source: RelationshipConstraint): void;
// @alpha
Expand Down Expand Up @@ -2102,9 +2098,8 @@ export interface StructArrayPropertyProps extends ArrayPropertyProps {

// @beta
export class StructClass extends ECClass {
constructor(schema: Schema, name: string, modifier?: ECClassModifier);
// (undocumented)
readonly schemaItemType: SchemaItemType.StructClass;
readonly schemaItemType = SchemaItemType.StructClass;
}

// @beta (undocumented)
Expand Down Expand Up @@ -2170,7 +2165,7 @@ export class Unit extends SchemaItem {
// (undocumented)
protected _phenomenon?: LazyLoadedPhenomenon;
// (undocumented)
readonly schemaItemType: SchemaItemType.Unit;
readonly schemaItemType = SchemaItemType.Unit;
// @alpha
protected setDefinition(definition: string): Promise<void>;
// @alpha
Expand Down Expand Up @@ -2211,9 +2206,8 @@ export class UnitConverter {

// @beta (undocumented)
export class UnitSystem extends SchemaItem {
constructor(schema: Schema, name: string);
// (undocumented)
readonly schemaItemType: SchemaItemType.UnitSystem;
readonly schemaItemType = SchemaItemType.UnitSystem;
}

// @beta (undocumented)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/appui-abstract",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/appui-abstract"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/build-tools",
"comment": "Upgrade compile target to ES2023",
"type": "none"
}
],
"packageName": "@itwin/build-tools"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-bentley",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/core-bentley"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-common",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/core-common"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-frontend",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/core-frontend"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-geometry",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/core-geometry"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-i18n",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/core-i18n"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-markup",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/core-markup"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-orbitgt",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/core-orbitgt"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-quantity",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/core-quantity"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-telemetry",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/core-telemetry"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/ecschema-editing",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/ecschema-editing"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/ecschema-metadata",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/ecschema-metadata"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/ecschema-rpcinterface-common",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/ecschema-rpcinterface-common"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/ecsql-common",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/ecsql-common"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/editor-common",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/editor-common"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/editor-frontend",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/editor-frontend"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/frontend-devtools",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/frontend-devtools"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/frontend-tiles",
"comment": "Upgrade compile target to ES2023 and module to ES2022",
"type": "none"
}
],
"packageName": "@itwin/frontend-tiles"
}
Loading
Loading