Skip to content

Commit

Permalink
Add deprecation message for ProtobufBundle
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Soyland <codysoyland@github.com>
  • Loading branch information
codysoyland committed Aug 14, 2024
1 parent aee58dc commit 5dd85b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/bundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ func NewBundle(pbundle *protobundle.Bundle) (*Bundle, error) {
return bundle, nil
}

// Deprecated: use Bundle instead
type ProtobufBundle = Bundle

// Deprecated: use NewBundle instead
func NewProtobufBundle(b *protobundle.Bundle) (*ProtobufBundle, error) {
return NewBundle(b)
}

func (b *Bundle) validate() error {
bundleVersion, err := getBundleVersion(b.Bundle.MediaType)
if err != nil {
Expand Down

0 comments on commit 5dd85b0

Please sign in to comment.