Skip to content

Conversation

@arkon
Copy link
Contributor

@arkon arkon commented Dec 9, 2025

This removes some APIs/types that had replacements added previously in order to avoid using generics and tuples, which JSII@5 does not support.

The BaseMetricFactory might affect other extensions of that abstract class outside of this library, which would need to be confirmed by reviewers.

This does not address Rosetta doc errors, which are still disabled.

This also just uses the default JSII version that Projen currently specifies, which despite being documented as ~5.8.0 gives ~5.7.

Given this is technically breaking changes to some APIs, this should include a major version update if merged (and grouped with other breaking changes, if any).

Fixes #633


Related docs:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@arkon arkon changed the title build!: upgrade to JSII@5 feat(build)!: upgrade to JSII@5 Dec 9, 2025
@giantcow giantcow added the do-not-merge Label to signify Mergify to not auto-merge. Useful for grouping PR merges into a single release. label Dec 9, 2025
Copy link
Contributor

@giantcow giantcow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why the auto-queue task is failing... there's not a lot of context in the logs

https://github.com/cdklabs/cdk-monitoring-constructs/pull/686/checks#step:2:131

cdklabs-automation pushed a commit that referenced this pull request Dec 10, 2025
This is extracted from #686 and an incremental step towards upgrading to
JSII@5.x.

This introduces new types to replace the usage of the generic type that
needs to be removed since JSII@5.x doesn't support generics as part of
constructs' APIs.

This does kind of spam new interfaces into the API, but I think that's
an acceptable trade-off (the alternative is just removing this aspect,
or moving it to a TS-only library).

`MonitoringAspectType` would be removed as part of a later breaking
change.

---

_By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license_

---------

Co-authored-by: arkon <arkon@users.noreply.github.com>
Co-authored-by: Caymon / Kayo <24500457+giantcow@users.noreply.github.com>
@giantcow
Copy link
Contributor

@Mergifyio rebase

@mergify
Copy link
Contributor

mergify bot commented Dec 10, 2025

rebase

☑️ Nothing to do, the required conditions are not met

Details
  • -conflict [📌 rebase requirement]
  • -closed [📌 rebase requirement]
  • queue-position = -1 [📌 rebase requirement]
  • any of:
    • #commits-behind > 0 [📌 rebase requirement]
    • #commits > 1 [📌 rebase requirement]
    • -linear-history [📌 rebase requirement]

This removes some APIs/types that had replacements added previously in order to avoid using
generics and tuples, which JSII@5 does not support.

The BaseMetricFactory might affect other extensions of that abstract class outside of this library,
which would need to be confirmed by reviewers.

This does not address Rosetta doc errors, which are still disabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge Label to signify Mergify to not auto-merge. Useful for grouping PR merges into a single release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade jsii and TypeScript

2 participants