v2.0.0
2.0.0
Migration Guide
Read here: https://deliveryhero.github.io/hfc-pubsub/guides/migrating-to-v2
⚠️ Major Changes ⚠️
- PUB-68 - Set min supported node version as 12.22 (#72 by @rohit-gohri)
- PUB-52 - Remove
grpc
(#57 by @rohit-gohri)
- PUB-48 - Topic class now uses static properties and generics (#81 by @rohit-gohri)
- 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
toackDeadline
- Add
metadata
to default error handler
- Change project-id env var to
- PUB-65 - Remove deprecated code (#66 by @rohit-gohri)
Minor Changes
- PUB-73 - Add/improve helpers and TS usage(#79 by @ishan123456789)
- Allows to make
_timestamp
optional - Removes double validation of topic names.
- Use
publishJSON
instead of buffering the payload. - Adds
.toJSON
method to get parsed message/ - Remove getters (like getProjects, getName, getClient) and just use
this.projects
,this.name
, etc directly.
- Allows to make
- PUB-69 - Changed init position for
SubscriptionService.instance
(#77 by @ishan123456789)
Patch Changes
- PUB-75 - Using yarn instead of npm (#83 by @ishan123456789)
- PUB-69 - Throws error in case no subs found or wrong
PUBSUB_ROOT_DIR
env defined (#76 by @ishan123456789)
Full Changelog: v1.11.0...v2.0.0