Skip to content

Commit 0b11adb

Browse files
author
shengyonggen
committed
Release 1.16.16
1 parent d8013d1 commit 0b11adb

15 files changed

+93
-161
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 1.16.16 (2021-05-20)
2+
1. 修复
3+
- 修复 `App` 内嵌 `H5` 可视化 `H5` 元素无法被圈选问题
4+
- 修复不支持 `server_url` 配置成数组问题
5+
- 修复 `requirejs` 引入模块失败问题
6+
- 修复上报属性为空数组,属性会被删除问题
7+
18
## 1.16.15 (2021-05-7)
29
1. 修复
310
- 修复不采集 `$WebStay` 事件时,触达率图错误提示不准确问题

core/sensorsdata.amd.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/sensorsdata.es6.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/sensorsdata.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

heatmap.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sa-sdk-javascript",
3-
"version": "1.16.15",
3+
"version": "1.16.16",
44
"description": "official sensorsdata javascript sdk",
55
"main": "sensorsdata.min.js",
66
"scripts": {

product/heatmap.full.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9402,7 +9402,7 @@
94029402

94039403
window.sa_jssdk_heatmap_render = function(se, data, type, url) {
94049404
sd = se;
9405-
sd.heatmap_version = '1.16.15';
9405+
sd.heatmap_version = '1.16.16';
94069406
_ = sd._;
94079407

94089408
_.bindReady = function(fn, win) {

product/sensorsdata.amd.full.js

Lines changed: 23 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,11 @@
1212

1313
;
1414
(function() {
15-
var isLoader = typeof define === "function" && define.amd;
16-
1715
var objectTypes = {
1816
"function": true,
1917
"object": true
2018
};
21-
22-
var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;
23-
24-
var root = objectTypes[typeof window] && window || this,
25-
freeGlobal = freeExports && objectTypes[typeof module] && module && !module.nodeType && typeof global == "object" && global;
26-
27-
if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) {
28-
root = freeGlobal;
29-
}
19+
var root = objectTypes[typeof window] && window || this;
3020

3121
function runInContext(context, exports) {
3222
context || (context = root.Object());
@@ -678,36 +668,28 @@
678668
return exports;
679669
}
680670

681-
if (freeExports && !isLoader) {
682-
runInContext(root, freeExports);
683-
} else {
684-
var nativeJSON = root.JSON,
685-
previousJSON = root.JSON3,
686-
isRestored = false;
687-
688-
var JSON3 = runInContext(root, (root.JSON3 = {
689-
"noConflict": function() {
690-
if (!isRestored) {
691-
isRestored = true;
692-
root.JSON = nativeJSON;
693-
root.JSON3 = previousJSON;
694-
nativeJSON = previousJSON = null;
695-
}
696-
return JSON3;
697-
}
698-
}));
699671

700-
root.JSON = {
701-
"parse": JSON3.parse,
702-
"stringify": JSON3.stringify
703-
};
704-
}
672+
var nativeJSON = root.JSON,
673+
previousJSON = root.JSON3,
674+
isRestored = false;
705675

706-
if (isLoader) {
707-
define(function() {
676+
var JSON3 = runInContext(root, (root.JSON3 = {
677+
"noConflict": function() {
678+
if (!isRestored) {
679+
isRestored = true;
680+
root.JSON = nativeJSON;
681+
root.JSON3 = previousJSON;
682+
nativeJSON = previousJSON = null;
683+
}
708684
return JSON3;
709-
});
710-
}
685+
}
686+
}));
687+
688+
root.JSON = {
689+
"parse": JSON3.parse,
690+
"stringify": JSON3.stringify
691+
};
692+
711693
}).call(this);;
712694

713695

@@ -1331,12 +1313,7 @@
13311313
sd.log('您的数据-', k, v, '的数组里的值必须是字符串,已经将其删除');
13321314
}
13331315
});
1334-
if (temp.length !== 0) {
1335-
p[k] = temp;
1336-
} else {
1337-
delete p[k];
1338-
sd.log('已经删除空的数组');
1339-
}
1316+
p[k] = temp;
13401317
}
13411318
if (!(_.isString(v) || _.isNumber(v) || _.isDate(v) || _.isBoolean(v) || _.isArray(v) || _.isFunction(v) || k === '$option')) {
13421319
sd.log('您的数据-', k, v, '-格式不满足要求,我们已经将其删除');
@@ -3095,8 +3072,6 @@
30953072
sd.para.server_url = '';
30963073
}
30973074
}
3098-
} else {
3099-
sd.para.server_url = '';
31003075
}
31013076

