From 75f29f4467661ee371da3196cec37f64d8e3c043 Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Fri, 11 Oct 2024 18:28:24 +0100 Subject: [PATCH] feat: stabilize experimental code (#2497) Fixes #2267 These code features have been around for a long time. There are no known issues around them. They are used in `aws-cdk-lib` and the team has effectively treated the code as stable anyway. It's also not great practice to main unstable code like this. Let's just stabilize the previously experimental parts. --- src/construct.ts | 1 - src/dependency.ts | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/construct.ts b/src/construct.ts index ba2988b8..a7b52f64 100644 --- a/src/construct.ts +++ b/src/construct.ts @@ -366,7 +366,6 @@ export class Node { * Remove the child with the given name, if present. * * @returns Whether a child with the given name was deleted. - * @experimental */ public tryRemoveChild(childName: string): boolean { if (!(childName in this._children)) { return false; } diff --git a/src/dependency.ts b/src/dependency.ts index 93c6b8fb..6046031f 100644 --- a/src/dependency.ts +++ b/src/dependency.ts @@ -20,8 +20,6 @@ export interface IDependable { * * This class can be used when a set of constructs which are disjoint in the * construct tree needs to be combined to be used as a single dependable. - * - * @experimental */ export class DependencyGroup implements IDependable { private readonly _deps = new Array(); @@ -70,8 +68,6 @@ const DEPENDABLE_SYMBOL = Symbol.for('@aws-cdk/core.DependableTrait'); * Dependable.implement(construct, { * dependencyRoots: [construct], * }); - * - * @experimental */ export abstract class Dependable { /**