Skip to content

fix(lib): DEP0044 in TerraformOutput #3861

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gabegorelick
Copy link

Don't use deprecated util.isArray.

Closes #3860

Related issue

Fixes #3860

Description

util.isArray is deprecated in favor of Array.isArray.

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

Don't use deprecated `util.isArray`.

Closes hashicorp#3860
Copy link

hashicorp-cla-app bot commented Apr 23, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

CLA assistant check

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement

Learn more about why HashiCorp requires a CLA and what the CLA includes

Have you signed the CLA already but the status is still pending? Recheck it.

@@ -5,7 +5,6 @@ import { TerraformElement } from "./terraform-element";
import { deepMerge } from "./util";
import { ITerraformDependable } from "./terraform-dependable";
import { Expression } from ".";
import { isArray } from "util";
Copy link
Author

Choose a reason for hiding this comment

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

This dates to #1145. AFAICT the use of util.isArray was unintentional. Array.isArray is used everywhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cdktf: DEP0044 in TerraformOutput
1 participant