Skip to content

Commit fb6cd04

Browse files
feat/CryptoModule (#339)
* ref: decoupling cryptor module * cryptoModule * lint * rever cryptors in config * lint fixes * CryptoModule for web and node * step definitions for contract tests * lib files * fix:es-lint * let vs const * and some more ts not wanting me to specific about trivials * access modfiers * refactor-1 * lint, cleanup test * refactor - 2 * code cleanup in stream encryption with new cryptor * fix: lint issue. * refactor: eliminate ts-ignores by defining file reated types * * integration of crypto module * refactoring cryptoModule * lib and dist * support for setCipherKey * fix: setCipherKey() * lib and dist files * fix: staticIV support * lib and dist * refactor: cryptoModule, * added support for PubNub.CryptoModule factory * fix: types * dist and libs * fix: test- customEncrypt function * fix: legacy crypto init, tests * refactor: typecheck on incoming data for aescbc cryptor * code cleanup, * fix: broken file cryptography operations on web * lib and dist directories * refactor: crypto initialiser apis default value initialisation * LICENSE * reverted last commit 11351ec * update LICENSE * PubNub SDK v7.4.0 release. --------- Co-authored-by: PubNub Release Bot <120067856+pubnub-release-bot@users.noreply.github.com>
1 parent d1fca58 commit fb6cd04

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+4275
-374
lines changed

Diff for: .pubnub.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
---
22
changelog:
3+
- date: 2023-10-16
4+
version: v7.4.0
5+
changes:
6+
- type: feature
7+
text: "Add crypto module that allows configure SDK to encrypt and decrypt messages."
8+
- type: bug
9+
text: "Improved security of crypto implementation by adding enhanced AES-CBC cryptor."
310
- date: 2023-09-11
411
version: v7.3.3
512
changes:
@@ -895,7 +902,7 @@ supported-platforms:
895902
- 'Ubuntu 14.04 and up'
896903
- 'Windows 7 and up'
897904
version: 'Pubnub Javascript for Node'
898-
version: '7.3.3'
905+
version: '7.4.0'
899906
sdks:
900907
- full-name: PubNub Javascript SDK
901908
short-name: Javascript
@@ -911,7 +918,7 @@ sdks:
911918
- distribution-type: source
912919
distribution-repository: GitHub release
913920
package-name: pubnub.js
914-
location: https://github.com/pubnub/javascript/archive/refs/tags/v7.3.3.zip
921+
location: https://github.com/pubnub/javascript/archive/refs/tags/v7.4.0.zip
915922
requires:
916923
- name: 'agentkeepalive'
917924
min-version: '3.5.2'
@@ -1582,7 +1589,7 @@ sdks:
15821589
- distribution-type: library
15831590
distribution-repository: GitHub release
15841591
package-name: pubnub.js
1585-
location: https://github.com/pubnub/javascript/releases/download/v7.3.3/pubnub.7.3.3.js
1592+
location: https://github.com/pubnub/javascript/releases/download/v7.4.0/pubnub.7.4.0.js
15861593
requires:
15871594
- name: 'agentkeepalive'
15881595
min-version: '3.5.2'

Diff for: CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## v7.4.0
2+
October 16 2023
3+
4+
#### Added
5+
- Add crypto module that allows configure SDK to encrypt and decrypt messages.
6+
7+
#### Fixed
8+
- Improved security of crypto implementation by adding enhanced AES-CBC cryptor.
9+
110
## v7.3.3
211
September 11 2023
312

Diff for: LICENSE

+25-23
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
PubNub Real-time Cloud-Hosted Push API and Push Notification Client Frameworks
2-
Copyright (c) 2013 PubNub Inc.
3-
http://www.pubnub.com/
4-
http://www.pubnub.com/terms
1+
PubNub Software Development Kit License Agreement
2+
Copyright © 2023 PubNub Inc. All rights reserved.
53

6-
Permission is hereby granted, free of charge, to any person obtaining a copy
7-
of this software and associated documentation files (the "Software"), to deal
8-
in the Software without restriction, including without limitation the rights
9-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
copies of the Software, and to permit persons to whom the Software is
11-
furnished to do so, subject to the following conditions:
4+
Subject to the terms and conditions of the license, you are hereby granted
5+
a non-exclusive, worldwide, royalty-free license to (a) copy and modify
6+
the software in source code or binary form for use with the software services
7+
and interfaces provided by PubNub, and (b) redistribute unmodified copies
8+
of the software to third parties. The software may not be incorporated in
9+
or used to provide any product or service competitive with the products
10+
and services of PubNub.
1211

13-
The above copyright notice and this permission notice shall be included in
14-
all copies or substantial portions of the Software.
12+
The above copyright notice and this license shall be included
13+
in or with all copies or substantial portions of the software.
1514

16-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22-
THE SOFTWARE.
15+
This license does not grant you permission to use the trade names, trademarks,
16+
service marks, or product names of PubNub, except as required for reasonable
17+
and customary use in describing the origin of the software and reproducing
18+
the content of this license.
2319

24-
PubNub Real-time Cloud-Hosted Push API and Push Notification Client Frameworks
25-
Copyright (c) 2013 PubNub Inc.
26-
http://www.pubnub.com/
27-
http://www.pubnub.com/terms
20+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF
21+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
23+
EVENT SHALL PUBNUB OR THE AUTHORS OR COPYRIGHT HOLDERS OF THE SOFTWARE BE
24+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
25+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27+
28+
https://www.pubnub.com/
29+
https://www.pubnub.com/terms

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Watch [Getting Started with PubNub JS SDK](https://app.dashcam.io/replay/64ee0d2
2828
npm install pubnub
2929
```
3030
* or download one of our builds from our CDN:
31-
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.3.3.js
32-
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.3.3.min.js
31+
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.4.0.js
32+
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.4.0.min.js
3333
3434
2. Configure your keys:
3535

0 commit comments

Comments
 (0)