Skip to content

Commit

Permalink
release-2.4.2 (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnutz committed Aug 28, 2020
1 parent ea19a15 commit e104540
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.4.2 (2020-08-27)
* Client ID cookie is disabled in anonymous mode
* `setSignedMode` should create client id if needed

## 2.4.1 (2020-08-18)
* Set `SameSite=None;Secure` attributes as default for cookies

Expand Down
8 changes: 4 additions & 4 deletions dist/td.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,18 @@
global.localStorage.setItem(SIGNEDMODECOOKIE, "true");
} else {
setCookie(this.client.storage, SIGNEDMODECOOKIE, "true");
this.resetUUID(this.client.storage, this.client.track.uuid);
}
this.resetUUID(this.client.storage, this.client.track.uuid);
return this;
};
exports.setAnonymousMode = function setAnonymousMode() {
if (this.client.storeConsentByLocalStorage) {
global.localStorage.setItem(SIGNEDMODECOOKIE, "false");
} else {
setCookie(this.client.storage, SIGNEDMODECOOKIE, "false");
this.resetUUID(this.client.storage, this.client.track.uuid);
cookie.removeItem(this.client.globalIdCookie);
}
this.resetUUID(this.client.storage, this.client.track.uuid);
cookie.removeItem(this.client.globalIdCookie);
return this;
};
exports.inSignedMode = function inSignedMode() {
Expand Down Expand Up @@ -2282,7 +2282,7 @@
}, function(module, exports) {
module.exports = {
"GLOBAL": "Treasure",
"VERSION": "2.4.1",
"VERSION": "2.4.2",
"HOST": "in.treasuredata.com",
"DATABASE": "",
"PATHNAME": "/js/v3/event/"
Expand Down
2 changes: 1 addition & 1 deletion dist/td.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
GLOBAL: 'Treasure',
VERSION: '2.4.1',
VERSION: '2.4.2',
HOST: 'in.treasuredata.com',
DATABASE: '',
PATHNAME: '/js/v3/event/'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "td-js-sdk",
"version": "2.4.1",
"version": "2.4.2",
"license": "Apache-2.0",
"bugs": "https://github.com/treasure-data/td-js-sdk/issues",
"description": "Browser JS library for sending events to your Treasure Data account",
Expand Down

0 comments on commit e104540

Please sign in to comment.