@contractspec/example.integration-posthog 1.62.0 → 2.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.
@@ -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 23ms
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 32ms
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 21ms
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,27 @@
1
1
  # @contractspec/example.integration-posthog
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - a09bafc: feat: optimize performance
8
+
9
+ ### Patch Changes
10
+
11
+ - 7f3203a: fix: make workspace test runs resilient when packages have no tests
12
+
13
+ Updates package test scripts to pass cleanly when no matching test files exist:
14
+ - Uses `bun test --pass-with-no-tests` in Bun-based packages that currently ship without test files.
15
+ - Uses `jest --passWithNoTests` for the UI kit web package.
16
+ - Adds `.vscode-test.mjs` for `vscode-contractspec` so VS Code extension test runs have an explicit config and stop failing on missing default configuration.
17
+
18
+ This keeps `turbo run test` deterministic across the monorepo while preserving existing test execution behavior where tests are present.
19
+
20
+ - Updated dependencies [a09bafc]
21
+ - Updated dependencies [f152678]
22
+ - @contractspec/integration.providers-impls@2.0.0
23
+ - @contractspec/lib.contracts-spec@2.0.0
24
+
3
25
  ## 1.62.0
4
26
 
5
27
  ### Minor Changes
@@ -23,7 +45,7 @@
23
45
 
24
46
  - Updated dependencies [374fd71]
25
47
  - @contractspec/integration.providers-impls@1.61.0
26
- - @contractspec/lib.contracts@1.61.0
48
+ - @contractspec/lib.contracts-spec@1.61.0
27
49
 
28
50
  ## 1.60.0
29
51
 
@@ -35,7 +57,7 @@
35
57
 
36
58
  - Updated dependencies
37
59
  - @contractspec/integration.providers-impls@1.60.0
38
- - @contractspec/lib.contracts@1.60.0
60
+ - @contractspec/lib.contracts-spec@1.60.0
39
61
 
40
62
  ## 1.59.0
41
63
 
@@ -47,7 +69,7 @@
47
69
 
48
70
  - Updated dependencies [1a0cf44]
49
71
  - @contractspec/integration.providers-impls@1.59.0
50
- - @contractspec/lib.contracts@1.59.0
72
+ - @contractspec/lib.contracts-spec@1.59.0
51
73
 
52
74
  ## 1.58.0
53
75
 
@@ -60,7 +82,7 @@
60
82
  - Updated dependencies [d1f0fd0]
61
83
  - Updated dependencies [4355a9e]
62
84
  - @contractspec/integration.providers-impls@1.58.0
63
- - @contractspec/lib.contracts@1.58.0
85
+ - @contractspec/lib.contracts-spec@1.58.0
64
86
 
65
87
  ## 1.57.0
66
88
 
@@ -76,7 +98,7 @@
76
98
  - Updated dependencies [4651e06]
77
99
  - Updated dependencies [ad9d10a]
78
100
  - Updated dependencies [11a5a05]
79
- - @contractspec/lib.contracts@1.57.0
101
+ - @contractspec/lib.contracts-spec@1.57.0
80
102
  - @contractspec/integration.providers-impls@1.57.0
81
103
 
82
104
  ## 1.56.1
@@ -89,4 +111,4 @@
89
111
 
90
112
  - Updated dependencies
91
113
  - @contractspec/integration.providers-impls@1.56.1
92
- - @contractspec/lib.contracts@1.56.1
114
+ - @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.0.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.0.0",
75
+ "@contractspec/lib.contracts-spec": "2.0.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@contractspec/tool.typescript": "1.62.0",
78
+ "@contractspec/tool.typescript": "2.0.0",
79
79
  "typescript": "^5.9.3",
80
- "@contractspec/tool.bun": "1.61.0"
80
+ "@contractspec/tool.bun": "2.0.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":""}