diff --git a/.changes/1.2.0.md b/.changes/1.2.0.md new file mode 100644 index 000000000..8d6135d0e --- /dev/null +++ b/.changes/1.2.0.md @@ -0,0 +1,25 @@ +## 1.2.0 (March 21, 2023) + +NOTES: + +* New `DEBUG` level `Detected value change between proposed new state and prior state` log messages with the offending attribute path are now emitted when proposed new state value differences would cause the framework to automatically mark all unconfigured `Computed` attributes as unknown during planning. These can be used to troubleshoot potential resource implementation issues, or framework and Terraform plan logic bugs. ([#630](https://github.com/hashicorp/terraform-plugin-framework/issues/630)) +* This Go module has been updated to Go 1.19 per the [Go support policy](https://golang.org/doc/devel/release.html#policy). Any consumers building on earlier Go versions may experience errors. ([#682](https://github.com/hashicorp/terraform-plugin-framework/issues/682)) + +FEATURES: + +* resource/schema: Introduce packages, interface types, and built-in static value functionality for schema-based default values ([#674](https://github.com/hashicorp/terraform-plugin-framework/issues/674)) + +ENHANCEMENTS: + +* internal/fwserver: Added `DEBUG` logging to aid troubleshooting unexpected plans with unknown values ([#630](https://github.com/hashicorp/terraform-plugin-framework/issues/630)) +* types/basetypes: Add `BoolValue` type `NewBoolPointerValue()` creation function and `ValueBoolPointer()` method ([#689](https://github.com/hashicorp/terraform-plugin-framework/issues/689)) +* types/basetypes: Add `Float64Value` type `NewFloat64PointerValue()` creation function and `ValueFloat64Pointer()` method ([#689](https://github.com/hashicorp/terraform-plugin-framework/issues/689)) +* types/basetypes: Add `Int64Value` type `NewInt64PointerValue()` creation function and `ValueInt64Pointer()` method ([#689](https://github.com/hashicorp/terraform-plugin-framework/issues/689)) +* types/basetypes: Add `StringValue` type `NewStringPointerValue()` creation function and `ValueStringPointer()` method ([#689](https://github.com/hashicorp/terraform-plugin-framework/issues/689)) +* resource/schema: Added `Default` fields to `Attribute` types, which support schema-based default values ([#674](https://github.com/hashicorp/terraform-plugin-framework/issues/674)) + +BUG FIXES: + +* types/basetypes: Fixed `Float64Type` type `ValueFromTerraform` method to handle valid, stringified numbers from Terraform ([#648](https://github.com/hashicorp/terraform-plugin-framework/issues/648)) +* resource: Prevented nested attribute and block plan modifications from being undone ([#669](https://github.com/hashicorp/terraform-plugin-framework/issues/669)) + diff --git a/.changes/unreleased/BUG FIXES-20230209-172935.yaml b/.changes/unreleased/BUG FIXES-20230209-172935.yaml deleted file mode 100644 index cc7317158..000000000 --- a/.changes/unreleased/BUG FIXES-20230209-172935.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: BUG FIXES -body: 'types/basetypes: Fixed `Float64Type` type `ValueFromTerraform` method to handle - valid, stringified numbers from Terraform' -time: 2023-02-09T17:29:35.115232-05:00 -custom: - Issue: "648" diff --git a/.changes/unreleased/BUG FIXES-20230210-092136.yaml b/.changes/unreleased/BUG FIXES-20230210-092136.yaml deleted file mode 100644 index 9d237ac30..000000000 --- a/.changes/unreleased/BUG FIXES-20230210-092136.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: BUG FIXES -body: 'resource: Prevented nested attribute and block plan modifications from being undone' -time: 2023-02-10T09:21:36.848573-05:00 -custom: - Issue: "669" diff --git a/.changes/unreleased/ENHANCEMENTS-20230209-172838.yaml b/.changes/unreleased/ENHANCEMENTS-20230209-172838.yaml deleted file mode 100644 index ef5bca568..000000000 --- a/.changes/unreleased/ENHANCEMENTS-20230209-172838.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: ENHANCEMENTS -body: 'internal/fwserver: Added `DEBUG` logging to aid troubleshooting unexpected - plans with unknown values' -time: 2023-02-09T17:28:38.250756-05:00 -custom: - Issue: "630" diff --git a/.changes/unreleased/ENHANCEMENTS-20230314-144231.yaml b/.changes/unreleased/ENHANCEMENTS-20230314-144231.yaml deleted file mode 100644 index 22b81a51e..000000000 --- a/.changes/unreleased/ENHANCEMENTS-20230314-144231.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: ENHANCEMENTS -body: 'types/basetypes: Add `BoolValue` type `NewBoolPointerValue()` creation function - and `ValueBoolPointer()` method' -time: 2023-03-14T14:42:31.20202-04:00 -custom: - Issue: "689" diff --git a/.changes/unreleased/ENHANCEMENTS-20230314-144232.yaml b/.changes/unreleased/ENHANCEMENTS-20230314-144232.yaml deleted file mode 100644 index 486d85abf..000000000 --- a/.changes/unreleased/ENHANCEMENTS-20230314-144232.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: ENHANCEMENTS -body: 'types/basetypes: Add `Float64Value` type `NewFloat64PointerValue()` creation function - and `ValueFloat64Pointer()` method' -time: 2023-03-14T14:42:32.20202-04:00 -custom: - Issue: "689" diff --git a/.changes/unreleased/ENHANCEMENTS-20230314-144233.yaml b/.changes/unreleased/ENHANCEMENTS-20230314-144233.yaml deleted file mode 100644 index 9e0949ed1..000000000 --- a/.changes/unreleased/ENHANCEMENTS-20230314-144233.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: ENHANCEMENTS -body: 'types/basetypes: Add `Int64Value` type `NewInt64PointerValue()` creation function - and `ValueInt64Pointer()` method' -time: 2023-03-14T14:42:33.20202-04:00 -custom: - Issue: "689" diff --git a/.changes/unreleased/ENHANCEMENTS-20230314-144234.yaml b/.changes/unreleased/ENHANCEMENTS-20230314-144234.yaml deleted file mode 100644 index 51c8cd0ac..000000000 --- a/.changes/unreleased/ENHANCEMENTS-20230314-144234.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: ENHANCEMENTS -body: 'types/basetypes: Add `StringValue` type `NewStringPointerValue()` creation function - and `ValueStringPointer()` method' -time: 2023-03-14T14:42:34.20202-04:00 -custom: - Issue: "689" diff --git a/.changes/unreleased/ENHANCEMENTS-20230320-135650.yaml b/.changes/unreleased/ENHANCEMENTS-20230320-135650.yaml deleted file mode 100644 index 1b8fc4f81..000000000 --- a/.changes/unreleased/ENHANCEMENTS-20230320-135650.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: ENHANCEMENTS -body: 'resource/schema: Added `Default` fields to `Attribute` types, which support - schema-based default values' -time: 2023-03-20T13:56:50.458461-04:00 -custom: - Issue: "674" diff --git a/.changes/unreleased/FEATURES-20230320-135357.yaml b/.changes/unreleased/FEATURES-20230320-135357.yaml deleted file mode 100644 index d453bdc83..000000000 --- a/.changes/unreleased/FEATURES-20230320-135357.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: FEATURES -body: 'resource/schema: Introduce packages, interface types, and built-in static - value functionality for schema-based default values' -time: 2023-03-20T13:53:57.841462-04:00 -custom: - Issue: "674" diff --git a/.changes/unreleased/NOTES-20230209-172818.yaml b/.changes/unreleased/NOTES-20230209-172818.yaml deleted file mode 100644 index b685c2f39..000000000 --- a/.changes/unreleased/NOTES-20230209-172818.yaml +++ /dev/null @@ -1,10 +0,0 @@ -kind: NOTES -body: New `DEBUG` level `Detected value change between proposed new state and prior - state` log messages with the offending attribute path are now emitted when proposed - new state value differences would cause the framework to automatically mark all - unconfigured `Computed` attributes as unknown during planning. These can be used - to troubleshoot potential resource implementation issues, or framework and Terraform - plan logic bugs. -time: 2023-02-09T17:28:18.492474-05:00 -custom: - Issue: "630" diff --git a/.changes/unreleased/NOTES-20230303-091808.yaml b/.changes/unreleased/NOTES-20230303-091808.yaml deleted file mode 100644 index f95fede98..000000000 --- a/.changes/unreleased/NOTES-20230303-091808.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: NOTES -body: This Go module has been updated to Go 1.19 per the [Go support policy](https://golang.org/doc/devel/release.html#policy). - Any consumers building on earlier Go versions may experience errors. -time: 2023-03-03T09:18:08.608243Z -custom: - Issue: "682" diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d639cda9..7f6f4552c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,28 @@ +## 1.2.0 (March 21, 2023) + +NOTES: + +* New `DEBUG` level `Detected value change between proposed new state and prior state` log messages with the offending attribute path are now emitted when proposed new state value differences would cause the framework to automatically mark all unconfigured `Computed` attributes as unknown during planning. These can be used to troubleshoot potential resource implementation issues, or framework and Terraform plan logic bugs. ([#630](https://github.com/hashicorp/terraform-plugin-framework/issues/630)) +* This Go module has been updated to Go 1.19 per the [Go support policy](https://golang.org/doc/devel/release.html#policy). Any consumers building on earlier Go versions may experience errors. ([#682](https://github.com/hashicorp/terraform-plugin-framework/issues/682)) + +FEATURES: + +* resource/schema: Introduce packages, interface types, and built-in static value functionality for schema-based default values ([#674](https://github.com/hashicorp/terraform-plugin-framework/issues/674)) + +ENHANCEMENTS: + +* internal/fwserver: Added `DEBUG` logging to aid troubleshooting unexpected plans with unknown values ([#630](https://github.com/hashicorp/terraform-plugin-framework/issues/630)) +* types/basetypes: Add `BoolValue` type `NewBoolPointerValue()` creation function and `ValueBoolPointer()` method ([#689](https://github.com/hashicorp/terraform-plugin-framework/issues/689)) +* types/basetypes: Add `Float64Value` type `NewFloat64PointerValue()` creation function and `ValueFloat64Pointer()` method ([#689](https://github.com/hashicorp/terraform-plugin-framework/issues/689)) +* types/basetypes: Add `Int64Value` type `NewInt64PointerValue()` creation function and `ValueInt64Pointer()` method ([#689](https://github.com/hashicorp/terraform-plugin-framework/issues/689)) +* types/basetypes: Add `StringValue` type `NewStringPointerValue()` creation function and `ValueStringPointer()` method ([#689](https://github.com/hashicorp/terraform-plugin-framework/issues/689)) +* resource/schema: Added `Default` fields to `Attribute` types, which support schema-based default values ([#674](https://github.com/hashicorp/terraform-plugin-framework/issues/674)) + +BUG FIXES: + +* types/basetypes: Fixed `Float64Type` type `ValueFromTerraform` method to handle valid, stringified numbers from Terraform ([#648](https://github.com/hashicorp/terraform-plugin-framework/issues/648)) +* resource: Prevented nested attribute and block plan modifications from being undone ([#669](https://github.com/hashicorp/terraform-plugin-framework/issues/669)) + # 1.1.1 (January 13, 2022) BUG FIXES: