[Snyk] Upgrade mixpanel from 0.4.1 to 0.18.0 #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade mixpanel from 0.4.1 to 0.18.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 19 versions ahead of your current version.
The recommended version was released on a year ago.
Release notes
Package name: mixpanel
The library can now be initialized with a
logger
option to provide custom logging instead of the defaultconsole
logging:Any logger which implements the interface at https://github.com/mixpanel/mixpanel-node/blob/7f334f1d3f07e1c7783887b8090211614a26d5bc/lib/mixpanel-node.d.ts#L9-L15 will work:
Support has also been dropped for the long-deprecated
Mixpanel.Client()
initializer.As of this release,
time
properties set as Date objects will be sent to the Mixpanel API with millisecond precision (instead of being rounded to the second).The configuration option
geolocate
can be used to take advantage of Mixpanel's automatic geolocation properties (converting the source IP address into properties for country/region/city). This is generally useful when the NodeJS SDK is used in a client application, such as an Electron app or IoT device; whereas in a server application (e.g. an Express application server), the IP address will be that of the server rather than the user. To turn on geolocation, initialize the library withgeolocate: true
:The SDK also now sends the current library version as a property with every event, like Mixpanel's other SDKs.
The library now defaults to using
keepAlive
(https://nodejs.org/api/http.html#new-agentoptions) so that each request doesn't have to establish a new connection. This should result in better performance and network reliability. If you need to turn this option off, initialize the library withkeepAlive: false
:Profile update operations
set
andset_once
now support passing latitude/longitude for geolocation (see https://help.mixpanel.com/hc/en-us/articles/115004499343#latitude-and-longitude-based-geolocation). These should be passed in the 'modifiers' object param, e.g.:Event operations like
track()
already supported latitude/longitude as regular event properties.The supported method for authenticating
import()
calls (for events more than 5 days old) is now via the project's API Secret, passed via thesecret
config option:This will be passed as a HTTP Basic auth header as described in https://developer.mixpanel.com/reference/importing-old-events. It will only be sent over HTTPS (the default protocol); the library will throw an error rather than send the secret over HTTP in plaintext.
The older API "Key" authentication for import will still work, but is now deprecated and may be removed in a future version.
0.12.0
This release adds support for Mixpanel Groups, through the
mixpanel.groups
object, analogous tomixpanel.people
. For projects which have groups support enabled, you can send group profile updates via calls such as:'Industry': 'widgets',
'$name': 'Acme Inc.',
});
mixpanel.groups.remove('company', 'Acme Inc.', {
'products': 'anvil',
'customer segments': 'coyotes'
});
mixpanel.groups.delete_group('company', 'Acme Inc.');
// etc
0.10.3 - 2019-10-09
0.10.3
0.10.2 - 2019-03-26
0.10.2
0.10.1 - 2018-12-04
0.10.0 - 2018-11-13
0.9.2 - 2018-05-22
0.9.1 - 2018-04-12
0.9.0 - 2018-02-09
0.8.0 - 2017-11-28
0.7.0 - 2017-04-07
0.6.0 - 2017-01-04
0.5.0 - 2016-09-15
0.4.1 - 2016-09-09
from mixpanel GitHub release notes
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: