Skip to content

Commit

Permalink
Replace absolute imports with relative ones (#4182)
Browse files Browse the repository at this point in the history
mikearnaldi authored Dec 21, 2024
1 parent a475cc2 commit b3c160d
Showing 16 changed files with 26 additions and 23 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-tips-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": patch
---

Replace absolute imports with relative ones
4 changes: 2 additions & 2 deletions packages/effect/src/FiberHandle.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/**
* @since 2.0.0
*/
import * as Effect from "effect/Effect"
import type * as Scope from "effect/Scope"
import type { NoSuchElementException } from "./Cause.js"
import * as Cause from "./Cause.js"
import * as Deferred from "./Deferred.js"
import * as Effect from "./Effect.js"
import * as Exit from "./Exit.js"
import * as Fiber from "./Fiber.js"
import * as FiberId from "./FiberId.js"
@@ -16,6 +15,7 @@ import * as Option from "./Option.js"
import { type Pipeable, pipeArguments } from "./Pipeable.js"
import * as Predicate from "./Predicate.js"
import * as Runtime from "./Runtime.js"
import type * as Scope from "./Scope.js"

/**
* @since 2.0.0
4 changes: 2 additions & 2 deletions packages/effect/src/FiberMap.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/**
* @since 2.0.0
*/
import * as Effect from "effect/Effect"
import type * as Scope from "effect/Scope"
import type { NoSuchElementException } from "./Cause.js"
import * as Cause from "./Cause.js"
import * as Deferred from "./Deferred.js"
import * as Effect from "./Effect.js"
import * as Exit from "./Exit.js"
import * as Fiber from "./Fiber.js"
import * as FiberId from "./FiberId.js"
@@ -18,6 +17,7 @@ import * as Option from "./Option.js"
import { type Pipeable, pipeArguments } from "./Pipeable.js"
import * as Predicate from "./Predicate.js"
import * as Runtime from "./Runtime.js"
import type * as Scope from "./Scope.js"

/**
* @since 2.0.0
6 changes: 3 additions & 3 deletions packages/effect/src/FiberSet.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/**
* @since 2.0.0
*/
import * as Effect from "effect/Effect"
import * as FiberId from "effect/FiberId"
import type * as Scope from "effect/Scope"
import * as Cause from "./Cause.js"
import * as Deferred from "./Deferred.js"
import * as Effect from "./Effect.js"
import * as Exit from "./Exit.js"
import * as Fiber from "./Fiber.js"
import * as FiberId from "./FiberId.js"
import { constFalse, dual } from "./Function.js"
import * as HashSet from "./HashSet.js"
import * as Inspectable from "./Inspectable.js"
import * as Iterable from "./Iterable.js"
import { type Pipeable, pipeArguments } from "./Pipeable.js"
import * as Predicate from "./Predicate.js"
import * as Runtime from "./Runtime.js"
import type * as Scope from "./Scope.js"

/**
* @since 2.0.0
2 changes: 1 addition & 1 deletion packages/effect/src/Micro.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* @since 3.4.0
* @experimental
*/
import * as Arr from "effect/Array"
import * as Arr from "./Array.js"
import type { Channel } from "./Channel.js"
import * as Context from "./Context.js"
import type { Effect, EffectUnify, EffectUnifyIgnore } from "./Effect.js"
4 changes: 2 additions & 2 deletions packages/effect/src/internal/core-effect.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import type { Exit } from "effect/Exit"
import { internalCall } from "effect/Utils"
import * as Arr from "../Array.js"
import type * as Cause from "../Cause.js"
import * as Chunk from "../Chunk.js"
import * as Clock from "../Clock.js"
import * as Context from "../Context.js"
import * as Duration from "../Duration.js"
import type * as Effect from "../Effect.js"
import type { Exit } from "../Exit.js"
import type * as Fiber from "../Fiber.js"
import type * as FiberId from "../FiberId.js"
import type * as FiberRef from "../FiberRef.js"
@@ -29,6 +28,7 @@ import type * as runtimeFlagsPatch from "../RuntimeFlagsPatch.js"
import * as Tracer from "../Tracer.js"
import type { NoInfer } from "../Types.js"
import type { Unify } from "../Unify.js"
import { internalCall } from "../Utils.js"
import * as internalCause from "./cause.js"
import { clockTag } from "./clock.js"
import * as core from "./core.js"
3 changes: 1 addition & 2 deletions packages/effect/src/internal/core.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { internalCall } from "effect/Utils"
import * as Arr from "../Array.js"
import type * as Cause from "../Cause.js"
import * as Chunk from "../Chunk.js"
@@ -38,7 +37,7 @@ import * as RuntimeFlagsPatch from "../RuntimeFlagsPatch.js"
import type * as Scope from "../Scope.js"
import type * as Tracer from "../Tracer.js"
import type { NoInfer, NotFunction } from "../Types.js"
import { YieldWrap } from "../Utils.js"
import { internalCall, YieldWrap } from "../Utils.js"
import * as _blockedRequests from "./blockedRequests.js"
import * as internalCause from "./cause.js"
import * as deferred from "./deferred.js"
2 changes: 1 addition & 1 deletion packages/effect/src/internal/doNotation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { NoInfer } from "effect/Types"
import { dual } from "../Function.js"
import type { Kind, TypeLambda } from "../HKT.js"
import type { NoInfer } from "../Types.js"

type Map<F extends TypeLambda> = {
<A, B>(f: (a: A) => B): <R, O, E>(self: Kind<F, R, O, E, A>) => Kind<F, R, O, E, B>
2 changes: 1 addition & 1 deletion packages/effect/src/internal/fiberRuntime.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { internalCall, yieldWrapGet } from "effect/Utils"
import * as RA from "../Array.js"
import * as Boolean from "../Boolean.js"
import type * as Cause from "../Cause.js"
@@ -45,6 +44,7 @@ import type * as Scope from "../Scope.js"
import type * as Supervisor from "../Supervisor.js"
import type * as Tracer from "../Tracer.js"
import type { Concurrency, NoInfer } from "../Types.js"
import { internalCall, yieldWrapGet } from "../Utils.js"
import * as _RequestBlock from "./blockedRequests.js"
import * as internalCause from "./cause.js"
import * as clock from "./clock.js"
2 changes: 1 addition & 1 deletion packages/effect/src/internal/mailbox.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { Scope } from "effect/Scope"
import * as Arr from "../Array.js"
import type { Cause } from "../Cause.js"
import { NoSuchElementException } from "../Cause.js"
@@ -15,6 +14,7 @@ import * as Option from "../Option.js"
import { pipeArguments } from "../Pipeable.js"
import { hasProperty } from "../Predicate.js"
import type { Scheduler } from "../Scheduler.js"
import type { Scope } from "../Scope.js"
import type { Stream } from "../Stream.js"
import * as channel from "./channel.js"
import * as channelExecutor from "./channel/channelExecutor.js"
2 changes: 1 addition & 1 deletion packages/effect/src/internal/pool.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Cause } from "effect/Cause"
import type { Cause } from "../Cause.js"
import * as Context from "../Context.js"
import * as Duration from "../Duration.js"
import type { Effect, Semaphore } from "../Effect.js"
2 changes: 1 addition & 1 deletion packages/effect/src/internal/redacted.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { NodeInspectSymbol } from "effect/Inspectable"
import * as Equal from "../Equal.js"
import { pipe } from "../Function.js"
import { globalValue } from "../GlobalValue.js"
import * as Hash from "../Hash.js"
import { NodeInspectSymbol } from "../Inspectable.js"
import { pipeArguments } from "../Pipeable.js"
import { hasProperty } from "../Predicate.js"
import type * as Redacted from "../Redacted.js"
2 changes: 1 addition & 1 deletion packages/effect/src/internal/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { equals } from "effect/Equal"
import type * as ReadonlyArray from "../Array.js"
import type * as Cause from "../Cause.js"
import * as Context from "../Context.js"
import type * as Effect from "../Effect.js"
import { equals } from "../Equal.js"
import * as Exit from "../Exit.js"
import * as Fiber from "../Fiber.js"
import * as FiberId from "../FiberId.js"
2 changes: 1 addition & 1 deletion packages/effect/src/internal/schema/errors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as array_ from "effect/Array"
import * as array_ from "../../Array.js"
import type * as AST from "../../SchemaAST.js"
import * as util_ from "./util.js"

4 changes: 2 additions & 2 deletions packages/effect/src/internal/schema/util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as array_ from "effect/Array"
import * as Predicate from "effect/Predicate"
import * as array_ from "../../Array.js"
import type * as ParseResult from "../../ParseResult.js"
import * as Predicate from "../../Predicate.js"
import type * as AST from "../../SchemaAST.js"

/** @internal */
3 changes: 1 addition & 2 deletions packages/effect/src/internal/stm/core.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { internalCall } from "effect/Utils"
import * as Cause from "../../Cause.js"
import * as Context from "../../Context.js"
import * as Effect from "../../Effect.js"
@@ -15,7 +14,7 @@ import { pipeArguments } from "../../Pipeable.js"
import { hasProperty } from "../../Predicate.js"
import type * as Scheduler from "../../Scheduler.js"
import type * as STM from "../../STM.js"
import { YieldWrap } from "../../Utils.js"
import { internalCall, YieldWrap } from "../../Utils.js"
import { ChannelTypeId } from "../core-stream.js"
import { withFiberRuntime } from "../core.js"
import { effectVariance, StreamTypeId } from "../effectable.js"

0 comments on commit b3c160d

Please sign in to comment.