@contractspec/example.integration-posthog 1.62.0 → 2.1.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.
@@ -3,31 +3,31 @@ $ bun run prebuild && bun run build:bundle && bun run build:types
3
3
  $ contractspec-bun-build prebuild
4
4
  $ contractspec-bun-build transpile
5
5
  [contractspec-bun-build] transpile target=bun root=src entries=6
6
- Bundled 6 modules in 17ms
6
+ Bundled 6 modules in 30ms
7
7
 
8
8
  docs/index.js 1.98 KB (entry point)
9
- ./index.js 11.20 KB (entry point)
9
+ ./index.js 11.21 KB (entry point)
10
10
  docs/integration-posthog.docblock.js 1.98 KB (entry point)
11
- ./example.js 1.00 KB (entry point)
11
+ ./example.js 1.0 KB (entry point)
12
12
  ./run.js 8.37 KB (entry point)
13
13
  ./posthog.js 8.25 KB (entry point)
14
14
 
15
15
  [contractspec-bun-build] transpile target=node root=src entries=6
16
- Bundled 6 modules in 21ms
16
+ Bundled 6 modules in 37ms
17
17
 
18
- docs/index.js 1.96 KB (entry point)
19
- ./index.js 11.18 KB (entry point)
20
- docs/integration-posthog.docblock.js 1.96 KB (entry point)
18
+ docs/index.js 1.97 KB (entry point)
19
+ ./index.js 11.19 KB (entry point)
20
+ docs/integration-posthog.docblock.js 1.97 KB (entry point)
21
21
  ./example.js 0.99 KB (entry point)
22
22
  ./run.js 8.37 KB (entry point)
23
23
  ./posthog.js 8.24 KB (entry point)
24
24
 
25
25
  [contractspec-bun-build] transpile target=browser root=src entries=6
26
- Bundled 6 modules in 16ms
26
+ Bundled 6 modules in 32ms
27
27
 
28
- docs/index.js 1.96 KB (entry point)
29
- ./index.js 11.18 KB (entry point)
30
- docs/integration-posthog.docblock.js 1.96 KB (entry point)
28
+ docs/index.js 1.97 KB (entry point)
29
+ ./index.js 11.19 KB (entry point)
30
+ docs/integration-posthog.docblock.js 1.97 KB (entry point)
31
31
  ./example.js 0.99 KB (entry point)
32
32
  ./run.js 8.37 KB (entry point)
33
33
  ./posthog.js 8.24 KB (entry point)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @contractspec/example.integration-posthog
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 362fbac: feat: improve video
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [b4bfbc5]
12
+ - Updated dependencies [362fbac]
13
+ - Updated dependencies [659d15f]
14
+ - @contractspec/lib.contracts-spec@2.1.0
15
+ - @contractspec/integration.providers-impls@2.1.0
16
+
17
+ ## 2.0.0
18
+
19
+ ### Major Changes
20
+
21
+ - a09bafc: feat: optimize performance
22
+
23
+ ### Patch Changes
24
+
25
+ - 7f3203a: fix: make workspace test runs resilient when packages have no tests
26
+
27
+ Updates package test scripts to pass cleanly when no matching test files exist:
28
+ - Uses `bun test --pass-with-no-tests` in Bun-based packages that currently ship without test files.
29
+ - Uses `jest --passWithNoTests` for the UI kit web package.
30
+ - Adds `.vscode-test.mjs` for `vscode-contractspec` so VS Code extension test runs have an explicit config and stop failing on missing default configuration.
31
+
32
+ This keeps `turbo run test` deterministic across the monorepo while preserving existing test execution behavior where tests are present.
33
+
34
+ - Updated dependencies [a09bafc]
35
+ - Updated dependencies [f152678]
36
+ - @contractspec/integration.providers-impls@2.0.0
37
+ - @contractspec/lib.contracts-spec@2.0.0
38
+
3
39
  ## 1.62.0
4
40
 
5
41
  ### Minor Changes
@@ -23,7 +59,7 @@
23
59
 
24
60
  - Updated dependencies [374fd71]
25
61
  - @contractspec/integration.providers-impls@1.61.0
26
- - @contractspec/lib.contracts@1.61.0
62
+ - @contractspec/lib.contracts-spec@1.61.0
27
63
 
28
64
  ## 1.60.0
29
65
 
@@ -35,7 +71,7 @@
35
71
 
36
72
  - Updated dependencies
37
73
  - @contractspec/integration.providers-impls@1.60.0
