diff --git a/dev/src/reference.ts b/dev/src/reference.ts index 28463491a..cbeca3a71 100644 --- a/dev/src/reference.ts +++ b/dev/src/reference.ts @@ -1847,6 +1847,15 @@ export class Query implements firestore.Query { return this._queryOptions.fieldOrders; } + // TODO(b/296435819): Remove this warning message. + if (cursorValuesOrDocumentSnapshot[0] instanceof DocumentReference) { + // eslint-disable-next-line no-console + console.warn( + `Warning: Passing DocumentReference into a cursor without orderBy clause is not an intended + behavior. Please use DocumentSnapshot or add an explicit orderBy on document key field.` + ); + } + const fieldOrders = this._queryOptions.fieldOrders.slice(); const fieldsNormalized = new Set([ ...fieldOrders.map(item => item.field.toString()), diff --git a/package.json b/package.json index 7d6b0678d..693b18888 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "fast-deep-equal": "^3.1.1", "functional-red-black-tree": "^1.0.1", "google-gax": "^3.5.7", - "protobufjs": "^7.0.0" + "protobufjs": "^7.2.5" }, "devDependencies": { "@types/assert": "^1.4.0", @@ -82,12 +82,12 @@ "extend": "^3.0.2", "gts": "^3.1.0", "jsdoc": "^4.0.0", - "jsdoc-fresh": "^2.0.0", - "jsdoc-region-tag": "^2.0.0", + "jsdoc-fresh": "^3.0.0", + "jsdoc-region-tag": "^3.0.0", "length-prefixed-json-stream": "^1.0.1", "linkinator": "^5.0.0", "mocha": "^9.2.2", - "protobufjs-cli": "^1.0.0", + "protobufjs-cli": "^1.1.2", "proxyquire": "^2.1.3", "sinon": "^15.0.0", "through2": "^4.0.0",