Skip to content

Commit

Permalink
Merge branch 'main' into min-to-122
Browse files Browse the repository at this point in the history
  • Loading branch information
codyoss authored Jan 2, 2025
2 parents 159f5e0 + 03a5790 commit 73e609d
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest-individual.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bigtable": "1.33.0",
"datastore": "1.20.0",
"errorreporting": "0.3.2",
"firestore": "1.17.0",
"firestore": "1.18.0",
"logging": "1.13.0",
"profiler": "0.4.2",
"pubsub": "1.45.3",
Expand Down
19 changes: 18 additions & 1 deletion firestore/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changes

## [1.18.0](https://github.com/googleapis/google-cloud-go/compare/firestore/v1.17.0...firestore/v1.18.0) (2025-01-02)


### Features

* **firestore:** Add String method for Update struct ([#11355](https://github.com/googleapis/google-cloud-go/issues/11355)) ([2320c35](https://github.com/googleapis/google-cloud-go/commit/2320c35ad9a7244c992bfe528e8d49fdc4089369))
* **firestore:** Add WithCommitResponseTo TransactionOption ([#6967](https://github.com/googleapis/google-cloud-go/issues/6967)) ([eb25266](https://github.com/googleapis/google-cloud-go/commit/eb252663ad0bdabbd5de1767b42a69fd2aee54b2))
* **firestore:** Surfacing the error returned from the service in Bulkwriter ([#10826](https://github.com/googleapis/google-cloud-go/issues/10826)) ([9ae039a](https://github.com/googleapis/google-cloud-go/commit/9ae039a38856133a2bde4c3bd70155d17538c974))


### Bug Fixes

* **firestore:** Add UTF-8 validation ([#10881](https://github.com/googleapis/google-cloud-go/issues/10881)) ([9199843](https://github.com/googleapis/google-cloud-go/commit/9199843947bc3a0fa415dba50ba2221850e0fbad))
* **firestore:** Allow using != with nil ([#11112](https://github.com/googleapis/google-cloud-go/issues/11112)) ([5b59819](https://github.com/googleapis/google-cloud-go/commit/5b59819e2d603ef55c4cf056b70af6a08d335373))
* **firestore:** Update golang.org/x/net to v0.33.0 ([e9b0b69](https://github.com/googleapis/google-cloud-go/commit/e9b0b69644ea5b276cacff0a707e8a5e87efafc9))
* **firestore:** Update google.golang.org/api to v0.203.0 ([8bb87d5](https://github.com/googleapis/google-cloud-go/commit/8bb87d56af1cba736e0fe243979723e747e5e11e))
* **firestore:** WARNING: On approximately Dec 1, 2024, an update to Protobuf will change service registration function signatures to use an interface instead of a concrete type in generated .pb.go files. This change is expected to affect very few if any users of this client library. For more information, see https://togithub.com/googleapis/google-cloud-go/issues/11020. ([8bb87d5](https://github.com/googleapis/google-cloud-go/commit/8bb87d56af1cba736e0fe243979723e747e5e11e))

## [1.17.0](https://github.com/googleapis/google-cloud-go/compare/firestore/v1.16.0...firestore/v1.17.0) (2024-09-11)


Expand Down Expand Up @@ -249,4 +267,3 @@

This is the first tag to carve out firestore as its own module. See:
https://github.com/golang/go/wiki/Modules#is-it-possible-to-add-a-module-to-a-multi-module-repository.

16 changes: 16 additions & 0 deletions firestore/docref.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,13 @@ type transform struct {
err error
}

func (t transform) String() string {
if t.t == nil {
return ""
}
return t.t.String()
}

// FieldTransformIncrement returns a special value that can be used with Set, Create, or
// Update that tells the server to transform the field's current value
// by the given value.
Expand Down Expand Up @@ -664,6 +671,15 @@ type Update struct {
Value interface{}
}

// String returns string representation of firestore.Update
func (u Update) String() string {
t, ok := u.Value.(transform)
if !ok {
return fmt.Sprintf("Path: %s FieldPath: %s Value: %s", u.Path, u.FieldPath, u.Value)
}
return fmt.Sprintf("Path: %s FieldPath: %s Value: %s", u.Path, u.FieldPath, t.String())
}

// An fpv is a pair of validated FieldPath and value.
type fpv struct {
fieldPath FieldPath
Expand Down
2 changes: 1 addition & 1 deletion firestore/internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
package internal

// Version is the current tagged release of the library.
const Version = "1.17.0"
const Version = "1.18.0"

0 comments on commit 73e609d

Please sign in to comment.