@systemfsoftware/trace-spec 0.5.2 → 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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @systemfsoftware/trace-spec
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Require `effect` `^4` (stable 4.0.0). Release candidates are no longer supported: imports follow 4.0.0's module layout (`effect/http`, `effect/rpc`, `effect/http-api`, `effect/cluster`, `effect/process`, `effect/socket`, `effect/persistence`, `effect/reactivity`, `effect/encoding`, `effect/Arbitrary`), which does not exist in any 4.0.0 RC.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies:
12
+ - @systemfsoftware/effect-cell-types@12.0.0
13
+ - @systemfsoftware/effect-spec-runtime@1.0.0
14
+ - @systemfsoftware/trace-taxonomy@1.0.0
15
+ - @systemfsoftware/vitest@1.0.0
16
+
3
17
  ## 0.5.2
4
18
 
5
19
  ### Patch Changes
package/README.md CHANGED
@@ -96,7 +96,7 @@ When the behaviour runs in another process — a CLI binary, a worker, a contain
96
96
  ```ts
97
97
  import { RemoteObservation, TempoTraceStore } from '@systemfsoftware/trace-spec'
98
98
  import { Layer } from 'effect'
99
- import { FetchHttpClient } from 'effect/unstable/http'
99
+ import { FetchHttpClient } from 'effect/http'
100
100
 
101
101
  const observation = RemoteObservation.layer(
102
102
  TempoTraceStore.source({ baseUrl: 'http://127.0.0.1:3200' }),
package/dist/index.d.ts CHANGED
@@ -2,14 +2,14 @@ import { Context, Duration, Effect, FileSystem, Layer, Option, Schema } from "ef
2
2
  import { Pipeable } from "effect/Pipeable";
3
3
  import { Span, Taxonomy } from "@systemfsoftware/trace-taxonomy";
4
4
  import * as Result$1 from "effect/Result";
5
- import * as HttpClient from "effect/unstable/http/HttpClient";
5
+ import * as HttpClient from "effect/http/HttpClient";
6
6
  import { Blueprint, Handle } from "@systemfsoftware/effect-cell-types";
7
7
  import * as OtelTracer from "@effect/opentelemetry/OtelTracer";
8
8
  import { BasicTracerProvider, ReadableSpan } from "@opentelemetry/sdk-trace-base";
9
9
  import { Suite } from "@systemfsoftware/effect-spec-runtime";
10
10
  import { Asserted, Check, Expect } from "@systemfsoftware/vitest";
11
11
  import * as Scope from "effect/Scope";
12
- import * as Arbitrary from "effect/unstable/arbitrary/Arbitrary";
12
+ import * as Arbitrary from "effect/Arbitrary";
13
13
  //#region src/BreakFailure.schema.d.ts
14
14
  declare const BreakFailure_base: Schema.Class<BreakFailure, Schema.TaggedStruct<"BreakFailure", {
15
15
  readonly report: Schema.String;
package/dist/index.mjs CHANGED
@@ -1,16 +1,17 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { callFrameOutside, withRaisingFrame } from "@systemfsoftware/vitest/failure";
3
- import { Array as Array$1, Cause, Clock, Context, Duration, Effect, Encoding, Equal, FileSystem, Layer, Match, Option, Predicate, Random, Ref, Result, Schema, SchemaGetter, SchemaTransformation } from "effect";
3
+ import { Array as Array$1, Cause, Clock, Context, Duration, Effect, Equal, FileSystem, Layer, Match, Option, Predicate, Random, Ref, Result, Schema, SchemaGetter, SchemaTransformation } from "effect";
4
4
  import { absurd, dual } from "effect/Function";
5
5
  import { Prototype } from "effect/Pipeable";
6
6
  import "effect/PlatformError";
7
7
  import "@systemfsoftware/trace-taxonomy";
8
8
  import "effect/Array";
9
9
  import * as Result$1 from "effect/Result";
10
- import * as HttpClient from "effect/unstable/http/HttpClient";
11
- import * as HttpClientRequest from "effect/unstable/http/HttpClientRequest";
12
- import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse";
10
+ import * as HttpClient from "effect/http/HttpClient";
11
+ import * as HttpClientRequest from "effect/http/HttpClientRequest";
12
+ import * as HttpClientResponse from "effect/http/HttpClientResponse";
13
13
  import { Blueprint, Handle, Workflow } from "@systemfsoftware/effect-cell-types";
14
+ import { Hex } from "effect/encoding";
14
15
  import * as OtelTracer from "@effect/opentelemetry/OtelTracer";
15
16
  import * as OtelResource from "@effect/opentelemetry/Resource";
16
17
  import { SpanStatusCode } from "@opentelemetry/api";
@@ -413,7 +414,7 @@ const judgeTempoAnswer = Workflow.make({
413
414
  //#region src/drivers/tempo-trace.schema.ts
414
415
  /** Proto bytes (base64 on the wire) as the lowercase hex ids traces are addressed by. */
415
416
  const HexId = Schema.Uint8ArrayFromBase64.pipe(Schema.decodeTo(Schema.String, {
416
- decode: SchemaGetter.transform(Encoding.encodeHex),
417
+ decode: SchemaGetter.transform(Hex.encode),
417
418
  encode: SchemaGetter.decodeHex()
418
419
  }));
419
420
  const secondsAndNanos = (nanos) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@systemfsoftware/trace-spec",
3
3
  "license": "Apache-2.0",
4
- "version": "0.5.2",
4
+ "version": "1.0.0",
5
5
  "author": "Ryan Lee <drdgvhbh@gmail.com>",
6
6
  "repository": {
7
7
  "type": "git",
@@ -33,21 +33,21 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@effect/opentelemetry": "4.0.0-rc.117",
36
+ "@effect/opentelemetry": "^4",
37
37
  "@opentelemetry/api": "^1.9.0",
38
38
  "@opentelemetry/resources": "^2",
39
39
  "@opentelemetry/sdk-trace-base": "^2",
40
40
  "@opentelemetry/semantic-conventions": "^1.33",
41
- "@systemfsoftware/effect-cell-types": "^11.0.0",
42
- "@systemfsoftware/effect-spec-runtime": "^0.3.2",
43
- "@systemfsoftware/trace-taxonomy": "^0.0.2"
41
+ "@systemfsoftware/effect-cell-types": "^12.0.0",
42
+ "@systemfsoftware/effect-spec-runtime": "^1.0.0",
43
+ "@systemfsoftware/trace-taxonomy": "^1.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@effect/platform-node": "4.0.0-rc.117",
46
+ "@effect/platform-node": "^4",
47
47
  "@systemfsoftware/arethetypeswrong-cli": "^4.2.0",
48
- "@systemfsoftware/conformance-spec": "^0.2.0",
49
- "@systemfsoftware/effect-gherkin-spec": "^6.0.1",
50
- "@systemfsoftware/oxlint-config-recommended": "^3.3.0",
48
+ "@systemfsoftware/conformance-spec": "^1.0.0",
49
+ "@systemfsoftware/effect-gherkin-spec": "^7.0.0",
50
+ "@systemfsoftware/oxlint-config-recommended": "^4.0.0",
51
51
  "@systemfsoftware/stryker-config": "^0.1.0",
52
52
  "@systemfsoftware/stryker-ignorer-effect-schema-declarations": "latest",
53
53
  "@systemfsoftware/stryker-ignorer-in-source-vitest-block": "latest",
@@ -57,10 +57,10 @@
57
57
  "@systemfsoftware/stryker-test-contribution": "latest",
58
58
  "@systemfsoftware/tsconfig": "^2.0.1",
59
59
  "@systemfsoftware/tsdown-config": "^0.1.0",
60
- "@systemfsoftware/vitest": "^0.3.0",
60
+ "@systemfsoftware/vitest": "^1.0.0",
61
61
  "@systemfsoftware/vitest-config": "^0.1.0",
62
62
  "@types/node": "^26",
63
- "effect": "4.0.0-rc.117",
63
+ "effect": "^4",
64
64
  "oxlint": "~1.82.0",
65
65
  "rimraf": "^6.1.3",
66
66
  "tsdown": "^0.23.0",
@@ -68,8 +68,8 @@
68
68
  "vitest": "^5"
69
69
  },
70
70
  "peerDependencies": {
71
- "@systemfsoftware/vitest": "^0.3.0",
72
- "effect": "4.0.0-rc.117",
71
+ "@systemfsoftware/vitest": "^1.0.0",
72
+ "effect": "^4",
73
73
  "vitest": "^5"
74
74
  },
75
75
  "publishConfig": {