posthog-node
Advanced tools
Comparing version 3.6.1 to 3.6.2
@@ -1,3 +0,7 @@ | ||
## 3.6.1 - 2024-01-26 | ||
# 3.6.2 - 2024-02-06 | ||
1. Swapped to `uuidv7` for unique ID generation | ||
# 3.6.1 - 2024-01-26 | ||
1. Remove new relative date operators, combine into regular date operators | ||
@@ -4,0 +8,0 @@ |
@@ -9,5 +9,4 @@ export declare function assert(truthyValue: any, message: string): void; | ||
export declare function retriable<T>(fn: () => Promise<T>, props?: RetriableOptions): Promise<T>; | ||
export declare function generateUUID(globalThis?: any): string; | ||
export declare function currentTimestamp(): number; | ||
export declare function currentISOTime(): string; | ||
export declare function safeSetTimeout(fn: () => void, timeout: number): any; |
{ | ||
"name": "posthog-node", | ||
"version": "3.6.1", | ||
"version": "3.6.2", | ||
"description": "PostHog Node.js integration", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -9,2 +9,2 @@ # PostHog Node.js | ||
### [Join our Slack community.](https://join.slack.com/t/posthogusers/shared_invite/enQtOTY0MzU5NjAwMDY3LTc2MWQ0OTZlNjhkODk3ZDI3NDVjMDE1YjgxY2I4ZjI4MzJhZmVmNjJkN2NmMGJmMzc2N2U3Yjc3ZjI5NGFlZDQ) | ||
### [Check out our community page.](https://posthog.com/posts) |
@@ -7,3 +7,3 @@ // import { PostHog } from '../' | ||
import { waitForPromises, wait } from '../../posthog-core/test/test-utils/test-utils' | ||
import { generateUUID } from 'posthog-core/src/utils' | ||
import { randomUUID } from 'crypto' | ||
@@ -198,3 +198,3 @@ jest.mock('../package.json', () => ({ version: '1.2.3' })) | ||
expect(mockedFetch).toHaveBeenCalledTimes(0) | ||
const uuid = generateUUID() | ||
const uuid = randomUUID() | ||
posthog.capture({ event: 'custom-time', distinctId: '123', uuid }) | ||
@@ -201,0 +201,0 @@ await waitForPromises() |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
1063566
14523