Skip to content

Commit

Permalink
Release 1.1.0-beta.4
Browse files Browse the repository at this point in the history
  • Loading branch information
prabrisha-rudder committed Feb 28, 2020
1 parent 66a62eb commit 9c70c8c
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 12 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

## [1.1.0-beta.4](https://github.com/rudderlabs/rudder-sdk-js/compare/1.1.0-beta.3...1.1.0-beta.4) - 2020-02-28

### Merged

- Develop to master [`#34`](https://github.com/rudderlabs/rudder-sdk-js/pull/34)
- Revisit api calls [`#33`](https://github.com/rudderlabs/rudder-sdk-js/pull/33)

## [1.1.0-beta.3](https://github.com/rudderlabs/rudder-sdk-js/compare/1.1.0-beta.2...1.1.0-beta.3) - 2020-02-28

### Merged
Expand All @@ -19,9 +26,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### Commits

- Release 1.1.0-beta.3 [`5b321a0`](https://github.com/rudderlabs/rudder-sdk-js/commit/5b321a05b56936b06e8c09ba85c23ad14c9cdd22)
- changes for kissmetrics group [`b3e4aaf`](https://github.com/rudderlabs/rudder-sdk-js/commit/b3e4aaff4d44de52a389d7006b2e53f9601b74e5)
- Create appspec.yml [`53edb46`](https://github.com/rudderlabs/rudder-sdk-js/commit/53edb468b3238062528f2372569c5b4285281968)
- Update script-test.html [`60035db`](https://github.com/rudderlabs/rudder-sdk-js/commit/60035dbe7e7d486dbdd955de20884963e99f6a2d)
- Update script-test.html [`94d6db1`](https://github.com/rudderlabs/rudder-sdk-js/commit/94d6db1c475007f921d7ec9e963e6e44bcc9afdd)
- code clean up [`aa401d0`](https://github.com/rudderlabs/rudder-sdk-js/commit/aa401d011703304d4ddfea44ce0ef5228361c3b0)
- support for identify in hotjar and group in kissmetrics [`14e8a7b`](https://github.com/rudderlabs/rudder-sdk-js/commit/14e8a7bf181f4dbb54d897576eca2fecc81f3048)
- bug fix [`ab6d901`](https://github.com/rudderlabs/rudder-sdk-js/commit/ab6d9016c8c54abade01ab33c9738dc49d4d5c1a)
- changes [`b049b83`](https://github.com/rudderlabs/rudder-sdk-js/commit/b049b83cccffcea5675977f5ef84816b0c035130)
- bug fix [`759ae9a`](https://github.com/rudderlabs/rudder-sdk-js/commit/759ae9ab514b33fae5bbc9ad5ab9865e6b8b02a1)
Expand Down
41 changes: 31 additions & 10 deletions dist/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ var rudderanalytics = (function (exports) {
this.siteId = config.siteID; //1549611

this.name = "HOTJAR";
this._ready = false;
}

_createClass(Hotjar, [{
Expand All @@ -639,12 +640,21 @@ var rudderanalytics = (function (exports) {
a.appendChild(r);
})(window, document, "https://static.hotjar.com/c/hotjar-", ".js?sv=");

this._ready = true;
logger.debug("===in init Hotjar===");
}
}, {
key: "identify",
value: function identify(rudderElement) {
logger.error("method not supported");
var userId = rudderElement.message.userId || rudderElement.message.anonymousId;

if (!userId) {
logger.error('user id is required');
return;
}

var traits = rudderElement.message.context.traits;
window.hj('identify', rudderElement.message.userId, traits);
}
}, {
key: "track",
Expand All @@ -659,12 +669,12 @@ var rudderanalytics = (function (exports) {
}, {
key: "isLoaded",
value: function isLoaded() {
logger.error("method not supported");
return this._ready;
}
}, {
key: "isReady",
value: function isReady() {
return true;
return this._ready;
}
}]);

Expand Down Expand Up @@ -3200,12 +3210,21 @@ var rudderanalytics = (function (exports) {
}, {
key: "group",
value: function group(rudderElement) {
logger.debug("group not supported");
var groupId = rudderElement.message.groupId;
var groupTraits = rudderElement.message.traits;
groupTraits = this.prefix("Group", groupTraits);

if (groupId) {
groupTraits["Group - id"] = groupId;
}

window._kmq.push(["set", groupTraits]);

logger.debug("in Kissmetrics group");
}
}, {
key: "isLoaded",
value: function isLoaded() {
logger.debug("in Kissmetrics isLoaded");
return is_1.object(window.KM);
}
}, {
Expand Down Expand Up @@ -3714,15 +3733,15 @@ var rudderanalytics = (function (exports) {
this.build = "1.0.0";
this.name = "RudderLabs JavaScript SDK";
this.namespace = "com.rudderlabs.javascript";
this.version = "1.1.0-beta.3";
this.version = "1.1.0-beta.4";
};

//Library information class
var RudderLibraryInfo = function RudderLibraryInfo() {
_classCallCheck(this, RudderLibraryInfo);

this.name = "RudderLabs JavaScript SDK";
this.version = "1.1.0-beta.3";
this.version = "1.1.0-beta.4";
}; //Operating System information class


Expand Down Expand Up @@ -8580,7 +8599,9 @@ var rudderanalytics = (function (exports) {
this.anonymousId = this.getAnonymousId();
this.storage.setUserId(this.userId);
this.eventRepository = eventRepository;
this.readyCallback = undefined;

this.readyCallback = function () {};

this.executeReadyCallback = undefined;
}
/**
Expand Down Expand Up @@ -8641,8 +8662,7 @@ var rudderanalytics = (function (exports) {
var _this = this;

var self = this;
logger.debug("supported intgs ", integrations);
this.clientIntegrationObjects = [];
logger.debug("supported intgs ", integrations); // this.clientIntegrationObjects = [];

if (!intgArray || intgArray.length == 0) {
if (this.readyCallback) {
Expand All @@ -8667,6 +8687,7 @@ var rudderanalytics = (function (exports) {
key: "replayEvents",
value: function replayEvents(object) {
if (object.successfullyLoadedIntegration.length + object.failedToBeLoadedIntegration.length == object.clientIntegrations.length) {
object.clientIntegrationObjects = [];
object.clientIntegrationObjects = object.successfullyLoadedIntegration;
object.executeReadyCallback = after_1(object.clientIntegrationObjects.length, object.readyCallback);
object.on("ready", object.executeReadyCallback);
Expand Down
2 changes: 1 addition & 1 deletion dist/rudder-analytics.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rudder-analytics",
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"description": "",
"main": "./dist/browser.min.js",
"scripts": {
Expand Down

0 comments on commit 9c70c8c

Please sign in to comment.