effective-progress 0.9.0 → 0.10.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/README.md CHANGED
@@ -95,6 +95,8 @@ Support for `either`/`validate` modes of `Effect.all` and render the amount of s
95
95
  - `examples/showcase.ts` - nested concurrent tasks, spinner workloads, and mixed Effect/Console logging
96
96
  - `examples/performance.ts` - stress-style run with high log volume and deeply nested progress updates
97
97
  - `examples/performanceLong.ts` - longer-running stress run with roughly 10x the work of `performance.ts`
98
+ - `examples/performanceComparison.ts` - bare vs progress comparison for the `performance.ts` workload
99
+ - `examples/performanceComparisonLong.ts` - longer bare vs progress comparison for the `performanceLong.ts` workload
98
100
 
99
101
  ## Configuration
100
102
 
package/dist/index.d.mts CHANGED
@@ -33,9 +33,7 @@ declare const TaskUnitsSchema: Schema.Struct<{
33
33
  total: Schema.optional<typeof Schema.Number>;
34
34
  }>;
35
35
  type TaskUnits = typeof TaskUnitsSchema.Type;
36
- declare const TaskSnapshot_base: Schema.TaggedClass<TaskSnapshot, "TaskSnapshot", {
37
- readonly _tag: Schema.tag<"TaskSnapshot">;
38
- } & {
36
+ declare const TaskSnapshotSchema: Schema.Struct<{
39
37
  id: Schema.brand<typeof Schema.Number, "TaskId">;
40
38
  parentId: Schema.NullOr<Schema.brand<typeof Schema.Number, "TaskId">>;
41
39
  description: typeof Schema.String;
@@ -51,7 +49,8 @@ declare const TaskSnapshot_base: Schema.TaggedClass<TaskSnapshot, "TaskSnapshot"
51
49
  startedAt: typeof Schema.Number;
52
50
  completedAt: Schema.NullOr<typeof Schema.Number>;
53
51
  }>;
54
- declare class TaskSnapshot extends TaskSnapshot_base {}
52
+ type TaskSnapshot = typeof TaskSnapshotSchema.Type;
53
+ declare const TaskSnapshot: (snapshot: TaskSnapshot) => TaskSnapshot;
55
54
  interface RenderRow {
56
55
  readonly id: TaskId;
57
56
  readonly depth: number;
@@ -182,4 +181,4 @@ declare class ProgressStdio extends ProgressStdio_base {
182
181
  static readonly Default: Layer.Layer<ProgressStdio, never, never>;
183
182
  }
184
183
  //#endregion
185
- export { AddTaskOptions, AllOptions, AllReturn, EffectAllExecutionOptions, EffectExecutionOptions, ForEachExecutionOptions, ForEachOptions, Progress, ProgressService, ProgressStdio, ProgressStdioService, ProgressTaskEvent, ProgressTaskEventSchema, RenderRow, Task, TaskAddedEvent, TaskAdvancedEvent, TaskCompletedEvent, TaskCountDisplay, TaskCountDisplaySchema, TaskFailedEvent, TaskId, TaskOptions, TaskRemovedEvent, TaskSnapshot, TaskStatus, TaskStatusSchema, TaskStore, TaskUnits, TaskUnitsSchema, TaskUpdatedEvent, TrackOptions, UpdateTaskOptions, all, decodeProgressTaskEvent, forEach, task };
184
+ export { AddTaskOptions, AllOptions, AllReturn, EffectAllExecutionOptions, EffectExecutionOptions, ForEachExecutionOptions, ForEachOptions, Progress, ProgressService, ProgressStdio, ProgressStdioService, ProgressTaskEvent, ProgressTaskEventSchema, RenderRow, Task, TaskAddedEvent, TaskAdvancedEvent, TaskCompletedEvent, TaskCountDisplay, TaskCountDisplaySchema, TaskFailedEvent, TaskId, TaskOptions, TaskRemovedEvent, TaskSnapshot, TaskSnapshotSchema, TaskStatus, TaskStatusSchema, TaskStore, TaskUnits, TaskUnitsSchema, TaskUpdatedEvent, TrackOptions, UpdateTaskOptions, all, decodeProgressTaskEvent, forEach, task };