@atlaskit/analytics-next
Advanced tools
Comparing version 3.0.11 to 3.1.0
# @atlaskit/analytics-next | ||
## 3.1.0 | ||
- [minor] [cffeed0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cffeed0): | ||
- Type `withAnalyticsEvents` and `withAnalyticsContext` HOCs so that they do not lose flow types of the components they wrap when chained together. | ||
This will fix flow types not flowing through all of the components that we have instrumented with analytics as they are typically wrapped with both HOCs. To get flow types flowing | ||
through your components again, upgrade them to the latest version and also update their @atlaskit/analytics-next dependency to the latest version. | ||
We also now export `AnalyticsContextWrappedComp` and `AnalyticsEventsWrappedComp` parameterised types that allow you to explicitly type components wrapped with these HOCs which is necessary in cases where the HOC wrapping is extracted into another function. | ||
## 3.0.11 | ||
@@ -4,0 +14,0 @@ - [patch] [d903ab5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d903ab5): |
@@ -108,3 +108,8 @@ "use strict"; | ||
}; | ||
/* This must use $Supertype to work with multiple HOCs - https://github.com/facebook/flow/issues/6057#issuecomment-414157781 | ||
* We also cannot alias this as a generic of withAnalyticsEvents itself as | ||
* that causes issues with multiple HOCs - https://github.com/facebook/flow/issues/6587 | ||
*/ | ||
function withAnalyticsEvents() { | ||
@@ -111,0 +116,0 @@ var createEventMap = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
@@ -89,3 +89,8 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
}; | ||
/* This must use $Supertype to work with multiple HOCs - https://github.com/facebook/flow/issues/6057#issuecomment-414157781 | ||
* We also cannot alias this as a generic of withAnalyticsEvents itself as | ||
* that causes issues with multiple HOCs - https://github.com/facebook/flow/issues/6587 | ||
*/ | ||
export default function withAnalyticsEvents() { | ||
@@ -92,0 +97,0 @@ var createEventMap = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "3.0.11", | ||
"version": "3.1.0", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "3.0.11", | ||
"version": "3.1.0", | ||
"description": "The 🆕 Atlaskit component analytics framework", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143890
1877