GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pubsub: allow simple publishing by stephenplusplus · Pull Request #1662 · googleapis/google-cloud-node

Conversation

@stephenplusplus

@stephenplusplus stephenplusplus commented Oct 3, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Fixes #629

⚠️ Breaking Change

Before

topic.publish({
  data: {
    hi: 'there'
  }
}, function(err, messageIds, apiResponse) {});

After

topic.publish({
  hi: 'there'
}, function(err, messageIds, apiResponse) {});

Accepts any data type

topic.publish('Hi there', function(err, messageIds, apiResponse) {});

To set attributes

topic.publish({
  data: {
    hi: 'there'
  },
  attributes: {
    key: 'value'
  }
}, { raw: true }, function(err, messageIds, apiResponse) {});

The easiest way to make your code compatible

Provide an options object with raw: true.

var message = {
  data: 'my old data'
};

-topic.publish(message, function(err, messageIds, apiResponse) {});
+topic.publish(message, { raw: true }, function(err, messageIds, apiResponse) {});

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 3, 2016
@stephenplusplus stephenplusplus added the api: pubsub Issues related to the Pub/Sub API. label Oct 3, 2016
@callmehiphop

callmehiphop commented Oct 9, 2016

Copy link
Copy Markdown
Contributor

LGTM - but I have one small request, could we add a system test that uses the raw option?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus added 2 commits October 10, 2016 09:35
@stephenplusplus
pubsub: allow simple publishing
e7211c2
@stephenplusplus
add system tests
fcd1097
@stephenplusplus
stephenplusplus force-pushed the spp--629 branch from 5374649 to fcd1097 Compare October 10, 2016 14:17
@stephenplusplus

stephenplusplus commented Oct 10, 2016

Copy link
Copy Markdown
Contributor Author

Yeah, good call! Caught a 🐛

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Oct 10, 2016

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling fcd1097 on stephenplusplus:spp--629 into fc7ebb8 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@callmehiphop
callmehiphop merged commit fecf108 into googleapis:master Oct 10, 2016
miguelvelezsa pushed a commit that referenced this pull request Jul 23, 2025
@gcf-owl-bot @sofisl
chore: update links in github issue templates (#1662)
e24253c
* chore: update links in github issue templates

* chore: update links in github issue templates

Source-Link: googleapis/synthtool@38fa49f
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:609822e3c09b7a1bd90b99655904609f162cc15acb4704f1edf778284c36f429

* Update owlbot.py

* Delete .github/ISSUE_TEMPLATE/bug_report.md

* Update bug_report.yml

* Delete .github/ISSUE_TEMPLATE/feature_request.md

* Delete .github/ISSUE_TEMPLATE/question.md

* Delete .github/workflows/issues-no-repro.yaml

* Delete .github/scripts/close-invalid-link.cjs

* Update package.json

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Update .jsdoc.js

* Update owlbot.py

* Delete .github/scripts/close-invalid-link.cjs

* Update package.json

* Update karma.conf.js

* Update package.json

* Update .jsdoc.js

* Update .jsdoc.js

* Update .jsdoc.js

* Update .jsdoc.js

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: sofisl <[email protected]>
sofisl pushed a commit that referenced this pull request Feb 25, 2026
@release-please
chore: release 5.15.2 (#1662)
09e5c80
🤖 I have created a release \*beep\* \*boop\*
---
### [5.15.2](https://www.github.com/googleapis/nodejs-storage/compare/v5.15.1...v5.15.2) (2021-10-13)


### Bug Fixes

* remove bucket preconditions from deleteFiles, it is a file operation not bucket ([#1661](https://www.github.com/googleapis/nodejs-storage/issues/1661)) ([6b7a06d](https://www.github.com/googleapis/nodejs-storage/commit/6b7a06defe1a3cadc6fad9258ff3fb01a2ecce0a))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
sofisl pushed a commit that referenced this pull request Feb 26, 2026
@renovate-bot
chore(deps): update dependency jsdoc-region-tag to v2 (#1662)
d370ed1
GautamSharda pushed a commit that referenced this pull request Mar 11, 2026
@stephenplusplus @callmehiphop
pubsub: allow simple publishing (#1662)
35e030d
GautamSharda pushed a commit that referenced this pull request Mar 11, 2026
@feywind
chore: linter fixes (#1662)
a3109ee
@GautamSharda GautamSharda mentioned this pull request Mar 11, 2026
migrate code from googleapis/nodejs-pubsub #7592
Merged
4 tasks
sofisl added a commit that referenced this pull request Mar 17, 2026
@gcf-owl-bot @sofisl
chore: update links in github issue templates (#1662)
a2ed899
* chore: update links in github issue templates

* chore: update links in github issue templates

Source-Link: googleapis/synthtool@38fa49f
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:609822e3c09b7a1bd90b99655904609f162cc15acb4704f1edf778284c36f429

* Update owlbot.py

* Delete .github/ISSUE_TEMPLATE/bug_report.md

* Update bug_report.yml

* Delete .github/ISSUE_TEMPLATE/feature_request.md

* Delete .github/ISSUE_TEMPLATE/question.md

* Delete .github/workflows/issues-no-repro.yaml

* Delete .github/scripts/close-invalid-link.cjs

* Update package.json

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Update .jsdoc.js

* Update owlbot.py

* Delete .github/scripts/close-invalid-link.cjs

* Update package.json

* Update karma.conf.js

* Update package.json

* Update .jsdoc.js

* Update .jsdoc.js

* Update .jsdoc.js

* Update .jsdoc.js

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: sofisl <[email protected]>
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request Mar 18, 2026
@release-please
chore: release 5.15.2 (googleapis#1662)
3e698fa
🤖 I have created a release \*beep\* \*boop\*
---
### [5.15.2](https://www.github.com/googleapis/nodejs-storage/compare/v5.15.1...v5.15.2) (2021-10-13)


### Bug Fixes

* remove bucket preconditions from deleteFiles, it is a file operation not bucket ([googleapis#1661](https://www.github.com/googleapis/nodejs-storage/issues/1661)) ([0094bfb](https://www.github.com/googleapis/nodejs-storage/commit/0094bfb0f1c4d7af8bb47cd8c7c56dce8cc09012))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
GautamSharda pushed a commit that referenced this pull request Mar 23, 2026
@danieljbruce
test: Generate a unique id for each of the instances in the client si…
5cad86e
…de metrics system tests (#1662)

* Move constant scope out

eliminate magic string matching

* Random ids for instances

* Ensure proper setup and cleanup for second project

* Remove only handlers
GautamSharda pushed a commit that referenced this pull request Mar 25, 2026
@danieljbruce @GautamSharda
test: Generate a unique id for each of the instances in the client si…
808d0cf
…de metrics system tests (#1662)

* Move constant scope out

eliminate magic string matching

* Random ids for instances

* Ensure proper setup and cleanup for second project

* Remove only handlers
shivanee-p pushed a commit that referenced this pull request Mar 27, 2026
@danieljbruce @shivanee-p
test: Generate a unique id for each of the instances in the client si…
0d18e17
…de metrics system tests (#1662)

* Move constant scope out

eliminate magic string matching

* Random ids for instances

* Ensure proper setup and cleanup for second project

* Remove only handlers
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request May 5, 2026
@danieljbruce @thiyaguk09
test: Generate a unique id for each of the instances in the client si…
3b2f391
…de metrics system tests (googleapis#1662)

* Move constant scope out

eliminate magic string matching

* Random ids for instances

* Ensure proper setup and cleanup for second project

* Remove only handlers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@stephenplusplus @callmehiphop @coveralls @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.