@aws-amplify/analytics 5.1.1-in-app-messaging.69 → 5.1.1-in-app-messaging.70

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/aws-amplify-analytics.js +3 -2
  3. package/dist/aws-amplify-analytics.js.map +1 -1
  4. package/dist/aws-amplify-analytics.min.js +1 -1
  5. package/dist/aws-amplify-analytics.min.js.map +1 -1
  6. package/lib/Analytics.d.ts +2 -2
  7. package/lib/Analytics.js.map +1 -1
  8. package/lib/Providers/EventBuffer.js +2 -1
  9. package/lib/Providers/EventBuffer.js.map +1 -1
  10. package/lib/types/Analytics.d.ts +2 -0
  11. package/lib/types/Providers/AWSKinesisProvider.d.ts +5 -0
  12. package/lib/types/Providers/AWSKinesisProvider.js +3 -0
  13. package/lib/types/Providers/AWSKinesisProvider.js.map +1 -0
  14. package/lib/types/Providers/AmazonPersonalizeProvider.d.ts +7 -0
  15. package/lib/types/Providers/AmazonPersonalizeProvider.js +3 -0
  16. package/lib/types/Providers/AmazonPersonalizeProvider.js.map +1 -0
  17. package/lib-esm/Analytics.d.ts +2 -2
  18. package/lib-esm/Analytics.js.map +1 -1
  19. package/lib-esm/Providers/EventBuffer.js +2 -1
  20. package/lib-esm/Providers/EventBuffer.js.map +1 -1
  21. package/lib-esm/types/Analytics.d.ts +2 -0
  22. package/lib-esm/types/Providers/AWSKinesisProvider.d.ts +5 -0
  23. package/lib-esm/types/Providers/AWSKinesisProvider.js +1 -0
  24. package/lib-esm/types/Providers/AWSKinesisProvider.js.map +1 -0
  25. package/lib-esm/types/Providers/AmazonPersonalizeProvider.d.ts +7 -0
  26. package/lib-esm/types/Providers/AmazonPersonalizeProvider.js +1 -0
  27. package/lib-esm/types/Providers/AmazonPersonalizeProvider.js.map +1 -0
  28. package/package.json +4 -4
  29. package/src/Analytics.ts +15 -3
  30. package/src/Providers/EventBuffer.ts +2 -1
  31. package/src/types/Analytics.ts +3 -0
  32. package/src/types/Providers/AWSKinesisProvider.ts +5 -0
  33. package/src/types/Providers/AmazonPersonalizeProvider.ts +7 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,72 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.2.18](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.17...@aws-amplify/analytics@5.2.18) (2022-08-23)
7
+
8
+ **Note:** Version bump only for package @aws-amplify/analytics
9
+
10
+
11
+
12
+
13
+
14
+ ## [5.2.17](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.16...@aws-amplify/analytics@5.2.17) (2022-08-18)
15
+
16
+ **Note:** Version bump only for package @aws-amplify/analytics
17
+
18
+
19
+
20
+
21
+
22
+ ## [5.2.16](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.15...@aws-amplify/analytics@5.2.16) (2022-08-16)
23
+
24
+
25
+ ### Reverts
26
+
27
+ * Revert "kinesis fix" ([88f118e](https://github.com/aws-amplify/amplify-js/commit/88f118e1340c38ba237362644035b4d7c9f72557))
28
+ * Revert "update personalize type to accomodate string" ([4e0e22b](https://github.com/aws-amplify/amplify-js/commit/4e0e22bd733aac715681953dac90440a44fd49bd))
29
+
30
+
31
+
32
+
33
+
34
+ ## [5.2.15](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.14...@aws-amplify/analytics@5.2.15) (2022-08-01)
35
+
36
+ **Note:** Version bump only for package @aws-amplify/analytics
37
+
38
+
39
+
40
+
41
+
42
+ ## [5.2.14](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.13...@aws-amplify/analytics@5.2.14) (2022-07-28)
43
+
44
+ **Note:** Version bump only for package @aws-amplify/analytics
45
+
46
+
47
+
48
+
49
+
50
+ ## [5.2.13](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.12...@aws-amplify/analytics@5.2.13) (2022-07-21)
51
+
52
+
53
+ ### Bug Fixes
54
+
55
+ * Update AmazonPersonalizeProvider Analytics typings ([#10076](https://github.com/aws-amplify/amplify-js/issues/10076)) ([b7ad126](https://github.com/aws-amplify/amplify-js/commit/b7ad1260eb1bc6611cd902e7b8b3e58066ef22b4))
56
+
57
+
58
+
59
+
60
+
61
+ ## [5.2.12](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.11...@aws-amplify/analytics@5.2.12) (2022-07-07)
62
+
63
+
64
+ ### Bug Fixes
65
+
66
+ * **analytics:** Buffer limit should be adhered to ([#10015](https://github.com/aws-amplify/amplify-js/issues/10015)) ([3dd9035](https://github.com/aws-amplify/amplify-js/commit/3dd903573843f6f53251d118a11de7dacd9edddd))
67
+
68
+
69
+
70
+
71
+
6
72
  ## [5.2.11](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.10...@aws-amplify/analytics@5.2.11) (2022-06-18)
7
73
 
8
74
  **Note:** Version bump only for package @aws-amplify/analytics
@@ -66132,9 +66132,10 @@ function () {
66132
66132
  }
66133
66133
 
66134
66134
  EventsBuffer.prototype.push = function (event) {
66135
- var _a;
66135
+ var _a; // if the buffer is currently at the configured limit, pushing would exceed it
66136
+
66136
66137
 
66137
- if (this._buffer > this._config.bufferSize) {
66138
+ if (this._buffer.length >= this._config.bufferSize) {
66138
66139
  logger.debug('Exceeded analytics events buffer size');
66139
66140
  return event.handlers.reject(new Error('Exceeded the size of analytics events buffer'));
66140
66141
  }