cdk8s-core icon indicating copy to clipboard operation
cdk8s-core copied to clipboard

Incompatible APIs with jsii@5

Open iliapolo opened this issue 1 year ago • 0 comments

Upgrading to jsii v5 revealed a few APIs that are now incompatible.

  • https://github.com/cdk8s-team/cdk8s-core/blob/843e3018dc3b614a5fbac0a83739acff52edf269/src/api-object.ts#L33
  • https://github.com/cdk8s-team/cdk8s-core/blob/843e3018dc3b614a5fbac0a83739acff52edf269/src/metadata.ts#L100
error JSII1999: Index signatures are not supported in jsii APIs. This declaration must be marked "@internal" or "@jsii ignore".

33   readonly [key: string]: any;

This makes sense, as these APIs are actually not representable in Java/Golang - which means they are indeed broken right now. Since addressing this is a breaking change - this needs to be done carefully.


This is :bug: Bug Report

iliapolo avatar Jul 13 '23 07:07 iliapolo