Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Nov 11:41
15a7182

2.0.0

Migration Guide

Read here: https://deliveryhero.github.io/hfc-pubsub/guides/migrating-to-v2

⚠️ Major Changes ⚠️

  • PUB-77 - Misc Changes (#84 by @rohit-gohri)
    • Change project-id env var to GOOGLE_CLOUD_PROJECT
    • Removed export of private methods
    • Refactor internals
    • Change ackDeadlineSeconds to ackDeadline
    • Add metadata to default error handler

Minor Changes

  • PUB-73 - Add/improve helpers and TS usage(#79 by @ishan123456789)
    1. Allows to make _timestamp optional
    2. Removes double validation of topic names.
    3. Use publishJSON instead of buffering the payload.
    4. Adds .toJSON method to get parsed message/
    5. Remove getters (like getProjects, getName, getClient) and just use this.projects, this.name, etc directly.

Patch Changes

Full Changelog: v1.11.0...v2.0.0