You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is acceptable for a non-deprecated interface to extend a deprecated interface.
The --strip-deprecated flag correctly handles this, by not exporting the symbols around the deprecated interface.
However, the --add-deprecated-warnings flag does not account for this. It produces a warning when the non-deprecated interface is referenced.
… is extended
It is common in the AWS CDK for non-deprecated interfaces to extend
deprecated interfaces.
Currently, when this occurs and the non-deprecated subclass is
referenced, a warning is generated notifying the deprecation of its
superclass.
Modify the implementation such that the warning is produced only when
a property of the deprecated interface is referenced.
In the case when a deprecated interface with no required properties is
used without any of its properties set, a warning will not be generated.
This should occur rarely and the trade off is acceptable.
fixes#3111
… is extended (#3112)
It is common in the AWS CDK for non-deprecated interfaces to extend
deprecated interfaces.
Currently, when this occurs and the non-deprecated subclass is
referenced, a warning is generated notifying the deprecation of its
superclass.
Modify the implementation such that the warning is produced only when
a property of the deprecated interface is referenced.
In the case when a deprecated interface with no required properties is
used without any of its properties set, a warning will not be generated.
This should occur rarely and the trade off is acceptable.
fixes#3111
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
🐛 Bug Report
It is acceptable for a non-deprecated interface to extend a deprecated interface.
The
--strip-deprecated
flag correctly handles this, by not exporting the symbols around the deprecated interface.However, the
--add-deprecated-warnings
flag does not account for this. It produces a warning when the non-deprecated interface is referenced.Examples:
https://github.com/aws/aws-cdk/blob/db63fba358a5a8cc3d252156d14ead57d2b7560d/packages/%40aws-cdk/aws-ecr-assets/lib/image-asset.ts#L58
DockerImageAssetOptions
is not deprecated whereasFingerprintOptions
is.https://github.com/aws/aws-cdk/blob/db63fba358a5a8cc3d252156d14ead57d2b7560d/packages/%40aws-cdk/aws-s3-assets/lib/asset.ts#L17
AssetOptions
is not deprecated whileCopyOptions
is.The text was updated successfully, but these errors were encountered: