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

fix: decrypt function for batch history api messages #115

Merged
merged 2 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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