diff --git a/package.json b/package.json index e75c394..42ac6fb 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "dependencies": { "@effect/schema": "^0.71.1", - "effect": "^3.6.5" + "effect": "^3.8.3" }, "devDependencies": { "@rollup/plugin-inject": "^5.0.5", diff --git a/packages/components/add-provider/package.json b/packages/components/add-provider/package.json index a943e55..9df51ab 100644 --- a/packages/components/add-provider/package.json +++ b/packages/components/add-provider/package.json @@ -11,7 +11,7 @@ "@echo/components-shared-controllers": "^1.0.0", "@echo/components-ui-atoms": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/task": "^1.0.1" } diff --git a/packages/components/albums/package.json b/packages/components/albums/package.json index f2106bf..a105328 100644 --- a/packages/components/albums/package.json +++ b/packages/components/albums/package.json @@ -11,7 +11,7 @@ "@echo/components-icons": "^1.0.0", "@echo/core-types": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/task": "^1.0.1" } diff --git a/packages/components/artists/package.json b/packages/components/artists/package.json index be9767f..f76e3e9 100644 --- a/packages/components/artists/package.json +++ b/packages/components/artists/package.json @@ -10,9 +10,9 @@ "@echo/components-shared-controllers": "^1.0.0", "@echo/core-types": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/task": "^1.0.1", "@lit-labs/router": "^0.1.3" } -} +} \ No newline at end of file diff --git a/packages/components/command-bar/package.json b/packages/components/command-bar/package.json index b7eb01e..bf0a95e 100644 --- a/packages/components/command-bar/package.json +++ b/packages/components/command-bar/package.json @@ -10,8 +10,8 @@ "@echo/components-shared-controllers": "^1.0.0", "@echo/core-types": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/task": "^1.0.1" } -} +} \ No newline at end of file diff --git a/packages/components/header/package.json b/packages/components/header/package.json index 4b45cb1..d4e0343 100644 --- a/packages/components/header/package.json +++ b/packages/components/header/package.json @@ -13,7 +13,7 @@ "@echo/components-provider-status": "^1.0.0", "@echo/core-types": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/task": "^1.0.1" } diff --git a/packages/components/icons/package.json b/packages/components/icons/package.json index f3e9769..b170d35 100644 --- a/packages/components/icons/package.json +++ b/packages/components/icons/package.json @@ -10,8 +10,8 @@ "@echo/components-shared-controllers": "^1.0.0", "@echo/core-types": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/task": "^1.0.1" } -} +} \ No newline at end of file diff --git a/packages/components/initial-setup/package.json b/packages/components/initial-setup/package.json index 4fdb72b..3332712 100644 --- a/packages/components/initial-setup/package.json +++ b/packages/components/initial-setup/package.json @@ -11,7 +11,7 @@ "@echo/components-ui-atoms": "^1.0.0", "@echo/core-types": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/task": "^1.0.1" } diff --git a/packages/components/library/package.json b/packages/components/library/package.json index 8faa4b1..6cb962e 100644 --- a/packages/components/library/package.json +++ b/packages/components/library/package.json @@ -13,7 +13,7 @@ "@echo/components-shared-controllers": "^1.0.0", "@echo/core-types": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/context": "^1.1.2" } diff --git a/packages/components/player/package.json b/packages/components/player/package.json index aab6093..a9ca761 100644 --- a/packages/components/player/package.json +++ b/packages/components/player/package.json @@ -12,7 +12,7 @@ "@echo/components-ui-atoms": "^1.0.0", "@echo/core-types": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/task": "^1.0.1" } diff --git a/packages/components/provider-status/package.json b/packages/components/provider-status/package.json index 7c56ce8..421eaef 100644 --- a/packages/components/provider-status/package.json +++ b/packages/components/provider-status/package.json @@ -13,7 +13,7 @@ "@echo/components-shared-controllers": "^1.0.0", "@echo/components-ui-atoms": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/task": "^1.0.1" } diff --git a/packages/components/shared-controllers/package.json b/packages/components/shared-controllers/package.json index aef3b90..6485c9d 100644 --- a/packages/components/shared-controllers/package.json +++ b/packages/components/shared-controllers/package.json @@ -9,7 +9,7 @@ "dependencies": { "@echo/core-types": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/task": "^1.0.1" } diff --git a/packages/components/ui-atoms/package.json b/packages/components/ui-atoms/package.json index 60247ad..179ac1c 100644 --- a/packages/components/ui-atoms/package.json +++ b/packages/components/ui-atoms/package.json @@ -10,8 +10,8 @@ "@echo/components-shared-controllers": "^1.0.0", "@echo/core-types": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/task": "^1.0.1" } -} +} \ No newline at end of file diff --git a/packages/core/types/package.json b/packages/core/types/package.json index 49e291d..472e3f5 100644 --- a/packages/core/types/package.json +++ b/packages/core/types/package.json @@ -10,6 +10,6 @@ }, "dependencies": { "@effect/schema": "^0.71.1", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/core/types/src/services/player.ts b/packages/core/types/src/services/player.ts index 7cd04d8..04f8e88 100644 --- a/packages/core/types/src/services/player.ts +++ b/packages/core/types/src/services/player.ts @@ -45,7 +45,7 @@ export type IPlayer = { * Returns a stream that emits the current player state and any subsequent * changes to it. */ - readonly observe: SubscriptionRef.SubscriptionRef; + readonly observe: Effect.Effect>; }; /** diff --git a/packages/core/types/src/services/provider-status.ts b/packages/core/types/src/services/provider-status.ts index 634977c..1687944 100644 --- a/packages/core/types/src/services/provider-status.ts +++ b/packages/core/types/src/services/provider-status.ts @@ -15,7 +15,9 @@ export type IMediaProviderStatus = { * Returns a subscription ref that holds the current status of a specific * provider, while also allowing to observe changes to it. */ - readonly observe: SubscriptionRef.SubscriptionRef; + readonly observe: Effect.Effect< + SubscriptionRef.SubscriptionRef + >; }; /** diff --git a/packages/infrastructure/broadcast-channel/package.json b/packages/infrastructure/broadcast-channel/package.json index 5e7224cf..ad24767 100644 --- a/packages/infrastructure/broadcast-channel/package.json +++ b/packages/infrastructure/broadcast-channel/package.json @@ -10,6 +10,6 @@ }, "dependencies": { "@echo/core-types": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/infrastructure/browser-crypto/package.json b/packages/infrastructure/browser-crypto/package.json index 09d6a50..372133a 100644 --- a/packages/infrastructure/browser-crypto/package.json +++ b/packages/infrastructure/browser-crypto/package.json @@ -10,6 +10,6 @@ }, "dependencies": { "@echo/core-types": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/infrastructure/browser-local-storage/package.json b/packages/infrastructure/browser-local-storage/package.json index fe5026d..2199a3c 100644 --- a/packages/infrastructure/browser-local-storage/package.json +++ b/packages/infrastructure/browser-local-storage/package.json @@ -10,6 +10,6 @@ }, "dependencies": { "@echo/core-types": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/infrastructure/dexie-database/package.json b/packages/infrastructure/dexie-database/package.json index 81e1d01..c08db48 100644 --- a/packages/infrastructure/dexie-database/package.json +++ b/packages/infrastructure/dexie-database/package.json @@ -12,6 +12,6 @@ "@echo/core-strings": "^1.0.0", "@echo/core-types": "^1.0.0", "dexie": "^4.0.7", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/infrastructure/html-audio-media-player/package.json b/packages/infrastructure/html-audio-media-player/package.json index 7aeae88..89310d7 100644 --- a/packages/infrastructure/html-audio-media-player/package.json +++ b/packages/infrastructure/html-audio-media-player/package.json @@ -10,6 +10,6 @@ }, "dependencies": { "@echo/core-types": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/infrastructure/mmb-metadata-provider/package.json b/packages/infrastructure/mmb-metadata-provider/package.json index a81c4c1..daa0a54 100644 --- a/packages/infrastructure/mmb-metadata-provider/package.json +++ b/packages/infrastructure/mmb-metadata-provider/package.json @@ -11,7 +11,7 @@ "dependencies": { "@echo/core-types": "^1.0.0", "buffer": "^6.0.3", - "effect": "^3.6.5", + "effect": "^3.8.3", "music-metadata": "^10.0.0", "process": "^0.11.10" } diff --git a/packages/infrastructure/onedrive-provider/package.json b/packages/infrastructure/onedrive-provider/package.json index 47093e9..fab2a17 100644 --- a/packages/infrastructure/onedrive-provider/package.json +++ b/packages/infrastructure/onedrive-provider/package.json @@ -13,7 +13,7 @@ "@echo/core-dates": "^1.0.0", "@echo/core-types": "^1.0.0", "@microsoft/microsoft-graph-client": "^3.0.7", - "effect": "^3.6.5" + "effect": "^3.8.3" }, "devDependencies": { "@microsoft/microsoft-graph-types": "^2.40.0" diff --git a/packages/infrastructure/spotify-artist-image-provider/package.json b/packages/infrastructure/spotify-artist-image-provider/package.json index f6c5a09..1fb10af 100644 --- a/packages/infrastructure/spotify-artist-image-provider/package.json +++ b/packages/infrastructure/spotify-artist-image-provider/package.json @@ -10,6 +10,6 @@ }, "dependencies": { "@echo/core-types": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/services/active-media-provider-cache/package.json b/packages/services/active-media-provider-cache/package.json index b1e1583..76c32b9 100644 --- a/packages/services/active-media-provider-cache/package.json +++ b/packages/services/active-media-provider-cache/package.json @@ -10,6 +10,6 @@ }, "dependencies": { "@echo/core-types": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/services/add-provider-workflow/package.json b/packages/services/add-provider-workflow/package.json index 8b229d6..a067f77 100644 --- a/packages/services/add-provider-workflow/package.json +++ b/packages/services/add-provider-workflow/package.json @@ -12,6 +12,6 @@ "@echo/core-types": "^1.0.0", "@echo/services-bootstrap": "^1.0.0", "@effect/experimental": "^0.23.4", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/services/app-init/package.json b/packages/services/app-init/package.json index 29314cd..d0716d5 100644 --- a/packages/services/app-init/package.json +++ b/packages/services/app-init/package.json @@ -13,6 +13,6 @@ "@echo/core-types": "^1.0.0", "@echo/services-bootstrap": "^1.0.0", "@echo/services-bootstrap-workers": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/services/bootstrap-runtime/package.json b/packages/services/bootstrap-runtime/package.json index 02ba2a1..7fe6003 100644 --- a/packages/services/bootstrap-runtime/package.json +++ b/packages/services/bootstrap-runtime/package.json @@ -15,6 +15,6 @@ "@echo/services-bootstrap": "^1.0.0", "@echo/services-library": "^1.0.0", "@echo/services-player": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/services/bootstrap-workers/package.json b/packages/services/bootstrap-workers/package.json index 89baca0..1b9b4c8 100644 --- a/packages/services/bootstrap-workers/package.json +++ b/packages/services/bootstrap-workers/package.json @@ -11,6 +11,6 @@ "dependencies": { "@echo/core-types": "^1.0.0", "@echo/workers-media-provider": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/services/bootstrap/package.json b/packages/services/bootstrap/package.json index c973eea..9f48bb9 100644 --- a/packages/services/bootstrap/package.json +++ b/packages/services/bootstrap/package.json @@ -21,6 +21,6 @@ "@echo/services-active-media-provider-cache": "^1.0.0", "@echo/services-media-provider-status": "^1.0.0", "@echo/workers-media-provider": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/services/library/package.json b/packages/services/library/package.json index 0ec28ae..95b0a59 100644 --- a/packages/services/library/package.json +++ b/packages/services/library/package.json @@ -10,6 +10,6 @@ }, "dependencies": { "@echo/core-types": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/services/media-provider-status/index.ts b/packages/services/media-provider-status/index.ts index c79823a..5272ef0 100644 --- a/packages/services/media-provider-status/index.ts +++ b/packages/services/media-provider-status/index.ts @@ -20,7 +20,7 @@ export const MediaProviderStatusLive = Layer.effect( }); return MediaProviderStatus.of({ - observe: stateByProviderRef, + observe: Effect.sync(() => stateByProviderRef), }); }), ); diff --git a/packages/services/media-provider-status/package.json b/packages/services/media-provider-status/package.json index d361ccc..195074e 100644 --- a/packages/services/media-provider-status/package.json +++ b/packages/services/media-provider-status/package.json @@ -10,6 +10,6 @@ }, "dependencies": { "@echo/core-types": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/services/player/package.json b/packages/services/player/package.json index 6e9b219..53a5196 100644 --- a/packages/services/player/package.json +++ b/packages/services/player/package.json @@ -10,6 +10,6 @@ }, "dependencies": { "@echo/core-types": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/packages/services/player/src/player.ts b/packages/services/player/src/player.ts index 113f90e..c3558fb 100644 --- a/packages/services/player/src/player.ts +++ b/packages/services/player/src/player.ts @@ -126,7 +126,7 @@ const makePlayer = Effect.gen(function* () { ); }), skip: commandQueue.offer(NextTrack()), - observe: state, + observe: Effect.sync(() => state), }); }); diff --git a/packages/web/package.json b/packages/web/package.json index ae5f3d3..2550d76 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -18,7 +18,7 @@ "@echo/components-shared-controllers": "^1.0.0", "@echo/core-types": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/task": "^1.0.1" } diff --git a/packages/workers/media-provider/package.json b/packages/workers/media-provider/package.json index 667c2c2..39842da 100644 --- a/packages/workers/media-provider/package.json +++ b/packages/workers/media-provider/package.json @@ -16,6 +16,6 @@ "@echo/infrastructure-browser-crypto": "^1.0.0", "@echo/services-bootstrap": "^1.0.0", "@effect/schema": "^0.71.1", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/tools/plop-templates/components/template/package.json.hbs b/tools/plop-templates/components/template/package.json.hbs index 3873086..85fec1c 100644 --- a/tools/plop-templates/components/template/package.json.hbs +++ b/tools/plop-templates/components/template/package.json.hbs @@ -10,7 +10,7 @@ "@echo/components-shared-controllers": "^1.0.0", "@echo/core-types": "^1.0.0", "@echo/services-bootstrap-runtime": "^1.0.0", - "effect": "^3.6.5", + "effect": "^3.8.3", "lit": "^3.2.0", "@lit/task": "^1.0.1" } diff --git a/tools/plop-templates/infrastructure/template/package.json.hbs b/tools/plop-templates/infrastructure/template/package.json.hbs index 8dde619..c4e8472 100644 --- a/tools/plop-templates/infrastructure/template/package.json.hbs +++ b/tools/plop-templates/infrastructure/template/package.json.hbs @@ -10,6 +10,6 @@ }, "dependencies": { "@echo/core-types": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/tools/plop-templates/services/template/package.json.hbs b/tools/plop-templates/services/template/package.json.hbs index 1d3c0e3..d8263e6 100644 --- a/tools/plop-templates/services/template/package.json.hbs +++ b/tools/plop-templates/services/template/package.json.hbs @@ -10,6 +10,6 @@ }, "dependencies": { "@echo/core-types": "^1.0.0", - "effect": "^3.6.5" + "effect": "^3.8.3" } } \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 8b802f7..3f51917 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1050,10 +1050,10 @@ dot-case@^3.0.4: no-case "^3.0.4" tslib "^2.0.3" -effect@^3.6.5: - version "3.6.5" - resolved "https://registry.yarnpkg.com/effect/-/effect-3.6.5.tgz#be177847e69273ea9ed95bebe03bd672c5af474b" - integrity sha512-NhopZTAKljaAlR0CEroOAJJngdqg7bzlnWcDrCwh4d2WNVohVbBtUS4SGqLt8tUy7IFsTWATYiUtmhDG+YELjA== +effect@^3.8.3: + version "3.8.3" + resolved "https://registry.yarnpkg.com/effect/-/effect-3.8.3.tgz#37a78c4c91d2eebdc315bf2d55a07aea443cd869" + integrity sha512-ZHTNRik0mJWK+g12/HHwsouOux0OE2v+qRD7zsEJLtZ1RJdrlxvCpSXdJ+KgOqJ4wigIToDSb5e5HG885uKs/w== emoji-regex@^10.3.0: version "10.3.0"