38
- - @contractspec/lib.contracts@1.60.0
74
+ - @contractspec/lib.contracts-spec@1.60.0
39
75
 
40
76
  ## 1.59.0
41
77
 
@@ -47,7 +83,7 @@
47
83
 
48
84
  - Updated dependencies [1a0cf44]
49
85
  - @contractspec/integration.providers-impls@1.59.0
50
- - @contractspec/lib.contracts@1.59.0
86
+ - @contractspec/lib.contracts-spec@1.59.0
51
87
 
52
88
  ## 1.58.0
53
89
 
@@ -60,7 +96,7 @@
60
96
  - Updated dependencies [d1f0fd0]
61
97
  - Updated dependencies [4355a9e]
62
98
  - @contractspec/integration.providers-impls@1.58.0
63
- - @contractspec/lib.contracts@1.58.0
99
+ - @contractspec/lib.contracts-spec@1.58.0
64
100
 
65
101
  ## 1.57.0
66
102
 
@@ -76,7 +112,7 @@
76
112
  - Updated dependencies [4651e06]
77
113
  - Updated dependencies [ad9d10a]
78
114
  - Updated dependencies [11a5a05]
79
- - @contractspec/lib.contracts@1.57.0
115
+ - @contractspec/lib.contracts-spec@1.57.0
80
116
  - @contractspec/integration.providers-impls@1.57.0
81
117
 
82
118
  ## 1.56.1
@@ -89,4 +125,4 @@
89
125
 
90
126
  - Updated dependencies
91
127
  - @contractspec/integration.providers-impls@1.56.1
92
- - @contractspec/lib.contracts@1.56.1
128
+ - @contractspec/lib.contracts-spec@1.56.1
@@ -1,5 +1,5 @@
1
1
  // src/docs/integration-posthog.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
