Repository navigation
v0.10.0
Added
-
tflens export— closes the last two "still deferred" items (schema 0.4.0-prototype).-
terraform.providers— top-levelprovider "X" { alias = "...", ... }blocks now appear underterraform.providersas a list (distinct fromrequired_providers, which is the version-constraint side). Each entry carriestype, optionalalias, and aconfigmap of every flat attribute as the standard{text, value?, ast?}expression triple. Resources select non-default instances via the existingprovidermeta-arg →provider = aws.eastmatches the entry withtype=aws+alias=east. Newpkg/analysis.Providertype +Module.Providers()getter (nil-safe per the project convention). Newprovider_aliasesgolden fixture exercises the default + aliased + multi-attribute-config cases. -
validations/preconditions/postconditions—validation {},precondition {}, andpostcondition {}block bodies are now surfaced as structured lists onExportVariable(validations only),ExportOutput(pre/postconditions), andExportResource(pre/postconditions). Each entry hasconditionand optionalerror_messageas full{text, value?, ast?}expression triples — converters can translate the boolean check into the target's native validation primitive (kro CEL validators, Crossplane CompositionRevision policies, …) or surface the source text. Replaces the previousvalidation_countinteger + internal canonical-text list with a single richer field per kind.pkg/analysis.Entitymigrated fromValidations int+ValidationConditions []stringtoValidations []ConditionBlock; same for pre/postconditions.pkg/diffswitched toanalysis.ConditionTexts(blocks)for its multiset comparison (text-equality contract preserved). Newcondition_blocksgolden fixture exercises validation blocks on a variable, lifecycle precondition+postcondition on a resource, and an output-side precondition.
Schema bumped 0.3.0-prototype → 0.4.0-prototype. The README's "Not yet emitted" list shrinks from three items to one (
lifecycleexcluded by design — its meta-args land on the parent resource, its nested pre/postconditions land in the new fields). -