server
server copied to clipboard
chore(deps): bump mixpanel from 0.17.0 to 0.18.0 in /packages/analytics
Bumps mixpanel from 0.17.0 to 0.18.0.
Release notes
Sourced from mixpanel's releases.
Custom logger support
The library can now be initialized with a
logger
option to provide custom logging instead of the defaultconsole
logging:const bunyan = require(`bunyan`); const mixpanel = Mixpanel.init(`<YOUR_TOKEN>`, {debug: true, logger: bunyan});
Any logger which implements the interface at https://github.com/mixpanel/mixpanel-node/blob/7f334f1d3f07e1c7783887b8090211614a26d5bc/lib/mixpanel-node.d.ts#L9-L15 will work:
export interface CustomLogger { trace(message?: any, ...optionalParams: any[]): void; debug(message?: any, ...optionalParams: any[]): void; info(message?: any, ...optionalParams: any[]): void; warn(message?: any, ...optionalParams: any[]): void; error(message?: any, ...optionalParams: any[]): void; }
Support has also been dropped for the long-deprecated
Mixpanel.Client()
initializer.
Changelog
Sourced from mixpanel's changelog.
0.18.0 / 2023-09-12
- custom logger support (thanks iatsiuk)
Commits
7f334f1
0.18.04d46126
changelog for 0.18.0dbbeb1e
Merge remote-tracking branch 'iatsiuk/master' into rc-0.18.0f8e7f74
add tests for custom logger8b7f570
Apply suggestions from code reviewf36b1d6
finally remove long-deprecated 'Client' initializer600d6ab
add custom logger supportc093a6b
changelog for v0.17.0- See full diff in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.