lalph 0.3.99 → 0.3.100

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/dist/cli.mjs CHANGED
@@ -9047,6 +9047,18 @@ const ignore$2 = /* @__PURE__ */ dual((args) => isEffect$1(args[0]), (self, opti
9047
9047
  });
9048
9048
  });
9049
9049
  /** @internal */
9050
+ const ignoreCause$1 = /* @__PURE__ */ dual((args) => isEffect$1(args[0]), (self, options) => {
9051
+ if (!options?.log) return matchCauseEffect$1(self, {
9052
+ onFailure: (_) => void_$4,
9053
+ onSuccess: (_) => void_$4
9054
+ });
9055
+ const logEffect = logWithLevel$1(options.log === true ? void 0 : options.log);
9056
+ return matchCauseEffect$1(self, {
9057
+ onFailure: (cause) => options.message === void 0 ? logEffect(cause) : logEffect(options.message, cause),
9058
+ onSuccess: (_) => void_$4
9059
+ });
9060
+ });
9061
+ /** @internal */
9050
9062
  const option$2 = (self) => match$6(self, {
9051
9063
  onFailure: none$4,
9052
9064
  onSuccess: some$2
@@ -15670,6 +15682,26 @@ const retry$1 = retry$2;
15670
15682
  */
15671
15683
  const ignore$1 = ignore$2;
15672
15684
  /**
15685
+ * Ignores the effect's failure cause, including defects and interruptions.
15686
+ *
15687
+ * Use the `log` option to emit the full {@link Cause} when the effect fails,
15688
+ * and `message` to prepend a custom log message.
15689
+ *
15690
+ * @example
15691
+ * ```ts
15692
+ * import { Effect } from "effect"
15693
+ *
15694
+ * const task = Effect.fail("boom")
15695
+ *
15696
+ * const program = task.pipe(Effect.ignoreCause)
15697
+ * const programLog = task.pipe(Effect.ignoreCause({ log: true, message: "Ignoring failure cause" }))
15698
+ * ```
15699
+ *
15700
+ * @since 4.0.0
15701
+ * @category Error Handling
15702
+ */
15703
+ const ignoreCause = ignoreCause$1;
15704
+ /**
15673
15705
  * Replaces the original failure with a success value, ensuring the effect
15674
15706
  * cannot fail.
15675
15707
  *
@@ -178236,7 +178268,7 @@ var IssueSource = class IssueSource extends Service$1()("lalph/IssueSource") {
178236
178268
  const refs = yield* make$48({
178237
178269
  lookup: fnUntraced(function* (projectId) {
178238
178270
  const ref = yield* make$47(IssuesChange.Internal({ issues: yield* pipe$1(impl.issues(projectId), orElseSucceed(empty$17)) }));
178239
- yield* changes(ref).pipe(switchMap((_) => impl.issues(projectId).pipe(tap$1((issues) => set$3(ref, IssuesChange.External({ issues }))), delay(seconds(30)), fromEffectDrain)), runDrain, forkScoped);
178271
+ yield* changes(ref).pipe(switchMap((_) => impl.issues(projectId).pipe(tap$1((issues) => set$3(ref, IssuesChange.External({ issues }))), ignoreCause, delay(seconds(30)), fromEffectDrain)), runDrain, forkScoped);
178240
178272
  return ref;
178241
178273
  }),
178242
178274
  capacity: Number.MAX_SAFE_INTEGER
@@ -242223,7 +242255,7 @@ const commandEdit = make$60("edit").pipe(withDescription("Open the selected proj
242223
242255
  const commandSource = make$60("source").pipe(withDescription("Select the issue source to use (e.g. GitHub Issues or Linear). This applies to all projects."), withHandler(() => selectIssueSource), provide(Settings.layer));
242224
242256
  //#endregion
242225
242257
  //#region package.json
242226
- var version = "0.3.99";
242258
+ var version = "0.3.100";
242227
242259
  //#endregion
242228
242260
  //#region src/Tracing.ts
242229
242261
  const TracingLayer = unwrap$3(gen(function* () {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lalph",
3
3
  "type": "module",
4
- "version": "0.3.99",
4
+ "version": "0.3.100",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -111,6 +111,7 @@ export class IssueSource extends ServiceMap.Service<
111
111
  Effect.tap((issues) =>
112
112
  SubscriptionRef.set(ref, IssuesChange.External({ issues })),
113
113
  ),
114
+ Effect.ignoreCause,
114
115
  Effect.delay(Duration.seconds(30)),
115
116
  Stream.fromEffectDrain,
116
117
  ),