Skip to content

Commit fe99d8a

Browse files
authored
Merge branch 'main' into fix/flush-before-requeuing-retries
2 parents 7a1b241 + 62e73b8 commit fe99d8a

File tree

14 files changed

+45
-23
lines changed

14 files changed

+45
-23
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
1616
digest: sha256:c7e4968cfc97a204a4b2381f3ecb55cabc40c4cccf88b1ef8bef0d976be87fee
17+
# created: 2025-04-08T17:33:08.498793944Z

.github/scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"js-yaml": "^4.1.0"
1515
},
1616
"devDependencies": {
17-
"@octokit/rest": "^19.0.0",
17+
"@octokit/rest": "^21.0.0",
1818
"mocha": "^10.0.0",
1919
"sinon": "^18.0.0"
2020
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@google-cloud/promisify": "^5.0.0",
5555
"@opentelemetry/api": "~1.9.0",
5656
"@opentelemetry/core": "^1.30.1",
57-
"@opentelemetry/semantic-conventions": "~1.32.0",
57+
"@opentelemetry/semantic-conventions": "~1.33.0",
5858
"arrify": "^2.0.0",
5959
"extend": "^3.0.2",
6060
"google-auth-library": "^10.0.0-rc.1",
@@ -80,7 +80,7 @@
8080
"@types/uuid": "^10.0.0",
8181
"c8": "^10.1.3",
8282
"codecov": "^3.8.3",
83-
"execa": "~5.0.0",
83+
"execa": "~5.1.0",
8484
"gapic-tools": "^1.0.1",
8585
"gts": "^6.0.2",
8686
"jsdoc": "^4.0.4",

samples/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
"@opentelemetry/semantic-conventions": "^1.17.0",
3535
"avro-js": "^1.11.3",
3636
"p-defer": "^3.0.0",
37-
"protobufjs": "~7.4.0"
37+
"protobufjs": "~7.5.0"
3838
},
3939
"devDependencies": {
40-
"@google-cloud/bigquery": "^7.0.0",
40+
"@google-cloud/bigquery": "^8.0.0",
4141
"@google-cloud/typeless-sample-bot": "^3.0.0",
4242
"@types/chai": "^4.2.16",
4343
"chai": "^4.2.0",
44-
"gts": "^5.0.0",
44+
"gts": "^6.0.0",
4545
"lru-cache": "9.1.2",
4646
"mocha": "^9.2.2",
4747
"rimraf": "5.0.9",

samples/publishMessage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async function publishMessage(topicNameOrId, data) {
5151
const topic = pubSubClient.topic(topicNameOrId);
5252

5353
try {
54-
const messageId = topic.publishMessage({data: dataBuffer});
54+
const messageId = await topic.publishMessage({data: dataBuffer});
5555
console.log(`Message ${messageId} published.`);
5656
} catch (error) {
5757
console.error(`Received error while publishing: ${error.message}`);

samples/publishMessageWithCustomAttributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function publishMessageWithCustomAttributes(topicNameOrId, data) {
5555
// Cache topic objects (publishers) and reuse them.
5656
const topic = pubSubClient.topic(topicNameOrId);
5757

58-
const messageId = topic.publishMessage({
58+
const messageId = await topic.publishMessage({
5959
data: dataBuffer,
6060
attributes: customAttributes,
6161
});

samples/publishOrderedMessage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async function publishOrderedMessage(topicNameOrId, data, orderingKey) {
7272
const topic = pubSubClient.topic(topicNameOrId, publishOptions);
7373

7474
// Publishes the message
75-
const messageId = topic.publishMessage(message);
75+
const messageId = await topic.publishMessage(message);
7676

7777
console.log(`Message ${messageId} published.`);
7878

samples/system-test/schema.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ describe('schema', () => {
383383
const topic = await createTopicWithSchema(id, schema.id, Encodings.Json);
384384
const sub = await createSub(id, topic.name);
385385

386-
topic.publishMessage({
386+
await topic.publishMessage({
387387
data: Buffer.from(
388388
JSON.stringify({
389389
name: 'Alberta',
@@ -419,7 +419,7 @@ describe('schema', () => {
419419
);
420420
const sub = await createSub(id, topic.name);
421421

422-
topic.publishMessage({
422+
await topic.publishMessage({
423423
data: Buffer.from(
424424
JSON.stringify({
425425
name: 'Alberta',
@@ -443,7 +443,7 @@ describe('schema', () => {
443443
const topic = await createTopicWithSchema(id, schema.id, Encodings.Json);
444444
const sub = await createSub(id, topic.name);
445445

446-
topic.publishMessage({
446+
await topic.publishMessage({
447447
data: Buffer.from(
448448
JSON.stringify({
449449
name: 'Quebec',

samples/typescript/publishMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function publishMessage(topicNameOrId: string, data: string) {
4747
const topic = pubSubClient.topic(topicNameOrId);
4848

4949
try {
50-
const messageId = topic.publishMessage({data: dataBuffer});
50+
const messageId = await topic.publishMessage({data: dataBuffer});
5151
console.log(`Message ${messageId} published.`);
5252
} catch (error) {
5353
console.error(

samples/typescript/publishMessageWithCustomAttributes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function publishMessageWithCustomAttributes(
5858
// Cache topic objects (publishers) and reuse them.
5959
const topic = pubSubClient.topic(topicNameOrId);
6060

61-
const messageId = topic.publishMessage({
61+
const messageId = await topic.publishMessage({
6262
data: dataBuffer,
6363
attributes: customAttributes,
6464
});

0 commit comments

Comments
 (0)