Skip to content

Commit 1b900f0

Browse files
clydindgp1130
authored andcommitted
refactor(@angular-devkit/core): deprecate PartiallyOrderedSet (#33051)
The PartiallyOrderedSet class was only used to handle dependencies in SchemaRegistry transforms. Since that feature is now deprecated, this class is also marked as deprecated. PR Close #33051
1 parent 98912d0 commit 1b900f0

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

goldens/public-api/angular_devkit/core/index.api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function dasherize(str: string): string;
197197
// @public
198198
function decamelize(str: string): string;
199199

200-
// @public
200+
// @public @deprecated (undocumented)
201201
export function deepCopy<T>(value: T): T;
202202

203203
// @public (undocumented)
@@ -333,7 +333,7 @@ export function isJsonObject(value: JsonValue): value is JsonObject;
333333
// @public (undocumented)
334334
function isJsonSchema(value: unknown): value is JsonSchema;
335335

336-
// @public
336+
// @public @deprecated
337337
export function isPromise(obj: any): obj is Promise<any>;
338338

339339
// @public
@@ -553,7 +553,7 @@ function oneLine(strings: TemplateStringsArray, ...values: any[]): string;
553553
// @public (undocumented)
554554
function parseJsonPointer(pointer: JsonPointer): string[];
555555

556-
// @public (undocumented)
556+
// @public @deprecated (undocumented)
557557
export class PartiallyOrderedSet<T> {
558558
// (undocumented)
559559
[Symbol.iterator](): IterableIterator<T, undefined, unknown>;

packages/angular_devkit/core/src/utils/partially-ordered-set.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export class CircularDependencyFoundException extends BaseException {
1919
}
2020
}
2121

22+
/**
23+
* @deprecated Use standard arrays and ensure correct insertion order instead.
24+
*/
2225
export class PartiallyOrderedSet<T> {
2326
private _items = new Map<T, Set<T>>();
2427

0 commit comments

Comments
 (0)