Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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,11 +1,16 @@
name: javascript
version: 4.20.1
version: 4.20.2
schema: 1
scm: github.com/pubnub/javascript
files:
- dist/web/pubnub.js
- dist/web/pubnub.min.js
changelog:
- version: v4.20.2
date: 2018-02-28
changes:
- type: bug
text: fix signature to delete message
- version: v4.20.1
date: 2018-01-29
changes:
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## [v4.20.2](https://github.com/pubnub/javascript/tree/v4.20.2)
February-28-2018


[Full Changelog](https://github.com/pubnub/javascript/compare/v4.20.1...v4.20.2)



- 🐛fix signature to delete message



## [v4.20.1](https://github.com/pubnub/javascript/tree/v4.20.1)
January-29-2018

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ please use the [master_3x](https://github.com/pubnub/javascript/tree/master_3x)

## CDN Links

* https://cdn.pubnub.com/sdk/javascript/pubnub.4.20.1.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.20.1.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.20.2.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.20.2.js
21 changes: 5 additions & 16 deletions dist/titanium/pubnub.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! 4.20.1 / Consumer */
/*! 4.20.2 / Consumer */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -586,7 +586,7 @@ return /******/ (function(modules) { // webpackBootstrap
}, {
key: 'getVersion',
value: function getVersion() {
return '4.20.1';
return '4.20.2';
}
}, {
key: '_decideUUID',
Expand Down Expand Up @@ -4193,22 +4193,11 @@ return /******/ (function(modules) { // webpackBootstrap
}

function getURL(modules, incomingParams) {
var channel = incomingParams.channel,
start = incomingParams.start,
end = incomingParams.end;
var channel = incomingParams.channel;
var config = modules.config;

var querystring = '';

if (start) {
querystring = '?start=' + start;
}

if (end) {
querystring += (querystring !== '' ? '&' : '?') + 'end=' + end;
}

return '/v3/history/sub-key/' + config.subscribeKey + '/channel/' + _utils2.default.encodeString(channel) + querystring;
return '/v3/history/sub-key/' + config.subscribeKey + '/channel/' + _utils2.default.encodeString(channel);
}

function getRequestTimeout(_ref) {
Expand All @@ -4231,7 +4220,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (start) outgoingParams.start = start;
if (end) outgoingParams.end = end;

return {};
return outgoingParams;
}

function handleResponse(modules, serverResponse) {
Expand Down
4 changes: 2 additions & 2 deletions dist/titanium/pubnub.min.js

Large diffs are not rendered by default.

21 changes: 5 additions & 16 deletions dist/web/pubnub.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! 4.20.1 / Consumer */
/*! 4.20.2 / Consumer */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -608,7 +608,7 @@ return /******/ (function(modules) { // webpackBootstrap
}, {
key: 'getVersion',
value: function getVersion() {
return '4.20.1';
return '4.20.2';
}
}, {
key: '_decideUUID',
Expand Down Expand Up @@ -4215,22 +4215,11 @@ return /******/ (function(modules) { // webpackBootstrap
}

function getURL(modules, incomingParams) {
var channel = incomingParams.channel,
start = incomingParams.start,
end = incomingParams.end;
var channel = incomingParams.channel;
var config = modules.config;

var querystring = '';

if (start) {
querystring = '?start=' + start;
}

if (end) {
querystring += (querystring !== '' ? '&' : '?') + 'end=' + end;
}

return '/v3/history/sub-key/' + config.subscribeKey + '/channel/' + _utils2.default.encodeString(channel) + querystring;
return '/v3/history/sub-key/' + config.subscribeKey + '/channel/' + _utils2.default.encodeString(channel);
}

function getRequestTimeout(_ref) {
Expand All @@ -4253,7 +4242,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (start) outgoingParams.start = start;
if (end) outgoingParams.end = end;

return {};
return outgoingParams;
}

function handleResponse(modules, serverResponse) {
Expand Down
4 changes: 2 additions & 2 deletions dist/web/pubnub.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/core/components/config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/core/components/config.js.map

Large diffs are not rendered by default.

17 changes: 3 additions & 14 deletions lib/core/endpoints/history/delete_messages.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/core/endpoints/history/delete_messages.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pubnub",
"version": "4.20.1",
"version": "4.20.2",
"author": "PubNub <[email protected]>",
"description": "Publish & Subscribe Real-time Messaging with PubNub",
"bin": {},
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default class {
setSendBeaconConfig(val: boolean): this { this._useSendBeacon = val; return this; }

getVersion(): string {
return '4.20.1';
return '4.20.2';
}

_decideUUID(providedUUID: string): string {
Expand Down
15 changes: 3 additions & 12 deletions src/core/endpoints/history/delete_messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,10 @@ export function useDelete() {
}

export function getURL(modules: ModulesInject, incomingParams: FetchHistoryArguments): string {
let { channel, start, end } = incomingParams;
let { channel } = incomingParams;
let { config } = modules;
let querystring = '';

if (start) {
querystring = `?start=${start}`;
}

if (end) {
querystring += `${(querystring !== '' ? '&' : '?')}end=${end}`;
}

return `/v3/history/sub-key/${config.subscribeKey}/channel/${utils.encodeString(channel)}${querystring}`;
return `/v3/history/sub-key/${config.subscribeKey}/channel/${utils.encodeString(channel)}`;
}

export function getRequestTimeout({ config }: ModulesInject): boolean {
Expand All @@ -52,7 +43,7 @@ export function prepareParams(modules: ModulesInject, incomingParams: FetchHisto
if (start) outgoingParams.start = start;
if (end) outgoingParams.end = end;

return {};
return outgoingParams;
}

export function handleResponse(modules: ModulesInject, serverResponse: Object): HistoryResponse {
Expand Down