31023077
if (typeof sd.para.web_url === 'string' && (sd.para.web_url.slice(0, 3) === '://' || sd.para.web_url.slice(0, 2) === '//')) {
@@ -3247,7 +3222,7 @@
32473222

32483223
sd.setInitVar = function() {
32493224
sd._t = sd._t || 1 * new Date();
3250-
sd.lib_version = '1.16.15';
3225+
sd.lib_version = '1.16.16';
32513226
sd.is_first_visitor = false;
32523227
sd.source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
32533228
};
@@ -4152,7 +4127,7 @@
41524127
source: 'sa-web-sdk',
41534128
type: 'v-is-vtrack',
41544129
data: {
4155-
sdkversion: '1.16.15'
4130+
sdkversion: '1.16.16'
41564131
}
41574132
},
41584133
'*'

product/sensorsdata.es6.full.js

Lines changed: 23 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,11 @@ var _ = (sd._ = {});
66

77
;
88
(function() {
9-
var isLoader = typeof define === "function" && define.amd;
10-
119
var objectTypes = {
1210
"function": true,
1311
"object": true
1412
};
15-
16-
var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;
17-
18-
var root = objectTypes[typeof window] && window || this,
19-
freeGlobal = freeExports && objectTypes[typeof module] && module && !module.nodeType && typeof global == "object" && global;
20-
21-
if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) {
22-
root = freeGlobal;
23-
}
13+
var root = objectTypes[typeof window] && window || this;
2414

2515
function runInContext(context, exports) {
2616
context || (context = root.Object());
@@ -672,36 +662,28 @@ var _ = (sd._ = {});
672662
return exports;
673663
}
674664

675-
if (freeExports && !isLoader) {
676-
runInContext(root, freeExports);
677-
} else {
678-
var nativeJSON = root.JSON,
679-
previousJSON = root.JSON3,
680-
isRestored = false;
681-
682-
var JSON3 = runInContext(root, (root.JSON3 = {
683-
"noConflict": function() {
684-
if (!isRestored) {
685-
isRestored = true;
686-
root.JSON = nativeJSON;
687-
root.JSON3 = previousJSON;
688-
nativeJSON = previousJSON = null;
689-
}
690-
return JSON3;
691-
}
692-
}));
693665

694-
root.JSON = {
695-
"parse": JSON3.parse,
696-
"stringify": JSON3.stringify
697-
};
698-
}
666+
var nativeJSON = root.JSON,
667+
previousJSON = root.JSON3,
668+
isRestored = false;
699669

700-
if (isLoader) {
701-
define(function() {
670+
var JSON3 = runInContext(root, (root.JSON3 = {
671+
"noConflict": function() {
672+
if (!isRestored) {
673+
isRestored = true;
674+
root.JSON = nativeJSON;
675+
root.JSON3 = previousJSON;
676+
nativeJSON = previousJSON = null;
677+
}
702678
return JSON3;
703-
});
704-
}
679+
}
680+
}));
681+
682+
root.JSON = {
683+
"parse": JSON3.parse,
684+
"stringify": JSON3.stringify
685+
};
686+
705687
}).call(this);;
706688

707689

@@ -1325,12 +1307,7 @@ if (!String.prototype.replaceAll) {
13251307
sd.log('您的数据-', k, v, '的数组里的值必须是字符串,已经将其删除');
13261308
}
13271309
});
1328-
if (temp.length !== 0) {
1329-
p[k] = temp;
1330-
} else {
1331-
delete p[k];
1332-
sd.log('已经删除空的数组');
1333-
}
1310+
p[k] = temp;
13341311
}
13351312
if (!(_.isString(v) || _.isNumber(v) || _.isDate(v) || _.isBoolean(v) || _.isArray(v) || _.isFunction(v) || k === '$option')) {
13361313
sd.log('您的数据-', k, v, '-格式不满足要求,我们已经将其删除');
@@ -3089,8 +3066,6 @@ sd.initPara = function(para) {
30893066
sd.para.server_url = '';
30903067
}
30913068
}
3092-
} else {
3093-
sd.para.server_url = '';
30943069
}
30953070

