Skip to content

Releases: dasrick/go-teams-notify

v2.1.0

08 Apr 06:19
823a70e
Compare
Choose a tag to compare

New

  • MessageCard type includes additional fields

    • Type and Context fields provide required JSON payload
      fields
      • preset to required static values via updated
        NewMessageCard() constructor
    • Summary
      • required if Text field is not set, optional otherwise
    • Sections slice
      • MessageCardSection type
  • Additional nested types

    • MessageCardSection
    • MessageCardSectionFact
    • MessageCardSectionImage
  • Additional methods for MessageCard and nested types

    • MessageCard.AddSection()
    • MessageCardSection.AddFact()
    • MessageCardSection.AddFactFromKeyValue()
    • MessageCardSection.AddImage()
    • MessageCardSection.AddHeroImageStr()
    • MessageCardSection.AddHeroImage()
  • Additional factory functions

    • NewMessageCardSection()
    • NewMessageCardSectionFact()
    • NewMessageCardSectionImage()
  • IsValidMessageCard() added to check for minimum required
    field values.

    • This function has the potential to be extended
      later with additional validation steps.
  • Wrapper IsValidInput() added to handle all validation
    needs from one location.

    • the intent was to both solve a CI erro and provide
      a location to easily extend validation checks in
      the future (if needed)

Changed

  • MessageCard type includes additional fields

  • NewMessageCard factory function sets fields needed for
    required JSON payload fields

    • Type
    • Context
  • teamsClient.Send() method updated to apply MessageCard struct
    validation alongside existing webhook URL validation

  • isValidWebhookURL() exported as IsValidWebhookURL() so that client
    code can use the validation functionality instead of repeating the
    code

    • e.g., flag value validation for "fail early" behavior

Known Issues

  • No support in this set of changes for potentialAction types
    • ViewAction
    • OpenUri
    • HttpPOST
    • ActionCard
    • InvokeAddInCommand
      • Outlook specific based on what I read; likely not included
        in a future release due to non-Teams specific usage

v2.0.0

29 Mar 08:11
aab6d40
Compare
Choose a tag to compare

Breaking Changes

  • NewClient() will NOT return multiple values
  • remove provided mock

General

  • switch dependency/package management tool to from dep to go mod
  • switch from golint to golangci-lint
  • add more golang versions to pass via travis-ci

v1.3.1

29 Mar 08:09
652e2e7
Compare
Choose a tag to compare
  • fix redundant error logging
  • fix redundant comment

v1.3.0

26 Mar 13:02
97487a6
Compare
Choose a tag to compare
  • feature: allow multiple valid webhook URL FQDNs (thx@atc0005)

v1.2.0

08 Nov 09:20
feea812
Compare
Choose a tag to compare
  • add mock
  • update deps
  • gosimple (shorten two conditions)

v1.1.1

02 May 07:17
bc0163b
Compare
Choose a tag to compare
  • rename client interface into API
  • update deps
  • fix typo in README

v1.1.0

30 Apr 08:17
Compare
Choose a tag to compare
  • add/change to client/interface
  • add missing tests
  • append documentation

v1.0.0

29 Apr 07:59
Compare
Choose a tag to compare
  • add initial functionality of sending messages to MS Teams channel