diff --git a/clients/cli/CHANGELOG.md b/clients/cli/CHANGELOG.md index d748d6d6..9469dd1b 100644 --- a/clients/cli/CHANGELOG.md +++ b/clients/cli/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [2.35.0](https://github.com/phrase/openapi/compare/cli-v2.34.1...cli-2.25.0) (2024-12-18) + + +### ⚠ BREAKING CHANGES + +* Remove old Git sync endpoints. Replaced with new repo sync ([#735](https://github.com/phrase/openapi/issues/735)) + +### Features + +* **API:** Add 'default_encoding' documentation ([#733](https://github.com/phrase/openapi/issues/733)) ([0139c51](https://github.com/phrase/openapi/commit/0139c51da747fbe7bc9929bcf3534aad7f22f39a)) +* Remove old Git sync endpoints. Replaced with new repo sync ([#735](https://github.com/phrase/openapi/issues/735)) ([c3bd8ec](https://github.com/phrase/openapi/commit/c3bd8eccaabcfa1b1066ea4438971ac59833af46)) + + +### Bug Fixes + +* **API:** Add missing branch parameter to job comment endpoints #STRINGS-988 ([#724](https://github.com/phrase/openapi/issues/724)) ([64d399c](https://github.com/phrase/openapi/commit/64d399ced0980ac2a48366f91110047287a0c590)) + ## [2.34.1](https://github.com/phrase/openapi/compare/cli-v2.34.0...cli-v2.34.1) (2024-11-27) diff --git a/clients/cli/cmd/internal/init.go b/clients/cli/cmd/internal/init.go index 7eb65205..f77e6529 100644 --- a/clients/cli/cmd/internal/init.go +++ b/clients/cli/cmd/internal/init.go @@ -12,7 +12,7 @@ import ( "github.com/phrase/phrase-cli/cmd/internal/prompt" "github.com/phrase/phrase-cli/cmd/internal/shared" "github.com/phrase/phrase-cli/cmd/internal/spinner" - "github.com/phrase/phrase-go/v3" + "github.com/phrase/phrase-go/v4" "gopkg.in/yaml.v2" ) diff --git a/clients/cli/cmd/internal/pull.go b/clients/cli/cmd/internal/pull.go index a8d1fcac..74e73188 100644 --- a/clients/cli/cmd/internal/pull.go +++ b/clients/cli/cmd/internal/pull.go @@ -17,7 +17,7 @@ import ( "github.com/phrase/phrase-cli/cmd/internal/print" "github.com/antihax/optional" - "github.com/phrase/phrase-go/v3" + "github.com/phrase/phrase-go/v4" ) const ( diff --git a/clients/cli/cmd/internal/pull_target.go b/clients/cli/cmd/internal/pull_target.go index b64cec74..5663cb8a 100644 --- a/clients/cli/cmd/internal/pull_target.go +++ b/clients/cli/cmd/internal/pull_target.go @@ -9,7 +9,7 @@ import ( "github.com/phrase/phrase-cli/cmd/internal/paths" "github.com/phrase/phrase-cli/cmd/internal/placeholders" "github.com/phrase/phrase-cli/cmd/internal/shared" - "github.com/phrase/phrase-go/v3" + "github.com/phrase/phrase-go/v4" "github.com/spf13/viper" ) diff --git a/clients/cli/cmd/internal/push.go b/clients/cli/cmd/internal/push.go index 78e1e81c..e967bb13 100644 --- a/clients/cli/cmd/internal/push.go +++ b/clients/cli/cmd/internal/push.go @@ -18,7 +18,7 @@ import ( "github.com/phrase/phrase-cli/cmd/internal/print" "github.com/phrase/phrase-cli/cmd/internal/shared" "github.com/phrase/phrase-cli/cmd/internal/spinner" - "github.com/phrase/phrase-go/v3" + "github.com/phrase/phrase-go/v4" ) type PushCommand struct { diff --git a/clients/cli/cmd/internal/push_source.go b/clients/cli/cmd/internal/push_source.go index ee7a60e2..f029625d 100644 --- a/clients/cli/cmd/internal/push_source.go +++ b/clients/cli/cmd/internal/push_source.go @@ -9,7 +9,7 @@ import ( "github.com/antihax/optional" "github.com/phrase/phrase-cli/cmd/internal/paths" "github.com/phrase/phrase-cli/cmd/internal/placeholders" - "github.com/phrase/phrase-go/v3" + "github.com/phrase/phrase-go/v4" "github.com/spf13/viper" ) diff --git a/clients/cli/cmd/internal/shared.go b/clients/cli/cmd/internal/shared.go index 4a74c6b0..c5544f3b 100644 --- a/clients/cli/cmd/internal/shared.go +++ b/clients/cli/cmd/internal/shared.go @@ -13,7 +13,7 @@ import ( "github.com/phrase/phrase-cli/cmd/internal/print" "github.com/phrase/phrase-cli/cmd/internal/prompt" "github.com/phrase/phrase-cli/cmd/internal/shared" - "github.com/phrase/phrase-go/v3" + "github.com/phrase/phrase-go/v4" "github.com/spf13/viper" "golang.org/x/exp/maps" ) diff --git a/clients/cli/cmd/internal/upload_cleanup.go b/clients/cli/cmd/internal/upload_cleanup.go index 60f8cfc9..c95b9d0e 100644 --- a/clients/cli/cmd/internal/upload_cleanup.go +++ b/clients/cli/cmd/internal/upload_cleanup.go @@ -1,7 +1,7 @@ package internal import ( - "github.com/phrase/phrase-go/v3" + "github.com/phrase/phrase-go/v4" ) type UploadCleanupCommand struct { diff --git a/clients/cli/cmd/root.go b/clients/cli/cmd/root.go index e5f7767e..254d1615 100644 --- a/clients/cli/cmd/root.go +++ b/clients/cli/cmd/root.go @@ -10,8 +10,8 @@ import ( "github.com/phrase/phrase-cli/cmd/internal/print" "github.com/phrase/phrase-cli/cmd/internal/shared" "github.com/phrase/phrase-cli/cmd/internal/updatechecker" - "github.com/phrase/phrase-go/v3" - api "github.com/phrase/phrase-go/v3" + "github.com/phrase/phrase-go/v4" + api "github.com/phrase/phrase-go/v4" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/clients/cli/go.mod b/clients/cli/go.mod index 01db1b53..670931aa 100644 --- a/clients/cli/go.mod +++ b/clients/cli/go.mod @@ -9,7 +9,7 @@ require ( github.com/daviddengcn/go-colortext v1.0.0 github.com/jpillora/backoff v1.0.0 github.com/mitchellh/mapstructure v1.4.0 - github.com/phrase/phrase-go/v3 v4.0.2 // x-release-please-version + github.com/phrase/phrase-go/v4 v4.0.2 // x-release-please-version github.com/spf13/cobra v1.0.0 github.com/spf13/viper v1.7.1 gopkg.in/yaml.v2 v2.4.0 diff --git a/clients/cli/go.sum b/clients/cli/go.sum index f6c66e46..7a56e832 100644 --- a/clients/cli/go.sum +++ b/clients/cli/go.sum @@ -220,8 +220,8 @@ github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FI github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.1 h1:1Nf83orprkJyknT6h7zbuEGUEjcyVlCxSUGTENmNCRM= github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc= -github.com/phrase/phrase-go/v3 v3.6.0 h1:0Uea1+Cz3NIdg1KSPhB3A/uQoCWlZAs/B5Eeb1IwAhc= -github.com/phrase/phrase-go/v3 v3.6.0/go.mod h1:s0uOYiXLxKAYlaIS6TbKv3efkKFUlY4OB6OL+VgvK90= +github.com/phrase/phrase-go/v4 v4.0.2 h1:xljCCa67OWBXrRCQqYgYdvVbfgiax0MgdoSey/rSh3M= +github.com/phrase/phrase-go/v4 v4.0.2/go.mod h1:4XplKvrbHS2LDaXfFp9xrVDtO5xk2WHFm0htutwwd8c= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= diff --git a/openapi-generator/cli_lang.yaml b/openapi-generator/cli_lang.yaml index 7f8fedf0..28e63be2 100644 --- a/openapi-generator/cli_lang.yaml +++ b/openapi-generator/cli_lang.yaml @@ -2,6 +2,6 @@ generatorName: go outputDir: clients/cli packageName: phrase -packageVersion: 2.34.1 +packageVersion: 2.35.0 templateDir: openapi-generator/templates/cli apiNameSuffix: Api diff --git a/openapi-generator/templates/cli/api.handlebars b/openapi-generator/templates/cli/api.handlebars index c5dc2adc..49b3551d 100644 --- a/openapi-generator/templates/cli/api.handlebars +++ b/openapi-generator/templates/cli/api.handlebars @@ -9,7 +9,7 @@ import ( "github.com/antihax/optional" helpers "github.com/phrase/phrase-cli/helpers" - api "github.com/phrase/phrase-go/v3" + api "github.com/phrase/phrase-go/v4" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/release-please/manifest-cli.json b/release-please/manifest-cli.json index 19b4ce3a..10091e15 100644 --- a/release-please/manifest-cli.json +++ b/release-please/manifest-cli.json @@ -1,3 +1,3 @@ { - ".": "2.34.1" + ".": "2.35.0" }