@crvouga/mockingbird-service-formbricks 3.0.0 → 3.2.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/CHANGELOG.md +16 -4
- package/DISCOVERY.md +2 -2
- package/README.md +6 -6
- package/SUPPORT.md +2 -2
- package/dist/{chunk-PDGUAXB2.js → chunk-CRUFKJZU.js} +260 -172
- package/dist/chunk-CRUFKJZU.js.map +7 -0
- package/dist/{chunk-73PK45CZ.js → chunk-HMMUEPMI.js} +8 -6
- package/dist/chunk-HMMUEPMI.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +96 -81
- package/dist/index.js +1 -1
- package/dist/server.d.ts +141 -108
- package/dist/server.js +2 -2
- package/openapi.yaml +1 -1
- package/package.json +3 -3
- package/dist/chunk-73PK45CZ.js.map +0 -7
- package/dist/chunk-PDGUAXB2.js.map +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-formbricks
|
|
2
2
|
|
|
3
|
+
## 3.2.0 (2026-10-09)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- match Emulate provider coverage ([16b65ce](https://github.com/crvouga/mockingbird/commit/16b65ce791fa216f28ec1521df636f57771d9c5e))
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
- `@crvouga/mockingbird-service-sqlite`
|
|
12
|
+
|
|
13
|
+
## 3.1.0 (2026-10-08)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
- redesign emulator experience ([d6038c2](https://github.com/crvouga/mockingbird/commit/d6038c27eebbaa1751f02bc9305002a5b1304779))
|
|
18
|
+
|
|
3
19
|
## 3.0.0 (2026-10-07)
|
|
4
20
|
|
|
5
21
|
### ⚠️ Breaking changes
|
|
@@ -14,10 +30,6 @@
|
|
|
14
30
|
- typecheck the brand gate before builds ([fc36095](https://github.com/crvouga/mockingbird/commit/fc3609514de70ffe3170a5d216fb8a49f9ce7cbb))
|
|
15
31
|
- format the emulates records query ([8698872](https://github.com/crvouga/mockingbird/commit/8698872509d06002be5a8fcdc85d79f8462320c3))
|
|
16
32
|
|
|
17
|
-
### Dependencies
|
|
18
|
-
|
|
19
|
-
- `@crvouga/mockingbird-service-sqlite`
|
|
20
|
-
|
|
21
33
|
## 2.3.0 (2026-10-04)
|
|
22
34
|
|
|
23
35
|
### Features
|
package/DISCOVERY.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @crvouga/mockingbird-service-formbricks discovery
|
|
2
2
|
|
|
3
3
|
This is the installed-package index for coding agents and tooling. All relative links resolve
|
|
4
|
-
inside `node_modules/@crvouga/mockingbird-service-formbricks/`; no repository checkout is needed to discover the
|
|
4
|
+
inside `node_modules/@crvouga/mockingbird-service-formbricks/`; no repository checkout is needed to discover the emulator's
|
|
5
5
|
supported surface or documented behavior.
|
|
6
6
|
|
|
7
7
|
## Capability and behavior sources
|
|
@@ -48,7 +48,7 @@ designed for assertions and diagnosis by consuming test suites.
|
|
|
48
48
|
## Report a mismatch or missing capability
|
|
49
49
|
|
|
50
50
|
Follow the [agent reporting contract](https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md). Include package version,
|
|
51
|
-
operation/command, a minimal redacted request, actual
|
|
51
|
+
operation/command, a minimal redacted request, actual emulator result, expected oracle result or vendor
|
|
52
52
|
documentation, and whether the mismatch appears in the matrix. Never include keys, tokens,
|
|
53
53
|
customer data, prompts, PHI, card data, or unredacted recordings.
|
|
54
54
|
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @crvouga/mockingbird-service-formbricks
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Local emulators. Real API contracts. Part of [Mockingbird](https://github.com/crvouga/mockingbird).
|
|
4
4
|
|
|
5
|
-
Stateful
|
|
5
|
+
Stateful emulator of open-source **[Formbricks](https://github.com/formbricks/formbricks)** (6.x) for
|
|
6
6
|
test suites: the client environment state the JS SDK loads surveys from, response creation with
|
|
7
7
|
upstream's validation and `{code, message, details}` errors, the v1 management API (responses and
|
|
8
8
|
surveys, `x-api-key`), the widget script the web SDK loads, and the response pipeline's
|
|
@@ -26,7 +26,7 @@ with any Fetch server.
|
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
28
28
|
|
|
29
|
-
Point the SDK's `appUrl` (and your management API base URL) at the
|
|
29
|
+
Point the SDK's `appUrl` (and your management API base URL) at the emulator, use the workspace id
|
|
30
30
|
`cworkspace000000000000001` (or its legacy environment id `cenvironment0000000000001`, as older
|
|
31
31
|
SDKs send), and any management API key.
|
|
32
32
|
|
|
@@ -43,7 +43,7 @@ const formbricks = createRuntime({
|
|
|
43
43
|
webhooks: { url: "http://127.0.0.1:3000/webhooks/formbricks", secret: "whsec_…" },
|
|
44
44
|
})
|
|
45
45
|
// …the app POSTs /api/v2/client/<workspace>/responses {surveyId, finished: true, data}…
|
|
46
|
-
// the
|
|
46
|
+
// the emulator validates it, stores it, and posts responseFinished to the webhook.
|
|
47
47
|
const response = await formbricks.fetch(new Request("http://formbricks.test/__admin/responses"))
|
|
48
48
|
```
|
|
49
49
|
|
|
@@ -117,8 +117,8 @@ string), `management_unauthorized`, `connection_drop`, `duplicate` (the next web
|
|
|
117
117
|
|
|
118
118
|
| Export | Kind | Description |
|
|
119
119
|
| --- | --- | --- |
|
|
120
|
-
| `FormbricksAPI` | class | The in-process
|
|
121
|
-
| `createRuntime` | function | The
|
|
120
|
+
| `FormbricksAPI` | class | The in-process emulator: `fetch(request)`, `reset()`, `responses()`, `render(record)`, `wireSurvey(survey)`, `pipeline(event, record, survey)`, `state`. Options: `sqlite`, `now`, `namespace`, `surveys`, `settings`, `onWebhook`. |
|
|
121
|
+
| `createRuntime` | function | The emulator with the full service contract (health, admin, namespaces, credentials, presets, webhooks). Options: `webhooks: {url, secret?, events?, retryDelaysMs?, fetch?}`, `surveys`, `settings`, `clock`, `seed`, `adminKey`, `onLog`, `sqlite`. |
|
|
122
122
|
| `FORMBRICKS_PRESETS` | object | Every named fault preset. |
|
|
123
123
|
| `FORMBRICKS_NAMESPACE` | string | The service name, `"formbricks"`. |
|
|
124
124
|
| `WEBHOOK_PATH` | string | A conventional receiver path for examples, `/webhooks/formbricks`. |
|
package/SUPPORT.md
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Generated from `openapi.yaml`; do not edit by hand.
|
|
4
4
|
|
|
5
5
|
- operations in spec: **8**
|
|
6
|
-
- supported by the
|
|
6
|
+
- supported by the emulator: **8**
|
|
7
7
|
- parity enabled: **8**
|
|
8
8
|
|
|
9
|
-
| operationId | route |
|
|
9
|
+
| operationId | route | emulator | parity | notes |
|
|
10
10
|
| --- | --- | --- | --- | --- |
|
|
11
11
|
| `GetEnvironmentState` | `GET /api/v1/client/{workspaceId}/environment` | ✅ supported | ✅ | |
|
|
12
12
|
| `CreateClientResponse` | `POST /api/v2/client/{workspaceId}/responses` | ✅ supported | ⚠️ unsafe (opt-in) | |
|