@effect-app/vue 4.0.0-beta.68 → 4.0.0-beta.69
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 +8 -0
- package/package.json +6 -6
- package/src/commander.ts +1 -1
- package/src/makeClient.ts +1 -1
- package/src/makeUseCommand.ts +1 -1
- package/src/runtime.ts +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/vue",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.69",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/effect-ts-app/libs/tree/main/packages/vue",
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"@vueuse/core": "^14.2.1",
|
|
12
12
|
"change-case": "^5.4.4",
|
|
13
13
|
"query-string": "^9.3.1",
|
|
14
|
-
"effect-app": "4.0.0-beta.
|
|
14
|
+
"effect-app": "4.0.0-beta.69"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@effect/atom-vue": "^4.0.0-beta.
|
|
18
|
-
"@effect/platform-browser": "^4.0.0-beta.
|
|
17
|
+
"@effect/atom-vue": "^4.0.0-beta.46",
|
|
18
|
+
"@effect/platform-browser": "^4.0.0-beta.46",
|
|
19
19
|
"@sentry/browser": "^10.47.0",
|
|
20
|
-
"effect": "^4.0.0-beta.
|
|
20
|
+
"effect": "^4.0.0-beta.46",
|
|
21
21
|
"vue": "^3.5.32"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@effect/vitest": "^4.0.0-beta.
|
|
24
|
+
"@effect/vitest": "^4.0.0-beta.46",
|
|
25
25
|
"@formatjs/icu-messageformat-parser": "^3.5.3",
|
|
26
26
|
"@types/node": "25.5.2",
|
|
27
27
|
"@vitejs/plugin-vue": "^6.0.5",
|
package/src/commander.ts
CHANGED
|
@@ -1479,7 +1479,7 @@ export class CommanderImpl<RT, RTHooks> {
|
|
|
1479
1479
|
const computeAllowed = options?.allowed
|
|
1480
1480
|
const allowed = computeAllowed ? computed(() => computeAllowed(id, state)) : true
|
|
1481
1481
|
|
|
1482
|
-
const rt = Effect.
|
|
1482
|
+
const rt = Effect.context<RT | RTHooks>().pipe(Effect.provide(this.hooks)).pipe(Effect.runSyncWith(this.rt))
|
|
1483
1483
|
const runFork = Effect.runForkWith(rt)
|
|
1484
1484
|
|
|
1485
1485
|
const handle = Object.assign((arg: Arg) => {
|
package/src/makeClient.ts
CHANGED
|
@@ -357,7 +357,7 @@ export class QueryImpl<R> {
|
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
// somehow mrt.runtimeEffect doesnt work sync, but this workaround works fine? not sure why though as the layers are generally only sync
|
|
360
|
-
const managedRuntimeRt = <A, E>(mrt: ManagedRuntime.ManagedRuntime<A, E>) => mrt.runSync(Effect.
|
|
360
|
+
const managedRuntimeRt = <A, E>(mrt: ManagedRuntime.ManagedRuntime<A, E>) => mrt.runSync(Effect.context<A>())
|
|
361
361
|
|
|
362
362
|
type Base = I18n | Toast
|
|
363
363
|
type Mix = ApiClientFactory | Commander | Base
|
package/src/makeUseCommand.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface CommanderResolved<RT, RTHooks>
|
|
|
12
12
|
export const makeUseCommand = Effect.fnUntraced(
|
|
13
13
|
function*<R = never, RTHooks = never>(rtHooks: Layer.Layer<RTHooks, never, R>) {
|
|
14
14
|
const cmndr = yield* Commander
|
|
15
|
-
const runtime = yield* Effect.
|
|
15
|
+
const runtime = yield* Effect.context<R>()
|
|
16
16
|
|
|
17
17
|
const comm = cmndr(runtime, rtHooks)
|
|
18
18
|
|
package/src/runtime.ts
CHANGED
|
@@ -9,7 +9,7 @@ export function makeAppRuntime<A, E>(layer: Layer.Layer<A, E>) {
|
|
|
9
9
|
Layer.provide(Logger.layer([Logger.consolePretty()]))
|
|
10
10
|
) as Layer.Layer<A, never>
|
|
11
11
|
const mrt = ManagedRuntime.make(l)
|
|
12
|
-
yield* mrt.
|
|
12
|
+
yield* mrt.contextEffect
|
|
13
13
|
return Object.assign(mrt, {
|
|
14
14
|
[Symbol.dispose]() {
|
|
15
15
|
return Effect.runSync(mrt.disposeEffect)
|