30963071
if (typeof sd.para.web_url === 'string' && (sd.para.web_url.slice(0, 3) === '://' || sd.para.web_url.slice(0, 2) === '//')) {
@@ -3241,7 +3216,7 @@ sd.setPreConfig = function(sa) {
32413216

32423217
sd.setInitVar = function() {
32433218
sd._t = sd._t || 1 * new Date();
3244-
sd.lib_version = '1.16.15';
3219+
sd.lib_version = '1.16.16';
32453220
sd.is_first_visitor = false;
32463221
sd.source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
32473222
};
@@ -4146,7 +4121,7 @@ sd.detectMode = function() {
41464121
source: 'sa-web-sdk',
41474122
type: 'v-is-vtrack',
41484123
data: {
4149-
sdkversion: '1.16.15'
4124+
sdkversion: '1.16.16'
41504125
}
41514126
},
41524127
'*'

product/sensorsdata.full.js

Lines changed: 23 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,11 @@
1414

1515
;
1616
(function() {
17-
var isLoader = typeof define === "function" && define.amd;
18-
1917
var objectTypes = {
2018
"function": true,
2119
"object": true
2220
};
23-
24-
var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;
25-
26-
var root = objectTypes[typeof window] && window || this,
27-
freeGlobal = freeExports && objectTypes[typeof module] && module && !module.nodeType && typeof global == "object" && global;
28-
29-
if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) {
30-
root = freeGlobal;
31-
}
21+
var root = objectTypes[typeof window] && window || this;
3222

3323
function runInContext(context, exports) {
3424
context || (context = root.Object());
@@ -680,36 +670,28 @@
680670
return exports;
681671
}
682672

683-
if (freeExports && !isLoader) {
684-
runInContext(root, freeExports);
685-
} else {
686-
var nativeJSON = root.JSON,
687-
previousJSON = root.JSON3,
688-
isRestored = false;
689-
690-
var JSON3 = runInContext(root, (root.JSON3 = {
691-
"noConflict": function() {
692-
if (!isRestored) {
693-
isRestored = true;
694-
root.JSON = nativeJSON;
695-
root.JSON3 = previousJSON;
696-
nativeJSON = previousJSON = null;
697-
}
698-
return JSON3;
699-
}
700-
}));
701673

702-
root.JSON = {
703-
"parse": JSON3.parse,
704-
"stringify": JSON3.stringify
705-
};
706-
}
674+
var nativeJSON = root.JSON,
675+
previousJSON = root.JSON3,
676+
isRestored = false;
707677

708-
if (isLoader) {
709-
define(function() {
678+
var JSON3 = runInContext(root, (root.JSON3 = {
679+
"noConflict": function() {
680+
if (!isRestored) {
681+
isRestored = true;
682+
root.JSON = nativeJSON;
683+
root.JSON3 = previousJSON;
684+
nativeJSON = previousJSON = null;
685+
}
710686
return JSON3;
711-
});
712-
}
687+
}
688+
}));
689+
690+
root.JSON = {
691+
"parse": JSON3.parse,
692+
"stringify": JSON3.stringify
693+
};
694+
713695
}).call(this);;
714696

715697

@@ -1333,12 +1315,7 @@
13331315
sd.log('您的数据-', k, v, '的数组里的值必须是字符串,已经将其删除');
13341316
}
13351317
});
1336-
if (temp.length !== 0) {
1337-
p[k] = temp;
1338-
} else {
1339-
delete p[k];
1340-
sd.log('已经删除空的数组');
1341-
}
1318+
p[k] = temp;
13421319
}
13431320
if (!(_.isString(v) || _.isNumber(v) || _.isDate(v) || _.isBoolean(v) || _.isArray(v) || _.isFunction(v) || k === '$option')) {
13441321
sd.log('您的数据-', k, v, '-格式不满足要求,我们已经将其删除');
@@ -3097,8 +3074,6 @@
30973074
sd.para.server_url = '';
30983075
}
30993076
}
3100-
} else {
3101-
sd.para.server_url = '';
31023077
}
31033078

31043079
if (typeof sd.para.web_url === 'string' && (sd.para.web_url.slice(0, 3) === '://' || sd.para.web_url.slice(0, 2) === '//')) {
@@ -3249,7 +3224,7 @@
32493224

32503225
sd.setInitVar = function() {
32513226
sd._t = sd._t || 1 * new Date();
3252-
sd.lib_version = '1.16.15';
3227+
sd.lib_version = '1.16.16';
32533228
sd.is_first_visitor = false;
32543229
sd.source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
32553230
};
@@ -4154,7 +4129,7 @@
41544129
source: 'sa-web-sdk',
41554130
type: 'v-is-vtrack',
41564131
data: {
4157-
sdkversion: '1.16.15'
4132+
sdkversion: '1.16.16'
41584133
}
41594134
},
41604135
'*'

0 commit comments

Comments
 (0)