Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

v0.21.0

Choose a tag to compare

@jkwlui jkwlui released this 14 Nov 17:43
2fe206b

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)