@toptal/davinci-cli-shared 2.3.8 → 2.3.9

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.3.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2206](https://github.com/toptal/davinci/pull/2206) [`ed4c3f3b`](https://github.com/toptal/davinci/commit/ed4c3f3bab3acfa239e44aea6d3a5018dc934b6e) Thanks [@TomasSlama](https://github.com/TomasSlama)!
8
+ - update Segment dependencies
9
+
3
10
  ## 2.3.8
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-cli-shared",
3
- "version": "2.3.8",
3
+ "version": "2.3.9",
4
4
  "description": "Shared CLI code and CLI engine for davinci",
5
5
  "author": "Toptal",
6
6
  "license": "SEE LICENSE IN LICENSE.MD",
@@ -18,7 +18,7 @@
18
18
  "test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' yarn jest"
19
19
  },
20
20
  "dependencies": {
21
- "analytics-node": "^6.2.0",
21
+ "@segment/analytics-node": "^1.1.3",
22
22
  "chalk": "^4.1.2",
23
23
  "commander": "^11.0.0",
24
24
  "execa": "^5.1.1",
@@ -1,4 +1,4 @@
1
- import Analytics from 'analytics-node'
1
+ import { Analytics } from '@segment/analytics-node'
2
2
 
3
3
  import { isCi } from '../ci.js'
4
4
  import { getConfig } from './id-config.js'
@@ -9,9 +9,10 @@ const { anonymousId, allowTracking } = await getConfig()
9
9
 
10
10
  const analyticsEnabled = !process.env.DAVINCI_SKIP_ANALYTICS && allowTracking
11
11
 
12
- const analytics = new Analytics(SEGMENT_WRITE_KEY, {
13
- enable: analyticsEnabled,
12
+ const analytics = new Analytics({
13
+ disable: !analyticsEnabled,
14
14
  flushAt: 1,
15
+ writeKey: SEGMENT_WRITE_KEY,
15
16
  })
16
17
 
17
18
  export const identify = () => {