Skip to content

Commit f5c4845

Browse files
author
shengyonggen
committed
Release 1.14.8
1 parent d621033 commit f5c4845

16 files changed

+35
-34
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.14.8(2021-04-20)
2+
1. 修复
3+
- 修复页面参数含有 `scene``$url_query` 为空问题;
4+
2. 新增
5+
- `TS` 文件新增对 `setOpenid` 方法的声明
6+
17
## 1.14.7(2021-03-19)
28
1. 优化
39
- 优化定时器,减少 `setTimeout` 方法使用;

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-miniprogram",
3-
"version": "1.14.7",
3+
"version": "1.14.8",
44
"description": "sensorsdata miniprogram sdk",
55
"main": "sensorsdata.min.js",
66
"scripts": {

product/sensorsdata.custom.es6.full.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ var ArrayProto = Array.prototype,
145145
slice = ArrayProto.slice,
146146
toString = ObjProto.toString,
147147
hasOwnProperty = ObjProto.hasOwnProperty,
148-
LIB_VERSION = '1.14.7',
148+
LIB_VERSION = '1.14.8',
149149
LIB_NAME = 'MiniProgram';
150150

151151
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
@@ -1844,7 +1844,7 @@ _.setQuery = function(params, isEncode) {
18441844
if (params && _.isObject(params) && !_.isEmptyObject(params)) {
18451845
var arr = [];
18461846
_.each(params, function(value, key) {
1847-
if (!(key === 'q' && _.isString(value) && value.indexOf('http') === 0) && key !== 'scene') {
1847+
if (!(key === 'q' && _.isString(value) && value.indexOf('http') === 0)) {
18481848
if (isEncode) {
18491849
arr.push(key + '=' + value);
18501850
} else {
@@ -1982,7 +1982,6 @@ sa.autoTrackCustom = {
19821982
sa.registerApp({
19831983
$latest_scene: prop.$scene
19841984
});
1985-
19861985
prop.$url_query = _.setQuery(para.query);
19871986
if (not_use_auto_track) {
19881987
prop = _.extend(prop, not_use_auto_track);

product/sensorsdata.custom.full.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ var ArrayProto = Array.prototype,
145145
slice = ArrayProto.slice,
146146
toString = ObjProto.toString,
147147
hasOwnProperty = ObjProto.hasOwnProperty,
148-
LIB_VERSION = '1.14.7',
148+
LIB_VERSION = '1.14.8',
149149
LIB_NAME = 'MiniProgram';
150150

151151
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
@@ -1844,7 +1844,7 @@ _.setQuery = function(params, isEncode) {
18441844
if (params && _.isObject(params) && !_.isEmptyObject(params)) {
18451845
var arr = [];
18461846
_.each(params, function(value, key) {
1847-
if (!(key === 'q' && _.isString(value) && value.indexOf('http') === 0) && key !== 'scene') {
1847+
if (!(key === 'q' && _.isString(value) && value.indexOf('http') === 0)) {
18481848
if (isEncode) {
18491849
arr.push(key + '=' + value);
18501850
} else {
@@ -1982,7 +1982,6 @@ sa.autoTrackCustom = {
19821982
sa.registerApp({
19831983
$latest_scene: prop.$scene
19841984
});
1985-
19861985
prop.$url_query = _.setQuery(para.query);
19871986
if (not_use_auto_track) {
19881987
prop = _.extend(prop, not_use_auto_track);

product/sensorsdata.es6.full.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ var ArrayProto = Array.prototype,
145145
slice = ArrayProto.slice,
146146
toString = ObjProto.toString,
147147
hasOwnProperty = ObjProto.hasOwnProperty,
148-
LIB_VERSION = '1.14.7',
148+
LIB_VERSION = '1.14.8',
149149
LIB_NAME = 'MiniProgram';
150150

151151
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
@@ -1844,7 +1844,7 @@ _.setQuery = function(params, isEncode) {
18441844
if (params && _.isObject(params) && !_.isEmptyObject(params)) {
18451845
var arr = [];
18461846
_.each(params, function(value, key) {
1847-
if (!(key === 'q' && _.isString(value) && value.indexOf('http') === 0) && key !== 'scene') {
1847+
if (!(key === 'q' && _.isString(value) && value.indexOf('http') === 0)) {
18481848
if (isEncode) {
18491849
arr.push(key + '=' + value);
18501850
} else {
@@ -2045,7 +2045,6 @@ sa.autoTrackCustom = {
20452045
sa.registerApp({
20462046
$latest_scene: prop.$scene
20472047
});
2048-
20492048
prop.$url_query = _.setQuery(para.query);
20502049
if (not_use_auto_track) {
20512050
prop = _.extend(prop, not_use_auto_track);

product/sensorsdata.full.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ var ArrayProto = Array.prototype,
145145
slice = ArrayProto.slice,
146146
toString = ObjProto.toString,
147147
hasOwnProperty = ObjProto.hasOwnProperty,
148-
LIB_VERSION = '1.14.7',
148+
LIB_VERSION = '1.14.8',
149149
LIB_NAME = 'MiniProgram';
150150

151151
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
@@ -1844,7 +1844,7 @@ _.setQuery = function(params, isEncode) {
18441844
if (params && _.isObject(params) && !_.isEmptyObject(params)) {
18451845
var arr = [];
18461846
_.each(params, function(value, key) {
1847-
if (!(key === 'q' && _.isString(value) && value.indexOf('http') === 0) && key !== 'scene') {
1847+
if (!(key === 'q' && _.isString(value) && value.indexOf('http') === 0)) {
18481848
if (isEncode) {
18491849
arr.push(key + '=' + value);
18501850
} else {
@@ -2045,7 +2045,6 @@ sa.autoTrackCustom = {
20452045
sa.registerApp({
20462046
$latest_scene: prop.$scene
20472047
});
2048-
20492048
prop.$url_query = _.setQuery(para.query);
20502049
if (not_use_auto_track) {
20512050
prop = _.extend(prop, not_use_auto_track);

product/sensorsdata.plugin.es6.full.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ var ArrayProto = Array.prototype,
145145
slice = ArrayProto.slice,
146146
toString = ObjProto.toString,
147147
hasOwnProperty = ObjProto.hasOwnProperty,
148-
LIB_VERSION = '1.14.7',
148+
LIB_VERSION = '1.14.8',
149149
LIB_NAME = 'MiniProgram';
150150

151151
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
@@ -1844,7 +1844,7 @@ _.setQuery = function(params, isEncode) {
18441844
if (params && _.isObject(params) && !_.isEmptyObject(params)) {
18451845
var arr = [];
18461846
_.each(params, function(value, key) {
1847-
if (!(key === 'q' && _.isString(value) && value.indexOf('http') === 0) && key !== 'scene') {
1847+
if (!(key === 'q' && _.isString(value) && value.indexOf('http') === 0)) {
18481848
if (isEncode) {
18491849
arr.push(key + '=' + value);
18501850
} else {
@@ -2045,7 +2045,6 @@ sa.autoTrackCustom = {
20452045
sa.registerApp({
20462046
$latest_scene: prop.$scene
20472047
});
2048-
20492048
prop.$url_query = _.setQuery(para.query);
20502049
if (not_use_auto_track) {
20512050
prop = _.extend(prop, not_use_auto_track);

product/sensorsdata.plugin.full.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ var ArrayProto = Array.prototype,
145145
slice = ArrayProto.slice,
146146
toString = ObjProto.toString,
147147
hasOwnProperty = ObjProto.hasOwnProperty,
148-
LIB_VERSION = '1.14.7',
148+
LIB_VERSION = '1.14.8',
149149
LIB_NAME = 'MiniProgram';
150150

151151
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
@@ -1844,7 +1844,7 @@ _.setQuery = function(params, isEncode) {
18441844
if (params && _.isObject(params) && !_.isEmptyObject(params)) {
18451845
var arr = [];
18461846
_.each(params, function(value, key) {
1847-
if (!(key === 'q' && _.isString(value) && value.indexOf('http') === 0) && key !== 'scene') {
1847+
if (!(key === 'q' && _.isString(value) && value.indexOf('http') === 0)) {
18481848
if (isEncode) {
18491849
arr.push(key + '=' + value);
18501850
} else {
@@ -2045,7 +2045,6 @@ sa.autoTrackCustom = {
20452045
sa.registerApp({
20462046
$latest_scene: prop.$scene
20472047
});
2048-
20492048
prop.$url_query = _.setQuery(para.query);
20502049
if (not_use_auto_track) {
20512050
prop = _.extend(prop, not_use_auto_track);

sensorsdata.custom.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.

sensorsdata.custom.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.

0 commit comments

Comments
 (0)