Skip to content

Commit

Permalink
fix: decrypt function for batch history api messages (#115)
Browse files Browse the repository at this point in the history
* fix: decrypt function for batch history api messages

* PubNub SDK v4.2.4 release.

---------

Co-authored-by: PubNub Release Bot <[email protected]>
  • Loading branch information
mohitpubnub and pubnub-release-bot authored Jul 27, 2023
1 parent 7aa1115 commit 28023df
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---
changelog:
- date: 2023-07-27
version: v4.2.4
changes:
- type: bug
text: "Fixes issue of missing decrypt function in batch history api."
- date: 2023-05-18
version: v4.2.3
changes:
Expand Down Expand Up @@ -420,7 +425,7 @@ supported-platforms:
platforms:
- "Dart SDK >=2.6.0 <3.0.0"
version: "PubNub Dart SDK"
version: "4.2.3"
version: "4.2.4"
sdks:
-
full-name: PubNub Dart SDK
Expand Down
6 changes: 6 additions & 0 deletions pubnub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v4.2.4
July 27 2023

#### Fixed
- Fixes issue of missing decrypt function in batch history api.

## v4.2.3
May 18 2023

Expand Down
2 changes: 1 addition & 1 deletion pubnub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To add the package to your Dart or Flutter project, add `pubnub` as a dependency

```yaml
dependencies:
pubnub: ^4.2.3
pubnub: ^4.2.4
```
After adding the dependency to `pubspec.yaml`, run the `dart pub get` command in the root directory of your project (the same that the `pubspec.yaml` is in).
Expand Down
2 changes: 1 addition & 1 deletion pubnub/lib/src/core/core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Core {
/// Internal module responsible for supervising.
SupervisorModule supervisor = SupervisorModule();

static String version = '4.2.3';
static String version = '4.2.4';

Core(
{Keyset? defaultKeyset,
Expand Down
5 changes: 3 additions & 2 deletions pubnub/lib/src/dx/batch/batch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ class BatchDx {
keyset: keyset,
core: _core,
params: params,
serialize: (object, [_]) =>
BatchHistoryResult.fromJson(object, cipherKey: keyset?.cipherKey));
serialize: (object, [_]) => BatchHistoryResult.fromJson(object,
cipherKey: keyset?.cipherKey,
decryptFunction: _core.crypto.decrypt));
}

/// Get multiple channels' message count using one call.
Expand Down
2 changes: 1 addition & 1 deletion pubnub/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pubnub
description: PubNub SDK v5 for Dart lang (with Flutter support) that allows you to create real-time applications
version: 4.2.3
version: 4.2.4
homepage: https://www.pubnub.com/docs/sdks/dart

environment:
Expand Down

0 comments on commit 28023df

Please sign in to comment.