Skip to content

Commit

Permalink
Release 3.0.0 (#218)
Browse files Browse the repository at this point in the history
* Release 3.0.0

* update build
  • Loading branch information
imnutz committed Jul 5, 2021
1 parent 70316df commit d642aca
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 84 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 3.0.0 (2021-05-26)
* Using the Fetch API as a replacement for the JSONP

## 2.5.2 (2021-03-08)
* In 'Block All Cookies' mode, the localStorage is not accessible hence we should check for it's availability before using the localStorage APIs

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Install td-js-sdk on your page by copying the appropriate JavaScript snippet bel

```html
<script type="text/javascript">
!function(t,e){if(void 0===e[t]){e[t]=function(){e[t].clients.push(this),this._init=[Array.prototype.slice.call(arguments)]},e[t].clients=[];for(var r=function(t){return function(){return this["_"+t]=this["_"+t]||[],this["_"+t].push(Array.prototype.slice.call(arguments)),this}},s=["addRecord","blockEvents","fetchServerCookie","fetchGlobalID","fetchUserSegments","resetUUID","ready","setSignedMode","setAnonymousMode","set","trackEvent","trackPageview","trackClicks","unblockEvents"],n=0;n<s.length;n++){var c=s[n];e[t].prototype[c]=r(c)}var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=("https:"===document.location.protocol?"https:":"http:")+"//cdn.treasuredata.com/sdk/2.5/td.min.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)}}("Treasure",this);
!function(t,e){if(void 0===e[t]){e[t]=function(){e[t].clients.push(this),this._init=[Array.prototype.slice.call(arguments)]},e[t].clients=[];for(var r=["addRecord","blockEvents","fetchServerCookie","fetchGlobalID","fetchUserSegments","resetUUID","ready","setSignedMode","setAnonymousMode","set","trackEvent","trackPageview","trackClicks","unblockEvents"],s=0;s<r.length;s++){var c=r[s];e[t].prototype[c]=function(t){return function(){return this["_"+t]=this["_"+t]||[],this["_"+t].push(Array.prototype.slice.call(arguments)),this}}(c)}var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=("https:"===document.location.protocol?"https:":"http:")+"//cdn.treasuredata.com/sdk/3.0/td.min.js";var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)}}("Treasure",this);
</script>
```

Expand Down
96 changes: 20 additions & 76 deletions dist/td.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions 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.5.1',
VERSION: '3.0.0',
HOST: 'in.treasuredata.com',
DATABASE: '',
PATHNAME: '/js/v3/event/'
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/consent-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module.exports = {
description: consent.description,
datatype: consent.datatype,
status: consent.status,
expriry_date: consent.expiry_date || null,
expiry_date: consent.expiry_date || null,
issuer: this.consentManager.issuer,
identifier: this.client.track.uuid,
purpose: consentKey,
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.5.2",
"version": "3.0.0",
"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 d642aca

Please sign in to comment.