Skip to content

Latest commit

 

History

History
636 lines (455 loc) · 19.7 KB

CHANGELOG.md

File metadata and controls

636 lines (455 loc) · 19.7 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, adheres to Semantic Versioning, and is generated by Changie.

v1.18.1 - 2024-12-04

Fixed

  • Fixed default shipping_method active field

v1.18.0 - 2024-12-03

Added

  • resource_api_client add support for setting and managing token validity via Terraform.
  • Added the attribute ShippingMethod.active to the resource shipping_method.

Dependency

  • chore(deps): bump the go group with 6 updates
  • chore(deps): bump actions/add-to-project from 0.5.0 to 1.0.2 in the github-actions group
  • chore(deps): bump the go group with 6 updates
  • chore(deps): bump codecov/codecov-action from 4 to 5 in the github-actions group

v1.17.0 - 2024-11-01

Added

  • Added handling of product search and customer search indexes
  • Added stores to cart discounts

Dependency

  • chore(deps): bump labd/changie-release-action from 0.4.0 to 0.5.0 in the github-actions group
  • chore(deps): bump the go group with 4 updates

v1.16.0 - 2024-10-10

Added

  • resource_api_extension add support for triggers on `shopping-list``

v1.15.1 - 2024-09-03

Fixed

  • Fixed shipping_zone_rate freeAbove handling when empty

Dependency

  • chore(deps): bump the go group with 5 updates

v1.15.0 - 2024-08-30

Added

  • Added resources for associate role and business units and extended project setting options

v1.14.3 - 2024-05-17

Dependency

  • chore(deps): bump the go group across 1 directory with 9 updates
  • chore(deps): bump the github-actions group across 1 directory with 7 updates
  • chore(deps): bump golang.org/x/net from 0.22.0 to 0.23.0
  • chore(deps): bump the go group with 3 updates
  • chore(deps): bump actions/add-to-project from 0.5.0 to 1.0.1 in the github-actions group

v1.14.2 - 2024-04-19

Fixed

  • Added documentation hint on importing commercetools_shipping_zone_rate

v1.14.1 - 2024-02-09

Fixed

  • Properly handle resource not found errors for subscription, state, state_transitions, product_selection, attribute_group and associate_role.

v1.14.0 - 2024-01-26

Added

  • Added support for confluence cloud subscriptions

Fixed

  • Updated documentation

v1.13.1 - 2024-01-22

Fixed

  • Added more support for IETF BCP 47 language tags
  • Added support for totalPrice target on cart_discount resource

v1.13.0 - 2023-11-16

Added

  • update to latest commercetools go sdk
  • Code cleanup

Fixed

  • Added additional check for unset values on discount_code resource
  • ensure an empty slice is set if subscription messages or changes are removed
  • fixed check on project ExternalOAuth setting when processing state and plan differences
  • Updated deprecated code

v1.12.0 - 2023-10-06

Added

  • Add new resource commercetools_product_selection
  • Add property product_selection to commercetools_store for binding product selections to stores

v1.11.4 - 2023-09-26

Fixed

  • prevented issue with bool valueunknown check
  • Custom Field Unset Causing Provider Crash

v1.11.3 - 2023-09-20

Fixed

  • Added fix to update countryTaxRateFallbackEnabled separately

v1.11.2 - 2023-08-31

Fixed

  • NotFound error not handled correctly

v1.11.1 - 2023-08-25

Fixed

  • Change store countries to set type

v1.11.0 - 2023-08-25

Added

  • Added associate role resource

Fixed

  • Fixed bad handling of secrets on subscription import

v1.10.1 - 2023-08-17

Fixed

  • Fixed forced replacement issue in commercetools_category when name or key change
  • Fixed custom field encoding with non-string field values
  • Added correct handling of azure_authentication to prevent unnecessary updates
  • Added custom field for cart discount

v1.10.0 - 2023-08-11

Added

  • New data source: commercetools_state

v1.9.0 - 2023-08-09

Added

  • commercertools_api_extension: added googlecloudfunction as option
  • commercertools_cart_discount: added multiBuyLineItems and multiBuyCustomLineItems
  • commercertools_store: added countries field

Fixed

  • commercertools_type: doc changes to source files
  • commercertools_cart_discount: fixed money list issue

v1.8.0 - 2023-08-03

Added

  • New resource: commercetools_attribute_group

v1.7.1 - 2023-07-13

Fixed

  • Fix discount_code resource when no predicate is given

v1.7.0 (2023-05-22)

Fixed

  • fix: remove duplicate project_key in example. (#350)
  • chore: update to latest packages
  • fix: set URI for destination of EventGrid (#364)
  • fix: improve README for local run (#370)

v1.6.9 (2023-02-27)

Fixed

  • resource_subscription Fix handling of missing subscriptions available in the state but not in commercetools. (#345)

v1.6.8 (2023-02-02)

Fixed

  • resource_subscription Fix removing requirement to specify access_key when the access_secret is defined. The latter is only needed for EventGrid.

v1.6.7 (2023-01-24)

Fixed

  • resource_project Add extra checks to make sure we have a message block before reading it(#340)

v1.6.6 (2023-01-24)

Fixed

  • resource_subscription Remove requirement to specify access_key when the access_secret is defined. The latter is only needed for EventGrid.

v1.6.5 (2023-01-24)

Added

  • Add new data source data commercetools_type to retrieve information about a type based on the key.

v1.6.4 (2023-01-23)

  • resource_subscription fix issue in the state upgrader when upgrading from schema version 0 to 1.
  • resource_state fix handling of both the name and description attributes.

v1.6.3 (2023-01-20)

  • resource_subscription fix the GoogleCloudPubSub integration where the wrong topic value was used (#337).
  • resource_project_settings fix continous terraform updates for the shipping_rate_cart_classification_value block (#335)

v1.6.2 (2023-01-11)

  • resource_state rewrite both the state and state_transitions resource and move the code to the new plugin-framework. This should fix some related to mismatching version values by always refreshing these. (#333)

v1.6.1 (2023-01-11)

  • resource_project_settings fix validation of values for the delete_days_after_creation field (should be between 1-90)
  • resource_subscription fix errors when the format block was missing (#331)

v1.6.0 (2023-01-09)

  • resource_project_settings migrate the resource to the new terraform-plugin-framework.
  • resource_project_settings add property delete_days_after_creation to the messages block (#322)
  • resource_subscription Support using IAM authentication for SQS and SNS by making the access_key and access_secret attributes optional. (#316)
  • resource_subscription migrate the resource to the new terraform-plugin-framework.
  • resource_subscription fix handling of changes in the connection_string value when the AzureServiceBus is used (#320)
  • resource_api_extension add support for triggers on business-unit, quote-request, quote, staged-quote (#326)

v1.5.1 (2022-10-04)

  • resource_state_transitions fix error when we tried to set the transitions value to a value already set in commercetools, causing an error. See #312
  • resource_state_transitions add support for importing existing state transitions

v1.5.0 (2022-09-30)

  • resource_state_transitions New resource to manage transitions between states. This was previously part of the resource_state but that made it imposible to have recursive transitions. This means that transitions attribute is now removed from the resource_state resource.

    example:

  // Only allow transition from sale to clearance
  resource "commercetools_state_transitions" "transition-1" {
    from = commercetools_state.product_for_sale.id
    to = [
      commercetools_state.product_clearance.id,
    ]
  }

See #86 for more information

  • resource_shipping_zone_rate Add support for price_function when the type is CartScore (#202)

v1.4.4 (2022-09-23)

  • Additional fixes to setting custom field values on supported resources. (#303)
  • resource_api_extension Fix handling masked values for azure_authentication (#306)
  • resource_subscription Fix handling masked values for event_grid (#306)

v1.4.2 (2022-08-24)

  • Fix setting custom field values on supported resources when the fiedl type is a set (#299)

v1.4.1 (2022-08-19)

  • resource_product_type fix parsing the enums from the state file (#294)

v1.4.0 (2022-08-18)

  • resource_product_discount new resource to manage product discounts (#266)
  • resource_subscription: Fix a bug where remove the changes or messages from the resource was resulting in an invalid request. (#138)
  • resource_shipping_zone_rate Fix persisting the shipping rate tiers in the terraform state (#184)
  • resource_api_extension Fix handling of retrieving secrets from commercetools (#284)
  • resource_subscription Fix handling changes in both changes and messages attributes (#138)
  • Fix setting custom fields on the various resources when the type is not a string (#289)

v1.3.0 (2022-08-03)

  • Backwards incompatible Use a list type for enum values instead of a map to keep the ordering intact. This change requires an update to the way the values are defined (#98, #278):

    type {
      name = "enum"
      values {
        FLAG-1 = "Flag 1"
        FLAG-2 = "Flag 2"
      }
    }

    to

    type {
      name = "enum"
      value {
        key   = "FLAG-1"
        label = "Flag 1"
      }
      value {
        key   = "FLAG-2"
        label = "FLAG-2"
      }
    }
  • Update documentation and examples

  • Add support for custom fields on category, channel, customer_group, discount_code, shipping_method and store resources. (#265)

  • Improve logic to set the user-agent used in the requests. We now use the provider version. For example: User-Agent: terraform-provider-commercetools/1.3.0 (bd9cae0)

  • Improve the error handling by better communicating the errors raised by commercetools.

  • Accept a trailing slash in the token url (#182)

  • Large rewrite of the type and product_type resources to fix a number of issues (#165, #262, #263, #267)

v1.2.1 (2022-06-16)

  • Fix api_extension resource to not error out when the new condition field is not defined. (#261)

v1.2.0 (2022-06-15)

  • Fix shipping_zone locations ordering by switching to a set instead of a list of locations (#259)
  • Add aliases for destination and platform on subscription and extension resources (#245, #247, #251)
  • Add condition field to api extension resource
  • Add support for terraform import on the api_extension resource
  • Improve error handling, show errors returned by commercetools in terraform output.

v1.1.0 (2022-06-01)

  • Fix out of bounds error in the commercetools_type resource (#241)
  • Handle changes to access_secret in api_extension resource (#243)

v1.0.1 (2022-05-25)

  • Minor release to fix hash error

v1.0.0 (2022-05-23)

  • Use terraform plugin sdk v2. This changed required various changes and should have made the codebase more robust.
  • Fix marshalling the commercetools to terraform state for various resources.
  • Move documentation to the terraform registry, see https://registry.terraform.io/providers/labd/commercetools/latest/docs
  • Use Go 1.18
  • Add support for AWS EventBridge subscription
  • Resource updates:
    • project_settings: do case insensitive comparison of the languages, currencies and countries
    • shipping_zone: make the name required
    • api_extension: Fix handling of timeout_in_ms when empty
    • category: add support for setting external_id
    • category: fix empty key being set on creation

v0.30.0 (2021-08-04)

  • Resource project: Add shipping_rate_input_type setting to enable tiered pricing for a project
  • Resource shipping_zone_rate: Add shipping_rate_price_tier setting to set up tiered pricing

v0.29.3 (2021-06-16)

  • Fix custom object not being read / updated correctly

v0.29.2 (2021-05-19)

  • Fix orderHint not being set but key on category being cleared. Note this will clear orderHint if it's not set.

v0.29.1 (2021-05-19)

  • Fix category create not working with only name and slug filled in

v0.29.0 (2021-04-23)

  • Resource Project: Add project level cart delete_days_after_last_modification setting

v0.28.0 (2021-04-08)

  • New resource: commercetools_category
  • Resource API Extension: Removed unused azure_functions type
  • Add CheckDestroy funcs to all tests
  • Add TFDocs documentation parallel to readthedocs documentation

v0.27.0 (2021-03-01)

  • Resource project: Add carts field with countryTaxRateFallBackEnabled setting
  • Resource project: Fix updating of messages field to explicitly set false when deleted or set to false in terraform instead of relying on commercetools default settings for project in these scenarios

v0.26.1 (2021-01-21)

  • Resource api_extension: Fixed typo in trigger field name that caused updates to actions in triggers to fail

v0.26.0 (2021-01-12)

  • New resource commercetools_customer_group (#141)
  • Resource type: Allow updating the label of an existing Enum value
  • Resource type: Add support to update a set of enum in a custom type
  • Fix ProductType and DiscountCode tests with real commercetools environment

v0.25.3 (2020-12-17)

  • Resource store: Force creation of new resource when changing the keyL there is no update action for this available.

v0.25.2 (2020-12-17)

  • Resource channel: Add support for updating the key field

v0.25.1 (2020-12-05)

  • Resource type: Fix a bug when the input_hint of a field was modified.

v0.25.0 (2020-11-27)

  • New resource: commercetools_custom_object

v0.24.1 (2020-11-13)

  • Resource tax_rate: Add a workaround to handle an issue with changing id's after a tax category update

v0.24.0 (2020-11-13)

  • Resource store: Add supply_channels field
  • Resource tax_category_rate: Handle non-existing tax rates when refreshing state

v0.23.0 (2020-08-28)

  • New tag naming scheme (prefix with v) to conform to terraform repository requirements
  • Update terraform-plugin-sdk for compatibility with terraform 0.13

0.22.1 (2020-07-21)

  • Resource store: Fix edge case where distribution channels were not updated

0.22.0 (2020-07-20)

  • Resource store: Add distribution_channels field
  • Update commercetools-go-sdk dependency to v0.2.0. This version now properly handles oauth2 authentication failures (#117)

0.21.2 (2020-06-11)

  • Resource store: Add languages field

0.21.1 (2020-04-22)

  • Resource channel: Fix read null pointer exception. Name should be optional.

0.21.0 (2020-02-27)

  • Provider arguments (client_id, client_secret, project_key, scopes, token_url and api_url) are now required
  • Resource api_client: Updating now recreates the resource since it cannot be updated.
  • Don't retry various calls if Commercetools returns an error (resulting in unnecessary retries/waiting times).
  • Dependency update: use terraform-plugin-sdk 1.7.0

0.20.0 (2020-02-22)

  • Resource subscription: Add Azure Event Grid support

0.19.0 (2019-10-02)

  • Update all dependencies (use go 1.13, switch to terraform plugin sdk)

0.18.3 (2019-09-11)

  • Use Terraform 0.12.8 dependency

0.18.2 (2019-09-10)

  • Brew release Linux has incorrect artifact name
  • Set GOPROXY for possible unreachable go packages

0.18.1 (2019-08-19)

  • Change Linux release artifact back to default archive format

0.18.0 (2019-08-14)

  • Resource state: Add transitions field (#74)

0.17.0 (2019-08-06)

  • Resource api_extension: Update Extension resource to add timeout_in_ms (#80)
  • Resource shipping_method: Add predicate field (#82)

0.16.0 (2019-07-22)

  • Resource project: Add support for setting the externalOAuth field (#73)
  • Resource state: Add support for the StateRole Return item (#77)

0.15.1 (2019-07-16)

  • Trying to fix Brew release now that version number is in binary

0.15.0 (2019-07-16)

  • Use new Commercetools Go SDK definitions (main change is auto generated services, most CRUD actions are renamed)
  • Fix Goreleaser not putting version number in released binary

0.14.0 (2019-07-04)

  • Use new Commercetools Go SDK definitions (main change is Reference is now ResourceIdentifier resource)

0.13.1 (2019-07-02)

  • Small fix for incorrect binary name in homebrew installation

0.13.0 (2019-07-02)

  • Add brew install option to goreleaser, see README for more info

0.12.1 (2019-06-26)

  • Resource api_client: Small fix in creating api client with new scopes

0.12.0 (2019-06-26)

Breaking chanages

  • Resource api_client: Changed scope type from string to set

0.11.1 (2019-06-26)

  • Resource shipping_zone: Fix creation and deletion, thanks to @sshibani !

0.11.0 (2019-06-20)

Added

  • Use new Commercetools Go SDK to set the User-Agent header on Commercetools HTTP requests.

0.10.0 (2019-06-17)

Added

  • Use Terraform 0.12.2 dependency for compatability with latest version

0.9.0 (2019-05-20)

  • Use Terraform 0.12 dependency to prepare for 0.12 release

0.8.0 (2019-05-20)

Added

  • New resource: commercetools_state

0.7.1 (2019-05-14)

Added

  • Resource shipping_zone_rate: Add validation for currency codes

0.7.0 (2019-05-08)

Added

  • New resource: commercetools_store This is an alpha Commercetools resource

Fixed

  • Use latest commercetools Go SDK

0.6.0 (2019-04-26)

  • New resource: commercetools_shipping_method
  • New resource: commercetools_shipping_zone_rate, Subject to changes, tiers/validation is not yet implemented

0.5.4 (2019-04-14)

  • Resource product_type: Fixed localized enum values being updated even if not changed

0.5.3 (2019-03-27)

  • Resource product_type: Implement description update
  • Resource product_type: Implement localized enum label change

0.5.2 (2019-03-26)

Fixed

  • Resource type: Fix error reading field type Money

0.5.1 (2019-03-20)

  • Resource tax_category_rate: Fix import existing instance
  • Resource tax_category_rate: Fix tax rate edge case for 0 amount

0.5.0 (2019-03-19)

  • New resource commercetools_tax_category_rate
  • Resource tax_category: removed rate in favour of commercetools_tax_category_rate
  • Resource shipping_zone: Fix add/remove location logic.

0.4.2 (2019-02-11)

Fixed

  • Resource tax_category: Fix tax rate 0.0 case not being handled

0.4.1 (2019-01-28)

Added

  • New resource: commercetools_shipping_zone

Fixed

  • Fix resource_type attribute label not mapping correctly

0.4.0 (2019-01-10)

Fixed

  • Use auto-generated commercetools-go-sdk types

0.3.0 (2018-12-10)

Added

  • New resource: commercetools_channel
  • New resource: commercetools_tax_category

Fixed

  • Resource product_type: made attribute elements optional
  • Resource product_type: Validate/protect required element on Product type attribute
  • Resource product_type: Avoid changeAttributeOrder update action when new attribute gets added
  • Resource product_type: Added support for Nested types
  • Resource type: Validate/protect required element on Type attribute
  • Resource type: Avoid changeAttributeOrder update action when new attribute gets added

0.2.0 (2018-12-10)

Added

  • New resource: commercetools_product_type

0.1.1 (2018-10-04)

Added

  • New resource: commercetools_type

0.1.0 (2018-09-14)

Added

  • New resource: commercetools_api_extension
  • New resource: commercetools_subscription
  • New resource: commercetools_project_settings

0.1.0 (2018-09-14)

Added

  • commercetools_api_extension
  • commercetools_subscription
  • commercetools_project_settings