Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@itwin/core-backend"
}
],
"packageName": "@itwin/core-backend",
"email": "hoangnam.le@bentley.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@itwin/core-common"
}
],
"packageName": "@itwin/core-common",
"email": "hoangnam.le@bentley.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@itwin/core-frontend"
}
],
"packageName": "@itwin/core-frontend",
"email": "hoangnam.le@bentley.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@itwin/core-geometry"
}
],
"packageName": "@itwin/core-geometry",
"email": "hoangnam.le@bentley.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@itwin/linear-referencing-backend"
}
],
"packageName": "@itwin/linear-referencing-backend",
"email": "hoangnam.le@bentley.com"
}
8 changes: 4 additions & 4 deletions core/backend/src/Category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class SubCategory extends DefinitionElement {
public static insert(txn: EditTxn, parentCategoryId: Id64String, name: string, appearance: SubCategoryAppearance.Props | SubCategoryAppearance): Id64String;
/**
* Insert a new SubCategory
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use SubCategory.insert(txn, ...) instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use SubCategory.insert(txn, ...) instead.
*/
public static insert(iModelDb: IModelDb, parentCategoryId: Id64String, name: string, appearance: SubCategoryAppearance.Props | SubCategoryAppearance): Id64String;
public static insert(txnOrDb: EditTxn | IModelDb, parentCategoryId: Id64String, name: string, appearance: SubCategoryAppearance.Props | SubCategoryAppearance): Id64String {
Expand Down Expand Up @@ -215,7 +215,7 @@ export class Category extends DefinitionElement {
public setDefaultAppearance(txn: EditTxn, props: SubCategoryAppearance.Props | SubCategoryAppearance): void;
/**
* Set the appearance of the default SubCategory for this Category
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use Category.setDefaultAppearance(txn, ...) instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use Category.setDefaultAppearance(txn, ...) instead.
*/
public setDefaultAppearance(props: SubCategoryAppearance.Props | SubCategoryAppearance): void;
public setDefaultAppearance(txnOrProps: EditTxn | SubCategoryAppearance.Props | SubCategoryAppearance, props?: SubCategoryAppearance.Props | SubCategoryAppearance): void {
Expand Down Expand Up @@ -297,7 +297,7 @@ export class DrawingCategory extends Category {
public static insert(txn: EditTxn, definitionModelId: Id64String, name: string, defaultAppearance: SubCategoryAppearance.Props | SubCategoryAppearance): Id64String;
/**
* Insert a new DrawingCategory
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use DrawingCategory.insert(txn, ...) instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use DrawingCategory.insert(txn, ...) instead.
*/
public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, defaultAppearance: SubCategoryAppearance.Props | SubCategoryAppearance): Id64String;
public static insert(txnOrDb: EditTxn | IModelDb, definitionModelId: Id64String, name: string, defaultAppearance: SubCategoryAppearance.Props | SubCategoryAppearance): Id64String {
Expand Down Expand Up @@ -366,7 +366,7 @@ export class SpatialCategory extends Category {
public static insert(txn: EditTxn, definitionModelId: Id64String, name: string, defaultAppearance: SubCategoryAppearance.Props | SubCategoryAppearance): Id64String;
/**
* Insert a new SpatialCategory
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use SpatialCategory.insert(txn, ...) instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use SpatialCategory.insert(txn, ...) instead.
*/
public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, defaultAppearance: SubCategoryAppearance.Props | SubCategoryAppearance): Id64String;
public static insert(txnOrDb: EditTxn | IModelDb, definitionModelId: Id64String, name: string, defaultAppearance: SubCategoryAppearance.Props | SubCategoryAppearance): Id64String {
Expand Down
14 changes: 7 additions & 7 deletions core/backend/src/ChangesetECAdaptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class ECDbMap {
/**
* Record meta data for the change.
* @beta
* @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use [ChangeMeta]($backend) with [ChangesetReader]($backend) instead.
* @deprecated in 5.9.0 - will not be removed until after 2027-05-04. Use [ChangeMeta]($backend) with [ChangesetReader]($backend) instead.
* */
export interface ChangeMetaData {
/** list of tables making up this EC change */
Expand All @@ -374,7 +374,7 @@ export interface ChangeMetaData {
/**
* Represent EC change derived from low level sqlite change
* @beta
* @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use [ChangeInstance]($backend) with [ChangesetReader]($backend) instead.
* @deprecated in 5.9.0 - will not be removed until after 2027-05-04. Use [ChangeInstance]($backend) with [ChangesetReader]($backend) instead.
*/
export interface ChangedECInstance {
// eslint-disable-next-line @typescript-eslint/naming-convention
Expand All @@ -388,7 +388,7 @@ export interface ChangedECInstance {
/**
* Helper function to convert between JS DateTime & SQLite JulianDay values.
* @beta
* @deprecated in 5.1.9 - will not be removed until after 2027-05-04. The DateTime namespace is deprecated and will be removed in a future release.
* @deprecated in 5.9.0 - will not be removed until after 2027-05-04. The DateTime namespace is deprecated and will be removed in a future release.
* */
namespace DateTime {
/**
Expand Down Expand Up @@ -416,7 +416,7 @@ namespace DateTime {
/**
* Represents a cache for unifying EC changes.
* @beta
* @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use [ChangeCache]($backend) with [ChangesetReader]($backend) instead.
* @deprecated in 5.9.0 - will not be removed until after 2027-05-04. Use [ChangeCache]($backend) with [ChangesetReader]($backend) instead.
*/
export interface ECChangeUnifierCache extends Disposable {
/**
Expand Down Expand Up @@ -447,7 +447,7 @@ export interface ECChangeUnifierCache extends Disposable {
}
/**
* @beta
* @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use [ChangeUnifierCache.createInMemoryCache]($backend) / [ChangeUnifierCache.createSqliteBackedCache]($backend) instead.
* @deprecated in 5.9.0 - will not be removed until after 2027-05-04. Use [ChangeUnifierCache.createInMemoryCache]($backend) / [ChangeUnifierCache.createSqliteBackedCache]($backend) instead.
*/
export namespace ECChangeUnifierCache {
/**
Expand Down Expand Up @@ -657,7 +657,7 @@ class SqliteBackedInstanceCache implements ECChangeUnifierCache {
* Partial changes is per table and a single instance can
* span multiple tables.
* @beta
* @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use [PartialChangeUnifier]($backend) with [ChangesetReader]($backend) instead.
* @deprecated in 5.9.0 - will not be removed until after 2027-05-04. Use [PartialChangeUnifier]($backend) with [ChangesetReader]($backend) instead.
*/
export class PartialECChangeUnifier implements Disposable {
private _readonly = false;
Expand Down Expand Up @@ -825,7 +825,7 @@ export class PartialECChangeUnifier implements Disposable {
* it is per table while a single instance can span multiple table.
* @note PrimitiveArray and StructArray are not supported types.
* @beta
* @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use [ChangesetReader]($backend) instead.
* @deprecated in 5.9.0 - will not be removed until after 2027-05-04. Use [ChangesetReader]($backend) instead.
*
*/
export class ChangesetECAdaptor implements Disposable {
Expand Down
6 changes: 3 additions & 3 deletions core/backend/src/CodeSpecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class CodeSpecs {
* @returns The Id of the persistent CodeSpec.
* @note If successful, this method will assign a valid CodeSpecId to the supplied CodeSpec
* @throws IModelError if the insertion fails
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use CodeSpecs.insert(txn, codeSpec) instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use CodeSpecs.insert(txn, codeSpec) instead.
*/
public insert(codeSpec: CodeSpec): Id64String;

Expand All @@ -160,7 +160,7 @@ export class CodeSpecs {
* @param properties The properties or the CodeSpec. For backwards compatibility this may also be a `CodeScopeSpec.Type`.
* @returns The Id of the persistent CodeSpec.
* @throws IModelError if the insertion fails
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use CodeSpecs.insert(txn, ...) instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use CodeSpecs.insert(txn, ...) instead.
*/
public insert(name: string, properties: CodeSpecProperties | CodeScopeSpec.Type): Id64String;
public insert(
Expand Down Expand Up @@ -213,7 +213,7 @@ export class CodeSpecs {
/** Update the Json properties of an existing CodeSpec.
* @param codeSpec The codeSpec holding Json properties values to update.
* @throws if unable to update the codeSpec.
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use CodeSpecs.updateProperties(txn, codeSpec) instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use CodeSpecs.updateProperties(txn, codeSpec) instead.
*/
public updateProperties(codeSpec: CodeSpec): void;
public updateProperties(txnOrCodeSpec: EditTxn | CodeSpec, codeSpec?: CodeSpec): void {
Expand Down
4 changes: 2 additions & 2 deletions core/backend/src/DisplayStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class DisplayStyle2d extends DisplayStyle {
public static insert(txn: EditTxn, definitionModelId: Id64String, name: string): Id64String;
/**
* Insert a DisplayStyle2d for use by a ViewDefinition.
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use DisplayStyle2d.insert(txn, ...) instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use DisplayStyle2d.insert(txn, ...) instead.
*/
public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string): Id64String;
public static insert(txnOrDb: EditTxn | IModelDb, definitionModelId: Id64String, name: string): Id64String {
Expand Down Expand Up @@ -356,7 +356,7 @@ export class DisplayStyle3d extends DisplayStyle {
public static insert(txn: EditTxn, definitionModelId: Id64String, name: string, options?: DisplayStyleCreationOptions): Id64String;
/**
* Insert a DisplayStyle3d for use by a ViewDefinition.
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use DisplayStyle3d.insert(txn, ...) instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use DisplayStyle3d.insert(txn, ...) instead.
*/
public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, options?: DisplayStyleCreationOptions): Id64String;
public static insert(txnOrDb: EditTxn | IModelDb, definitionModelId: Id64String, name: string, options?: DisplayStyleCreationOptions): Id64String {
Expand Down
20 changes: 10 additions & 10 deletions core/backend/src/Element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export class Element extends Entity {
* * none of the element's outputs have been processed.
* @see [[ElementDrivesElement]] for more on element dependency graphs.
* @beta
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use onBeforeOutputsHandledArg instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use onBeforeOutputsHandledArg instead.
*/
protected static onBeforeOutputsHandled(_id: Id64String, _iModel: IModelDb): void { }

Expand Down Expand Up @@ -538,7 +538,7 @@ export class Element extends Entity {
* This method is not called if none of the element's inputs were changed.
* @see [[ElementDrivesElement]] for more on element dependency graphs.
* @beta
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use onAllInputsHandledArg instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use onAllInputsHandledArg instead.
*/
protected static onAllInputsHandled(_id: Id64String, _iModel: IModelDb): void { }

Expand Down Expand Up @@ -669,7 +669,7 @@ export class Element extends Entity {
public insert(txn: EditTxn): Id64String;
/**
* Insert this Element into the iModel.
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use Element.insert(txn) instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use Element.insert(txn) instead.
*/
public insert(): Id64String;
public insert(txn?: EditTxn): Id64String {
Expand All @@ -683,7 +683,7 @@ export class Element extends Entity {
public update(txn: EditTxn): void;
/**
* Update this Element in the iModel.
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use Element.update(txn) instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use Element.update(txn) instead.
*/
public update(): void;
public update(txn?: EditTxn): void {
Expand All @@ -697,7 +697,7 @@ export class Element extends Entity {
public delete(txn: EditTxn): void;
/**
* Delete this Element from the iModel.
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use Element.delete(txn) instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use Element.delete(txn) instead.
*/
public delete(): void;
public delete(txn?: EditTxn): void {
Expand Down Expand Up @@ -1282,7 +1282,7 @@ export class Subject extends InformationReferenceElement {
*/
public static insert(txn: EditTxn, parentSubjectId: Id64String, name: string, description?: string): Id64String;
/** Insert a Subject
* @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use Subject.insert(txn, ...) instead.
* @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use Subject.insert(txn, ...) instead.
*/
public static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, description?: string): Id64String;
public static insert(txnOrDb: EditTxn | IModelDb, parentSubjectId: Id64String, name: string, description?: string): Id64String {
Expand Down Expand Up @@ -1373,7 +1373,7 @@ export class Drawing extends Document {
* @beta
*/
public static insert(txn: EditTxn, documentListModelId: Id64String, name: string, scaleFactor?: number): Id64String;
/** @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use Drawing.insert(txn, ...) instead. */
/** @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use Drawing.insert(txn, ...) instead. */
public static insert(iModelDb: IModelDb, documentListModelId: Id64String, name: string, scaleFactor?: number): Id64String;
public static insert(txnOrDb: EditTxn | IModelDb, documentListModelId: Id64String, name: string, scaleFactor?: number): Id64String {
const txn = txnOrDb instanceof EditTxn ? txnOrDb : txnOrDb[_implicitTxn];
Expand Down Expand Up @@ -1645,7 +1645,7 @@ export class DefinitionContainer extends DefinitionSet {
* @beta
*/
public static insert(txn: EditTxn, definitionModelId: Id64String, code: Code, isPrivate?: boolean): Id64String;
/** @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use DefinitionContainer.insert(txn, ...) instead. */
/** @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use DefinitionContainer.insert(txn, ...) instead. */
public static insert(iModelDb: IModelDb, definitionModelId: Id64String, code: Code, isPrivate?: boolean): Id64String;
public static insert(txnOrDb: EditTxn | IModelDb, definitionModelId: Id64String, code: Code, isPrivate?: boolean): Id64String {
const txn = txnOrDb instanceof EditTxn ? txnOrDb : txnOrDb[_implicitTxn];
Expand Down Expand Up @@ -1805,7 +1805,7 @@ export class TemplateRecipe3d extends RecipeDefinitionElement {
* @throws [[IModelError]] if there is a problem inserting the TemplateRecipe3d or its sub-model.
*/
public static insert(txn: EditTxn, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
/** @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use TemplateRecipe3d.insert(txn, ...) instead. */
/** @deprecated in 5.9.0 - will not be removed until after 2027-05-04. Use TemplateRecipe3d.insert(txn, ...) instead. */
public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
public static insert(txnOrDb: EditTxn | IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String {
const txn = txnOrDb instanceof EditTxn ? txnOrDb : txnOrDb[_implicitTxn];
Expand Down Expand Up @@ -1881,7 +1881,7 @@ export class TemplateRecipe2d extends RecipeDefinitionElement {
* @throws [[IModelError]] if there is a problem inserting the TemplateRecipe2d or its sub-model.
*/
public static insert(txn: EditTxn, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
/** @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use TemplateRecipe2d.insert(txn, ...) instead. */
/** @deprecated in 5.9.0 - will not be removed until after 2027-05-04. Use TemplateRecipe2d.insert(txn, ...) instead. */
public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
public static insert(txnOrDb: EditTxn | IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String {
const txn = txnOrDb instanceof EditTxn ? txnOrDb : txnOrDb[_implicitTxn];
Expand Down
2 changes: 1 addition & 1 deletion core/backend/src/ElementAspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class SheetInformationAspect extends ElementUniqueAspect {
* If `information` is `undefined`, any existing aspect will be deleted.
* Otherwise, a new aspect will be inserted, or an existing aspect will be updated with the new metadata.
* @throws Error if the iModel contains a version of the BisCore schema older than 01.00.25.
* @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use SheetInformationAspect.setSheetInformation(txn, ...) instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.
* @deprecated in 5.9.0 - will not be removed until after 2027-05-04. Use SheetInformationAspect.setSheetInformation(txn, ...) instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.
*/
public static setSheetInformation(information: SheetInformation | undefined, sheetId: Id64String, iModel: IModelDb): void;

Expand Down
Loading
Loading