@mparticle/web-sdk 2.14.0 → 2.15.0

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/CHANGELOG.md DELETED
@@ -1,555 +0,0 @@
1
- # [2.14.0](https://github.com/mParticle/mparticle-web-sdk/compare/v2.13.0...v2.14.0) (2021-08-04)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * globalThis is not defined ([3a849c6](https://github.com/mParticle/mparticle-web-sdk/commit/3a849c68a284fa21eb370836accca7fb584e30dd))
7
- * Update semantic release secret name ([0824ef5](https://github.com/mParticle/mparticle-web-sdk/commit/0824ef57e6ea795702d631051fc02d52d2b8fb6a))
8
-
9
-
10
- ### Features
11
-
12
- * Allow scope param on user alias requests ([a864aef](https://github.com/mParticle/mparticle-web-sdk/commit/a864aefc2db11d63d57174e92b6c5965a93471a8))
13
-
14
- # [2.13.0](https://github.com/mParticle/mparticle-web-sdk/compare/v2.12.9...v2.13.0) (2021-07-29)
15
-
16
-
17
- ### Features
18
-
19
- * Bypass functionality when a specific config option is passed ([#159](https://github.com/mParticle/mparticle-web-sdk/issues/159)) ([2727a43](https://github.com/mParticle/mparticle-web-sdk/commit/2727a437a6d0a25481c9120b3c93fd23fb520f37))
20
-
21
- ## [2.12.9](https://github.com/mParticle/mparticle-web-sdk/compare/v2.12.8...v2.12.9) (2021-06-23)
22
-
23
-
24
- ### Bug Fixes
25
-
26
- * Update esm/common rollup.config to prevent regenerator runtime issue ([2ff362f](https://github.com/mParticle/mparticle-web-sdk/commit/2ff362f5243659cdefd4863609c1c93d5e76fc66))
27
-
28
- ## Releases
29
-
30
- --
31
-
32
- #### 2020-05-06
33
-
34
- - Any new workspaces with JS API Keys will now batch all web events in order to save bandwidth and improve site performance. To read more about web batching see here - https://docs.mparticle.com/developers/sdk/web/getting-started#upload-interval--batching. This does not require any updates to the SDK itself. No implementation changes are required. If you have a workspace created prior to 2020-05-06 and are not yet on batching, please contact your Customer Success Manager.
35
-
36
- #### 2.12.8 - 2021-04-06
37
-
38
- - Bugfix: Rename pageViewFilters to screenAttributeFilters
39
- Enables screen attributes to be filtered out on downstream forwarders
40
-
41
- #### 2.12.7 - 2021-03-25
42
-
43
- - Bugfix - Add product impressions to kit blocking
44
- - Feat - Consent-based cookie-sync
45
- - Bugfix - Add source message id
46
-
47
- #### 2.12.5 - 2021-02-17
48
-
49
- - Bugfix - Use addEventListeners for life cycle events
50
- - Bugfix - Set setCurrencyCode on eCommerce object
51
-
52
- #### 2.12.4 - 2021-02-09
53
-
54
- - Refactor - Import version from package.json
55
- - Format code styling
56
-
57
- #### 2.12.3 - 2021-01-20
58
-
59
- - Bugfix - update is first run to booleans
60
- - Bugfix - Sanitize ecommerce amounts to numbers
61
- - Bugfix - Set sessionStartDate to 0 instead of null
62
- - Bugfix - Error events - Set to null if stack trace is undefined; Add context to error events
63
-
64
- #### 2.12.2 - 2020-11-12
65
-
66
- - Bugfix - Fix data plan options API
67
- - Bugfix - Add try/catch to cookie searching
68
-
69
- #### 2.12.1 - 2020-11-11
70
-
71
- - Fix Typo in logging
72
- - Update identity mappings
73
- - Bugfix - Add check for window for node environments
74
-
75
- #### 2.12.0 - 2020-10-29
76
-
77
- - Feat - Implement client side kit blocking
78
- You can now use Data Master to block unplanned events and attributes from being sent to client side forwarders.
79
-
80
- #### 2.11.16 - 2020-10-26
81
-
82
- - Remove eventsApiModels.ts in favor of js-events npm module
83
- - Feat - Add event and product context to sanitized attributes
84
- - Add logic to handle Media Events as Custom Events
85
- - Add additional tests for app name change in config
86
-
87
- #### 2.11.15 - 2020-06-30
88
-
89
- - Feat - Add transactionAttributes to logProductAction method signature
90
-
91
- #### 2.11.14 - 2020-06-24
92
-
93
- - Bugfix - Make tagging batches with appropriate UI more robust
94
-
95
- #### 2.11.13 - 2020-06-17
96
-
97
- - Bugfix - prevent null CCPA consent on events v3 endpoint
98
-
99
- #### 2.11.12 - 2020-06-03
100
-
101
- - Bugfix - logProductActions of purchase/refund conform to logPurchase/logRefund
102
-
103
- #### 2.11.11 - 2020-05-12
104
-
105
- - Feat - Add Other5-Other10, mobile/phone number identity types
106
-
107
- #### 2.11.10 - 2020-04-23
108
-
109
- - Bugfix - Fix v3 events endpoint location payload
110
-
111
- #### 2.11.9 - 2020-04-02
112
-
113
- - Bugfix - Send specific user along with UIC and UAC Events
114
- - Dependabot - Bump Acorn version
115
-
116
- #### 2.11.8 - 2020-03-16
117
-
118
- - Don't set empty TransactionAttribute fields
119
-
120
- #### 2.11.7 - 2020-03-04
121
-
122
- - Deprecate removeCCPAState in favor of removeCCPAConsentState
123
- - Feat - XHR Support for Batching
124
-
125
- #### 2.11.6 - 2020-02-26
126
-
127
- - Migrate network tests from local Mockhttprequest to Sinon
128
- - Bugfix - Flush eventQueue after identity callback
129
-
130
- #### 2.11.5 - 2020-02-12
131
-
132
- - Update node version for Travis
133
- - Api docs update
134
- - Bugfix - Enable configuration of v1 endpoints
135
-
136
- #### 2.11.4 - 2020-02-06
137
-
138
- - Feat - Modify reset API for public consumption
139
- - Feat - Import @mparticle/event-models to replace eventApiModels
140
- - Bugfix - Typo & keep persistence checking consistent
141
-
142
- #### 2.11.3 - 2020-02-04
143
-
144
- - Update package.json (Add mparticle.js to dist/ for partner kit testing)
145
-
146
- #### 2.11.2 - 2020-02-01
147
-
148
- - Feat - Add support for custom v3 URL
149
-
150
- #### 2.11.1 - 2020-01-29
151
-
152
- - Bugfix - resolve when browser has disabled localStorage
153
- - Bugfix - Do not log deprecated warnings when logging purchases
154
- - Feat - Add support for Data Planning to V2 Events upload
155
-
156
- #### 2.11.0 - 2020-01-16
157
-
158
- - Feat - Add CCPA support
159
- - Add batch creator class for ESLint data planning plugin
160
-
161
- #### 2.10.2 - 2019-12-19
162
-
163
- - Feat - Pass appName to config
164
-
165
- #### 2.10.1 - 2019-12-11
166
-
167
- - Bugfix - Do not populate data plan context when plan id is null
168
-
169
- #### 2.10.0 - 2019-11-13
170
-
171
- - Feat - Implement Multiple Instances
172
-
173
- #### 2.9.16 - 2019-11-06
174
-
175
- - Bugfix - Parse string in shouldEnableBatching
176
-
177
- #### 2.9.15 - 2019-11-06
178
-
179
- - Deprecate Cart - The mParticle functionality will be removed in a future release, please
180
- - Bugfix - Self hosting namespaces storage with workspaceToken again
181
-
182
- #### 2.9.14 - 2019-10-31
183
-
184
- - Remove mparticle.js from root
185
- - Feat - Stub logBaseEvent in snippet, add snippet comments
186
- - Feat - Implement User Identity Change & User Attribute Change Events
187
- - Allow MediaEvents and Media PageEvents to be supported
188
- - Happy Halloween! :jack_o_lantern:
189
-
190
- #### 2.9.13 - 2019-10-09
191
-
192
- - Refactor codebase with Prettier
193
- - Bugfix - Resolve Sonarqube code smells
194
- - Modify Rollup builds
195
-
196
- #### 2.9.12 - 2019-10-02
197
-
198
- - Support event batching and beacon API; provide new Events API v3 endpoint which supports batching
199
- - Implement Typescript and Babel compilation
200
- - Feat - Enable configuration of config endpoint
201
-
202
- #### 2.9.11 - 2019-09-26
203
-
204
- - Feat - Add Base Event functionality to core for future child SDK use
205
- - Update .eslintrc, fix urls in yuidoc comments
206
-
207
- #### 2.9.10 - 2019-08-21
208
-
209
- - Add integration tests for bundlers (webpack, browserify, rollup)
210
- - Bugfix - Make getCartProducts more robust
211
- - Bugfix - Fix immediate logging for self hosting
212
- - Feat - add session start to server DTO
213
- - Bugfix - update modify old_value
214
-
215
- #### 2.9.9 - 2019-08-07
216
-
217
- - Bugfix - Check all event attributes when forwarding rules are set
218
-
219
- #### 2.9.8 - 2019-08-07
220
-
221
- - Migrate to ES6 Modules; Replace Browserify with Rollup
222
-
223
- #### 2.9.7 - 2019-07-16
224
-
225
- - Bugfix - noHttpCoverage code properly sent to callback
226
- - Bugfix - Configure forwarders prior to identify callback
227
-
228
- #### 2.9.6 - 2019-07-08
229
-
230
- - Bugfix - Alias requests respect isDevelopmentMode setting
231
-
232
- #### 2.9.5 - 2019-07-01
233
-
234
- - Bugfix - set isInitialized in both web and webview contexts
235
- - Feature: log error custom attributes
236
- - Update build parameters
237
-
238
- #### 2.9.4 - 2019-06-25
239
-
240
- - Modify files for self hosting
241
- - Add a /config endpoint
242
- - Accept 2nd argument to init for configuration
243
- - Bugfix - Initialize Logger before Store
244
-
245
- #### 2.9.3 - 2019-06-20
246
-
247
- - Bugfix - retain mParticle.isIOS on script load
248
-
249
- #### 2.9.2 - 2019-06-10
250
-
251
- - Bugfix - respect mParticle.isIOS setting
252
-
253
- #### 2.9.1 - 2019-06-05
254
-
255
- - Make endpoints configurable
256
-
257
- #### 2.9.0 - 2019-05-28
258
-
259
- - Implement User Aliasing
260
- - Bugfixes - Helpers.debug & set isFirstRun to false after app inits for the first time
261
-
262
- #### 2.8.12 - 2019-05-08
263
-
264
- - Implement firstSeen and lastSeen fields for MParticleUser
265
- - Sort MParticleUser Array returned by getUsers() by lastSeenTime
266
- - Bugfix - Callback validation & correct warning message
267
- - Add getPreviousUser() to Identity callbacks
268
-
269
- #### 2.8.11 - 2019-04-24
270
-
271
- - Refactor config into a class
272
- - Implement Logger
273
- - Fix consent object validation and remove unneeded null check
274
-
275
- #### 2.8.10 - 2019-04-10
276
-
277
- - Prefer modules over public mParticle methods
278
-
279
- #### 2.8.9 - 2019-03-13
280
-
281
- - Simplify / remove migrations
282
-
283
- #### 2.8.8 - 2019-02-20
284
-
285
- - Bugfix - Native SDK - prioritize equality of requiredWebviewBridgeName
286
-
287
- #### 2.8.7 - 2019-02-14
288
-
289
- - Update native bridge logic
290
-
291
- #### 2.8.6 - 2019-02-14
292
-
293
- - Namespace localstorage with workspace token
294
-
295
- #### 2.8.5 - 2019-02-13
296
-
297
- - Add callback to location tracking method
298
-
299
- #### 2.8.4 - 2019-02-04
300
-
301
- - Set session attributes when using native bridge
302
-
303
- #### 2.8.3 - 2019-01-30
304
-
305
- - Bugfix - Check for LocalStorage before migrating
306
-
307
- #### 2.8.2 - 2019-01-25
308
-
309
- - Bugfix - Guard against undefined result from crypto API
310
- - Bugfix - Call identify if cookies exist, but there is no current user
311
-
312
- #### 2.8.1 - 2019-01-23
313
-
314
- - Add identityMethod to onUserIdentified function definition
315
- - Bugfix - return 0 instead of null for hashing boolean false
316
-
317
- #### 2.8.0 - 2018-12-19
318
-
319
- - Fix autogen yuidocs comments
320
- - Add get/setIntegrationAttribute APIs
321
- - Add snippet tests
322
- - Add boolean validation for isDevelopmentMode
323
-
324
- #### 2.7.8 - 2018-10-24
325
-
326
- - Initialize forwarders based on logged in status
327
-
328
- #### 2.7.7 - 2018-10-15
329
-
330
- - Bugfix - remove cart item uses proper product persistence
331
- - Bugfix - Guard against corrupt local storage/cookies
332
-
333
- #### 2.7.6 - 2018-10-10
334
-
335
- - Bugfix - guard against null cookie
336
-
337
- #### 2.7.5 - 2018-09-19
338
-
339
- - Add getUser method to identity callback results
340
- - Only call initial identify and callback once
341
- - Bugfix - logLevel
342
-
343
- #### 2.7.4 - 2018-09-14
344
-
345
- - Bugfix - Remove corrupt localStorage
346
- - Bugfix - Fix encoding LS for special characters
347
-
348
- #### 2.7.3 - 2018-08-30
349
-
350
- - Bugfix - Always init forwarder when no UA filters are present
351
-
352
- #### 2.7.2 - 2018-08-22
353
-
354
- - Re-initialize forwarders after userAttr changes
355
- - Capitalize all letters in sessionId
356
-
357
- #### 2.7.1 - 2018-08-10
358
-
359
- - Bugfix - Create copy of MP.eventQueue to iterate through
360
-
361
- #### 2.7.0 - 2018-08-08
362
-
363
- - Add setUserAttributes to public API
364
-
365
- #### 2.6.4 - 2018-08-01
366
-
367
- - Implement forwarderUploader module, feaure flags, batch forwarder stats
368
- - Bugfix - Change ProductActionTypes to be consistent with mobile/S2S
369
-
370
- #### 2.6.3 - 2018-07-18
371
-
372
- - Implement customFlags per public API method
373
-
374
- #### 2.6.2 - 2018-07-16
375
-
376
- - Update growl and hoek for testing dependencies
377
- - Bugfix - sendEventToForwarder fix
378
-
379
- #### 2.6.1 - 2018-07-11
380
-
381
- - Default forceHttps to true
382
- - Add apiClient module
383
-
384
- #### 2.6.0 - 2018-06-20
385
-
386
- - Implement Consent forwarding rules
387
-
388
- #### 2.5.1 - 2018-06-11
389
-
390
- - Bugfix - Fix filterUserAttributeValues break/continue
391
-
392
- #### 2.5.0 - 2018-06-06
393
-
394
- - Expose getUser and getUsers to public Identity API
395
- - Bugfix - send newUser to forwarder on user identified
396
- - Add filtered user object
397
-
398
- #### 2.4.1 - 2018-05-09
399
-
400
- - Bugfix - encode event value before sending to iOS
401
- - Update package-lock.json to pass CI tests
402
-
403
- #### 2.4.0 - 2018-04-26
404
-
405
- - Implement Consent State
406
- - Expose Identitiy HTTP constants to the public
407
-
408
- #### 2.3.3 - 2018-04-19
409
-
410
- - Bugfix - filter user attributes to forwarders on init
411
-
412
- #### 2.3.2 - 2018-04-04
413
-
414
- - Bugfix - filter user attributes to forwarders on init
415
-
416
- #### 2.3.1 - 2018-04-02
417
-
418
- - Bugfix - Compare strings when filtering event/user attribute values
419
-
420
- #### 2.3.0 - 2018-03-28
421
-
422
- - Bugfix - Prioritize client entered config over persistence
423
- - Bugfix - Correct capitalization of clearing eCommerce carts
424
- - Add Identify to public API
425
-
426
- #### 2.2.6 - 2018-03-07
427
-
428
- - Add forceHttps as a config option
429
- - Fix linting
430
- - Migrate all mpids between cookies and LS when useCookieStorage changes
431
-
432
- #### 2.2.5 - 2018-03-01
433
-
434
- - Bugfix - add shouldUseNativeSdk logic to fix null user and null path values
435
-
436
- #### 2.2.4 - 2018-02-28
437
-
438
- - Add config option for maxCookieSize
439
- - Refactor useNativeSdk and prevent identify calls when in webview
440
-
441
- #### 2.2.3 - 2018-02-23
442
-
443
- - Update logic for useNativeSdk and isIOS
444
-
445
- #### 2.2.2 - 2018-02-20
446
-
447
- - Pass identityApiData to native SDKs
448
-
449
- #### 2.2.1 - 2018-02-14
450
-
451
- - Queue events when mpid is null or 0
452
- - Stub primary methods for pre-loading SDK invocation
453
- - Add eventSubscriptionId to forwarder contract
454
- - Update readme to remove adchemix
455
-
456
- #### 2.2.0 - 2018-01-31
457
-
458
- - Remove product bags
459
-
460
- #### 2.1.5 - 2018-01-25
461
-
462
- - Update version endpoint for /Forwarding
463
-
464
- #### 2.1.4 - 2018-01-10
465
-
466
- - Ensure customerid is always the first identity being set
467
- - Auto generate API docs
468
- - Add migration for base64 encoded products
469
- - Finalize Other IDs
470
- - Bugfix - Adjust logic for session end event
471
-
472
- #### 2.1.3 - 2017-12-20
473
-
474
- - Remove logLTVIncrease
475
- - Return an empty array when there are no cart products
476
- - Bugfix - Adjust arguments for applyToForwarders
477
-
478
- #### 2.1.2 - 2017-12-14
479
-
480
- - Add setForwarderOnUserIdentified, return null currentUser when MPID is null
481
-
482
- #### 2.1.1 - 2017-12-13
483
-
484
- - Modularize tests for readability and robustness
485
- - Adjust Application State Transition, include initial location
486
- - Bugfix - Add CheckoutOption to ProductAction-related switch statements
487
- - Add parseStringOrNumber function
488
- - Sanitize additional attributes
489
- - Correct order of internal createProducts arguments
490
- - Refactor logPageView
491
- - Require explicit UIWebview binding
492
-
493
- #### 2.1.0 - 2017-11-30
494
-
495
- - Migrate persistence to v4
496
- - Add onUserAlias callback
497
-
498
- #### 2.0.13 - 2017-11-08
499
-
500
- - Add support for filtering user attribute values
501
- - Update persistence after a modify call
502
-
503
- #### 2.0.12 - 2017-10-23
504
-
505
- - Complete modularization of SDK
506
-
507
- #### 2.0.11 - 2017-10-19
508
-
509
- - Modularize Types, Constants, Helpers, DTO, Identity, Ecommerce
510
- - Reorganize tests
511
-
512
- #### 2.0.10 - 2017-10-17
513
-
514
- - Bugfix - Execute useLocalStorage method
515
-
516
- #### 1.14.1 - 2017-06-22
517
-
518
- - Fixes for cookie syncing. Properly cookie sync when MPID changes, and only perform a cookie sync when debug modes for defined pixel and mParticle match
519
- - Store productBags and cartProducts to cookies, with config option to change number of products allowed in each (config.maxProducts = 20 by default)
520
- - Prevent setUserIdentity from accepting booleans
521
- - Clean up code - Add additional validations, convert remaining == to ===
522
-
523
- #### 1.14.0 - 2017-06-15
524
-
525
- - Support for cookie-syncing. Cookie-syncing enables the optional collection of 3rd-party IDs to enable enhanced audience sharing with advertising platforms such as DoubleClick, Adobe, and AppNexus
526
- - Add application state transition to mParticle initialization
527
-
528
- #### 1.13.1 - 2017-05-25
529
-
530
- - Fix for removing duplicate user identities where ID is missing, allow ID to be `undefined`
531
- - Fix for creating CGID on initial load
532
-
533
- #### 1.13.0 - 2017-05-18
534
-
535
- - Send sessionLength to server when sessionEnd is called.
536
-
537
- #### 1.12.0 - 2017-05-11
538
-
539
- - Add deviceId, and deviceId retrieval via `mParticle.getDeviceId()`.
540
-
541
- #### 1.11.0 - 2017-04-27
542
-
543
- - Add new session management.
544
- - Fixed a bug where the same sessionId may be associated with events over several days.
545
-
546
- #### 1.10.0 - 2017-04-20
547
-
548
- - Added config option for useCookieStorage to allow use of either cookies or localStorage. By default, localStorage is used (useCookieStorage = false). If localStorage not available, reverts to cookie use.
549
- - Fixed a bug where `forwarders` contained a mix of both initialized and uninitialized forwarders. `forwarders` now only contains initialized forwarders.
550
-
551
- #### 1.9.0 - 2017-04-17
552
-
553
- - Fixed bug where calling setUserIdentity with a similar type added another identity, rather than replacing the identity.
554
- - Calling setUserIdentity with `id = null` and valid type will remove the user identity of that type.
555
- - Include CommerceEvent custom attributions in expansion; makes a copy of the original commerce event rather than referencing it, which would mutate it.