Socket
Socket
Sign inDemoInstall

@atlaskit/analytics-next

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/analytics-next - npm Package Compare versions

Comparing version 3.0.11 to 3.1.0

10

CHANGELOG.md
# @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] : {};

2

dist/package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc