@rawdash/connector-google-analytics 0.13.0 → 0.14.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.
Files changed (2) hide show
  1. package/README.md +10 -0
  2. package/package.json +5 -3
package/README.md CHANGED
@@ -152,3 +152,13 @@ createMcpServer({
152
152
  ],
153
153
  });
154
154
  ```
155
+
156
+ ## Property tests
157
+
158
+ Resources in this connector have fast-check property tests under `src/property.test.ts` that:
159
+
160
+ 1. Generate N≥50 synthetic API payloads from a Zod schema mirroring the upstream API response.
161
+ 2. Pipe them through `connector.sync()` against an `InMemoryStorage` instance.
162
+ 3. Assert universal invariants — non-empty entity ids, finite event timestamps, no `undefined` leaking into storage, no thrown errors on any valid input — plus per-resource counts.
163
+
164
+ The helper lives in `@rawdash/connector-test-utils`. When adding a new resource, add a Zod schema for its payload and a test wired up via `runPropertySyncTest`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rawdash/connector-google-analytics",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Rawdash connector for Google Analytics 4 — syncs traffic, sources, pages, events, conversions, and geo data into the six-shape storage model",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -23,13 +23,15 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "zod": "^4.4.3",
26
- "@rawdash/core": "0.13.0"
26
+ "@rawdash/core": "0.14.0"
27
27
  },
28
28
  "devDependencies": {
29
+ "fast-check": "^4.8.0",
29
30
  "tsup": "^8.0.0",
30
31
  "typescript": "^5.7.2",
31
32
  "vitest": "^4.1.4",
32
- "@rawdash/connector-shared": "0.2.0"
33
+ "@rawdash/connector-shared": "0.2.0",
34
+ "@rawdash/connector-test-utils": "0.0.1"
33
35
  },
34
36
  "scripts": {
35
37
  "build": "tsup",