![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
tf-dependency-analyzer
Advanced tools
Analyze a terraform directory and get a list of terraform/providers/and modules.
Allows for discovery of all provider, modules, and the terraform version from a Terraform directory.
npm install tf-dependency-analyzer
import * as tda from 'tf-dependency-analyzer';
// Find all terraform files in the directory.
const dir = path.join('__tests__', 'fixtures', 'empty');
const files = await tda.findTerraformFiles(dir);
const handlers: FileHandler[] = [];
for (const file of files) {
const handler = new FileHandler(file, gitHubPAT, gitHubEnterprisePAT, true, true, true, undefined);
await handler.populate();
handlers.push(handler);
}
FileHandler
classThe FileHandler
class is responsible for handling Terraform source files. It provides methods for parsing the file contents and creating instances of Terraform
, Module
, and Provider
classes.
file
terraformInstances
Terraform
instances.providerInstances
Provider
instances.moduleInstances
Module
instances.analyzeTerraform
analyzeProviders
analyzeModules
providerVersionMap
Map
object containing provider names and their corresponding URLs.getFileContents(): string
populate()
terraformInstances
, providerInstances
, and moduleInstances
arrays.getTerraformInstances()
Terraform
instance if the file contains Terraform initialization code.getModuleInstances()
Module
instances if the file contains modules.getProviderInstances()
Provider
instances if the file contains providers.Terraform
classThe Terraform
class represents a Terraform instance.
version
sourceFile
needsUpdate
isVersionGtRefVersion(refVersion: string): boolean
Provider
classThe Provider
class represents a Terraform provider.
name
latestVersion
refVersion
sourceFile
needsUpdate
isVersionGtRefVersion(refVersion: string): boolean
Module
classThe Module
class represents a Terraform module.
latestVersion
refVersion
sourceFile
needsUpdate
latestVersionUrl
isVersionGtRefVersion(refVersion: string): boolean
helpers.ts
The helpers.ts
file contains helper functions and regular expressions.
versionRegex
terraformRegex
requiredProvidersRegex
providerRegex
providerVersionRegex
providerNameRegex
providerSourceRegex
modRegex
modSourceGitNoRef
modSourceGitRef
modSourceHttpsNoRef
modSourceHttpsRef
findTerraformFiles(dir: string): Promise<string[]>
.tf
extension.isDirectory(path: string): Promise<boolean>
getCurrentTerraformVersion(): Promise<string>
getLatestModuleVersionUrl(source: string, gitHubPAT: string, gitHubEnterprisePAT: string): {url: string; authHeader: string; refVersion: string}
getLatestModuleVersion(url: string, authHeader: string): Promise<string>
getLatestProviderVersionUrl(name: string, sourceOwner: string | undefined): string
getLatestProviderVersion(url: string, gitHubPAT: string): Promise<string>
isUrlValid(url: string): Promise<boolean>
FAQs
Analyze a terraform directory and get a list of terraform/providers/and modules.
The npm package tf-dependency-analyzer receives a total of 1 weekly downloads. As such, tf-dependency-analyzer popularity was classified as not popular.
We found that tf-dependency-analyzer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.