Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Fix runtimeFlags naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mikearnaldi committed Sep 4, 2023
1 parent d8d1e3f commit def95c3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-mirrors-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/io": minor
---

Fix runtimeFlags naming
2 changes: 1 addition & 1 deletion docs/modules/Runtime.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Added in v1.0.0
```ts
export declare const make: <R>(options: {
readonly context: Context.Context<R>
readonly flags: RuntimeFlags.RuntimeFlags
readonly runtimeFlags: RuntimeFlags.RuntimeFlags
readonly fiberRefs: FiberRefs.FiberRefs
}) => Runtime<R>
```
Expand Down
2 changes: 1 addition & 1 deletion src/Runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const defaultRuntimeFlags: RuntimeFlags.RuntimeFlags = internal.defaultRu
export const make: <R>(
options: {
readonly context: Context.Context<R>
readonly flags: RuntimeFlags.RuntimeFlags
readonly runtimeFlags: RuntimeFlags.RuntimeFlags
readonly fiberRefs: FiberRefs.FiberRefs
}
) => Runtime<R> = internal.make
Expand Down
6 changes: 3 additions & 3 deletions src/internal/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ export class RuntimeImpl<R> implements Runtime.Runtime<R> {
export const make = <R>(
options: {
readonly context: Context.Context<R>
readonly flags: RuntimeFlags.RuntimeFlags
readonly runtimeFlags: RuntimeFlags.RuntimeFlags
readonly fiberRefs: FiberRefs.FiberRefs
}
): Runtime.Runtime<R> => new RuntimeImpl(options.context, options.flags, options.fiberRefs)
): Runtime.Runtime<R> => new RuntimeImpl(options.context, options.runtimeFlags, options.fiberRefs)

/** @internal */
export const runtime = <R>(): Effect.Effect<R, never, Runtime.Runtime<R>> =>
Expand All @@ -292,7 +292,7 @@ export const defaultRuntimeFlags: RuntimeFlags.RuntimeFlags = runtimeFlags.make(
/** @internal */
export const defaultRuntime = make({
context: Context.empty(),
flags: defaultRuntimeFlags,
runtimeFlags: defaultRuntimeFlags,
fiberRefs: FiberRefs.unsafeMake(new Map())
})

Expand Down

0 comments on commit def95c3

Please sign in to comment.