This repository was archived by the owner on Sep 3, 2022. It is now read-only.
File tree 4 files changed +35
-31
lines changed
4 files changed +35
-31
lines changed Original file line number Diff line number Diff line change
1
+ # 4.0.4 / 2020-09-11
2
+
3
+ - Change the arguments of the main methods to be optional in the typedef to match the documentation. (#203 )
4
+
1
5
# 4.0.3 / 2020-09-11
2
6
3
7
- Bump ` debug ` to a version that fixed security vulnerabilities.
Original file line number Diff line number Diff line change @@ -297,10 +297,10 @@ Analytics.prototype.add = function(integration: {
297
297
*/
298
298
299
299
Analytics . prototype . identify = function (
300
- id : string ,
301
- traits : unknown ,
302
- options : SegmentOpts ,
303
- fn : Function | SegmentOpts
300
+ id ? : string ,
301
+ traits ? : unknown ,
302
+ options ? : SegmentOpts ,
303
+ fn ? : Function | SegmentOpts
304
304
) : SegmentAnalytics {
305
305
// Argument reshuffling.
306
306
/* eslint-disable no-unused-expressions, no-sequences */
@@ -355,9 +355,9 @@ Analytics.prototype.user = function(): object {
355
355
356
356
Analytics . prototype . group = function (
357
357
id : string ,
358
- traits : unknown ,
359
- options : unknown ,
360
- fn : unknown
358
+ traits ? : unknown ,
359
+ options ? : unknown ,
360
+ fn ? : unknown
361
361
) : SegmentAnalytics {
362
362
/* eslint-disable no-unused-expressions, no-sequences */
363
363
if ( ! arguments . length ) return group ;
@@ -399,9 +399,9 @@ Analytics.prototype.group = function(
399
399
400
400
Analytics . prototype . track = function (
401
401
event : string ,
402
- properties : unknown ,
403
- options : unknown ,
404
- fn : unknown
402
+ properties ? : unknown ,
403
+ options ? : unknown ,
404
+ fn ? : unknown
405
405
) : SegmentAnalytics {
406
406
// Argument reshuffling.
407
407
/* eslint-disable no-unused-expressions, no-sequences */
@@ -564,11 +564,11 @@ Analytics.prototype.trackSubmit = Analytics.prototype.trackForm = function(
564
564
*/
565
565
566
566
Analytics . prototype . page = function (
567
- category : string ,
568
- name : string ,
569
- properties : any ,
570
- options : any ,
571
- fn : unknown
567
+ category ? : string ,
568
+ name ? : string ,
569
+ properties ? : any ,
570
+ options ? : any ,
571
+ fn ? : unknown
572
572
) : SegmentAnalytics {
573
573
// Argument reshuffling.
574
574
/* eslint-disable no-unused-expressions, no-sequences */
Original file line number Diff line number Diff line change @@ -130,10 +130,10 @@ export declare namespace SegmentAnalytics {
130
130
* Identify a user by optional `id` and `traits`.
131
131
*/
132
132
identify (
133
- id : string ,
134
- traits : unknown ,
135
- options : SegmentOpts ,
136
- fn : Function | SegmentOpts
133
+ id ? : string ,
134
+ traits ? : unknown ,
135
+ options ? : SegmentOpts ,
136
+ fn ? : Function | SegmentOpts
137
137
) : AnalyticsJS ;
138
138
139
139
/**
@@ -147,19 +147,19 @@ export declare namespace SegmentAnalytics {
147
147
*/
148
148
group (
149
149
id : string ,
150
- traits : unknown ,
151
- options : unknown ,
152
- fn : unknown
150
+ traits ? : unknown ,
151
+ options ? : unknown ,
152
+ fn ? : unknown
153
153
) : AnalyticsJS ;
154
154
155
155
/**
156
156
* Track an `event` that a user has triggered with optional `properties`.
157
157
*/
158
158
track (
159
159
event : string ,
160
- properties : unknown ,
161
- options : unknown ,
162
- fn : unknown
160
+ properties ? : unknown ,
161
+ options ? : unknown ,
162
+ fn ? : unknown
163
163
) : AnalyticsJS ;
164
164
165
165
/**
@@ -220,11 +220,11 @@ export declare namespace SegmentAnalytics {
220
220
* `name` and `properties`.
221
221
*/
222
222
page (
223
- category : string ,
224
- name : string ,
225
- properties : any ,
226
- options : any ,
227
- fn : unknown
223
+ category ? : string ,
224
+ name ? : string ,
225
+ properties ? : any ,
226
+ options ? : any ,
227
+ fn ? : unknown
228
228
) : AnalyticsJS ;
229
229
230
230
/**
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @segment/analytics.js-core" ,
3
3
"author" :
" Segment <[email protected] >" ,
4
- "version" : " 4.0.3 " ,
4
+ "version" : " 4.0.4 " ,
5
5
"description" : " The hassle-free way to integrate analytics into any web application." ,
6
6
"types" : " lib/index.d.ts" ,
7
7
"keywords" : [
You can’t perform that action at this time.
0 commit comments