Skip to content

fix: DEP0044 in TerraformOutput - #2

Merged
jsteinich merged 1 commit into
open-constructs:mainfrom
gabegorelick:isArray-deprecation
Mar 3, 2026
Merged

jsteinich merged 1 commit into
open-constructs:mainfrom
gabegorelick:isArray-deprecation

Conversation

@gabegorelick

@gabegorelick gabegorelick commented Jan 13, 2026 •

Copy link
Copy Markdown
Contributor

Don't use deprecated util.isArray.

This was originally approved as hashicorp/terraform-cdk#3861 but never merged.

Related issue

Fixes hashicorp/terraform-cdk#3860

Description

When running on Node 22+, the following deprecation warning is logged:

[DEP0044] DeprecationWarning: The util.isArray API is deprecated. Please use Array.isArray() instead.

See https://nodejs.org/api/deprecations.html#DEP0044

There's no good reason to use util.isArray. It's an ancient API that's been superseded by Array.isArray(). It's use here seems to be totally unintentional, perhaps from bad autocomplete.

Checklist

  • I have updated the PR title to match CDKTF's style guide
  • I have run the linter on my code locally
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation if applicable
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works if applicable
  • New and existing unit tests pass locally with my changes

@so0k

so0k commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

i guess we can rebase and start merging fixes like this now

Don't use deprecated `util.isArray`.

This was originally approved as hashicorp/terraform-cdk#3861 but never
merged.

Fixes hashicorp/terraform-cdk#3860
@gabegorelick
gabegorelick requested a review from a team as a code owner February 18, 2026 02:50
@gabegorelick

Copy link
Copy Markdown
Contributor Author

@so0k rebased!

@jsteinich
jsteinich merged commit 501fa39 into open-constructs:main Mar 3, 2026
429 checks passed
jsteinich added a commit that referenced this pull request Mar 27, 2026
### feat
- feat(gha): publish Maven artifacts to Maven Central
[\#64](#64)
- feat: restore NuGet.org publishing
[\#50](#50)
- feat(provider-generator): don't emit property params
[\#43](#43)


### fix
- fix(cli): Pin init template to TypesScript 5.x
[\#74](#74)
- fix(gha): fix Go releases and update git identity
[\#65](#65)
- fix(provider-generator): handle inline comments with brackets in
variable type parsing
[\#61](#61)
- fix: DEP0044 in TerraformOutput
[\#2](#2)


### chore
- chore: Upgrade dependencies for all
[\#69](#69)
- chore(gha): Adding base14 Scout CI/CD observability workflow to
instrument all the github actions.
[\#52](#52)
- chore(deps): Upgrade minimatch to 5.1.8
[\#49](#49)
- chore: add cdktn keyword to all packages
[\#46](#46)
- chore: update links to point to cdktn.io
[\#45](#45)
- chore: update more references to cdktf
[\#44](#44)
- chore: fix typo in CONTRIBUTING.md
[\#42](#42)
- chore(deps): Upgrade validator to 13.15.22
[\#38](#38)
- chore(deps): Upgrade glob to 10.5.0
[\#30](#30)
- chore: Upgrade dependencies for all
[\#22](#22)
- chore: Upgrade dependencies for lib
[\#18](#18)
- chore(deps): bump the github-actions-backward-compatible group with 4
updates [\#15](#15)
- chore(deps): bump the github-actions-breaking group with 11 updates
[\#14](#14)


### refactor
- refactor(hcl2cdk): global setup/teardown along with parallel tests to
speed the b…
[\#41](#41)
@github-actions

github-actions Bot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cdktf: DEP0044 in TerraformOutput

3 participants