3
  var blocks = [
4
4
  {
5
5
  id: "docs.examples.integration-posthog",
@@ -1,5 +1,5 @@
1
1
  // src/docs/integration-posthog.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
3
  var blocks = [
4
4
  {
5
5
  id: "docs.examples.integration-posthog",
@@ -1,5 +1,5 @@
1
1
  // src/example.ts
2
- import { defineExample } from "@contractspec/lib.contracts";
2
+ import { defineExample } from "@contractspec/lib.contracts-spec";
3
3
  var example = defineExample({
4
4
  meta: {
5
5
  key: "integration-posthog",
@@ -1,5 +1,5 @@
1
1
  // src/docs/integration-posthog.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
3
  var blocks = [
4
4
  {
5
5
  id: "docs.examples.integration-posthog",
@@ -49,7 +49,7 @@ var blocks = [
49
49
  ];
50
50
  registerDocBlocks(blocks);
51
51
  // src/example.ts
52
- import { defineExample } from "@contractspec/lib.contracts";
52
+ import { defineExample } from "@contractspec/lib.contracts-spec";
53
53
  var example = defineExample({
54
54
  meta: {
55
55
  key: "integration-posthog",
@@ -1,2 +1 @@
1
1
  import './integration-posthog.docblock';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  // src/docs/integration-posthog.docblock.ts
3
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
3
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
4
4
  var blocks = [
5
5
  {
6
6
  id: "docs.examples.integration-posthog",
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=integration-posthog.docblock.d.ts.map
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  // src/docs/integration-posthog.docblock.ts
3
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
3
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
4
4
  var blocks = [
5
5
  {
6
6
  id: "docs.examples.integration-posthog",
package/dist/example.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- declare const example: import("@contractspec/lib.contracts").ExampleSpec;
1
+ declare const example: import("@contractspec/lib.contracts-spec").ExampleSpec;
2
2
  export default example;
3
- //# sourceMappingURL=example.d.ts.map
package/dist/example.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  // src/example.ts
3
- import { defineExample } from "@contractspec/lib.contracts";
3
+ import { defineExample } from "@contractspec/lib.contracts-spec";
4
4
  var example = defineExample({
5
5
  meta: {
6
6
  key: "integration-posthog",
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from './posthog';
2
2
  export { default as example } from './example';
3
3
  import './docs';
4
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  // src/docs/integration-posthog.docblock.ts
3
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
3
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
4
4
  var blocks = [
5
5
  {
6
6
  id: "docs.examples.integration-posthog",
@@ -50,7 +50,7 @@ var blocks = [
50
50
  ];
51
51
  registerDocBlocks(blocks);
52
52
  // src/example.ts
53
- import { defineExample } from "@contractspec/lib.contracts";
53
+ import { defineExample } from "@contractspec/lib.contracts-spec";
54
54
  var example = defineExample({
55
55
  meta: {
56
56
  key: "integration-posthog",
@@ -1,5 +1,5 @@
1
1
  // src/docs/integration-posthog.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
3
  var blocks = [
4
4
  {
5
5
  id: "docs.examples.integration-posthog",
@@ -1,5 +1,5 @@
1
1
  // src/docs/integration-posthog.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
3
  var blocks = [
4
4
  {
5
5
  id: "docs.examples.integration-posthog",
@@ -1,5 +1,5 @@
1
1
  // src/example.ts
2
- import { defineExample } from "@contractspec/lib.contracts";
2
+ import { defineExample } from "@contractspec/lib.contracts-spec";
3
3
  var example = defineExample({
4
4
  meta: {
5
5
  key: "integration-posthog",
@@ -1,5 +1,5 @@
1
1
  // src/docs/integration-posthog.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
3
  var blocks = [
4
4
  {
5
5
  id: "docs.examples.integration-posthog",
@@ -49,7 +49,7 @@ var blocks = [
49
49
  ];
50
50
  registerDocBlocks(blocks);
51
51
  // src/example.ts
52
- import { defineExample } from "@contractspec/lib.contracts";
52
+ import { defineExample } from "@contractspec/lib.contracts-spec";
53
53
  var example = defineExample({
54
54
  meta: {
55
55
  key: "integration-posthog",
package/dist/posthog.d.ts CHANGED
@@ -12,4 +12,3 @@ export interface PosthogExampleOutput {
12
12
  }
13
13
  export declare function runPosthogExampleFromEnv(): Promise<PosthogExampleOutput>;
14
14
  export declare function resolvePosthogMode(): PosthogExampleMode;
15
- //# sourceMappingURL=posthog.d.ts.map
package/dist/run.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=run.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.integration-posthog",
3
- "version": "1.62.0",
3
+ "version": "2.1.0",
4
4
  "description": "PostHog analytics integration example: capture events, run HogQL, and manage feature flags.",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -66,18 +66,18 @@
66
66
  "lint": "bun lint:fix",
67
67
  "lint:fix": "eslint src --fix",
68
68
  "lint:check": "eslint src",
69
- "test": "bun test",
69
+ "test": "bun test --pass-with-no-tests",
70
70
  "prebuild": "contractspec-bun-build prebuild",
71
71
  "typecheck": "tsc --noEmit"
72
72
  },
73
73
  "dependencies": {
74
- "@contractspec/integration.providers-impls": "1.62.0",
75
- "@contractspec/lib.contracts": "1.62.0"
74
+ "@contractspec/integration.providers-impls": "2.1.0",
75
+ "@contractspec/lib.contracts-spec": "2.1.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@contractspec/tool.typescript": "1.62.0",
78
+ "@contractspec/tool.typescript": "2.1.0",
79
79
  "typescript": "^5.9.3",
80
- "@contractspec/tool.bun": "1.61.0"
80
+ "@contractspec/tool.bun": "2.1.0"
81
81
  },
82
82
  "publishConfig": {
83
83
  "access": "public",
@@ -1,5 +1,5 @@
1
- import type { DocBlock } from '@contractspec/lib.contracts/docs';
2
- import { registerDocBlocks } from '@contractspec/lib.contracts/docs';
1
+ import type { DocBlock } from '@contractspec/lib.contracts-spec/docs';
2
+ import { registerDocBlocks } from '@contractspec/lib.contracts-spec/docs';
3
3
 
4
4
  const blocks: DocBlock[] = [
5
5
  {
package/src/example.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { defineExample } from '@contractspec/lib.contracts';
1
+ import { defineExample } from '@contractspec/lib.contracts-spec';
2
2
 
3
3
  const example = defineExample({
4
4
  meta: {
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/docs/index.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"integration-posthog.docblock.d.ts","sourceRoot":"","sources":["../../src/docs/integration-posthog.docblock.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../src/example.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO,mDA2BX,CAAC;AAEH,eAAe,OAAO,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,QAAQ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"posthog.d.ts","sourceRoot":"","sources":["../src/posthog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,oBAAoB,EAGrB,MAAM,qDAAqD,CAAC;AAE7D,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,OAAO,GACP,SAAS,GACT,MAAM,GACN,KAAK,CAAC;AAEV,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,kBAAkB,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAmD9E;AAED,wBAAgB,kBAAkB,IAAI,kBAAkB,CAcvD"}
package/dist/run.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":""}