Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @google-cloud/pubsub to v0.22.2 #1037

Merged
merged 2 commits into from
Dec 14, 2018

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 14, 2018

This PR contains the following updates:

Package Type Update Change References
@​google-cloud/pubsub devDependencies minor 0.13.2 -> 0.22.2 source

Release Notes

googleapis/nodejs-pubsub

v0.22.2

Compare Source

12-10-2018 09:37 PST

Implementation Changes

TypeScript related changes:

  • fix(ts): copy gapic code properly (#​399)
Documentation
  • fix(docs): add subscription expiration policy docs (#​400)
  • Add migration for v0.20.0 from v0.19.0 (#​398)

v0.22.1

Compare Source

12-06-2018 17:11 PST

Dependencies
  • chore(deps): update dependency typescript to ~3.2.0 (#​380)
Documentation
  • fix(docs): place doc comment above the last overload (#​393)
  • docs: Update documentation for Subscription (#​387)
  • docs: Add documentation about defaults for publisher (#​384)
  • docs: update readme badges (#​383)
Internal / Testing Changes
  • chore: always nyc report before calling codecov (#​392)
  • chore: nyc ignore build/test by default (#​391)
  • chore: update license file (#​386)

v0.22.0

Compare Source

Implementation Changes
  • fix(ts): do not ship types (#​377)
Road to TypeScript
  • refactor(ts): improve types (2) (#​356)
  • refactor(ts): updated lint and fix command to cover gts (#​375)
  • refactor(ts): added ts style fix for src/iam.ts (#​352)
  • refactor(ts): Added ts style fix for test/topic.ts (#​373)
  • refactor(ts): Added ts style fix for test/subscription.ts (#​372)
  • refactor(ts): Added ts style fix for test/subscriber.ts (#​371)
  • refactor(ts): Added ts style fix for test/snapshot.ts (#​370)
  • refactor(ts): Added ts style fix for test/publisher.ts (#​369)
  • refactor(ts): added ts style fix for src/index.ts (#​351)
  • refactor(ts): added ts style fix for src/publisher.ts (#​357)
  • refactor(ts): added ts style fix for src/snapshot.ts (#​358)
  • refactor(ts): added ts style fix for src/subscriber.ts (#​359)
  • refactor(ts): added ts style fix for src/subscription.ts (#​360)
  • refactor(ts): added ts style fix for src/topic.ts (#​361)
  • refactor(ts): added ts style fix for src/util.ts (#​362)
  • refactor(ts): added ts style fix for test/connection-pool.ts (#​364)
  • refactor(ts): added ts style fix for test/histogram.ts (#​365)
  • refactor(ts): added ts style fix for test/iam.ts (#​366)
  • refactor(ts): added ts style fix for test/index.ts (#​368)
  • refactor(ts): added ts style fix for src/connection-pool.ts (#​353)
  • refactor(ts): added ts style fix for src/histogram.ts (#​354)
  • refactor(ts): enable noImplicitAny on src/iam.ts (#​348)
  • added ts style fix for system-test/pubsub.ts (#​374)
  • chore: ts-ignoring some stuff in tests (#​343)
Dependencies
Documentation
  • docs(samples): Publish with Retry Setting Example (#​355)
  • docs: remove outdated comments (#​342)
Internal / Testing Changes
  • chore: add a synth.metadata
  • feat: Add optional delay when calling nack() (#​255) (#​256)

v0.21.1

Compare Source

Bug fixes
  • fix: include protos in the package (#​336)

v0.21.0

Compare Source

11-12-2018 17:25 PST

Implementation Changes

BREAKING CHANGE
@google-cloud/pubsub now uses ES6 import/export syntax since v0.21.0.

Before:

const pubsub = require('@​google-cloud/pubsub')();
// OR
const PubSub = require('@​google-cloud/pubsub');
const pubsub = new PubSub();

Now:

const {PubSub} = require('@​google-cloud/pubsub');
const pubsub = new PubSub();
  • refactor: use Object.assign where possible (#​324)
  • fix(subscription): promisify Subscription#close (#​282)
  • fix: maxBytes batching sending empty messages (#​281)
  • (New) Synchronous Pull with Lease Management (#​272)
  • Switch to let/const (#​254)
Road to TypeScript
  • refactor(ts): introduce a round of types (#​319)
  • refactor(ts): enable noImplicitThis (#​316)
  • refactor(ts): convert to typescript (#​310)
New Features
  • feat: add expiration policy (#​287)
Dependencies
  • chore(deps): update dependency eslint-plugin-prettier to v3 (#​274)
  • fix(deps): update dependency google-proto-files to ^0.17.0 (#​284)
  • chore(deps): update dependency sinon to v7 (#​285)
  • chore(deps): update dependency eslint-plugin-node to v8 (#​300)
  • fix(deps): update dependency through2 to v3 (#​320)
  • refactor: drop dependencies on google-proto-files and async (#​329)
  • chore(deps): update dependency @​google-cloud/nodejs-repo-tools to v3 (#​328)
  • chore(deps): update dependency @​types/is to v0.0.21 (#​323)
  • fix(deps): update dependency google-gax to ^0.20.0 (#​252)
Documentation
  • fix quickstart tag in v0.20 docs (#​271)
Samples
  • Pub/Sub Synchronous Pull Example (#​259)
  • Update sample topic and subscription names
  • Add Pub/Sub ack deadline example (#​315)
  • docs(samples): update samples to use async/await (#​305)
  • chore: adjust samples timeout (#​283)
  • Fix the topic name in the samples (#​262)
Internal / Testing Changes
  • chore: update eslintignore config (#​332)
  • chore(build): eslint all js files, and use js for all generated files (#​331)
  • chore: drop contributors from multiple places (#​325)
  • chore: use latest npm on Windows (#​322)
  • chore: update CircleCI config (#​309)
  • chore: include build in eslintignore (#​304)
  • chore: update issue templates (#​299)
  • chore: remove old issue template (#​297)
  • build: run tests on node11 (#​296)
  • chores(build): do not collect sponge.xml from windows builds (#​295)
  • chores(build): run codecov on continuous builds (#​294)
  • chore: update new issue template (#​293)
  • build: fix codecov uploading on Kokoro (#​286)
  • Update kokoro config (#​275)
  • Update Kokoro configs (#​270)
  • Update kokoro config (#​269)
  • test: remove appveyor config (#​268)
  • Update CI config (#​266)
  • Run prettier on smoke tests (#​265)
  • Fix the linter (#​261)
  • Enable prefer-const in the eslint config (#​260)
  • Enable no-var in eslint (#​257)

v0.20.1

Compare Source

Documentation
  • fix(docs): correct region tag for sample documentation (#​272)

v0.20.0

Compare Source

Implementation Changes

BREAKING CHANGE: - fix: drop support for node.js 4.x and 9.x (#​171)

BREAKING CHANGE
@google-cloud/pubsub now requires new.

Before:

const PubSub = require('@​google-cloud/pubsub');
const pubsub = PubSub();

Now:

const PubSub = require('@​google-cloud/pubsub');
const pubsub = new PubSub();
New Features
  • Re-generate library using /synth.py (#​227)
    • some minor proto documentation changes
Dependencies
  • fix(deps): update dependency google-auth-library to v2 (#​228)
  • chore(deps): update dependency nyc to v13 (#​225)
  • fix(deps): update dependency google-gax to ^0.19.0 (#​216)
  • chore(deps): update dependency eslint-config-prettier to v3 (#​213)
  • chore: drop dependency on @​google-cloud/common (#​210)
  • fix(deps): update dependency @​google-cloud/common to ^0.21.0 (#​206)
  • chore(deps): lock file maintenance (#​203)
  • fix(deps): update dependency google-gax to ^0.18.0 (#​197)
  • chore(deps): lock file maintenance (#​196)
  • chore(deps): lock file maintenance (#​188)
  • chore(deps): update dependency eslint-plugin-node to v7 (#​185)
  • chore(deps): lock file maintenance (#​182)
  • chore(deps): lock file maintenance (#​174)
  • chore(deps): lock file maintenance (#​173)
  • chore(deps): lock file maintenance (#​172)
  • chore(deps): lock file maintenance (#​168)
  • chore(deps): lock file maintenance (#​167)
  • chore(deps): lock file maintenance (#​166)
  • fix(deps): update dependency delay to v3 (#​165)
  • fix(deps): update dependency @​google-cloud/common to ^0.20.0 (#​155)
  • chore(deps): update dependency proxyquire to v2 (#​160)
  • chore(deps): update dependency nyc to v12 (#​159)
  • Update google-gax and add Synth.py (#​158)
  • chore(deps): update dependency sinon to v6 (#​161)
  • fix(deps): update dependency yargs to v12 (#​164)
  • fix(deps): update dependency yargs to v11 (#​163)
  • fix(deps): update dependency yargs to v10.1.2 (#​157)
  • chore(deps): update dependency ava to ^0.25.0 (#​153)
  • chore(deps): update dependency sinon to v4.5.0 (#​154)
Documentation
  • fix docs (#​229)
  • test: fix import sample failures (#​218)
  • fix: correct the documentation (#​117)
  • fix: Fix sample region tag in JSDoc (#​184)
  • Fixes 179: Adds missing return statement in docs (#​180)
Internal / Testing Changes
  • Update the CI config (#​220)
  • chore: make the CircleCI config consistent
  • chore: use arrow functions (#​215)
  • chore: convert to es classes (#​211)
  • chore: do not use npm ci (#​209)
  • chore: use let and const (#​204)
  • chore: ignore package-lock.json (#​207)
  • chore: use split common modules (#​200)
  • chore: update renovate config (#​199)
  • chore: move mocha options to mocha.opts (#​194)
  • chore: require node 8 for samples (#​195)
  • chore: add node templates to synth.py (#​191)
  • chore: fix the eslint errors (#​190)
  • refactor: use google-auth-library (#​189)
  • Fixes 177: Prevents publishing attributes that have non-string values (#​183)
  • chore(build): use npm ci instead of npm install (#​175)
  • chore(package): update eslint to version 5.0.0 (#​145)
  • chore: update sample lockfiles (#​149)
  • test: use strictEqual in tests (#​186)
  • Configure Renovate (#​144)
  • refactor: drop repo-tool as an exec wrapper (#​150)
  • fix: update linking for samples (#​146)

v0.19.1

Compare Source

This patch release brings documentation fixes to previous version v0.19.0.

v0.19.0

Compare Source

Features

  • (#​147): Support ack/modAck batching options.

v0.18.0

Compare Source

Features

  • (#​22, #​110) A Publisher object now supports configuration of API request parameters. For example, this allows you to specify the number of retries for a request.

Fixes

v0.17.0

Compare Source

Fixes

v0.16.5

Compare Source

Fixes

  • (#​74) Correctly detect a project ID when one isn't provided during instantiation.
  • Update dependencies, including gRPC for more reliable performance.

v0.16.4

Compare Source

Fixes

  • (#​70): Pull gRPC into a project only once.

v0.16.3

Compare Source

Fixes

  • (#​37): Allow ack() and nack() methods to be destructured. (Thanks, @​baronfel!)
  • (#​40): Normalize arguments when using new.
  • Update dependencies to mitigate possible security issues.

v0.16.2

Compare Source

Fixes

  • (#​31): Downgrade gRPC to prevent version mismatches.

v0.16.1

Compare Source

Fixes

  • (#​20): Properly handle a Promise override.

v0.16.0

Compare Source

Features

With this release the PubSub module is moved to a separate repository. The code in v1/ folder was regenerated, and while there should not be any compatibility issues, please feel free to report any issues you might find.

v0.15.0

Compare Source

  • #​2744: The Pub/Sub IAM API now allows more control of each API request, referred to as gaxOptions. Refer to the IAM documentation for more information.

v0.14.8

Compare Source

v0.14.7

Compare Source

v0.14.6

Compare Source

v0.14.5

Compare Source

v0.14.4

Compare Source

v0.14.3

Compare Source

v0.14.2

Compare Source

v0.14.1

Compare Source

v0.14.0

Compare Source

@​google-cloud/pubsub 0.14.0 Beta Release

@google-cloud/pubsub is now a Beta API. Libraries defined at the Beta quality level are expected to be mostly stable, while we work towards their release can
didate. We will address issues and requests with a higher priority.

⚠️ Breaking Changes

PubSub received a small redesign!

PR: #​2380
API Documentation

Publishing Messages

When publishing messages we no longer allow data to come in the form of Strings or Objects, instead you must pass in a Buffer object. Attributes can now be passed in as a second optional parameter. Messages are batched together, so calling publish() multiple times will not result in multiple requests.

Before
var messages = [
  'foo',
  'bar'
];

topic.publish(message, function(err, messageIds, apiResponse) {});
After
var publisher = topic.publisher();
var callback = function(err, messageId, apiResponse) {};

var message1 = new Buffer('foo');

publisher.publish(message1, callback);

var message2 = new Buffer('bar');
var attributes = {
  key: 'value'
};

publisher.publish(message2, attributes, callback);

Message Handling

  • message.ack() no longer accepts a callback function, instead errors will be reported via subscription.on('error', function(err) {})
  • message.skip() has been removed in favor of message.nack()
Before
subscription.on('message', function(message) {
  // Ack the message
  message.ack(function(err) {});

  // Skip the message
  message.skip();
});
After
subscription.on('message', function(message) {
  // Ack the message (No longer accepts a callback)
  message.ack();

  // Do not ack the message, allowing more messages to come in
  message.nack();
});

subscription.pull() removed.

Please open an issue with any feedback, questions, or issues. We're happy to help during the transition.


Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR is stale, or if you modify the PR title to begin with "rebase!".

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot. View repository job log here.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 14, 2018
@renovate renovate bot force-pushed the renovate/google-cloud-pubsub-0.x branch 4 times, most recently from f8cf6a2 to 762b9ac Compare December 14, 2018 19:26
@fhinkel fhinkel added the kokoro:run Add this label to force Kokoro to re-run the tests. label Dec 14, 2018
@renovate renovate bot force-pushed the renovate/google-cloud-pubsub-0.x branch from 762b9ac to 20f157d Compare December 14, 2018 19:32
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Dec 14, 2018
@renovate renovate bot force-pushed the renovate/google-cloud-pubsub-0.x branch 4 times, most recently from 4151dbb to d18e4d9 Compare December 14, 2018 21:56
@renovate renovate bot force-pushed the renovate/google-cloud-pubsub-0.x branch from d18e4d9 to 3c12610 Compare December 14, 2018 22:14
@fhinkel fhinkel added the kokoro:run Add this label to force Kokoro to re-run the tests. label Dec 14, 2018
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants