Commit Graph

89 Commits

Author SHA1 Message Date
Julien Valverdé
d682643407 Test ErrorObserver
All checks were successful
Lint / lint (push) Successful in 12s
2025-11-08 15:42:43 +01:00
Julien Valverdé
0718ba48bd Fix ErrorObserver
All checks were successful
Lint / lint (push) Successful in 41s
2025-11-08 01:35:58 +01:00
a8b2c1e098 Update bun minor+patch updates (#22)
Some checks failed
Lint / lint (push) Failing after 6s
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [@effect/language-service](https://github.com/Effect-TS/language-service) | [`^0.54.0` -> `^0.55.0`](https://renovatebot.com/diffs/npm/@effect%2flanguage-service/0.54.0/0.55.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@effect%2flanguage-service/0.55.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@effect%2flanguage-service/0.54.0/0.55.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@effect/platform](https://effect.website) ([source](https://github.com/Effect-TS/effect/tree/HEAD/packages/platform)) | [`^0.92.1` -> `^0.93.0`](https://renovatebot.com/diffs/npm/@effect%2fplatform/0.92.1/0.93.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@effect%2fplatform/0.93.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@effect%2fplatform/0.92.1/0.93.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@effect/platform-browser](https://effect.website) ([source](https://github.com/Effect-TS/effect/tree/HEAD/packages/platform-browser)) | [`^0.72.0` -> `^0.73.0`](https://renovatebot.com/diffs/npm/@effect%2fplatform-browser/0.72.0/0.73.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@effect%2fplatform-browser/0.73.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@effect%2fplatform-browser/0.72.0/0.73.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>Effect-TS/language-service (@&#8203;effect/language-service)</summary>

### [`v0.55.2`](https://github.com/Effect-TS/language-service/blob/HEAD/CHANGELOG.md#0552)

[Compare Source](https://github.com/Effect-TS/language-service/compare/v0.55.1...v0.55.2)

##### Patch Changes

- [#&#8203;484](https://github.com/Effect-TS/language-service/pull/484) [`7c18fa8`](7c18fa8b08) Thanks [@&#8203;mattiamanzati](https://github.com/mattiamanzati)! - Fix edge cases in missedPipeableOpportunity diagnostic where it incorrectly flagged valid code patterns. The diagnostic now properly:
  - Excludes `pipe` function calls from chain detection
  - Ignores chains where the function returns a callable type (avoiding false positives for higher-order functions like `Schedule.whileOutput`)

### [`v0.55.1`](https://github.com/Effect-TS/language-service/blob/HEAD/CHANGELOG.md#0551)

[Compare Source](https://github.com/Effect-TS/language-service/compare/v0.55.0...v0.55.1)

##### Patch Changes

- [#&#8203;482](https://github.com/Effect-TS/language-service/pull/482) [`9695bdf`](9695bdfec4) Thanks [@&#8203;mattiamanzati](https://github.com/mattiamanzati)! - Fix `missedPipeableOpportunity` diagnostic to correctly detect nested function call chains

  The diagnostic now properly identifies when nested function calls can be converted to pipeable style. Previously, the chain detection logic incorrectly tracked parent-child relationships, causing false positives. This fix ensures that only valid pipeable chains are reported, such as `toString(double(addOne(5)))` which can be refactored to `addOne(5).pipe(double, toString)`.

  Example:

  ```typescript
  // Before: incorrectly flagged or missed
  identity(Schema.decodeUnknown(MyStruct)({ x: 42, y: 42 }));

  // After: correctly handles complex nested calls
  toString(double(addOne(5))); // ✓ Now correctly detected as pipeable
  ```

### [`v0.55.0`](https://github.com/Effect-TS/language-service/blob/HEAD/CHANGELOG.md#0550)

[Compare Source](https://github.com/Effect-TS/language-service/compare/v0.54.0...v0.55.0)

##### Minor Changes

- [#&#8203;478](https://github.com/Effect-TS/language-service/pull/478) [`9a9d5f9`](9a9d5f9486) Thanks [@&#8203;mattiamanzati](https://github.com/mattiamanzati)! - Add `runEffectInsideEffect` diagnostic to warn when using `Effect.runSync`, `Effect.runPromise`, `Effect.runFork`, or `Effect.runCallback` inside an Effect context (such as `Effect.gen`, `Effect.fn`, or `Effect.fnUntraced`).

  Running effects inside effects is generally not recommended as it breaks the composability of the Effect system. Instead, developers should extract the Runtime and use `Runtime.runSync`, `Runtime.runPromise`, etc., or restructure their code to avoid running effects inside effects.

  Example:

  ```typescript
  //  Will trigger diagnostic
  export const program = Effect.gen(function* () {
    const data = yield* Effect.succeed(42);
    const result = Effect.runSync(Effect.sync(() => data * 2)); // Not recommended
    return result;
  });

  //  Proper approach - extract runtime
  export const program = Effect.gen(function* () {
    const data = yield* Effect.succeed(42);
    const runtime = yield* Effect.runtime();
    const result = Runtime.runSync(runtime)(Effect.sync(() => data * 2));
    return result;
  });

  //  Better approach - compose effects
  export const program = Effect.gen(function* () {
    const data = yield* Effect.succeed(42);
    const result = yield* Effect.sync(() => data * 2);
    return result;
  });
  ```

- [#&#8203;480](https://github.com/Effect-TS/language-service/pull/480) [`f1a0ece`](f1a0ece931) Thanks [@&#8203;mattiamanzati](https://github.com/mattiamanzati)! - Add `schemaUnionOfLiterals` diagnostic to warn when using `Schema.Union` with multiple `Schema.Literal` calls that can be simplified to a single `Schema.Literal` call.

  This diagnostic helps improve code readability and maintainability by suggesting a more concise syntax for union of literals.

  Example:

  ```typescript
  //  Will trigger diagnostic
  export const Status = Schema.Union(Schema.Literal("A"), Schema.Literal("B"));

  //  Simplified approach
  export const Status = Schema.Literal("A", "B");
  ```

##### Patch Changes

- [#&#8203;481](https://github.com/Effect-TS/language-service/pull/481) [`160e018`](160e018c6f) Thanks [@&#8203;mattiamanzati](https://github.com/mattiamanzati)! - Update Effect ecosystem dependencies to latest versions:

  - `@effect/cli`: 0.71.0 → 0.72.0
  - `@effect/platform`: 0.92.1 → 0.93.0
  - `@effect/platform-node`: 0.98.3 → 0.99.0
  - `@effect/printer-ansi`: 0.46.0 → 0.47.0
  - `@effect/rpc`: 0.71.0 → 0.72.0
  - `effect`: Updated to stable version 3.19.0

  Also updated development tooling dependencies:

  - `vitest`: 3.2.4 → 4.0.6
  - `@vitest/coverage-v8`: 3.2.4 → 4.0.6
  - TypeScript ESLint packages: 8.46.1 → 8.46.3
  - Various other minor dependency updates

</details>

<details>
<summary>Effect-TS/effect (@&#8203;effect/platform)</summary>

### [`v0.93.0`](https://github.com/Effect-TS/effect/blob/HEAD/packages/platform/CHANGELOG.md#0930)

[Compare Source](https://github.com/Effect-TS/effect/compare/@effect/platform@0.92.1...@effect/platform@0.93.0)

##### Patch Changes

- [#&#8203;5606](https://github.com/Effect-TS/effect/pull/5606) [`24a1685`](24a1685c70) Thanks [@&#8203;tim-smart](https://github.com/tim-smart)! - expose Layer output in HttpLayerRouter.serve

- Updated dependencies \[[`3c15d5f`](3c15d5f99f), [`3863fa8`](3863fa89f6), [`2a03c76`](2a03c76c27), [`24a1685`](24a1685c70)]:
  - effect\@&#8203;3.19.0

</details>

<details>
<summary>Effect-TS/effect (@&#8203;effect/platform-browser)</summary>

### [`v0.73.0`](https://github.com/Effect-TS/effect/blob/HEAD/packages/platform-browser/CHANGELOG.md#0730)

[Compare Source](https://github.com/Effect-TS/effect/compare/@effect/platform-browser@0.72.0...@effect/platform-browser@0.73.0)

##### Patch Changes

- Updated dependencies \[[`3c15d5f`](3c15d5f99f), [`3863fa8`](3863fa89f6), [`2a03c76`](2a03c76c27), [`24a1685`](24a1685c70)]:
  - effect\@&#8203;3.19.0
  - [@&#8203;effect/platform](https://github.com/effect/platform)@&#8203;0.93.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNjkuMyIsInVwZGF0ZWRJblZlciI6IjQxLjE3MS40IiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119-->

Reviewed-on: #22
Co-authored-by: Renovate Bot <renovate-bot@valverde.cloud>
Co-committed-by: Renovate Bot <renovate-bot@valverde.cloud>
2025-11-07 01:19:28 +01:00
Julien Valverdé
6d52c4ee31 Add ErrorObserver handle
All checks were successful
Lint / lint (push) Successful in 41s
2025-11-07 01:13:50 +01:00
Julien Valverdé
c80b25b0e0 Fix ReactRuntime
All checks were successful
Lint / lint (push) Successful in 12s
2025-11-06 15:21:56 +01:00
Julien Valverdé
7e14f27df4 Finish ErrorObserver
All checks were successful
Lint / lint (push) Successful in 40s
2025-11-06 01:17:06 +01:00
Julien Valverdé
5bc1e65a61 ErrorObserver work
Some checks failed
Lint / lint (push) Failing after 10s
2025-11-05 15:15:59 +01:00
Julien Valverdé
53bc4407b3 Add ErrorObserver
Some checks failed
Lint / lint (push) Failing after 36s
2025-11-05 01:12:56 +01:00
Julien Valverdé
66289da64c Fix
All checks were successful
Lint / lint (push) Successful in 13s
2025-11-04 12:18:55 +01:00
Julien Valverdé
679a624fab Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-11-04 02:06:30 +01:00
Julien Valverdé
ba76f38bc4 Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-11-04 01:57:43 +01:00
Julien Valverdé
c7a68d8653 Add useRunSync
All checks were successful
Lint / lint (push) Successful in 13s
2025-11-04 00:46:07 +01:00
Julien Valverdé
87e7b74ed6 Fix
Some checks failed
Lint / lint (push) Failing after 38s
2025-11-03 01:21:58 +01:00
Julien Valverdé
4b82b8e627 Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-11-03 00:00:16 +01:00
Julien Valverdé
4f69f667b0 Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-11-02 21:00:12 +01:00
Julien Valverdé
0b8418e114 Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-11-02 13:30:02 +01:00
Julien Valverdé
65447a6fec Fix
All checks were successful
Lint / lint (push) Successful in 13s
2025-11-02 13:17:06 +01:00
Julien Valverdé
15a9ef3f79 Fix useSubscribables
All checks were successful
Lint / lint (push) Successful in 40s
2025-11-02 12:39:54 +01:00
Julien Valverdé
7132f7a463 Subscribable work
Some checks failed
Lint / lint (push) Failing after 12s
2025-11-02 00:58:05 +01:00
Julien Valverdé
56f05e93e7 Fix
All checks were successful
Lint / lint (push) Successful in 11s
2025-10-31 15:52:12 +01:00
Julien Valverdé
9beddc0877 Example fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-31 15:50:01 +01:00
Julien Valverdé
8a354b5519 Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-31 15:40:47 +01:00
Julien Valverdé
5de4773974 Cleanup
Some checks failed
Lint / lint (push) Failing after 11s
2025-10-31 15:38:08 +01:00
Julien Valverdé
1090a685d2 Fix
Some checks failed
Lint / lint (push) Failing after 11s
2025-10-31 15:33:59 +01:00
Julien Valverdé
f537490f40 Add forkEffect
All checks were successful
Lint / lint (push) Successful in 13s
2025-10-31 00:52:59 +01:00
Julien Valverdé
2348ea9bc1 Fix
All checks were successful
Lint / lint (push) Successful in 13s
2025-10-30 20:56:31 +01:00
Julien Valverdé
0619af6524 Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-30 14:36:47 +01:00
Julien Valverdé
993e97676f Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-30 12:23:19 +01:00
Julien Valverdé
95f53b8a00 Add useOnMountResult
Some checks failed
Lint / lint (push) Failing after 41s
2025-10-30 11:58:06 +01:00
Julien Valverdé
8b948b2251 useOnChangeResult
Some checks failed
Lint / lint (push) Failing after 11s
2025-10-29 16:52:56 +01:00
Julien Valverdé
626a9292d5 Fix forkEffectScoped
Some checks failed
Lint / lint (push) Failing after 1m40s
2025-10-29 15:07:49 +01:00
Julien Valverdé
363c7d24f4 Fix forkEffectScoped
Some checks failed
Lint / lint (push) Failing after 11s
2025-10-29 14:32:45 +01:00
Julien Valverdé
d57654d872 Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-28 21:35:54 +01:00
Julien Valverdé
0b7d9383ec Fix
All checks were successful
Lint / lint (push) Successful in 13s
2025-10-28 21:16:11 +01:00
Julien Valverdé
c380fe9d08 Result work
All checks were successful
Lint / lint (push) Successful in 13s
2025-10-28 21:03:31 +01:00
Julien Valverdé
92722444cf Revert "Fix Result"
All checks were successful
Lint / lint (push) Successful in 13s
This reverts commit 882054b53d.
2025-10-28 11:28:36 +01:00
Julien Valverdé
882054b53d Fix Result
Some checks failed
Lint / lint (push) Failing after 40s
2025-10-28 01:07:10 +01:00
Julien Valverdé
1c0519cfaf Progress work
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-27 21:21:23 +01:00
Julien Valverdé
f69125012e Cleanup
All checks were successful
Lint / lint (push) Successful in 13s
2025-10-27 18:42:05 +01:00
Julien Valverdé
8c8560b63c Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-27 18:36:41 +01:00
Julien Valverdé
86e8a7bd92 Refactor Form
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-27 18:11:11 +01:00
Julien Valverdé
12878cd76b Result work
Some checks failed
Lint / lint (push) Failing after 14s
2025-10-27 16:47:58 +01:00
Julien Valverdé
308025d662 Add Result type
All checks were successful
Lint / lint (push) Successful in 44s
2025-10-27 11:33:15 +01:00
Julien Valverdé
2094f254b3 Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-25 09:43:04 +02:00
Julien Valverdé
cd8b5e6364 Version bump
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-24 01:27:36 +02:00
Julien Valverdé
a48b623822 Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-24 01:26:01 +02:00
Julien Valverdé
499e1e174b Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-24 00:48:21 +02:00
Julien Valverdé
6b9c177ae7 Fix
All checks were successful
Lint / lint (push) Successful in 11s
2025-10-24 00:00:14 +02:00
Julien Valverdé
b73b053cc8 Fix
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-23 23:50:30 +02:00
Julien Valverdé
bbad86bf97 Cleanup
All checks were successful
Lint / lint (push) Successful in 12s
2025-10-23 23:36:30 +02:00