ras-stack 0.30.1 → 0.32.0
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/README.md +64 -534
- package/dist/build/cli.d.ts +1 -2
- package/dist/build/cli.js +8 -9
- package/dist/build/cli.js.map +1 -1
- package/dist/cli.d.ts +18 -0
- package/dist/cli.js +29 -0
- package/dist/cli.js.map +1 -0
- package/dist/conformance/index.d.ts +13 -0
- package/dist/conformance/index.js +43 -0
- package/dist/conformance/index.js.map +1 -1
- package/dist/policy/cli.d.ts +1 -2
- package/dist/policy/cli.js +18 -17
- package/dist/policy/cli.js.map +1 -1
- package/dist/posthog/client.d.ts +13 -0
- package/dist/posthog/client.js +31 -0
- package/dist/posthog/client.js.map +1 -0
- package/dist/posthog/config.d.ts +12 -0
- package/dist/posthog/config.js +49 -0
- package/dist/posthog/config.js.map +1 -0
- package/dist/posthog/coverage.d.ts +18 -0
- package/dist/posthog/coverage.js +25 -0
- package/dist/posthog/coverage.js.map +1 -0
- package/dist/posthog/index.d.ts +6 -0
- package/dist/posthog/index.js +4 -0
- package/dist/posthog/index.js.map +1 -0
- package/dist/posthog/proxy.d.ts +25 -0
- package/dist/posthog/proxy.js +25 -0
- package/dist/posthog/proxy.js.map +1 -0
- package/dist/posthog/react.d.ts +19 -0
- package/dist/posthog/react.js +18 -0
- package/dist/posthog/react.js.map +1 -0
- package/dist/posthog/request.d.ts +14 -0
- package/dist/posthog/request.js +22 -0
- package/dist/posthog/request.js.map +1 -0
- package/dist/posthog/server.d.ts +4 -0
- package/dist/posthog/server.js +17 -0
- package/dist/posthog/server.js.map +1 -0
- package/dist/preview/cli.d.ts +1 -2
- package/dist/preview/cli.js +5 -4
- package/dist/preview/cli.js.map +1 -1
- package/dist/runtime/dev-cli.d.ts +1 -2
- package/dist/runtime/dev-cli.js +8 -7
- package/dist/runtime/dev-cli.js.map +1 -1
- package/package.json +38 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../src/posthog/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACtE,OAAO,EAAE,aAAa,EAAkB,MAAM,OAAO,CAAA;AAErD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAGnD,MAAM,UAAU,kBAAkB,CAAC,EACjC,QAAQ,EACR,WAAW,EACX,QAAQ,GAAG,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,sDAAsD,CAAC,EAC9F,OAAO,GAMR;IACC,IAAI,CAAC,WAAW;QAAE,OAAO,QAAQ,CAAA;IACjC,MAAM,gBAAgB,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;IAC/F,OAAO,aAAa,CAClB,eAAe,EACf;QACE,MAAM,EAAE,WAAW,CAAC,YAAY;QAChC,OAAO,EAAE,qBAAqB,CAAC;YAC7B,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,WAAW,CAAC,MAAM;YAC1B,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACjD,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAChC,CAAC;KACH,EACD,aAAa,CAAC,oBAAoB,EAAE,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAC5D,CAAA;AACH,CAAC","sourcesContent":["import { PostHogErrorBoundary, PostHogProvider } from '@posthog/react'\nimport { createElement, type ReactNode } from 'react'\nimport type { PostHogConfig } from 'posthog-js'\nimport { postHogBrowserOptions } from './client.js'\nimport type { PostHogEnvironment } from './config.js'\n\nexport function PostHogIntegration({\n children,\n environment,\n fallback = createElement('main', null, 'Something went wrong. Refresh the page to try again.'),\n options,\n}: {\n children?: ReactNode\n environment: PostHogEnvironment | undefined\n fallback?: ReactNode\n options?: Partial<PostHogConfig>\n}) {\n if (!environment) return children\n const tracingHostnames = typeof window === 'undefined' ? undefined : [window.location.hostname]\n return createElement(\n PostHogProvider,\n {\n apiKey: environment.projectToken,\n options: postHogBrowserOptions({\n apiHost: '/ingest',\n uiHost: environment.uiHost,\n ...(tracingHostnames ? { tracingHostnames } : {}),\n ...(options ? { options } : {}),\n }),\n },\n createElement(PostHogErrorBoundary, { fallback }, children),\n )\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const POSTHOG_DISTINCT_ID_HEADER = "x-posthog-distinct-id";
|
|
2
|
+
export declare const POSTHOG_SESSION_ID_HEADER = "x-posthog-session-id";
|
|
3
|
+
export type PostHogRequestContext = {
|
|
4
|
+
distinctId?: string;
|
|
5
|
+
sessionId?: string;
|
|
6
|
+
properties: {
|
|
7
|
+
$session_id?: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function postHogRequestContext(request: Request, options?: {
|
|
11
|
+
authenticatedDistinctId?: string;
|
|
12
|
+
allowAnonymousDistinctId?: boolean;
|
|
13
|
+
}): PostHogRequestContext;
|
|
14
|
+
export declare function postHogIdentifier(value: string | null | undefined): string | undefined;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const POSTHOG_DISTINCT_ID_HEADER = 'x-posthog-distinct-id';
|
|
2
|
+
export const POSTHOG_SESSION_ID_HEADER = 'x-posthog-session-id';
|
|
3
|
+
export function postHogRequestContext(request, options = {}) {
|
|
4
|
+
const claimedDistinctId = postHogIdentifier(request.headers.get(POSTHOG_DISTINCT_ID_HEADER));
|
|
5
|
+
const sessionId = postHogIdentifier(request.headers.get(POSTHOG_SESSION_ID_HEADER));
|
|
6
|
+
const distinctId = options.authenticatedDistinctId
|
|
7
|
+
? claimedDistinctId === options.authenticatedDistinctId
|
|
8
|
+
? claimedDistinctId
|
|
9
|
+
: undefined
|
|
10
|
+
: options.allowAnonymousDistinctId
|
|
11
|
+
? claimedDistinctId
|
|
12
|
+
: undefined;
|
|
13
|
+
return {
|
|
14
|
+
...(distinctId ? { distinctId } : {}),
|
|
15
|
+
...(sessionId ? { sessionId } : {}),
|
|
16
|
+
properties: sessionId ? { $session_id: sessionId } : {},
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export function postHogIdentifier(value) {
|
|
20
|
+
return value && /^[A-Za-z0-9._:@|+-]{1,128}$/.test(value) ? value : undefined;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../src/posthog/request.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAA;AACjE,MAAM,CAAC,MAAM,yBAAyB,GAAG,sBAAsB,CAAA;AAQ/D,MAAM,UAAU,qBAAqB,CACnC,OAAgB,EAChB,OAAO,GAA6E,EAAE;IAEtF,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC,CAAA;IAC5F,MAAM,SAAS,GAAG,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC,CAAA;IACnF,MAAM,UAAU,GAAG,OAAO,CAAC,uBAAuB;QAChD,CAAC,CAAC,iBAAiB,KAAK,OAAO,CAAC,uBAAuB;YACrD,CAAC,CAAC,iBAAiB;YACnB,CAAC,CAAC,SAAS;QACb,CAAC,CAAC,OAAO,CAAC,wBAAwB;YAChC,CAAC,CAAC,iBAAiB;YACnB,CAAC,CAAC,SAAS,CAAA;IACf,OAAO;QACL,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACrC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnC,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE;KACxD,CAAA;AACH,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAAgC;IAChE,OAAO,KAAK,IAAI,6BAA6B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAA;AAC/E,CAAC","sourcesContent":["export const POSTHOG_DISTINCT_ID_HEADER = 'x-posthog-distinct-id'\nexport const POSTHOG_SESSION_ID_HEADER = 'x-posthog-session-id'\n\nexport type PostHogRequestContext = {\n distinctId?: string\n sessionId?: string\n properties: { $session_id?: string }\n}\n\nexport function postHogRequestContext(\n request: Request,\n options: { authenticatedDistinctId?: string; allowAnonymousDistinctId?: boolean } = {},\n): PostHogRequestContext {\n const claimedDistinctId = postHogIdentifier(request.headers.get(POSTHOG_DISTINCT_ID_HEADER))\n const sessionId = postHogIdentifier(request.headers.get(POSTHOG_SESSION_ID_HEADER))\n const distinctId = options.authenticatedDistinctId\n ? claimedDistinctId === options.authenticatedDistinctId\n ? claimedDistinctId\n : undefined\n : options.allowAnonymousDistinctId\n ? claimedDistinctId\n : undefined\n return {\n ...(distinctId ? { distinctId } : {}),\n ...(sessionId ? { sessionId } : {}),\n properties: sessionId ? { $session_id: sessionId } : {},\n }\n}\n\nexport function postHogIdentifier(value: string | null | undefined) {\n return value && /^[A-Za-z0-9._:@|+-]{1,128}$/.test(value) ? value : undefined\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PostHog, PostHogOptions } from 'posthog-node';
|
|
2
|
+
import type { PostHogEnvironment } from './config.js';
|
|
3
|
+
export declare function createPostHogServerClient(environment: PostHogEnvironment | undefined, options?: Omit<PostHogOptions, 'host'>): Promise<PostHog | undefined>;
|
|
4
|
+
export declare function shutdownPostHogServerClient(client: PostHog | undefined, timeoutMs?: number): Promise<void>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export async function createPostHogServerClient(environment, options = {}) {
|
|
2
|
+
if (!environment)
|
|
3
|
+
return undefined;
|
|
4
|
+
const { PostHog } = await import('posthog-node');
|
|
5
|
+
return new PostHog(environment.projectToken, {
|
|
6
|
+
host: environment.host,
|
|
7
|
+
enableExceptionAutocapture: true,
|
|
8
|
+
...options,
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
export async function shutdownPostHogServerClient(client, timeoutMs = 10_000) {
|
|
12
|
+
if (!Number.isSafeInteger(timeoutMs) || timeoutMs < 0)
|
|
13
|
+
throw new Error('timeoutMs must be a non-negative integer');
|
|
14
|
+
// oxlint-disable-next-line no-underscore-dangle -- posthog-node's async shutdown API is named `_shutdown`.
|
|
15
|
+
await client?._shutdown(timeoutMs);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/posthog/server.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,WAA2C,EAC3C,OAAO,GAAiC,EAAE;IAE1C,IAAI,CAAC,WAAW;QAAE,OAAO,SAAS,CAAA;IAClC,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,CAAA;IAChD,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE;QAC3C,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,0BAA0B,EAAE,IAAI;QAChC,GAAG,OAAO;KACX,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,MAA2B,EAAE,SAAS,GAAG,MAAM;IAC/F,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS,CAAC,IAAI,SAAS,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;IAClH,2GAA2G;IAC3G,MAAM,MAAM,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;AACpC,CAAC","sourcesContent":["import type { PostHog, PostHogOptions } from 'posthog-node'\nimport type { PostHogEnvironment } from './config.js'\n\nexport async function createPostHogServerClient(\n environment: PostHogEnvironment | undefined,\n options: Omit<PostHogOptions, 'host'> = {},\n): Promise<PostHog | undefined> {\n if (!environment) return undefined\n const { PostHog } = await import('posthog-node')\n return new PostHog(environment.projectToken, {\n host: environment.host,\n enableExceptionAutocapture: true,\n ...options,\n })\n}\n\nexport async function shutdownPostHogServerClient(client: PostHog | undefined, timeoutMs = 10_000) {\n if (!Number.isSafeInteger(timeoutMs) || timeoutMs < 0) throw new Error('timeoutMs must be a non-negative integer')\n // oxlint-disable-next-line no-underscore-dangle -- posthog-node's async shutdown API is named `_shutdown`.\n await client?._shutdown(timeoutMs)\n}\n"]}
|
package/dist/preview/cli.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export {};
|
|
1
|
+
export declare function runPreviewCli(arguments_: string[]): Promise<void>;
|
package/dist/preview/cli.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
import { previewStatusFromEnvironment } from './environment.js';
|
|
3
2
|
import { reportPreviewStatus } from './github.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export async function runPreviewCli(arguments_) {
|
|
4
|
+
const { options, status } = previewStatusFromEnvironment(arguments_[0]);
|
|
5
|
+
await reportPreviewStatus(options, status);
|
|
6
|
+
console.log(`Preview status set to ${status.state}`);
|
|
7
|
+
}
|
|
7
8
|
//# sourceMappingURL=cli.js.map
|
package/dist/preview/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/preview/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/preview/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,UAAoB;IACtD,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,4BAA4B,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;IACvE,MAAM,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;IAC1C,OAAO,CAAC,GAAG,CAAC,yBAAyB,MAAM,CAAC,KAAK,EAAE,CAAC,CAAA;AACtD,CAAC","sourcesContent":["import { previewStatusFromEnvironment } from './environment.js'\nimport { reportPreviewStatus } from './github.js'\n\nexport async function runPreviewCli(arguments_: string[]): Promise<void> {\n const { options, status } = previewStatusFromEnvironment(arguments_[0])\n await reportPreviewStatus(options, status)\n console.log(`Preview status set to ${status.state}`)\n}\n"]}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export {};
|
|
1
|
+
export declare function runRealtimeCli(arguments_: string[]): Promise<void>;
|
package/dist/runtime/dev-cli.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
import { parseRealtimeDevArguments, runRealtimeDev } from './dev.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
export async function runRealtimeCli(arguments_) {
|
|
3
|
+
try {
|
|
4
|
+
await runRealtimeDev(parseRealtimeDevArguments(arguments_));
|
|
5
|
+
}
|
|
6
|
+
catch (error) {
|
|
7
|
+
console.error(error instanceof Error ? error.message : error);
|
|
8
|
+
process.exitCode = 1;
|
|
9
|
+
}
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=dev-cli.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-cli.js","sourceRoot":"","sources":["../../src/runtime/dev-cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dev-cli.js","sourceRoot":"","sources":["../../src/runtime/dev-cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEpE,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,UAAoB;IACvD,IAAI,CAAC;QACH,MAAM,cAAc,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC,CAAA;IAC7D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;QAC7D,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;IACtB,CAAC;AACH,CAAC","sourcesContent":["import { parseRealtimeDevArguments, runRealtimeDev } from './dev.js'\n\nexport async function runRealtimeCli(arguments_: string[]): Promise<void> {\n try {\n await runRealtimeDev(parseRealtimeDevArguments(arguments_))\n } catch (error) {\n console.error(error instanceof Error ? error.message : error)\n process.exitCode = 1\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ras-stack",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "Composable full-stack primitives shared across Richard Solomou's applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"authentication",
|
|
@@ -17,10 +17,7 @@
|
|
|
17
17
|
"url": "git+https://github.com/richardsolomou/ras-stack.git"
|
|
18
18
|
},
|
|
19
19
|
"bin": {
|
|
20
|
-
"ras
|
|
21
|
-
"ras-stack-policy": "./dist/policy/cli.js",
|
|
22
|
-
"ras-stack-preview": "./dist/preview/cli.js",
|
|
23
|
-
"ras-stack-realtime": "./dist/runtime/dev-cli.js"
|
|
20
|
+
"ras": "./dist/cli.js"
|
|
24
21
|
},
|
|
25
22
|
"files": [
|
|
26
23
|
"dist",
|
|
@@ -69,6 +66,26 @@
|
|
|
69
66
|
"types": "./dist/policy/index.d.ts",
|
|
70
67
|
"default": "./dist/policy/index.js"
|
|
71
68
|
},
|
|
69
|
+
"./posthog": {
|
|
70
|
+
"types": "./dist/posthog/index.d.ts",
|
|
71
|
+
"default": "./dist/posthog/index.js"
|
|
72
|
+
},
|
|
73
|
+
"./posthog/client": {
|
|
74
|
+
"types": "./dist/posthog/client.d.ts",
|
|
75
|
+
"default": "./dist/posthog/client.js"
|
|
76
|
+
},
|
|
77
|
+
"./posthog/proxy": {
|
|
78
|
+
"types": "./dist/posthog/proxy.d.ts",
|
|
79
|
+
"default": "./dist/posthog/proxy.js"
|
|
80
|
+
},
|
|
81
|
+
"./posthog/react": {
|
|
82
|
+
"types": "./dist/posthog/react.d.ts",
|
|
83
|
+
"default": "./dist/posthog/react.js"
|
|
84
|
+
},
|
|
85
|
+
"./posthog/server": {
|
|
86
|
+
"types": "./dist/posthog/server.d.ts",
|
|
87
|
+
"default": "./dist/posthog/server.js"
|
|
88
|
+
},
|
|
72
89
|
"./preview/dokploy": {
|
|
73
90
|
"types": "./dist/preview/dokploy.d.ts",
|
|
74
91
|
"default": "./dist/preview/dokploy.js"
|
|
@@ -131,7 +148,7 @@
|
|
|
131
148
|
"format:check": "oxfmt --check .",
|
|
132
149
|
"test": "vitest run --config vitest.config.ts",
|
|
133
150
|
"package:check": "node scripts/checkPackedPackage.mjs",
|
|
134
|
-
"check": "pnpm format:check && pnpm lint && pnpm config:check && pnpm typecheck && pnpm test && pnpm build && pnpm package:check && pnpm --filter @ras-stack/example-full-stack check && node dist/
|
|
151
|
+
"check": "pnpm format:check && pnpm lint && pnpm config:check && pnpm typecheck && pnpm test && pnpm build && pnpm package:check && pnpm --filter @ras-stack/example-full-stack check && node dist/cli.js policy check",
|
|
135
152
|
"version-packages": "changeset version"
|
|
136
153
|
},
|
|
137
154
|
"dependencies": {
|
|
@@ -140,6 +157,7 @@
|
|
|
140
157
|
"devDependencies": {
|
|
141
158
|
"@changesets/cli": "^2.31.1",
|
|
142
159
|
"@playwright/test": "1.62.1",
|
|
160
|
+
"@posthog/react": "^1.10.3",
|
|
143
161
|
"@tanstack/react-query": "^5.101.4",
|
|
144
162
|
"@tanstack/react-start": "^1.168.32",
|
|
145
163
|
"@types/better-sqlite3": "9.6.0",
|
|
@@ -155,6 +173,8 @@
|
|
|
155
173
|
"oxlint": "^1.74.0",
|
|
156
174
|
"oxlint-tsgolint": "^7.0.2001",
|
|
157
175
|
"postgres": "3.4.9",
|
|
176
|
+
"posthog-js": "^1.415.0",
|
|
177
|
+
"posthog-node": "^5.48.1",
|
|
158
178
|
"react": "19.2.8",
|
|
159
179
|
"react-test-renderer": "19.2.8",
|
|
160
180
|
"tus-js-client": "^4.3.1",
|
|
@@ -163,6 +183,7 @@
|
|
|
163
183
|
"vitest": "^4.1.10"
|
|
164
184
|
},
|
|
165
185
|
"peerDependencies": {
|
|
186
|
+
"@posthog/react": ">=1 <2",
|
|
166
187
|
"@tanstack/react-query": ">=5 <6",
|
|
167
188
|
"@tanstack/react-start": ">=1 <2",
|
|
168
189
|
"better-sqlite3": ">=12 <14",
|
|
@@ -170,10 +191,15 @@
|
|
|
170
191
|
"drizzle-orm": ">=0.45 <1",
|
|
171
192
|
"nodemailer": ">=9 <10",
|
|
172
193
|
"postgres": ">=3.4 <4",
|
|
194
|
+
"posthog-js": ">=1.407 <2",
|
|
195
|
+
"posthog-node": ">=5.47 <6",
|
|
173
196
|
"react": ">=19 <20",
|
|
174
197
|
"tus-js-client": ">=4 <5"
|
|
175
198
|
},
|
|
176
199
|
"peerDependenciesMeta": {
|
|
200
|
+
"@posthog/react": {
|
|
201
|
+
"optional": true
|
|
202
|
+
},
|
|
177
203
|
"@tanstack/react-query": {
|
|
178
204
|
"optional": true
|
|
179
205
|
},
|
|
@@ -200,6 +226,12 @@
|
|
|
200
226
|
},
|
|
201
227
|
"tus-js-client": {
|
|
202
228
|
"optional": true
|
|
229
|
+
},
|
|
230
|
+
"posthog-js": {
|
|
231
|
+
"optional": true
|
|
232
|
+
},
|
|
233
|
+
"posthog-node": {
|
|
234
|
+
"optional": true
|
|
203
235
|
}
|
|
204
236
|
},
|
|
205
237
|
"engines": {
|