@crvouga/mockingbird-service-posthog 0.1.0 → 1.0.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/dist/cli.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  runCli,
4
4
  serveCommand,
5
5
  serveTarget
6
- } from "./chunk-A34UTVQR.js";
7
- import "./chunk-KO6LMI55.js";
6
+ } from "./chunk-3NM6FIM5.js";
7
+ import "./chunk-OBJA3E7X.js";
8
8
 
9
9
  // src/cli.ts
10
10
  var code = await runCli(
package/dist/index.d.ts CHANGED
@@ -729,7 +729,7 @@ declare const decodePostHogBody: (request: Request) => Promise<unknown>;
729
729
  */
730
730
  declare const tokenFromBody: (body: unknown) => string | undefined;
731
731
 
732
- /** The shape of geviti-monorepo `docs/feature-flags/state.json` that the importer reads. */
732
+ /** The shape of the consumer app's `docs/feature-flags/state.json` that the importer reads. */
733
733
  type FlagStateFile = {
734
734
  generatedAt?: string;
735
735
  flags: {
@@ -766,7 +766,7 @@ declare const valueForState: (state: string, variants?: {
766
766
  /** Flag specs for one environment/project of a state file. Absent flags are left out. */
767
767
  declare const specsFromState: (file: FlagStateFile, options: ImportOptions) => Record<string, FlagSpec>;
768
768
 
769
- declare const GEVITI_FLAG_STATE: FlagStateFile;
769
+ declare const ACME_FLAG_STATE: FlagStateFile;
770
770
 
771
771
  /**
772
772
  * The slice of OpenAPI 3.1 (and JSON Schema 2020-12) Mockingbird understands.
@@ -1034,5 +1034,5 @@ declare class PostHogAPI implements FetchAPI$1 {
1034
1034
  }[];
1035
1035
  }
1036
1036
 
1037
- export { GEVITI_FLAG_STATE, POSTHOG_NAMESPACE, POSTHOG_PRESETS, PostHogAPI, createRuntime, decodePostHogBody, document, evaluateFlag, operationIds, parseFlagSpec, payloadString, scrubProperties, specsFromState, supportedOperationIds, tokenFromBody, valueForState };
1037
+ export { ACME_FLAG_STATE, POSTHOG_NAMESPACE, POSTHOG_PRESETS, PostHogAPI, createRuntime, decodePostHogBody, document, evaluateFlag, operationIds, parseFlagSpec, payloadString, scrubProperties, specsFromState, supportedOperationIds, tokenFromBody, valueForState };
1038
1038
  export type { CapturedEvent, Evaluation, EventQuery, FetchAPI$1 as FetchAPI, FlagOverride, FlagRecord, FlagSpec, FlagStateFile, FlagSubject, FlagValue, ImportOptions, OperationId, PostHogAPIOptions, PostHogRuntime, PostHogRuntimeOptions, QueryResult, Settings, SqliteClient, SupportedOperationId };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import {
2
- GEVITI_FLAG_STATE,
2
+ ACME_FLAG_STATE,
3
3
  POSTHOG_NAMESPACE,
4
4
  POSTHOG_PRESETS,
5
5
  PostHogAPI,
@@ -15,9 +15,9 @@ import {
15
15
  supportedOperationIds,
16
16
  tokenFromBody,
17
17
  valueForState
18
- } from "./chunk-KO6LMI55.js";
18
+ } from "./chunk-OBJA3E7X.js";
19
19
  export {
20
- GEVITI_FLAG_STATE,
20
+ ACME_FLAG_STATE,
21
21
  POSTHOG_NAMESPACE,
22
22
  POSTHOG_PRESETS,
23
23
  PostHogAPI,
package/dist/server.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  DEFAULT_PORT,
3
3
  createServer,
4
4
  serveTarget
5
- } from "./chunk-A34UTVQR.js";
6
- import "./chunk-KO6LMI55.js";
5
+ } from "./chunk-3NM6FIM5.js";
6
+ import "./chunk-OBJA3E7X.js";
7
7
  export {
8
8
  DEFAULT_PORT,
9
9
  createServer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/mockingbird-service-posthog",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
4
  "description": "Stateful mock of PostHog: /flags v2 and legacy /decide evaluation with per-test flag, variant and payload control, remote config, gzip/base64 capture (/batch/, /e/, /i/v0/e/), recordings intake, and the feature-flag management and HogQL API slice.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -52,6 +52,11 @@
52
52
  "layer": "service",
53
53
  "category": "observability",
54
54
  "displayName": "PostHog",
55
+ "vendor": {
56
+ "website": "https://posthog.com",
57
+ "docs": "https://posthog.com/docs/api",
58
+ "description": "PostHog is an open-source product analytics platform with feature flags, session replay, experiments and surveys."
59
+ },
55
60
  "status": "wip"
56
61
  },
57
62
  "scripts": {
@@ -67,7 +72,7 @@
67
72
  "pack:check": "bun ../../../scripts/pack-check.ts"
68
73
  },
69
74
  "dependencies": {
70
- "@crvouga/mockingbird-service-sqlite": "0.3.0",
75
+ "@crvouga/mockingbird-service-sqlite": "1.0.0",
71
76
  "hono": "4.11.9"
72
77
  },
73
78
  "devDependencies": {
@@ -75,7 +80,7 @@
75
80
  "@crvouga/mockingbird-testing": "0.1.0",
76
81
  "@crvouga/mockingbird-service-sqlite": "0.0.0-development",
77
82
  "@crvouga/mockingbird-parity": "0.0.0-development",
78
- "@crvouga/mockingbird-openbao": "0.0.0-development",
83
+ "@crvouga/mockingbird-credentials": "0.0.0-development",
79
84
  "@crvouga/mockingbird-openapi-codegen": "0.1.0",
80
85
  "@crvouga/mockingbird-openapi-metadata": "0.0.0-development",
81
86
  "@crvouga/mockingbird-core": "0.0.0-development",