@mate-academy/sourcebuster 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ v20
package/CHANGELOG.md ADDED
@@ -0,0 +1,123 @@
1
+ ## 1.0.5
2
+
3
+ Features:
4
+
5
+ - added `t.co` (`host: 't.co', display: 'twitter.com'`) and `plus.url.google.com` (`host: 'plus.url.google.com', display: 'plus.google.com'`) to default `referral` sources. You still can override it by your custom setting (to mark it as `social` for example).
6
+
7
+ ## 1.0.4
8
+
9
+ Fixes:
10
+
11
+ - fixed IE8 bug
12
+
13
+ ## 1.0.3
14
+
15
+ Fixes:
16
+
17
+ - fixed month in dates (`sbjs.get.first_add.fd` & `sbjs.get.current_add.fd`): it was -1 from actual one
18
+
19
+ ## 1.0.2
20
+
21
+ Fixes:
22
+
23
+ - fixed validation of `lifetime`, `session_length` and `timezone_offset` params
24
+
25
+ ## 1.0.0
26
+
27
+ [Upgrade guide](UPGRADING.md) · [Updated documentation](README.md)
28
+
29
+ Changes:
30
+
31
+ _Major_
32
+
33
+ - API. Rewritten from the ground. See [upgrade guide](UPGRADING.md) and [updated documentation](README.md).
34
+ - Changed cookie's domain handling — also see [upgrade guide](UPGRADING.md) and [updated documentation](README.md).
35
+ - Changed default `utm_source` & `utm_medium` values for `typein` traffic — you know [what to do](UPGRADING.md) :)
36
+
37
+ _Minor_
38
+
39
+ - Changed default timezone from UTC to user's system (default — means no custom value provided during `sbjs` initialization).
40
+
41
+ _Under the hood_
42
+
43
+ - In short: `mess` became `structure`. Check the sources if interested.
44
+ - Added migration tool, which updates visitor's cookies to `1.x.x`.
45
+ - Changed params delimiter in cookies: from `|` to `|||`. Cookies will be automatically upgraded by migration tool without data loss. You don't have to worry about this change unless you parse these cookies by yourself.
46
+
47
+ Features:
48
+
49
+ - Added `callback` option to set custom function, which will be executed right after `sbjs` cookies will be set. This function will get `sbjs.get`-object as argument (it contains all detected `sbjs` data).
50
+ - Added ability to set custom cookies expiration period
51
+ - Added `term` detection from Yandex Direct traffic (if there is no `utm_term` in URL)
52
+ - Added `visits` counter: available through `sbjs.get.udata.vst`
53
+ - Added `pages` counter for current session: available through `sbjs.get.session.pgs`
54
+ - Added `current page` url for current session: available through `sbjs.get.session.cpg`
55
+ - And Sourcebuster `1.0.0` available as `CommonJS` / `AMD` module.
56
+
57
+ ## 0.0.7
58
+
59
+ Features:
60
+
61
+ - add `sbjs_current_add` cookie, which holds same data as `sbjs_first_add` cookie, but for the visit when current source was written
62
+ - add info about first referer (see changes below)
63
+
64
+ Changes:
65
+
66
+ - move current `referer` data from stand-alone `sbjs_referer` cookie to `sbjs_current_add` cookie (and also to `sbjs_first_add` cookie, now you can get first and current referers via `get_sbjs.first_add.rf` & `get_sbjs.current_add.rf` getters)
67
+
68
+ ## 0.0.6
69
+
70
+ Features:
71
+
72
+ - add `_setPromocode` user setting to set promocode for visitor;
73
+
74
+ ## 0.0.5
75
+
76
+ Features:
77
+
78
+ - add `_setTypeinAttributes` user setting to set custom `source` and `medium` for `typein` traffic
79
+ - set value of `content` = `referer_path` in cookies for `referral` traffic
80
+
81
+ ## 0.0.4
82
+
83
+ Features:
84
+
85
+ - add predefined organic sources into the core (see comments and the list of added sources [in the docs](./README.md#_addorganicsource))
86
+ - add Sourcebuster to `bower` ([bower.io](http://bower.io)). Now you can [install it via... `bower`](./README.md#install)
87
+
88
+ Changes:
89
+
90
+ - switch from Closure Compiler to UglifyJS minification library
91
+ - switch from deprecated `escape()`/`unescape()` methods to custom `encode_data()`/`decode_data()` functions (which uses `encodeURIComponent()`/`decodeURIComponent()` with some additions) to set/get cookies. **Please pay attention to this if you parse `sbjs` cookies by yourself.**
92
+
93
+ ## 0.0.3
94
+
95
+ Features:
96
+
97
+ - add `_setTimeZoneOffset` user setting to set default time zone
98
+ - add alias param to custom organic source (added via `_addOrganicSource`)
99
+
100
+ Changes:
101
+
102
+ - change simple and advanced setup methods
103
+ - change datetime format to `yyyy-mm-dd hh:mm:ss` (`2014-06-11 17:28:26`)
104
+ - store datetime in UTC by default
105
+ - remove events `'sbjs:set'` and `'sbjs:ready'` (see *Using the data* section for details)
106
+
107
+ Fixes:
108
+
109
+ - fix matching of Yandex organic source
110
+ - fix matching of custom organic source (added via `_addOrganicSource`)
111
+ - fix getter (`get_sbjs`) in IE8 and lower
112
+ - fix output of non-ASCII chars via `get_sbjs`
113
+
114
+ ## 0.0.2
115
+
116
+ Features:
117
+
118
+ - add Google AdWords `gclid` param handler
119
+ - add `_setCampaignParam` user setting to set custom GET-param, whose value will be set as `utm_campaign` in cookies (if there is no original `utm_campaign` in request)
120
+
121
+ ## 0.0.1
122
+
123
+ Sourcebuster JS released.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Alex Fedoseev
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.