From ad8657c0b1412d93b7e955d2ae653de3eb3662ff Mon Sep 17 00:00:00 2001 From: Sebastian Lorenz Date: Thu, 17 Jul 2025 11:43:41 +0200 Subject: [PATCH] use `.ts` extension for relative imports (#316) --- deno.json | 50 +++-- package.json | 2 +- packages/effect/docgen.json | 2 + packages/effect/src/Array.ts | 32 ++-- packages/effect/src/BigDecimal.ts | 20 +- packages/effect/src/BigInt.ts | 12 +- packages/effect/src/Boolean.ts | 10 +- packages/effect/src/Brand.ts | 12 +- packages/effect/src/Cause.ts | 22 +-- packages/effect/src/Channel.ts | 44 ++--- packages/effect/src/Chunk.ts | 34 ++-- packages/effect/src/Clock.ts | 8 +- packages/effect/src/Console.ts | 12 +- packages/effect/src/Cron.ts | 30 +-- packages/effect/src/Data.ts | 14 +- packages/effect/src/DateTime.ts | 28 +-- packages/effect/src/Deferred.ts | 20 +- packages/effect/src/Duration.ts | 22 +-- packages/effect/src/Effect.ts | 72 +++---- packages/effect/src/Encoding.ts | 10 +- packages/effect/src/Equal.ts | 6 +- packages/effect/src/Equivalence.ts | 4 +- packages/effect/src/Exit.ts | 14 +- packages/effect/src/Fiber.ts | 22 +-- packages/effect/src/FiberHandle.ts | 30 +-- packages/effect/src/FiberMap.ts | 32 ++-- packages/effect/src/FiberSet.ts | 26 +-- packages/effect/src/Filter.ts | 14 +- packages/effect/src/Function.ts | 4 +- packages/effect/src/Graph.ts | 20 +- packages/effect/src/HKT.ts | 2 +- packages/effect/src/Hash.ts | 4 +- packages/effect/src/HashMap.ts | 12 +- packages/effect/src/HashSet.ts | 14 +- packages/effect/src/Inspectable.ts | 6 +- packages/effect/src/Iterable.ts | 22 +-- packages/effect/src/Layer.ts | 26 +-- packages/effect/src/LayerMap.ts | 16 +- packages/effect/src/LogLevel.ts | 4 +- packages/effect/src/Logger.ts | 38 ++-- packages/effect/src/ManagedRuntime.ts | 16 +- packages/effect/src/Match.ts | 14 +- packages/effect/src/Metric.ts | 32 ++-- packages/effect/src/MutableHashMap.ts | 16 +- packages/effect/src/MutableHashSet.ts | 10 +- packages/effect/src/MutableList.ts | 2 +- packages/effect/src/MutableRef.ts | 10 +- packages/effect/src/Number.ts | 14 +- packages/effect/src/Option.ts | 38 ++-- packages/effect/src/Order.ts | 4 +- packages/effect/src/Ordering.ts | 4 +- packages/effect/src/Predicate.ts | 6 +- packages/effect/src/PubSub.ts | 26 +-- packages/effect/src/Pull.ts | 14 +- packages/effect/src/Queue.ts | 34 ++-- packages/effect/src/RcMap.ts | 24 +-- packages/effect/src/RcRef.ts | 10 +- packages/effect/src/Record.ts | 16 +- packages/effect/src/Redacted.ts | 16 +- packages/effect/src/Ref.ts | 14 +- packages/effect/src/References.ts | 16 +- packages/effect/src/RegExp.ts | 2 +- packages/effect/src/Result.ts | 32 ++-- packages/effect/src/Schedule.ts | 26 +-- packages/effect/src/Scheduler.ts | 4 +- packages/effect/src/Scope.ts | 8 +- packages/effect/src/ServiceMap.ts | 20 +- packages/effect/src/Sink.ts | 20 +- packages/effect/src/Stream.ts | 44 ++--- packages/effect/src/String.ts | 20 +- packages/effect/src/Struct.ts | 6 +- packages/effect/src/Symbol.ts | 4 +- packages/effect/src/TestClock.ts | 16 +- packages/effect/src/TestConsole.ts | 10 +- packages/effect/src/Tracer.ts | 10 +- packages/effect/src/Trie.ts | 12 +- packages/effect/src/Tuple.ts | 12 +- packages/effect/src/TxChunk.ts | 18 +- packages/effect/src/TxHashMap.ts | 18 +- packages/effect/src/TxHashSet.ts | 20 +- packages/effect/src/TxQueue.ts | 22 +-- packages/effect/src/TxRef.ts | 6 +- packages/effect/src/TxSemaphore.ts | 14 +- packages/effect/src/Unify.ts | 2 +- packages/effect/src/Utils.ts | 10 +- packages/effect/src/batching/Request.ts | 22 +-- .../effect/src/batching/RequestResolver.ts | 30 +-- packages/effect/src/batching/index.ts | 4 +- .../src/batching/{.index.ts => index.ts.tpl} | 0 packages/effect/src/caching/Cache.ts | 30 +-- packages/effect/src/caching/index.ts | 2 +- .../src/caching/{.index.ts => index.ts.tpl} | 0 packages/effect/src/config/Config.ts | 40 ++-- packages/effect/src/config/ConfigError.ts | 8 +- packages/effect/src/config/ConfigProvider.ts | 32 ++-- packages/effect/src/config/index.ts | 6 +- .../src/config/{.index.ts => index.ts.tpl} | 0 packages/effect/src/index.ts | 178 +++++++++--------- .../effect/src/{.index.ts => index.ts.tpl} | 2 +- packages/effect/src/internal/array.ts | 2 +- packages/effect/src/internal/concurrency.ts | 8 +- packages/effect/src/internal/core.ts | 30 +-- packages/effect/src/internal/data.ts | 8 +- packages/effect/src/internal/dateTime.ts | 36 ++-- packages/effect/src/internal/doNotation.ts | 6 +- packages/effect/src/internal/effect.ts | 72 +++---- .../effect/src/internal/encoding/base64.ts | 6 +- .../effect/src/internal/encoding/base64Url.ts | 8 +- .../effect/src/internal/encoding/common.ts | 6 +- packages/effect/src/internal/encoding/hex.ts | 6 +- packages/effect/src/internal/hashMap.ts | 20 +- packages/effect/src/internal/hashSet.ts | 16 +- packages/effect/src/internal/layer.ts | 10 +- packages/effect/src/internal/matcher.ts | 14 +- packages/effect/src/internal/option.ts | 12 +- packages/effect/src/internal/rcRef.ts | 16 +- packages/effect/src/internal/redacted.ts | 2 +- packages/effect/src/internal/request.ts | 18 +- packages/effect/src/internal/result.ts | 18 +- packages/effect/src/internal/schedule.ts | 16 +- packages/effect/src/internal/schema/util.ts | 8 +- packages/effect/src/internal/tracer.ts | 2 +- .../src/internal/tracing/otlpExporter.ts | 22 +-- packages/effect/src/internal/trie.ts | 20 +- packages/effect/src/platform/FileSystem.ts | 28 +-- packages/effect/src/platform/Path.ts | 14 +- packages/effect/src/platform/PlatformError.ts | 2 +- packages/effect/src/platform/index.ts | 6 +- .../src/platform/{.index.ts => index.ts.tpl} | 0 packages/effect/src/schema/AST.ts | 32 ++-- packages/effect/src/schema/Annotations.ts | 14 +- packages/effect/src/schema/Check.ts | 22 +-- packages/effect/src/schema/Formatter.ts | 22 +-- packages/effect/src/schema/Getter.ts | 18 +- packages/effect/src/schema/Issue.ts | 10 +- packages/effect/src/schema/MetaAST.ts | 8 +- packages/effect/src/schema/Schema.ts | 56 +++--- packages/effect/src/schema/Serializer.ts | 18 +- packages/effect/src/schema/ToArbitrary.ts | 16 +- packages/effect/src/schema/ToEquivalence.ts | 14 +- packages/effect/src/schema/ToJsonSchema.ts | 14 +- packages/effect/src/schema/ToParser.ts | 18 +- packages/effect/src/schema/ToPretty.ts | 10 +- packages/effect/src/schema/Transformation.ts | 10 +- packages/effect/src/schema/Util.ts | 8 +- packages/effect/src/schema/index.ts | 32 ++-- .../src/schema/{.index.ts => index.ts.tpl} | 0 packages/effect/src/unstable/http/Cookies.ts | 24 +-- packages/effect/src/unstable/http/Etag.ts | 10 +- .../src/unstable/http/FetchHttpClient.ts | 16 +- packages/effect/src/unstable/http/Headers.ts | 28 +-- packages/effect/src/unstable/http/HttpBody.ts | 24 +-- .../effect/src/unstable/http/HttpClient.ts | 56 +++--- .../src/unstable/http/HttpClientError.ts | 8 +- .../src/unstable/http/HttpClientRequest.ts | 34 ++-- .../src/unstable/http/HttpClientResponse.ts | 32 ++-- .../effect/src/unstable/http/HttpEffect.ts | 34 ++-- .../src/unstable/http/HttpIncomingMessage.ts | 24 +-- .../src/unstable/http/HttpMiddleware.ts | 28 +-- .../effect/src/unstable/http/HttpPlatform.ts | 22 +-- .../effect/src/unstable/http/HttpRouter.ts | 40 ++-- .../effect/src/unstable/http/HttpServer.ts | 28 +-- .../src/unstable/http/HttpServerError.ts | 20 +- .../src/unstable/http/HttpServerRequest.ts | 44 ++--- .../unstable/http/HttpServerRespondable.ts | 12 +- .../src/unstable/http/HttpServerResponse.ts | 38 ++-- .../src/unstable/http/HttpTraceContext.ts | 6 +- .../effect/src/unstable/http/Multipart.ts | 40 ++-- packages/effect/src/unstable/http/Template.ts | 8 +- .../effect/src/unstable/http/UrlParams.ts | 42 ++--- packages/effect/src/unstable/http/index.ts | 52 ++--- .../unstable/http/{.index.ts => index.ts.tpl} | 0 packages/effect/src/unstable/socket/Socket.ts | 32 ++-- .../src/unstable/socket/SocketServer.ts | 8 +- packages/effect/src/unstable/socket/index.ts | 4 +- .../socket/{.index.ts => index.ts.tpl} | 0 packages/effect/src/unstable/tracing/Otlp.ts | 16 +- .../effect/src/unstable/tracing/OtlpLogger.ts | 28 +-- .../src/unstable/tracing/OtlpMetrics.ts | 24 +-- .../src/unstable/tracing/OtlpResource.ts | 6 +- .../effect/src/unstable/tracing/OtlpTracer.ts | 32 ++-- packages/effect/src/unstable/tracing/index.ts | 10 +- .../tracing/{.index.ts => index.ts.tpl} | 0 packages/effect/test/EffectEager.test.ts | 8 +- packages/effect/test/Record.test.ts | 2 +- packages/effect/test/Result.test.ts | 2 +- packages/effect/test/Struct.test.ts | 4 +- packages/effect/test/Tuple.test.ts | 4 +- packages/effect/test/schema/AST.test.ts | 2 +- packages/effect/test/schema/Formatter.test.ts | 2 +- packages/effect/test/schema/Issue.test.ts | 2 +- packages/effect/test/schema/Schema.test.ts | 4 +- .../effect/test/schema/Serializer.test.ts | 4 +- .../effect/test/schema/ToArbitrary.test.ts | 4 +- .../effect/test/schema/ToEquivalence.test.ts | 2 +- .../effect/test/schema/ToJsonSchema.test.ts | 2 +- packages/effect/test/schema/ToPretty.test.ts | 2 +- .../test/schema/standardSchemaV1.test.ts | 2 +- packages/effect/test/utils/schema.ts | 2 +- packages/effect/vitest.config.ts | 2 +- packages/platform-bun/docgen.json | 13 +- packages/platform-bun/src/BunHttpPlatform.ts | 2 +- packages/platform-bun/src/BunHttpServer.ts | 8 +- packages/platform-bun/src/BunMultipart.ts | 2 +- packages/platform-bun/src/BunServices.ts | 4 +- packages/platform-bun/src/index.ts | 26 +-- .../src/{.index.ts => index.ts.tpl} | 0 packages/platform-node-shared/docgen.json | 10 +- .../src/NodeFileSystem.ts | 2 +- .../src/NodeSocketServer.ts | 4 +- .../platform-node-shared/src/NodeStream.ts | 2 +- .../platform-node-shared/vitest.config.ts | 2 +- packages/platform-node/docgen.json | 10 +- packages/platform-node/src/NodeHttpClient.ts | 8 +- .../src/NodeHttpIncomingMessage.ts | 2 +- .../platform-node/src/NodeHttpPlatform.ts | 4 +- packages/platform-node/src/NodeHttpServer.ts | 10 +- packages/platform-node/src/NodeMultipart.ts | 2 +- packages/platform-node/src/NodeServices.ts | 4 +- packages/platform-node/src/index.ts | 32 ++-- .../src/{.index.ts => index.ts.tpl} | 0 packages/platform-node/vitest.config.ts | 2 +- packages/vitest/docgen.json | 19 +- packages/vitest/src/index.ts | 2 +- packages/vitest/src/internal/internal.ts | 2 +- packages/vitest/vitest.config.ts | 2 +- pnpm-lock.yaml | 10 +- tsconfig.base.json | 9 +- tstyche.config.json | 4 +- 229 files changed, 1820 insertions(+), 1829 deletions(-) rename packages/effect/src/batching/{.index.ts => index.ts.tpl} (100%) rename packages/effect/src/caching/{.index.ts => index.ts.tpl} (100%) rename packages/effect/src/config/{.index.ts => index.ts.tpl} (100%) rename packages/effect/src/{.index.ts => index.ts.tpl} (92%) rename packages/effect/src/platform/{.index.ts => index.ts.tpl} (100%) rename packages/effect/src/schema/{.index.ts => index.ts.tpl} (100%) rename packages/effect/src/unstable/http/{.index.ts => index.ts.tpl} (100%) rename packages/effect/src/unstable/socket/{.index.ts => index.ts.tpl} (100%) rename packages/effect/src/unstable/tracing/{.index.ts => index.ts.tpl} (100%) rename packages/platform-bun/src/{.index.ts => index.ts.tpl} (100%) rename packages/platform-node/src/{.index.ts => index.ts.tpl} (100%) diff --git a/deno.json b/deno.json index 6617c6e1bb..ef08330540 100644 --- a/deno.json +++ b/deno.json @@ -1,30 +1,24 @@ { - "nodeModulesDir": "manual", - "unstable": [ - "sloppy-imports", - "bare-node-builtins", - "node-globals" - ], - "workspace": [ - "./packages/*" - ], - "compilerOptions": { - "noImplicitOverride": false, - "strict": true - }, - "exclude": [ - "**/node_modules/", - "**/.tsbuildinfo/", - "**/build/", - "**/dist/", - "**/bundle/", - "scratchpad/", - "scripts/", - "packages/effect/dtslint/**/*.ts", - "packages/platform-bun/", - "packages/platform-node/", - "packages/platform-node-shared/", - "test-schemapart.mjs", - "vitest.*.ts" - ] + "nodeModulesDir": "manual", + "unstable": ["sloppy-imports", "bare-node-builtins", "node-globals"], + "workspace": ["./packages/*"], + "compilerOptions": { + "noImplicitOverride": false, + "strict": true + }, + "exclude": [ + "**/node_modules/", + "**/.tsbuildinfo/", + "**/build/", + "**/dist/", + "**/bundle/", + "scratchpad/", + "scripts/", + "packages/effect/dtslint/**/*.ts", + "packages/platform-bun/", + "packages/platform-node/", + "packages/platform-node-shared/", + "test-schemapart.mjs", + "vitest.*.ts" + ] } diff --git a/package.json b/package.json index e444cf98be..d5b44cc8ed 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.29.5", "@edge-runtime/vm": "^5.0.0", - "@effect/build-utils": "^0.8.8", + "@effect/build-utils": "^0.8.9", "@effect/docgen": "https://pkg.pr.new/Effect-TS/docgen/@effect/docgen@49e99a2", "@effect/eslint-plugin": "^0.3.2", "@effect/language-service": "^0.24.0", diff --git a/packages/effect/docgen.json b/packages/effect/docgen.json index 4caa412637..170df30308 100644 --- a/packages/effect/docgen.json +++ b/packages/effect/docgen.json @@ -10,6 +10,8 @@ "module": "ES2022", "target": "ES2022", "lib": ["ESNext", "DOM", "DOM.Iterable"], + "rewriteRelativeImportExtensions": true, + "allowImportingTsExtensions": true, "paths": { "effect": ["../../../effect/src/index.js"], "effect/*": ["../../../effect/src/*.js"], diff --git a/packages/effect/src/Array.ts b/packages/effect/src/Array.ts index f99d44e644..776d11aa7d 100644 --- a/packages/effect/src/Array.ts +++ b/packages/effect/src/Array.ts @@ -3,22 +3,22 @@ * * @since 2.0.0 */ -import * as Equal from "./Equal.js" -import * as Equivalence from "./Equivalence.js" -import * as Filter from "./Filter.js" -import type { LazyArg } from "./Function.js" -import { dual, identity } from "./Function.js" -import type { TypeLambda } from "./HKT.js" -import * as internalArray from "./internal/array.js" -import * as internalDoNotation from "./internal/doNotation.js" -import * as moduleIterable from "./Iterable.js" -import * as Option from "./Option.js" -import * as Order from "./Order.js" -import * as Predicate from "./Predicate.js" -import * as Record from "./Record.js" -import * as Result from "./Result.js" -import * as Tuple from "./Tuple.js" -import type { NoInfer } from "./Types.js" +import * as Equal from "./Equal.ts" +import * as Equivalence from "./Equivalence.ts" +import * as Filter from "./Filter.ts" +import type { LazyArg } from "./Function.ts" +import { dual, identity } from "./Function.ts" +import type { TypeLambda } from "./HKT.ts" +import * as internalArray from "./internal/array.ts" +import * as internalDoNotation from "./internal/doNotation.ts" +import * as moduleIterable from "./Iterable.ts" +import * as Option from "./Option.ts" +import * as Order from "./Order.ts" +import * as Predicate from "./Predicate.ts" +import * as Record from "./Record.ts" +import * as Result from "./Result.ts" +import * as Tuple from "./Tuple.ts" +import type { NoInfer } from "./Types.ts" /** * Reference to the global Array constructor. diff --git a/packages/effect/src/BigDecimal.ts b/packages/effect/src/BigDecimal.ts index 7477211f2f..e9257b4c68 100644 --- a/packages/effect/src/BigDecimal.ts +++ b/packages/effect/src/BigDecimal.ts @@ -14,16 +14,16 @@ * @since 2.0.0 */ -import * as Equal from "./Equal.js" -import * as equivalence from "./Equivalence.js" -import { dual, pipe } from "./Function.js" -import * as Hash from "./Hash.js" -import { type Inspectable, NodeInspectSymbol } from "./Inspectable.js" -import * as Option from "./Option.js" -import * as order from "./Order.js" -import type { Ordering } from "./Ordering.js" -import { type Pipeable, pipeArguments } from "./Pipeable.js" -import { hasProperty } from "./Predicate.js" +import * as Equal from "./Equal.ts" +import * as equivalence from "./Equivalence.ts" +import { dual, pipe } from "./Function.ts" +import * as Hash from "./Hash.ts" +import { type Inspectable, NodeInspectSymbol } from "./Inspectable.ts" +import * as Option from "./Option.ts" +import * as order from "./Order.ts" +import type { Ordering } from "./Ordering.ts" +import { type Pipeable, pipeArguments } from "./Pipeable.ts" +import { hasProperty } from "./Predicate.ts" const DEFAULT_PRECISION = 100 const FINITE_INT_REGEX = /^[+-]?\d+$/ diff --git a/packages/effect/src/BigInt.ts b/packages/effect/src/BigInt.ts index acf1fcee18..1e67d02310 100644 --- a/packages/effect/src/BigInt.ts +++ b/packages/effect/src/BigInt.ts @@ -6,12 +6,12 @@ * @since 2.0.0 */ -import * as equivalence from "./Equivalence.js" -import { dual } from "./Function.js" -import * as Option from "./Option.js" -import * as order from "./Order.js" -import type { Ordering } from "./Ordering.js" -import * as predicate from "./Predicate.js" +import * as equivalence from "./Equivalence.ts" +import { dual } from "./Function.ts" +import * as Option from "./Option.ts" +import * as order from "./Order.ts" +import type { Ordering } from "./Ordering.ts" +import * as predicate from "./Predicate.ts" /** * Reference to the global BigInt constructor. diff --git a/packages/effect/src/Boolean.ts b/packages/effect/src/Boolean.ts index b934d0bcd2..013aff79b3 100644 --- a/packages/effect/src/Boolean.ts +++ b/packages/effect/src/Boolean.ts @@ -5,11 +5,11 @@ * * @since 2.0.0 */ -import * as equivalence from "./Equivalence.js" -import type { LazyArg } from "./Function.js" -import { dual } from "./Function.js" -import * as order from "./Order.js" -import * as predicate from "./Predicate.js" +import * as equivalence from "./Equivalence.ts" +import type { LazyArg } from "./Function.ts" +import { dual } from "./Function.ts" +import * as order from "./Order.ts" +import * as predicate from "./Predicate.ts" /** * Reference to the global Boolean constructor. diff --git a/packages/effect/src/Brand.ts b/packages/effect/src/Brand.ts index 111f96ab80..1793e74559 100644 --- a/packages/effect/src/Brand.ts +++ b/packages/effect/src/Brand.ts @@ -16,12 +16,12 @@ * * @since 2.0.0 */ -import * as Arr from "./Array.js" -import { identity } from "./Function.js" -import * as Option from "./Option.js" -import type { Predicate } from "./Predicate.js" -import * as Result from "./Result.js" -import type * as Types from "./Types.js" +import * as Arr from "./Array.ts" +import { identity } from "./Function.ts" +import * as Option from "./Option.ts" +import type { Predicate } from "./Predicate.ts" +import * as Result from "./Result.ts" +import type * as Types from "./Types.ts" /** * @example diff --git a/packages/effect/src/Cause.ts b/packages/effect/src/Cause.ts index 6ab73afc8e..670f799c3d 100644 --- a/packages/effect/src/Cause.ts +++ b/packages/effect/src/Cause.ts @@ -39,17 +39,17 @@ * * @since 2.0.0 */ -import type * as Effect from "./Effect.js" -import type { Equal } from "./Equal.js" -import type * as Filter from "./Filter.js" -import type { Inspectable } from "./Inspectable.js" -import * as core from "./internal/core.js" -import * as effect from "./internal/effect.js" -import type { Option } from "./Option.js" -import type { Pipeable } from "./Pipeable.js" -import * as ServiceMap from "./ServiceMap.js" -import type { Span } from "./Tracer.js" -import type { NoInfer } from "./Types.js" +import type * as Effect from "./Effect.ts" +import type { Equal } from "./Equal.ts" +import type * as Filter from "./Filter.ts" +import type { Inspectable } from "./Inspectable.ts" +import * as core from "./internal/core.ts" +import * as effect from "./internal/effect.ts" +import type { Option } from "./Option.ts" +import type { Pipeable } from "./Pipeable.ts" +import * as ServiceMap from "./ServiceMap.ts" +import type { Span } from "./Tracer.ts" +import type { NoInfer } from "./Types.ts" /** * @example diff --git a/packages/effect/src/Channel.ts b/packages/effect/src/Channel.ts index 7da82da964..274da7ba21 100644 --- a/packages/effect/src/Channel.ts +++ b/packages/effect/src/Channel.ts @@ -56,28 +56,28 @@ * * @since 2.0.0 */ -import type * as Arr from "./Array.js" -import * as Cause from "./Cause.js" -import * as Chunk from "./Chunk.js" -import * as Effect from "./Effect.js" -import * as Exit from "./Exit.js" -import * as Fiber from "./Fiber.js" -import * as Filter from "./Filter.js" -import type { LazyArg } from "./Function.js" -import { constTrue, dual, identity } from "./Function.js" -import * as Iterable from "./Iterable.js" -import * as Option from "./Option.js" -import type { Pipeable } from "./Pipeable.js" -import { pipeArguments } from "./Pipeable.js" -import { hasProperty } from "./Predicate.js" -import * as PubSub from "./PubSub.js" -import * as Pull from "./Pull.js" -import * as Queue from "./Queue.js" -import * as Schedule from "./Schedule.js" -import * as Scope from "./Scope.js" -import * as ServiceMap from "./ServiceMap.js" -import type * as Types from "./Types.js" -import type * as Unify from "./Unify.js" +import type * as Arr from "./Array.ts" +import * as Cause from "./Cause.ts" +import * as Chunk from "./Chunk.ts" +import * as Effect from "./Effect.ts" +import * as Exit from "./Exit.ts" +import * as Fiber from "./Fiber.ts" +import * as Filter from "./Filter.ts" +import type { LazyArg } from "./Function.ts" +import { constTrue, dual, identity } from "./Function.ts" +import * as Iterable from "./Iterable.ts" +import * as Option from "./Option.ts" +import type { Pipeable } from "./Pipeable.ts" +import { pipeArguments } from "./Pipeable.ts" +import { hasProperty } from "./Predicate.ts" +import * as PubSub from "./PubSub.ts" +import * as Pull from "./Pull.ts" +import * as Queue from "./Queue.ts" +import * as Schedule from "./Schedule.ts" +import * as Scope from "./Scope.ts" +import * as ServiceMap from "./ServiceMap.ts" +import type * as Types from "./Types.ts" +import type * as Unify from "./Unify.ts" /** * @example diff --git a/packages/effect/src/Chunk.ts b/packages/effect/src/Chunk.ts index b1e23b5d1a..e8e4992064 100644 --- a/packages/effect/src/Chunk.ts +++ b/packages/effect/src/Chunk.ts @@ -68,23 +68,23 @@ * * @since 2.0.0 */ -import * as RA from "./Array.js" -import type { NonEmptyReadonlyArray } from "./Array.js" -import * as Equal from "./Equal.js" -import * as Equivalence from "./Equivalence.js" -import { dual, identity, pipe } from "./Function.js" -import * as Hash from "./Hash.js" -import type { TypeLambda } from "./HKT.js" -import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js" -import type { NonEmptyIterable } from "./NonEmptyIterable.js" -import type { Option } from "./Option.js" -import * as O from "./Option.js" -import * as Order from "./Order.js" -import type { Pipeable } from "./Pipeable.js" -import { pipeArguments } from "./Pipeable.js" -import { hasProperty, type Predicate, type Refinement } from "./Predicate.js" -import type { Result } from "./Result.js" -import type { Covariant, NoInfer } from "./Types.js" +import * as RA from "./Array.ts" +import type { NonEmptyReadonlyArray } from "./Array.ts" +import * as Equal from "./Equal.ts" +import * as Equivalence from "./Equivalence.ts" +import { dual, identity, pipe } from "./Function.ts" +import * as Hash from "./Hash.ts" +import type { TypeLambda } from "./HKT.ts" +import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.ts" +import type { NonEmptyIterable } from "./NonEmptyIterable.ts" +import type { Option } from "./Option.ts" +import * as O from "./Option.ts" +import * as Order from "./Order.ts" +import type { Pipeable } from "./Pipeable.ts" +import { pipeArguments } from "./Pipeable.ts" +import { hasProperty, type Predicate, type Refinement } from "./Predicate.ts" +import type { Result } from "./Result.ts" +import type { Covariant, NoInfer } from "./Types.ts" /** * @example diff --git a/packages/effect/src/Clock.ts b/packages/effect/src/Clock.ts index 251b21202e..1369d04a59 100644 --- a/packages/effect/src/Clock.ts +++ b/packages/effect/src/Clock.ts @@ -56,10 +56,10 @@ * * @since 2.0.0 */ -import type * as Duration from "./Duration.js" -import type { Effect } from "./Effect.js" -import * as effect from "./internal/effect.js" -import type * as ServiceMap from "./ServiceMap.js" +import type * as Duration from "./Duration.ts" +import type { Effect } from "./Effect.ts" +import * as effect from "./internal/effect.ts" +import type * as ServiceMap from "./ServiceMap.ts" /** * Represents a time-based clock which provides functionality related to time diff --git a/packages/effect/src/Console.ts b/packages/effect/src/Console.ts index c55ea2f85c..29add97b59 100644 --- a/packages/effect/src/Console.ts +++ b/packages/effect/src/Console.ts @@ -70,12 +70,12 @@ * * @since 2.0.0 */ -import type * as Effect from "./Effect.js" -import { dual } from "./Function.js" -import * as core from "./internal/core.js" -import * as effect from "./internal/effect.js" -import type { Scope } from "./Scope.js" -import type * as ServiceMap from "./ServiceMap.js" +import type * as Effect from "./Effect.ts" +import { dual } from "./Function.ts" +import * as core from "./internal/core.ts" +import * as effect from "./internal/effect.ts" +import type { Scope } from "./Scope.ts" +import type * as ServiceMap from "./ServiceMap.ts" /** * Represents a console interface for logging and debugging operations. diff --git a/packages/effect/src/Cron.ts b/packages/effect/src/Cron.ts index f197b177f2..11c9d2e53e 100644 --- a/packages/effect/src/Cron.ts +++ b/packages/effect/src/Cron.ts @@ -1,21 +1,21 @@ /** * @since 2.0.0 */ -import * as Arr from "./Array.js" -import type * as DateTime from "./DateTime.js" -import * as Equal from "./Equal.js" -import * as equivalence from "./Equivalence.js" -import { constVoid, dual, pipe } from "./Function.js" -import * as Hash from "./Hash.js" -import { format, type Inspectable, NodeInspectSymbol } from "./Inspectable.js" -import * as dateTime from "./internal/dateTime.js" -import * as N from "./Number.js" -import * as Option from "./Option.js" -import { type Pipeable, pipeArguments } from "./Pipeable.js" -import { hasProperty } from "./Predicate.js" -import * as Result from "./Result.js" -import * as String from "./String.js" -import type { Mutable } from "./Types.js" +import * as Arr from "./Array.ts" +import type * as DateTime from "./DateTime.ts" +import * as Equal from "./Equal.ts" +import * as equivalence from "./Equivalence.ts" +import { constVoid, dual, pipe } from "./Function.ts" +import * as Hash from "./Hash.ts" +import { format, type Inspectable, NodeInspectSymbol } from "./Inspectable.ts" +import * as dateTime from "./internal/dateTime.ts" +import * as N from "./Number.ts" +import * as Option from "./Option.ts" +import { type Pipeable, pipeArguments } from "./Pipeable.ts" +import { hasProperty } from "./Predicate.ts" +import * as Result from "./Result.ts" +import * as String from "./String.ts" +import type { Mutable } from "./Types.ts" /** * Unique identifier for the Cron type. diff --git a/packages/effect/src/Data.ts b/packages/effect/src/Data.ts index 948b2f8d55..6c5bbd344c 100644 --- a/packages/effect/src/Data.ts +++ b/packages/effect/src/Data.ts @@ -43,13 +43,13 @@ * * @since 2.0.0 */ -import type * as Cause from "./Cause.js" -import * as core from "./internal/core.js" -import { StructuralPrototype } from "./internal/core.js" -import * as internal from "./internal/data.js" -import * as Predicate from "./Predicate.js" -import type * as Types from "./Types.js" -import type { Unify } from "./Unify.js" +import type * as Cause from "./Cause.ts" +import * as core from "./internal/core.ts" +import { StructuralPrototype } from "./internal/core.ts" +import * as internal from "./internal/data.ts" +import * as Predicate from "./Predicate.ts" +import type * as Types from "./Types.ts" +import type { Unify } from "./Unify.ts" /** * A namespace providing utilities for Case constructors. diff --git a/packages/effect/src/DateTime.ts b/packages/effect/src/DateTime.ts index b25a4c66a6..94d48be845 100644 --- a/packages/effect/src/DateTime.ts +++ b/packages/effect/src/DateTime.ts @@ -1,20 +1,20 @@ /** * @since 3.6.0 */ -import type { IllegalArgumentError } from "./Cause.js" -import type * as Duration from "./Duration.js" -import * as Effect from "./Effect.js" -import type * as equivalence from "./Equivalence.js" -import { dual, type LazyArg } from "./Function.js" -import type { Inspectable } from "./Inspectable.js" -import * as Internal from "./internal/dateTime.js" -import { provideService } from "./internal/effect.js" -import * as Layer from "./Layer.js" -import type * as Option from "./Option.js" -import type * as order from "./Order.js" -import type { Pipeable } from "./Pipeable.js" -import type * as Result from "./Result.js" -import * as ServiceMap from "./ServiceMap.js" +import type { IllegalArgumentError } from "./Cause.ts" +import type * as Duration from "./Duration.ts" +import * as Effect from "./Effect.ts" +import type * as equivalence from "./Equivalence.ts" +import { dual, type LazyArg } from "./Function.ts" +import type { Inspectable } from "./Inspectable.ts" +import * as Internal from "./internal/dateTime.ts" +import { provideService } from "./internal/effect.ts" +import * as Layer from "./Layer.ts" +import type * as Option from "./Option.ts" +import type * as order from "./Order.ts" +import type { Pipeable } from "./Pipeable.ts" +import type * as Result from "./Result.ts" +import * as ServiceMap from "./ServiceMap.ts" /** * @example diff --git a/packages/effect/src/Deferred.ts b/packages/effect/src/Deferred.ts index 9222b8e5d2..8aad3fea34 100644 --- a/packages/effect/src/Deferred.ts +++ b/packages/effect/src/Deferred.ts @@ -66,16 +66,16 @@ * * @since 2.0.0 */ -import type * as Cause from "./Cause.js" -import type { Effect, Latch } from "./Effect.js" -import type * as Exit from "./Exit.js" -import { dual, identity, type LazyArg } from "./Function.js" -import * as core from "./internal/core.js" -import * as internalEffect from "./internal/effect.js" -import * as Option from "./Option.js" -import type { Pipeable } from "./Pipeable.js" -import { pipeArguments } from "./Pipeable.js" -import type * as Types from "./Types.js" +import type * as Cause from "./Cause.ts" +import type { Effect, Latch } from "./Effect.ts" +import type * as Exit from "./Exit.ts" +import { dual, identity, type LazyArg } from "./Function.ts" +import * as core from "./internal/core.ts" +import * as internalEffect from "./internal/effect.ts" +import * as Option from "./Option.ts" +import type { Pipeable } from "./Pipeable.ts" +import { pipeArguments } from "./Pipeable.ts" +import type * as Types from "./Types.ts" /** * @since 2.0.0 diff --git a/packages/effect/src/Duration.ts b/packages/effect/src/Duration.ts index 27741a380e..65b8906ecc 100644 --- a/packages/effect/src/Duration.ts +++ b/packages/effect/src/Duration.ts @@ -44,17 +44,17 @@ * * @since 2.0.0 */ -import * as Equal from "./Equal.js" -import type * as equivalence from "./Equivalence.js" -import { dual } from "./Function.js" -import * as Hash from "./Hash.js" -import * as Inspectable from "./Inspectable.js" -import { NodeInspectSymbol } from "./Inspectable.js" -import * as Option from "./Option.js" -import * as order from "./Order.js" -import type { Pipeable } from "./Pipeable.js" -import { pipeArguments } from "./Pipeable.js" -import { hasProperty, isBigInt, isNumber, isString } from "./Predicate.js" +import * as Equal from "./Equal.ts" +import type * as equivalence from "./Equivalence.ts" +import { dual } from "./Function.ts" +import * as Hash from "./Hash.ts" +import * as Inspectable from "./Inspectable.ts" +import { NodeInspectSymbol } from "./Inspectable.ts" +import * as Option from "./Option.ts" +import * as order from "./Order.ts" +import type { Pipeable } from "./Pipeable.ts" +import { pipeArguments } from "./Pipeable.ts" +import { hasProperty, isBigInt, isNumber, isString } from "./Predicate.ts" /** * The unique type identifier for Duration values. diff --git a/packages/effect/src/Effect.ts b/packages/effect/src/Effect.ts index 7088ca7e39..89a7faf555 100644 --- a/packages/effect/src/Effect.ts +++ b/packages/effect/src/Effect.ts @@ -66,42 +66,42 @@ * * @since 2.0.0 */ -import type * as Arr from "./Array.js" -import type * as Request from "./batching/Request.js" -import type { RequestResolver } from "./batching/RequestResolver.js" -import type * as Cause from "./Cause.js" -import type { Clock } from "./Clock.js" -import * as Duration from "./Duration.js" -import * as Exit from "./Exit.js" -import type { Fiber } from "./Fiber.js" -import type * as Filter from "./Filter.js" -import { constant, dual, type LazyArg } from "./Function.js" -import type { TypeLambda } from "./HKT.js" -import * as core from "./internal/core.js" -import * as internal from "./internal/effect.js" -import * as internalLayer from "./internal/layer.js" -import * as internalRequest from "./internal/request.js" -import * as internalSchedule from "./internal/schedule.js" -import type { version } from "./internal/version.js" -import type * as Layer from "./Layer.js" -import type { Logger } from "./Logger.js" -import type { LogLevel } from "./LogLevel.js" -import * as Metric from "./Metric.js" -import type { Option } from "./Option.js" -import type { Pipeable } from "./Pipeable.js" -import type * as Predicate from "./Predicate.js" -import { CurrentLogAnnotations, CurrentLogSpans } from "./References.js" -import type * as Result from "./Result.js" -import type { Schedule } from "./Schedule.js" -import type { Scheduler } from "./Scheduler.js" -import type { Scope } from "./Scope.js" -import * as ServiceMap from "./ServiceMap.js" -import type { AnySpan, ParentSpan, Span, SpanLink, SpanOptions, Tracer } from "./Tracer.js" -import type { TxRef } from "./TxRef.js" -import type { Concurrency, Covariant, ExcludeTag, ExtractTag, NoInfer, NotFunction, Tags } from "./Types.js" -import type * as Unify from "./Unify.js" -import type { YieldWrap } from "./Utils.js" -import { internalCall, SingleShotGen } from "./Utils.js" +import type * as Arr from "./Array.ts" +import type * as Request from "./batching/Request.ts" +import type { RequestResolver } from "./batching/RequestResolver.ts" +import type * as Cause from "./Cause.ts" +import type { Clock } from "./Clock.ts" +import * as Duration from "./Duration.ts" +import * as Exit from "./Exit.ts" +import type { Fiber } from "./Fiber.ts" +import type * as Filter from "./Filter.ts" +import { constant, dual, type LazyArg } from "./Function.ts" +import type { TypeLambda } from "./HKT.ts" +import * as core from "./internal/core.ts" +import * as internal from "./internal/effect.ts" +import * as internalLayer from "./internal/layer.ts" +import * as internalRequest from "./internal/request.ts" +import * as internalSchedule from "./internal/schedule.ts" +import type { version } from "./internal/version.ts" +import type * as Layer from "./Layer.ts" +import type { Logger } from "./Logger.ts" +import type { LogLevel } from "./LogLevel.ts" +import * as Metric from "./Metric.ts" +import type { Option } from "./Option.ts" +import type { Pipeable } from "./Pipeable.ts" +import type * as Predicate from "./Predicate.ts" +import { CurrentLogAnnotations, CurrentLogSpans } from "./References.ts" +import type * as Result from "./Result.ts" +import type { Schedule } from "./Schedule.ts" +import type { Scheduler } from "./Scheduler.ts" +import type { Scope } from "./Scope.ts" +import * as ServiceMap from "./ServiceMap.ts" +import type { AnySpan, ParentSpan, Span, SpanLink, SpanOptions, Tracer } from "./Tracer.ts" +import type { TxRef } from "./TxRef.ts" +import type { Concurrency, Covariant, ExcludeTag, ExtractTag, NoInfer, NotFunction, Tags } from "./Types.ts" +import type * as Unify from "./Unify.ts" +import type { YieldWrap } from "./Utils.ts" +import { internalCall, SingleShotGen } from "./Utils.ts" /** * A unique identifier used to brand Effect types. diff --git a/packages/effect/src/Encoding.ts b/packages/effect/src/Encoding.ts index c403af5256..a33a3b28cb 100644 --- a/packages/effect/src/Encoding.ts +++ b/packages/effect/src/Encoding.ts @@ -7,11 +7,11 @@ * * @since 2.0.0 */ -import * as Base64 from "./internal/encoding/base64.js" -import * as Base64Url from "./internal/encoding/base64Url.js" -import * as Common from "./internal/encoding/common.js" -import * as Hex from "./internal/encoding/hex.js" -import * as Result from "./Result.js" +import * as Base64 from "./internal/encoding/base64.ts" +import * as Base64Url from "./internal/encoding/base64Url.ts" +import * as Common from "./internal/encoding/common.ts" +import * as Hex from "./internal/encoding/hex.ts" +import * as Result from "./Result.ts" /** * Encodes the given value into a base64 (RFC4648) `string`. diff --git a/packages/effect/src/Equal.ts b/packages/effect/src/Equal.ts index a18f35f519..15c23967eb 100644 --- a/packages/effect/src/Equal.ts +++ b/packages/effect/src/Equal.ts @@ -5,9 +5,9 @@ * * @since 2.0.0 */ -import type { Equivalence } from "./Equivalence.js" -import * as Hash from "./Hash.js" -import { hasProperty } from "./Predicate.js" +import type { Equivalence } from "./Equivalence.ts" +import * as Hash from "./Hash.ts" +import { hasProperty } from "./Predicate.ts" /** * The unique symbol used to identify objects that implement the `Equal` interface. diff --git a/packages/effect/src/Equivalence.ts b/packages/effect/src/Equivalence.ts index 8557939904..fffc4ed036 100644 --- a/packages/effect/src/Equivalence.ts +++ b/packages/effect/src/Equivalence.ts @@ -36,8 +36,8 @@ * * @since 2.0.0 */ -import { dual } from "./Function.js" -import type { TypeLambda } from "./HKT.js" +import { dual } from "./Function.ts" +import type { TypeLambda } from "./HKT.ts" /** * Represents an equivalence relation over type `A`. diff --git a/packages/effect/src/Exit.ts b/packages/effect/src/Exit.ts index 7c57658441..1ecbd11858 100644 --- a/packages/effect/src/Exit.ts +++ b/packages/effect/src/Exit.ts @@ -9,13 +9,13 @@ * * @since 2.0.0 */ -import type * as Cause from "./Cause.js" -import type * as Effect from "./Effect.js" -import type * as Filter from "./Filter.js" -import * as core from "./internal/core.js" -import * as effect from "./internal/effect.js" -import type { version } from "./internal/version.js" -import type { NoInfer } from "./Types.js" +import type * as Cause from "./Cause.ts" +import type * as Effect from "./Effect.ts" +import type * as Filter from "./Filter.ts" +import * as core from "./internal/core.ts" +import * as effect from "./internal/effect.ts" +import type { version } from "./internal/version.ts" +import type { NoInfer } from "./Types.ts" /** * @example diff --git a/packages/effect/src/Fiber.ts b/packages/effect/src/Fiber.ts index 1b4a34a887..f6c941d8b6 100644 --- a/packages/effect/src/Fiber.ts +++ b/packages/effect/src/Fiber.ts @@ -72,17 +72,17 @@ * * @since 2.0.0 */ -import type { Effect } from "./Effect.js" -import type { Exit } from "./Exit.js" -import * as effect from "./internal/effect.js" -import { version } from "./internal/version.js" -import type { Pipeable } from "./Pipeable.js" -import { hasProperty } from "./Predicate.js" -import type { Scheduler } from "./Scheduler.js" -import type { Scope } from "./Scope.js" -import type * as ServiceMap from "./ServiceMap.js" -import type { AnySpan, Span } from "./Tracer.js" -import type { Covariant } from "./Types.js" +import type { Effect } from "./Effect.ts" +import type { Exit } from "./Exit.ts" +import * as effect from "./internal/effect.ts" +import { version } from "./internal/version.ts" +import type { Pipeable } from "./Pipeable.ts" +import { hasProperty } from "./Predicate.ts" +import type { Scheduler } from "./Scheduler.ts" +import type { Scope } from "./Scope.ts" +import type * as ServiceMap from "./ServiceMap.ts" +import type { AnySpan, Span } from "./Tracer.ts" +import type { Covariant } from "./Types.ts" /** * A unique identifier used to brand Fiber types. diff --git a/packages/effect/src/FiberHandle.ts b/packages/effect/src/FiberHandle.ts index 8e6f09a2d7..a4ab0e3e4f 100644 --- a/packages/effect/src/FiberHandle.ts +++ b/packages/effect/src/FiberHandle.ts @@ -1,21 +1,21 @@ /** * @since 2.0.0 */ -import type { NoSuchElementError } 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 Filter from "./Filter.js" -import { dual } from "./Function.js" -import type * as Inspectable from "./Inspectable.js" -import { PipeInspectableProto } from "./internal/core.js" -import * as Option from "./Option.js" -import { type Pipeable } from "./Pipeable.js" -import * as Predicate from "./Predicate.js" -import type { Scheduler } from "./Scheduler.js" -import type * as Scope from "./Scope.js" +import type { NoSuchElementError } from "./Cause.ts" +import * as Cause from "./Cause.ts" +import * as Deferred from "./Deferred.ts" +import * as Effect from "./Effect.ts" +import * as Exit from "./Exit.ts" +import * as Fiber from "./Fiber.ts" +import * as Filter from "./Filter.ts" +import { dual } from "./Function.ts" +import type * as Inspectable from "./Inspectable.ts" +import { PipeInspectableProto } from "./internal/core.ts" +import * as Option from "./Option.ts" +import { type Pipeable } from "./Pipeable.ts" +import * as Predicate from "./Predicate.ts" +import type { Scheduler } from "./Scheduler.ts" +import type * as Scope from "./Scope.ts" /** * @since 2.0.0 diff --git a/packages/effect/src/FiberMap.ts b/packages/effect/src/FiberMap.ts index 745a9c5a86..63e70b9999 100644 --- a/packages/effect/src/FiberMap.ts +++ b/packages/effect/src/FiberMap.ts @@ -1,22 +1,22 @@ /** * @since 2.0.0 */ -import type { NoSuchElementError } 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 Filter from "./Filter.js" -import { constVoid, dual } from "./Function.js" -import type * as Inspectable from "./Inspectable.js" -import { PipeInspectableProto } from "./internal/core.js" -import * as Iterable from "./Iterable.js" -import * as MutableHashMap from "./MutableHashMap.js" -import * as Option from "./Option.js" -import { type Pipeable } from "./Pipeable.js" -import * as Predicate from "./Predicate.js" -import type * as Scope from "./Scope.js" +import type { NoSuchElementError } from "./Cause.ts" +import * as Cause from "./Cause.ts" +import * as Deferred from "./Deferred.ts" +import * as Effect from "./Effect.ts" +import * as Exit from "./Exit.ts" +import * as Fiber from "./Fiber.ts" +import * as Filter from "./Filter.ts" +import { constVoid, dual } from "./Function.ts" +import type * as Inspectable from "./Inspectable.ts" +import { PipeInspectableProto } from "./internal/core.ts" +import * as Iterable from "./Iterable.ts" +import * as MutableHashMap from "./MutableHashMap.ts" +import * as Option from "./Option.ts" +import { type Pipeable } from "./Pipeable.ts" +import * as Predicate from "./Predicate.ts" +import type * as Scope from "./Scope.ts" /** * @since 2.0.0 diff --git a/packages/effect/src/FiberSet.ts b/packages/effect/src/FiberSet.ts index 37d77ad809..42fc5454be 100644 --- a/packages/effect/src/FiberSet.ts +++ b/packages/effect/src/FiberSet.ts @@ -1,19 +1,19 @@ /** * @since 2.0.0 */ -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 Filter from "./Filter.js" -import { constVoid, dual } from "./Function.js" -import type * as Inspectable from "./Inspectable.js" -import { PipeInspectableProto } from "./internal/core.js" -import * as Iterable from "./Iterable.js" -import { type Pipeable } from "./Pipeable.js" -import * as Predicate from "./Predicate.js" -import type * as Scope from "./Scope.js" +import * as Cause from "./Cause.ts" +import * as Deferred from "./Deferred.ts" +import * as Effect from "./Effect.ts" +import * as Exit from "./Exit.ts" +import * as Fiber from "./Fiber.ts" +import * as Filter from "./Filter.ts" +import { constVoid, dual } from "./Function.ts" +import type * as Inspectable from "./Inspectable.ts" +import { PipeInspectableProto } from "./internal/core.ts" +import * as Iterable from "./Iterable.ts" +import { type Pipeable } from "./Pipeable.ts" +import * as Predicate from "./Predicate.ts" +import type * as Scope from "./Scope.ts" /** * @since 2.0.0 diff --git a/packages/effect/src/Filter.ts b/packages/effect/src/Filter.ts index 77911cb75b..db593850f1 100644 --- a/packages/effect/src/Filter.ts +++ b/packages/effect/src/Filter.ts @@ -1,13 +1,13 @@ /** * @since 4.0.0 */ -import type { Effect } from "./Effect.js" -import * as Equal from "./Equal.js" -import { dual } from "./Function.js" -import type * as Option from "./Option.js" -import * as Predicate from "./Predicate.js" -import type * as Result from "./Result.js" -import type { EqualsWith, ExcludeTag, ExtractTag, Tags } from "./Types.js" +import type { Effect } from "./Effect.ts" +import * as Equal from "./Equal.ts" +import { dual } from "./Function.ts" +import type * as Option from "./Option.ts" +import * as Predicate from "./Predicate.ts" +import type * as Result from "./Result.ts" +import type { EqualsWith, ExcludeTag, ExtractTag, Tags } from "./Types.ts" /** * Represents a filter function that can transform inputs to outputs or filter them out. diff --git a/packages/effect/src/Function.ts b/packages/effect/src/Function.ts index 7f6cbabebc..c8c3dc33e2 100644 --- a/packages/effect/src/Function.ts +++ b/packages/effect/src/Function.ts @@ -1,8 +1,8 @@ /** * @since 2.0.0 */ -import type { TypeLambda } from "./HKT.js" -import { pipeArguments } from "./Pipeable.js" +import type { TypeLambda } from "./HKT.ts" +import { pipeArguments } from "./Pipeable.ts" /** * Type lambda for function types, used for higher-kinded type operations. diff --git a/packages/effect/src/Graph.ts b/packages/effect/src/Graph.ts index 835d2df4c9..d04f9ef2e3 100644 --- a/packages/effect/src/Graph.ts +++ b/packages/effect/src/Graph.ts @@ -2,16 +2,16 @@ * @since 4.0.0 */ -import * as Data from "./Data.js" -import * as Equal from "./Equal.js" -import { dual } from "./Function.js" -import * as Hash from "./Hash.js" -import type { Inspectable } from "./Inspectable.js" -import { format, NodeInspectSymbol } from "./Inspectable.js" -import * as Option from "./Option.js" -import type { Pipeable } from "./Pipeable.js" -import { pipeArguments } from "./Pipeable.js" -import type { Mutable } from "./Types.js" +import * as Data from "./Data.ts" +import * as Equal from "./Equal.ts" +import { dual } from "./Function.ts" +import * as Hash from "./Hash.ts" +import type { Inspectable } from "./Inspectable.ts" +import { format, NodeInspectSymbol } from "./Inspectable.ts" +import * as Option from "./Option.ts" +import type { Pipeable } from "./Pipeable.ts" +import { pipeArguments } from "./Pipeable.ts" +import type { Mutable } from "./Types.ts" /** * Safely get a value from a Map, returning an Option. diff --git a/packages/effect/src/HKT.ts b/packages/effect/src/HKT.ts index 33f8b5fc7b..0676ce311f 100644 --- a/packages/effect/src/HKT.ts +++ b/packages/effect/src/HKT.ts @@ -31,7 +31,7 @@ * * @since 2.0.0 */ -import type * as Types from "./Types.js" +import type * as Types from "./Types.ts" /** * A unique symbol used to identify TypeClass implementations. diff --git a/packages/effect/src/Hash.ts b/packages/effect/src/Hash.ts index 08c6770be0..eb76bbe620 100644 --- a/packages/effect/src/Hash.ts +++ b/packages/effect/src/Hash.ts @@ -7,8 +7,8 @@ * * @since 2.0.0 */ -import { pipe } from "./Function.js" -import { hasProperty } from "./Predicate.js" +import { pipe } from "./Function.ts" +import { hasProperty } from "./Predicate.ts" /** @internal */ const randomHashCache = new WeakMap() diff --git a/packages/effect/src/HashMap.ts b/packages/effect/src/HashMap.ts index 3af7b14b8f..38b25c6956 100644 --- a/packages/effect/src/HashMap.ts +++ b/packages/effect/src/HashMap.ts @@ -2,12 +2,12 @@ * @since 2.0.0 */ -import type { Equal } from "./Equal.js" -import type { Inspectable } from "./Inspectable.js" -import * as internal from "./internal/hashMap.js" -import type { Option } from "./Option.js" -import type { Pipeable } from "./Pipeable.js" -import type { NoInfer } from "./Types.js" +import type { Equal } from "./Equal.ts" +import type { Inspectable } from "./Inspectable.ts" +import * as internal from "./internal/hashMap.ts" +import type { Option } from "./Option.ts" +import type { Pipeable } from "./Pipeable.ts" +import type { NoInfer } from "./Types.ts" /** * Unique identifier for HashMap instances. diff --git a/packages/effect/src/HashSet.ts b/packages/effect/src/HashSet.ts index 73b744b547..d4c627c8c4 100644 --- a/packages/effect/src/HashSet.ts +++ b/packages/effect/src/HashSet.ts @@ -2,13 +2,13 @@ * @since 2.0.0 */ -import type { Equal } from "./Equal.js" -import * as Dual from "./Function.js" -import type { Inspectable } from "./Inspectable.js" -import * as internal from "./internal/hashSet.js" -import type { Pipeable } from "./Pipeable.js" -import type { Predicate, Refinement } from "./Predicate.js" -import type { NoInfer } from "./Types.js" +import type { Equal } from "./Equal.ts" +import * as Dual from "./Function.ts" +import type { Inspectable } from "./Inspectable.ts" +import * as internal from "./internal/hashSet.ts" +import type { Pipeable } from "./Pipeable.ts" +import type { Predicate, Refinement } from "./Predicate.ts" +import type { NoInfer } from "./Types.ts" /** * Unique identifier for HashSet instances. diff --git a/packages/effect/src/Inspectable.ts b/packages/effect/src/Inspectable.ts index 0c730ff0a2..c2548f3d3d 100644 --- a/packages/effect/src/Inspectable.ts +++ b/packages/effect/src/Inspectable.ts @@ -36,9 +36,9 @@ * * @since 2.0.0 */ -import { pipeArguments } from "./Pipeable.js" -import { hasProperty, isFunction } from "./Predicate.js" -import type * as ServiceMap from "./ServiceMap.js" +import { pipeArguments } from "./Pipeable.ts" +import { hasProperty, isFunction } from "./Predicate.ts" +import type * as ServiceMap from "./ServiceMap.ts" /** * Symbol used by Node.js for custom object inspection. diff --git a/packages/effect/src/Iterable.ts b/packages/effect/src/Iterable.ts index 2383b75f43..890cb94d16 100644 --- a/packages/effect/src/Iterable.ts +++ b/packages/effect/src/Iterable.ts @@ -30,17 +30,17 @@ * @since 2.0.0 */ -import type { NonEmptyArray } from "./Array.js" -import * as Equal from "./Equal.js" -import { dual, identity } from "./Function.js" -import type { Option } from "./Option.js" -import * as O from "./Option.js" -import { isBoolean } from "./Predicate.js" -import type * as Record from "./Record.js" -import type { Result } from "./Result.js" -import * as R from "./Result.js" -import * as Tuple from "./Tuple.js" -import type { NoInfer } from "./Types.js" +import type { NonEmptyArray } from "./Array.ts" +import * as Equal from "./Equal.ts" +import { dual, identity } from "./Function.ts" +import type { Option } from "./Option.ts" +import * as O from "./Option.ts" +import { isBoolean } from "./Predicate.ts" +import type * as Record from "./Record.ts" +import type { Result } from "./Result.ts" +import * as R from "./Result.ts" +import * as Tuple from "./Tuple.ts" +import type { NoInfer } from "./Types.ts" /** * Creates an iterable by applying a function to consecutive integers. diff --git a/packages/effect/src/Layer.ts b/packages/effect/src/Layer.ts index cbf9523be8..fd2bbb273f 100644 --- a/packages/effect/src/Layer.ts +++ b/packages/effect/src/Layer.ts @@ -17,20 +17,20 @@ * * @since 2.0.0 */ -import type { NonEmptyArray } from "./Array.js" -import type * as Cause from "./Cause.js" -import * as Deferred from "./Deferred.js" -import type { Effect } from "./Effect.js" -import type * as Exit from "./Exit.js" -import type { LazyArg } from "./Function.js" -import { constant, constTrue, dual, identity } from "./Function.js" -import * as internalEffect from "./internal/effect.js" +import type { NonEmptyArray } from "./Array.ts" +import type * as Cause from "./Cause.ts" +import * as Deferred from "./Deferred.ts" +import type { Effect } from "./Effect.ts" +import type * as Exit from "./Exit.ts" +import type { LazyArg } from "./Function.ts" +import { constant, constTrue, dual, identity } from "./Function.ts" +import * as internalEffect from "./internal/effect.ts" import type { ErrorWithStackTraceLimit } from "./internal/tracer.ts" -import { type Pipeable, pipeArguments } from "./Pipeable.js" -import { hasProperty } from "./Predicate.js" -import * as Scope from "./Scope.js" -import * as ServiceMap from "./ServiceMap.js" -import type * as Types from "./Types.js" +import { type Pipeable, pipeArguments } from "./Pipeable.ts" +import { hasProperty } from "./Predicate.ts" +import * as Scope from "./Scope.ts" +import * as ServiceMap from "./ServiceMap.ts" +import type * as Types from "./Types.ts" /** * The unique type identifier for Layer. diff --git a/packages/effect/src/LayerMap.ts b/packages/effect/src/LayerMap.ts index 99a47df172..ff8544362f 100644 --- a/packages/effect/src/LayerMap.ts +++ b/packages/effect/src/LayerMap.ts @@ -2,14 +2,14 @@ * @since 3.14.0 * @experimental */ -import type * as Duration from "./Duration.js" -import * as Effect from "./Effect.js" -import { identity } from "./Function.js" -import * as Layer from "./Layer.js" -import * as RcMap from "./RcMap.js" -import * as Scope from "./Scope.js" -import * as ServiceMap from "./ServiceMap.js" -import type { Mutable } from "./Types.js" +import type * as Duration from "./Duration.ts" +import * as Effect from "./Effect.ts" +import { identity } from "./Function.ts" +import * as Layer from "./Layer.ts" +import * as RcMap from "./RcMap.ts" +import * as Scope from "./Scope.ts" +import * as ServiceMap from "./ServiceMap.ts" +import type { Mutable } from "./Types.ts" /** * @since 3.14.0 diff --git a/packages/effect/src/LogLevel.ts b/packages/effect/src/LogLevel.ts index 6deb9ae90f..10e0009832 100644 --- a/packages/effect/src/LogLevel.ts +++ b/packages/effect/src/LogLevel.ts @@ -96,8 +96,8 @@ * }) * ``` */ -import * as effect from "./internal/effect.js" -import * as Ord from "./Order.js" +import * as effect from "./internal/effect.ts" +import * as Ord from "./Order.ts" /** * Represents the severity level of a log message. diff --git a/packages/effect/src/Logger.ts b/packages/effect/src/Logger.ts index 171d19a6c9..d2f71d8453 100644 --- a/packages/effect/src/Logger.ts +++ b/packages/effect/src/Logger.ts @@ -97,25 +97,25 @@ * }) * ``` */ -import * as Array from "./Array.js" -import type * as Cause from "./Cause.js" -import type * as Duration from "./Duration.js" -import type * as Effect from "./Effect.js" -import type * as Fiber from "./Fiber.js" -import { dual } from "./Function.js" -import * as Inspectable from "./Inspectable.js" -import { isEffect, withFiber } from "./internal/core.js" -import * as effect from "./internal/effect.js" -import * as Layer from "./Layer.js" -import type * as LogLevel from "./LogLevel.js" -import type { Pipeable } from "./Pipeable.js" -import * as FileSystem from "./platform/FileSystem.js" -import type { PlatformError } from "./platform/PlatformError.js" -import * as Predicate from "./Predicate.js" -import { CurrentLogAnnotations, CurrentLogSpans } from "./References.js" -import type * as Scope from "./Scope.js" -import * as ServiceMap from "./ServiceMap.js" -import type * as Types from "./Types.js" +import * as Array from "./Array.ts" +import type * as Cause from "./Cause.ts" +import type * as Duration from "./Duration.ts" +import type * as Effect from "./Effect.ts" +import type * as Fiber from "./Fiber.ts" +import { dual } from "./Function.ts" +import * as Inspectable from "./Inspectable.ts" +import { isEffect, withFiber } from "./internal/core.ts" +import * as effect from "./internal/effect.ts" +import * as Layer from "./Layer.ts" +import type * as LogLevel from "./LogLevel.ts" +import type { Pipeable } from "./Pipeable.ts" +import * as FileSystem from "./platform/FileSystem.ts" +import type { PlatformError } from "./platform/PlatformError.ts" +import * as Predicate from "./Predicate.ts" +import { CurrentLogAnnotations, CurrentLogSpans } from "./References.ts" +import type * as Scope from "./Scope.ts" +import * as ServiceMap from "./ServiceMap.ts" +import type * as Types from "./Types.ts" /** * @example diff --git a/packages/effect/src/ManagedRuntime.ts b/packages/effect/src/ManagedRuntime.ts index 230406a247..7f1fe0a043 100644 --- a/packages/effect/src/ManagedRuntime.ts +++ b/packages/effect/src/ManagedRuntime.ts @@ -1,14 +1,14 @@ /** * @since 2.0.0 */ -import * as Effect from "./Effect.js" -import * as Exit from "./Exit.js" -import * as Fiber from "./Fiber.js" -import * as Layer from "./Layer.js" -import { hasProperty } from "./Predicate.js" -import * as Scope from "./Scope.js" -import type * as ServiceMap from "./ServiceMap.js" -import type { Mutable } from "./Types.js" +import * as Effect from "./Effect.ts" +import * as Exit from "./Exit.ts" +import * as Fiber from "./Fiber.ts" +import * as Layer from "./Layer.ts" +import { hasProperty } from "./Predicate.ts" +import * as Scope from "./Scope.ts" +import type * as ServiceMap from "./ServiceMap.ts" +import type { Mutable } from "./Types.ts" /** * @since 3.9.0 diff --git a/packages/effect/src/Match.ts b/packages/effect/src/Match.ts index 6870de1077..052c7a3b18 100644 --- a/packages/effect/src/Match.ts +++ b/packages/effect/src/Match.ts @@ -26,13 +26,13 @@ * * @since 4.0.0 */ -import * as internal from "./internal/matcher.js" -import type * as Option from "./Option.js" -import type { Pipeable } from "./Pipeable.js" -import * as Predicate from "./Predicate.js" -import type * as Result from "./Result.js" -import type * as T from "./Types.js" -import type { Unify } from "./Unify.js" +import * as internal from "./internal/matcher.ts" +import type * as Option from "./Option.ts" +import type { Pipeable } from "./Pipeable.ts" +import * as Predicate from "./Predicate.ts" +import type * as Result from "./Result.ts" +import type * as T from "./Types.ts" +import type { Unify } from "./Unify.ts" /** * Unique identifier for `Matcher` instances. diff --git a/packages/effect/src/Metric.ts b/packages/effect/src/Metric.ts index 10b1551c15..72b890f875 100644 --- a/packages/effect/src/Metric.ts +++ b/packages/effect/src/Metric.ts @@ -137,22 +137,22 @@ * ``` */ -import * as Arr from "./Array.js" -import * as Duration from "./Duration.js" -import type { Effect } from "./Effect.js" -import type { Exit } from "./Exit.js" -import { constUndefined, dual } from "./Function.js" -import * as InternalEffect from "./internal/effect.js" -import * as InternalMetric from "./internal/metric.js" -import * as Layer from "./Layer.js" -import * as Option from "./Option.js" -import * as Order from "./Order.js" -import type { Pipeable } from "./Pipeable.js" -import { pipeArguments } from "./Pipeable.js" -import * as Predicate from "./Predicate.js" -import * as ServiceMap from "./ServiceMap.js" -import * as _String from "./String.js" -import type { Contravariant, Covariant } from "./Types.js" +import * as Arr from "./Array.ts" +import * as Duration from "./Duration.ts" +import type { Effect } from "./Effect.ts" +import type { Exit } from "./Exit.ts" +import { constUndefined, dual } from "./Function.ts" +import * as InternalEffect from "./internal/effect.ts" +import * as InternalMetric from "./internal/metric.ts" +import * as Layer from "./Layer.ts" +import * as Option from "./Option.ts" +import * as Order from "./Order.ts" +import type { Pipeable } from "./Pipeable.ts" +import { pipeArguments } from "./Pipeable.ts" +import * as Predicate from "./Predicate.ts" +import * as ServiceMap from "./ServiceMap.ts" +import * as _String from "./String.ts" +import type { Contravariant, Covariant } from "./Types.ts" /** * A `Metric` represents a concurrent metric which accepts update diff --git a/packages/effect/src/MutableHashMap.ts b/packages/effect/src/MutableHashMap.ts index 64db623674..4ab7e16744 100644 --- a/packages/effect/src/MutableHashMap.ts +++ b/packages/effect/src/MutableHashMap.ts @@ -25,14 +25,14 @@ * @since 2.0.0 * @category data-structures */ -import type { NonEmptyArray } from "./Array.js" -import * as Equal from "./Equal.js" -import { dual } from "./Function.js" -import * as Hash from "./Hash.js" -import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js" -import * as Option from "./Option.js" -import type { Pipeable } from "./Pipeable.js" -import { pipeArguments } from "./Pipeable.js" +import type { NonEmptyArray } from "./Array.ts" +import * as Equal from "./Equal.ts" +import { dual } from "./Function.ts" +import * as Hash from "./Hash.ts" +import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.ts" +import * as Option from "./Option.ts" +import type { Pipeable } from "./Pipeable.ts" +import { pipeArguments } from "./Pipeable.ts" const TypeId: TypeId = "~effect/MutableHashMap" diff --git a/packages/effect/src/MutableHashSet.ts b/packages/effect/src/MutableHashSet.ts index c6edf4861a..ca723480cc 100644 --- a/packages/effect/src/MutableHashSet.ts +++ b/packages/effect/src/MutableHashSet.ts @@ -24,11 +24,11 @@ * @since 2.0.0 * @category data-structures */ -import * as Dual from "./Function.js" -import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js" -import * as MutableHashMap from "./MutableHashMap.js" -import type { Pipeable } from "./Pipeable.js" -import { pipeArguments } from "./Pipeable.js" +import * as Dual from "./Function.ts" +import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.ts" +import * as MutableHashMap from "./MutableHashMap.ts" +import type { Pipeable } from "./Pipeable.ts" +import { pipeArguments } from "./Pipeable.ts" const TypeId: TypeId = "~effect/MutableHashSet" diff --git a/packages/effect/src/MutableList.ts b/packages/effect/src/MutableList.ts index 35293485e5..5437cfdecc 100644 --- a/packages/effect/src/MutableList.ts +++ b/packages/effect/src/MutableList.ts @@ -34,7 +34,7 @@ * @since 4.0.0 * @category data-structures */ -import * as Arr from "./Array.js" +import * as Arr from "./Array.ts" /** * A mutable linked list data structure optimized for high-throughput operations. diff --git a/packages/effect/src/MutableRef.ts b/packages/effect/src/MutableRef.ts index d58d63a54e..4694369842 100644 --- a/packages/effect/src/MutableRef.ts +++ b/packages/effect/src/MutableRef.ts @@ -30,11 +30,11 @@ * @since 2.0.0 * @category data-structures */ -import * as Equal from "./Equal.js" -import * as Dual from "./Function.js" -import { type Inspectable, toJSON } from "./Inspectable.js" -import { PipeInspectableProto } from "./internal/core.js" -import type { Pipeable } from "./Pipeable.js" +import * as Equal from "./Equal.ts" +import * as Dual from "./Function.ts" +import { type Inspectable, toJSON } from "./Inspectable.ts" +import { PipeInspectableProto } from "./internal/core.ts" +import type { Pipeable } from "./Pipeable.ts" const TypeId: TypeId = "~effect/MutableRef" diff --git a/packages/effect/src/Number.ts b/packages/effect/src/Number.ts index 24c3d627eb..25aa982d33 100644 --- a/packages/effect/src/Number.ts +++ b/packages/effect/src/Number.ts @@ -5,13 +5,13 @@ * * @since 2.0.0 */ -import * as equivalence from "./Equivalence.js" -import { dual } from "./Function.js" -import * as option from "./internal/option.js" -import type { Option } from "./Option.js" -import * as order from "./Order.js" -import type { Ordering } from "./Ordering.js" -import * as predicate from "./Predicate.js" +import * as equivalence from "./Equivalence.ts" +import { dual } from "./Function.ts" +import * as option from "./internal/option.ts" +import type { Option } from "./Option.ts" +import * as order from "./Order.ts" +import type { Ordering } from "./Ordering.ts" +import * as predicate from "./Predicate.ts" /** * The global `Number` constructor. diff --git a/packages/effect/src/Option.ts b/packages/effect/src/Option.ts index 26f02767ac..f09c214945 100644 --- a/packages/effect/src/Option.ts +++ b/packages/effect/src/Option.ts @@ -1,25 +1,25 @@ /** * @since 2.0.0 */ -import type { NoSuchElementError } from "./Cause.js" -import type { EffectIterator, Yieldable } from "./Effect.js" -import * as Equal from "./Equal.js" -import * as Equivalence from "./Equivalence.js" -import type { LazyArg } from "./Function.js" -import { constNull, constUndefined, dual, identity, isFunction } from "./Function.js" -import type { TypeLambda } from "./HKT.js" -import type { Inspectable } from "./Inspectable.js" -import * as doNotation from "./internal/doNotation.js" -import * as option from "./internal/option.js" -import * as result from "./internal/result.js" -import type { Order } from "./Order.js" -import * as order from "./Order.js" -import type { Pipeable } from "./Pipeable.js" -import type { Predicate, Refinement } from "./Predicate.js" -import type { Result } from "./Result.js" -import type { Covariant, NoInfer, NotFunction } from "./Types.js" -import type * as Unify from "./Unify.js" -import * as Gen from "./Utils.js" +import type { NoSuchElementError } from "./Cause.ts" +import type { EffectIterator, Yieldable } from "./Effect.ts" +import * as Equal from "./Equal.ts" +import * as Equivalence from "./Equivalence.ts" +import type { LazyArg } from "./Function.ts" +import { constNull, constUndefined, dual, identity, isFunction } from "./Function.ts" +import type { TypeLambda } from "./HKT.ts" +import type { Inspectable } from "./Inspectable.ts" +import * as doNotation from "./internal/doNotation.ts" +import * as option from "./internal/option.ts" +import * as result from "./internal/result.ts" +import type { Order } from "./Order.ts" +import * as order from "./Order.ts" +import type { Pipeable } from "./Pipeable.ts" +import type { Predicate, Refinement } from "./Predicate.ts" +import type { Result } from "./Result.ts" +import type { Covariant, NoInfer, NotFunction } from "./Types.ts" +import type * as Unify from "./Unify.ts" +import * as Gen from "./Utils.ts" /** * The `Option` data type represents optional values. An `Option` can either diff --git a/packages/effect/src/Order.ts b/packages/effect/src/Order.ts index b456ae8135..d9f8eb9618 100644 --- a/packages/effect/src/Order.ts +++ b/packages/effect/src/Order.ts @@ -16,8 +16,8 @@ * * @since 2.0.0 */ -import { dual } from "./Function.js" -import type { TypeLambda } from "./HKT.js" +import { dual } from "./Function.ts" +import type { TypeLambda } from "./HKT.ts" /** * Represents a total ordering for values of type `A`. diff --git a/packages/effect/src/Ordering.ts b/packages/effect/src/Ordering.ts index 99da18d738..9b2623c965 100644 --- a/packages/effect/src/Ordering.ts +++ b/packages/effect/src/Ordering.ts @@ -25,8 +25,8 @@ * @since 2.0.0 * @category utilities */ -import type { LazyArg } from "./Function.js" -import { dual } from "./Function.js" +import type { LazyArg } from "./Function.ts" +import { dual } from "./Function.ts" /** * Represents the result of comparing two values. diff --git a/packages/effect/src/Predicate.ts b/packages/effect/src/Predicate.ts index 15576e83db..bd3daf8364 100644 --- a/packages/effect/src/Predicate.ts +++ b/packages/effect/src/Predicate.ts @@ -1,9 +1,9 @@ /** * @since 2.0.0 */ -import { dual, isFunction as isFunction_ } from "./Function.js" -import type { TypeLambda } from "./HKT.js" -import type { TupleOf, TupleOfAtLeast } from "./Types.js" +import { dual, isFunction as isFunction_ } from "./Function.ts" +import type { TypeLambda } from "./HKT.ts" +import type { TupleOf, TupleOfAtLeast } from "./Types.ts" /** * A `Predicate` is a function that takes a value of type `A` and returns a boolean. diff --git a/packages/effect/src/PubSub.ts b/packages/effect/src/PubSub.ts index d59b28b71f..188d27d1be 100644 --- a/packages/effect/src/PubSub.ts +++ b/packages/effect/src/PubSub.ts @@ -28,19 +28,19 @@ * * @since 2.0.0 */ -import * as Arr from "./Array.js" -import * as Deferred from "./Deferred.js" -import * as Effect from "./Effect.js" -import * as Exit from "./Exit.js" -import type { LazyArg } from "./Function.js" -import { dual, identity } from "./Function.js" -import * as MutableList from "./MutableList.js" -import * as MutableRef from "./MutableRef.js" -import { nextPow2 } from "./Number.js" -import * as Option from "./Option.js" -import { type Pipeable, pipeArguments } from "./Pipeable.js" -import * as Scope from "./Scope.js" -import type { Covariant, Invariant } from "./Types.js" +import * as Arr from "./Array.ts" +import * as Deferred from "./Deferred.ts" +import * as Effect from "./Effect.ts" +import * as Exit from "./Exit.ts" +import type { LazyArg } from "./Function.ts" +import { dual, identity } from "./Function.ts" +import * as MutableList from "./MutableList.ts" +import * as MutableRef from "./MutableRef.ts" +import { nextPow2 } from "./Number.ts" +import * as Option from "./Option.ts" +import { type Pipeable, pipeArguments } from "./Pipeable.ts" +import * as Scope from "./Scope.ts" +import type { Covariant, Invariant } from "./Types.ts" /** * The type identifier for PubSub instances. diff --git a/packages/effect/src/Pull.ts b/packages/effect/src/Pull.ts index 6bb4555dad..191ac5919e 100644 --- a/packages/effect/src/Pull.ts +++ b/packages/effect/src/Pull.ts @@ -1,13 +1,13 @@ /** * @since 4.0.0 */ -import * as Cause from "./Cause.js" -import type { Effect } from "./Effect.js" -import * as Exit from "./Exit.js" -import * as Filter from "./Filter.js" -import { dual } from "./Function.js" -import * as internalEffect from "./internal/effect.js" -import { hasProperty } from "./Predicate.js" +import * as Cause from "./Cause.ts" +import type { Effect } from "./Effect.ts" +import * as Exit from "./Exit.ts" +import * as Filter from "./Filter.ts" +import { dual } from "./Function.ts" +import * as internalEffect from "./internal/effect.ts" +import { hasProperty } from "./Predicate.ts" /** * A Pull is a specialized Effect that represents a pull-based stream operation. diff --git a/packages/effect/src/Queue.ts b/packages/effect/src/Queue.ts index 94d9fa2195..33480b9227 100644 --- a/packages/effect/src/Queue.ts +++ b/packages/effect/src/Queue.ts @@ -32,23 +32,23 @@ * * @since 3.8.0 */ -import * as Arr from "./Array.js" -import type { Cause } from "./Cause.js" -import type { Effect } from "./Effect.js" -import type { Exit, Failure } from "./Exit.js" -import * as Filter from "./Filter.js" -import { dual, identity } from "./Function.js" -import type { Inspectable } from "./Inspectable.js" -import * as core from "./internal/core.js" -import { PipeInspectableProto } from "./internal/core.js" -import * as internalEffect from "./internal/effect.js" -import * as Iterable from "./Iterable.js" -import * as MutableList from "./MutableList.js" -import * as Option from "./Option.js" -import { hasProperty } from "./Predicate.js" -import * as Pull from "./Pull.js" -import type { Scheduler } from "./Scheduler.js" -import type * as Types from "./Types.js" +import * as Arr from "./Array.ts" +import type { Cause } from "./Cause.ts" +import type { Effect } from "./Effect.ts" +import type { Exit, Failure } from "./Exit.ts" +import * as Filter from "./Filter.ts" +import { dual, identity } from "./Function.ts" +import type { Inspectable } from "./Inspectable.ts" +import * as core from "./internal/core.ts" +import { PipeInspectableProto } from "./internal/core.ts" +import * as internalEffect from "./internal/effect.ts" +import * as Iterable from "./Iterable.ts" +import * as MutableList from "./MutableList.ts" +import * as Option from "./Option.ts" +import { hasProperty } from "./Predicate.ts" +import * as Pull from "./Pull.ts" +import type { Scheduler } from "./Scheduler.ts" +import type * as Types from "./Types.ts" /** * The type identifier for Queue values. diff --git a/packages/effect/src/RcMap.ts b/packages/effect/src/RcMap.ts index 395aaf75bd..f73167c98e 100644 --- a/packages/effect/src/RcMap.ts +++ b/packages/effect/src/RcMap.ts @@ -1,18 +1,18 @@ /** * @since 3.5.0 */ -import * as Cause from "./Cause.js" -import * as Deferred from "./Deferred.js" -import * as Duration from "./Duration.js" -import * as Effect from "./Effect.js" -import * as Exit from "./Exit.js" -import * as Fiber from "./Fiber.js" -import { dual } from "./Function.js" -import * as MutableHashMap from "./MutableHashMap.js" -import type { Pipeable } from "./Pipeable.js" -import { pipeArguments } from "./Pipeable.js" -import * as Scope from "./Scope.js" -import * as ServiceMap from "./ServiceMap.js" +import * as Cause from "./Cause.ts" +import * as Deferred from "./Deferred.ts" +import * as Duration from "./Duration.ts" +import * as Effect from "./Effect.ts" +import * as Exit from "./Exit.ts" +import * as Fiber from "./Fiber.ts" +import { dual } from "./Function.ts" +import * as MutableHashMap from "./MutableHashMap.ts" +import type { Pipeable } from "./Pipeable.ts" +import { pipeArguments } from "./Pipeable.ts" +import * as Scope from "./Scope.ts" +import * as ServiceMap from "./ServiceMap.ts" /** * The unique identifier for the RcMap type. diff --git a/packages/effect/src/RcRef.ts b/packages/effect/src/RcRef.ts index ec0d617fa0..4ad5cfbe66 100644 --- a/packages/effect/src/RcRef.ts +++ b/packages/effect/src/RcRef.ts @@ -1,11 +1,11 @@ /** * @since 3.5.0 */ -import type * as Duration from "./Duration.js" -import type * as Effect from "./Effect.js" -import * as internal from "./internal/rcRef.js" -import type { Scope } from "./Scope.js" -import type * as Types from "./Types.js" +import type * as Duration from "./Duration.ts" +import type * as Effect from "./Effect.ts" +import * as internal from "./internal/rcRef.ts" +import type { Scope } from "./Scope.ts" +import type * as Types from "./Types.ts" /** * @since 3.5.0 diff --git a/packages/effect/src/Record.ts b/packages/effect/src/Record.ts index 95f5979a68..7f89212b11 100644 --- a/packages/effect/src/Record.ts +++ b/packages/effect/src/Record.ts @@ -4,14 +4,14 @@ * @since 2.0.0 */ -import * as Equal from "./Equal.js" -import type { Equivalence } from "./Equivalence.js" -import { dual, identity } from "./Function.js" -import type { TypeLambda } from "./HKT.js" -import * as Option from "./Option.js" -import type { Result } from "./Result.js" -import * as R from "./Result.js" -import type { NoInfer } from "./Types.js" +import * as Equal from "./Equal.ts" +import type { Equivalence } from "./Equivalence.ts" +import { dual, identity } from "./Function.ts" +import type { TypeLambda } from "./HKT.ts" +import * as Option from "./Option.ts" +import type { Result } from "./Result.ts" +import * as R from "./Result.ts" +import type { NoInfer } from "./Types.ts" /** * Represents a readonly record with keys of type `K` and values of type `A`. diff --git a/packages/effect/src/Redacted.ts b/packages/effect/src/Redacted.ts index c9e5e0d96c..55fded23eb 100644 --- a/packages/effect/src/Redacted.ts +++ b/packages/effect/src/Redacted.ts @@ -6,14 +6,14 @@ * * @since 3.3.0 */ -import * as Equal from "./Equal.js" -import * as Equivalence from "./Equivalence.js" -import * as Hash from "./Hash.js" -import { PipeInspectableProto } from "./internal/core.js" -import { redactedRegistry } from "./internal/redacted.js" -import type { Pipeable } from "./Pipeable.js" -import { hasProperty } from "./Predicate.js" -import type { Covariant } from "./Types.js" +import * as Equal from "./Equal.ts" +import * as Equivalence from "./Equivalence.ts" +import * as Hash from "./Hash.ts" +import { PipeInspectableProto } from "./internal/core.ts" +import { redactedRegistry } from "./internal/redacted.ts" +import type { Pipeable } from "./Pipeable.ts" +import { hasProperty } from "./Predicate.ts" +import type { Covariant } from "./Types.ts" /** * @example diff --git a/packages/effect/src/Ref.ts b/packages/effect/src/Ref.ts index 33349a6b2c..7424654ce5 100644 --- a/packages/effect/src/Ref.ts +++ b/packages/effect/src/Ref.ts @@ -28,13 +28,13 @@ * * @since 2.0.0 */ -import * as Effect from "./Effect.js" -import { dual, identity } from "./Function.js" -import { PipeInspectableProto } from "./internal/core.js" -import * as MutableRef from "./MutableRef.js" -import type * as Option from "./Option.js" -import type { Invariant } from "./Types.js" -import type * as Unify from "./Unify.js" +import * as Effect from "./Effect.ts" +import { dual, identity } from "./Function.ts" +import { PipeInspectableProto } from "./internal/core.ts" +import * as MutableRef from "./MutableRef.ts" +import type * as Option from "./Option.ts" +import type { Invariant } from "./Types.ts" +import type * as Unify from "./Unify.ts" /** * The type identifier for Ref values. diff --git a/packages/effect/src/References.ts b/packages/effect/src/References.ts index 8373dd2e4f..deb83a9fb3 100644 --- a/packages/effect/src/References.ts +++ b/packages/effect/src/References.ts @@ -10,13 +10,13 @@ * * @since 4.0.0 */ -import { constTrue } from "./Function.js" -import type { LogLevel } from "./LogLevel.js" -import * as Option from "./Option.js" -import type { ReadonlyRecord } from "./Record.js" -import { MaxOpsBeforeYield } from "./Scheduler.js" -import * as ServiceMap from "./ServiceMap.js" -import { DisablePropagation, type SpanLink, Tracer } from "./Tracer.js" +import { constTrue } from "./Function.ts" +import type { LogLevel } from "./LogLevel.ts" +import * as Option from "./Option.ts" +import type { ReadonlyRecord } from "./Record.ts" +import { MaxOpsBeforeYield } from "./Scheduler.ts" +import * as ServiceMap from "./ServiceMap.ts" +import { DisablePropagation, type SpanLink, Tracer } from "./Tracer.ts" export { /** @@ -111,7 +111,7 @@ export { * @since 4.0.0 */ Scheduler -} from "./Scheduler.js" +} from "./Scheduler.ts" /** * Reference for controlling whether tracing is enabled globally. When set to false, diff --git a/packages/effect/src/RegExp.ts b/packages/effect/src/RegExp.ts index 88cc62bdea..acad9293ca 100644 --- a/packages/effect/src/RegExp.ts +++ b/packages/effect/src/RegExp.ts @@ -3,7 +3,7 @@ * * @since 2.0.0 */ -import * as predicate from "./Predicate.js" +import * as predicate from "./Predicate.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/Result.ts b/packages/effect/src/Result.ts index b256ccbba8..49acc440a0 100644 --- a/packages/effect/src/Result.ts +++ b/packages/effect/src/Result.ts @@ -2,22 +2,22 @@ * @since 4.0.0 */ -import type { Yieldable } from "./Effect.js" -import * as Equivalence from "./Equivalence.js" -import type { LazyArg } from "./Function.js" -import { constNull, constUndefined, dual, identity } from "./Function.js" -import type { TypeLambda } from "./HKT.js" -import type { Inspectable } from "./Inspectable.js" -import * as doNotation from "./internal/doNotation.js" -import * as option_ from "./internal/option.js" -import * as result from "./internal/result.js" -import type { Option } from "./Option.js" -import type { Pipeable } from "./Pipeable.js" -import type { Predicate, Refinement } from "./Predicate.js" -import { isFunction } from "./Predicate.js" -import type { Covariant, NoInfer, NotFunction } from "./Types.js" -import type * as Unify from "./Unify.js" -import * as Gen from "./Utils.js" +import type { Yieldable } from "./Effect.ts" +import * as Equivalence from "./Equivalence.ts" +import type { LazyArg } from "./Function.ts" +import { constNull, constUndefined, dual, identity } from "./Function.ts" +import type { TypeLambda } from "./HKT.ts" +import type { Inspectable } from "./Inspectable.ts" +import * as doNotation from "./internal/doNotation.ts" +import * as option_ from "./internal/option.ts" +import * as result from "./internal/result.ts" +import type { Option } from "./Option.ts" +import type { Pipeable } from "./Pipeable.ts" +import type { Predicate, Refinement } from "./Predicate.ts" +import { isFunction } from "./Predicate.ts" +import type { Covariant, NoInfer, NotFunction } from "./Types.ts" +import type * as Unify from "./Unify.ts" +import * as Gen from "./Utils.ts" /** * Represents a computation that can either succeed with a value of type `A` or fail with an error of type `E`. diff --git a/packages/effect/src/Schedule.ts b/packages/effect/src/Schedule.ts index ee8de3ae26..696a8b146d 100644 --- a/packages/effect/src/Schedule.ts +++ b/packages/effect/src/Schedule.ts @@ -29,19 +29,19 @@ * * @since 2.0.0 */ -import * as Cron from "./Cron.js" -import type * as DateTime from "./DateTime.js" -import * as Duration from "./Duration.js" -import type { Effect } from "./Effect.js" -import type { LazyArg } from "./Function.js" -import { constant, constTrue, dual, identity } from "./Function.js" -import { isEffect } from "./internal/core.js" -import * as effect from "./internal/effect.js" -import { type Pipeable, pipeArguments } from "./Pipeable.js" -import { hasProperty } from "./Predicate.js" -import * as Pull from "./Pull.js" -import * as Result from "./Result.js" -import type { Contravariant, Covariant } from "./Types.js" +import * as Cron from "./Cron.ts" +import type * as DateTime from "./DateTime.ts" +import * as Duration from "./Duration.ts" +import type { Effect } from "./Effect.ts" +import type { LazyArg } from "./Function.ts" +import { constant, constTrue, dual, identity } from "./Function.ts" +import { isEffect } from "./internal/core.ts" +import * as effect from "./internal/effect.ts" +import { type Pipeable, pipeArguments } from "./Pipeable.ts" +import { hasProperty } from "./Predicate.ts" +import * as Pull from "./Pull.ts" +import * as Result from "./Result.ts" +import type { Contravariant, Covariant } from "./Types.ts" /** * Unique identifier for Schedule types, used for type branding and runtime identification. diff --git a/packages/effect/src/Scheduler.ts b/packages/effect/src/Scheduler.ts index 00443a28a8..88b4708be0 100644 --- a/packages/effect/src/Scheduler.ts +++ b/packages/effect/src/Scheduler.ts @@ -1,8 +1,8 @@ /** * @since 2.0.0 */ -import type * as Fiber from "./Fiber.js" -import * as ServiceMap from "./ServiceMap.js" +import type * as Fiber from "./Fiber.ts" +import * as ServiceMap from "./ServiceMap.ts" /** * A scheduler manages the execution of Effects by controlling when and how tasks diff --git a/packages/effect/src/Scope.ts b/packages/effect/src/Scope.ts index 2494fbf306..7a13955ad6 100644 --- a/packages/effect/src/Scope.ts +++ b/packages/effect/src/Scope.ts @@ -14,10 +14,10 @@ * @since 2.0.0 */ -import type { Effect } from "./Effect.js" -import type { Exit } from "./Exit.js" -import * as effect from "./internal/effect.js" -import type * as ServiceMap from "./ServiceMap.js" +import type { Effect } from "./Effect.ts" +import type { Exit } from "./Exit.ts" +import * as effect from "./internal/effect.ts" +import type * as ServiceMap from "./ServiceMap.ts" /** * The unique identifier for the `Scope` type. diff --git a/packages/effect/src/ServiceMap.ts b/packages/effect/src/ServiceMap.ts index 6b1f9c0907..b037ee60a7 100644 --- a/packages/effect/src/ServiceMap.ts +++ b/packages/effect/src/ServiceMap.ts @@ -7,17 +7,17 @@ * * @since 4.0.0 */ -import type { EffectIterator, Yieldable } from "./Effect.js" -import * as Equal from "./Equal.js" -import { constant, dual, type LazyArg } from "./Function.js" -import * as Hash from "./Hash.js" -import type { Inspectable } from "./Inspectable.js" -import { exitSucceed, PipeInspectableProto, withFiber, YieldableProto } from "./internal/core.js" +import type { EffectIterator, Yieldable } from "./Effect.ts" +import * as Equal from "./Equal.ts" +import { constant, dual, type LazyArg } from "./Function.ts" +import * as Hash from "./Hash.ts" +import type { Inspectable } from "./Inspectable.ts" +import { exitSucceed, PipeInspectableProto, withFiber, YieldableProto } from "./internal/core.ts" import type { ErrorWithStackTraceLimit } from "./internal/tracer.ts" -import * as Option from "./Option.js" -import type { Pipeable } from "./Pipeable.js" -import { hasProperty } from "./Predicate.js" -import type * as Types from "./Types.js" +import * as Option from "./Option.ts" +import type { Pipeable } from "./Pipeable.ts" +import { hasProperty } from "./Predicate.ts" +import type * as Types from "./Types.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/Sink.ts b/packages/effect/src/Sink.ts index ceac893b17..c6d8bef527 100644 --- a/packages/effect/src/Sink.ts +++ b/packages/effect/src/Sink.ts @@ -1,16 +1,16 @@ /** * @since 2.0.0 */ -import type { NonEmptyReadonlyArray } from "./Array.js" -import type * as Cause from "./Cause.js" -import * as Channel from "./Channel.js" -import * as Effect from "./Effect.js" -import type { LazyArg } from "./Function.js" -import { identity } from "./Function.js" -import { type Pipeable, pipeArguments } from "./Pipeable.js" -import type * as Scope from "./Scope.js" -import type * as Types from "./Types.js" -import type * as Unify from "./Unify.js" +import type { NonEmptyReadonlyArray } from "./Array.ts" +import type * as Cause from "./Cause.ts" +import * as Channel from "./Channel.ts" +import * as Effect from "./Effect.ts" +import type { LazyArg } from "./Function.ts" +import { identity } from "./Function.ts" +import { type Pipeable, pipeArguments } from "./Pipeable.ts" +import type * as Scope from "./Scope.ts" +import type * as Types from "./Types.ts" +import type * as Unify from "./Unify.ts" /** * The type identifier for Sink. diff --git a/packages/effect/src/Stream.ts b/packages/effect/src/Stream.ts index d98f34722a..441ec70b61 100644 --- a/packages/effect/src/Stream.ts +++ b/packages/effect/src/Stream.ts @@ -1,28 +1,28 @@ /** * @since 2.0.0 */ -import * as Arr from "./Array.js" -import * as Cause from "./Cause.js" -import * as Channel from "./Channel.js" -import * as Effect from "./Effect.js" -import type * as Exit from "./Exit.js" -import * as Fiber from "./Fiber.js" -import type * as Filter from "./Filter.js" -import type { LazyArg } from "./Function.js" -import { dual, identity } from "./Function.js" -import type { TypeLambda } from "./HKT.js" -import * as Option from "./Option.js" -import { type Pipeable, pipeArguments } from "./Pipeable.js" -import { hasProperty } from "./Predicate.js" -import type * as PubSub from "./PubSub.js" -import * as Pull from "./Pull.js" -import * as Queue from "./Queue.js" -import * as Schedule from "./Schedule.js" -import * as Scope from "./Scope.js" -import * as ServiceMap from "./ServiceMap.js" -import type * as Sink from "./Sink.js" -import type { Covariant } from "./Types.js" -import type * as Unify from "./Unify.js" +import * as Arr from "./Array.ts" +import * as Cause from "./Cause.ts" +import * as Channel from "./Channel.ts" +import * as Effect from "./Effect.ts" +import type * as Exit from "./Exit.ts" +import * as Fiber from "./Fiber.ts" +import type * as Filter from "./Filter.ts" +import type { LazyArg } from "./Function.ts" +import { dual, identity } from "./Function.ts" +import type { TypeLambda } from "./HKT.ts" +import * as Option from "./Option.ts" +import { type Pipeable, pipeArguments } from "./Pipeable.ts" +import { hasProperty } from "./Predicate.ts" +import type * as PubSub from "./PubSub.ts" +import * as Pull from "./Pull.ts" +import * as Queue from "./Queue.ts" +import * as Schedule from "./Schedule.ts" +import * as Scope from "./Scope.ts" +import * as ServiceMap from "./ServiceMap.ts" +import type * as Sink from "./Sink.ts" +import type { Covariant } from "./Types.ts" +import type * as Unify from "./Unify.ts" /** * The type identifier for Stream. diff --git a/packages/effect/src/String.ts b/packages/effect/src/String.ts index 1748d9e879..f17efe2e4f 100644 --- a/packages/effect/src/String.ts +++ b/packages/effect/src/String.ts @@ -6,16 +6,16 @@ * @since 2.0.0 */ -import type { NonEmptyArray } from "./Array.js" -import * as equivalence from "./Equivalence.js" -import { dual } from "./Function.js" -import * as readonlyArray from "./internal/array.js" -import * as number from "./Number.js" -import * as Option from "./Option.js" -import * as order from "./Order.js" -import type * as Ordering from "./Ordering.js" -import type { Refinement } from "./Predicate.js" -import * as predicate from "./Predicate.js" +import type { NonEmptyArray } from "./Array.ts" +import * as equivalence from "./Equivalence.ts" +import { dual } from "./Function.ts" +import * as readonlyArray from "./internal/array.ts" +import * as number from "./Number.ts" +import * as Option from "./Option.ts" +import * as order from "./Order.ts" +import type * as Ordering from "./Ordering.ts" +import type { Refinement } from "./Predicate.ts" +import * as predicate from "./Predicate.ts" /** * Reference to the global `String` constructor. diff --git a/packages/effect/src/Struct.ts b/packages/effect/src/Struct.ts index 02f2c2ea53..561bf7e143 100644 --- a/packages/effect/src/Struct.ts +++ b/packages/effect/src/Struct.ts @@ -4,9 +4,9 @@ * @since 2.0.0 */ -import * as Equivalence from "./Equivalence.js" -import { dual } from "./Function.js" -import * as order from "./Order.js" +import * as Equivalence from "./Equivalence.ts" +import { dual } from "./Function.ts" +import * as order from "./Order.ts" /** * A utility type that simplifies the appearance of a type by flattening intersection types. diff --git a/packages/effect/src/Symbol.ts b/packages/effect/src/Symbol.ts index 8304b9ab30..68a0114a90 100644 --- a/packages/effect/src/Symbol.ts +++ b/packages/effect/src/Symbol.ts @@ -2,8 +2,8 @@ * @since 2.0.0 */ -import * as equivalence from "./Equivalence.js" -import * as predicate from "./Predicate.js" +import * as equivalence from "./Equivalence.ts" +import * as predicate from "./Predicate.ts" /** * Tests if a value is a `symbol`. diff --git a/packages/effect/src/TestClock.ts b/packages/effect/src/TestClock.ts index b5e5c1f60f..54c27c456c 100644 --- a/packages/effect/src/TestClock.ts +++ b/packages/effect/src/TestClock.ts @@ -1,14 +1,14 @@ /** * @since 2.0.0 */ -import * as Arr from "./Array.js" -import * as Clock from "./Clock.js" -import * as Data from "./Data.js" -import * as Duration from "./Duration.js" -import * as Effect from "./Effect.js" -import * as Fiber from "./Fiber.js" -import * as Layer from "./Layer.js" -import * as Order from "./Order.js" +import * as Arr from "./Array.ts" +import * as Clock from "./Clock.ts" +import * as Data from "./Data.ts" +import * as Duration from "./Duration.ts" +import * as Effect from "./Effect.ts" +import * as Fiber from "./Fiber.ts" +import * as Layer from "./Layer.ts" +import * as Order from "./Order.ts" /** * A `TestClock` simplifies deterministically and efficiently testing effects diff --git a/packages/effect/src/TestConsole.ts b/packages/effect/src/TestConsole.ts index 019fcdd461..f1621bb2ea 100644 --- a/packages/effect/src/TestConsole.ts +++ b/packages/effect/src/TestConsole.ts @@ -1,11 +1,11 @@ /** * @since 4.0.0 */ -import * as Array from "./Array.js" -import * as Console from "./Console.js" -import * as Effect from "./Effect.js" -import * as Layer from "./Layer.js" -import * as Option from "./Option.js" +import * as Array from "./Array.ts" +import * as Console from "./Console.ts" +import * as Effect from "./Effect.ts" +import * as Layer from "./Layer.ts" +import * as Option from "./Option.ts" /** * A `TestConsole` provides a testable implementation of the Console interface. diff --git a/packages/effect/src/Tracer.ts b/packages/effect/src/Tracer.ts index 97f411e1bc..b80b441e81 100644 --- a/packages/effect/src/Tracer.ts +++ b/packages/effect/src/Tracer.ts @@ -1,11 +1,11 @@ /** * @since 2.0.0 */ -import type * as Exit from "./Exit.js" -import type { Fiber } from "./Fiber.js" -import { constFalse, type LazyArg } from "./Function.js" -import type * as Option from "./Option.js" -import * as ServiceMap from "./ServiceMap.js" +import type * as Exit from "./Exit.ts" +import type { Fiber } from "./Fiber.ts" +import { constFalse, type LazyArg } from "./Function.ts" +import type * as Option from "./Option.ts" +import * as ServiceMap from "./ServiceMap.ts" /** * @since 2.0.0 diff --git a/packages/effect/src/Trie.ts b/packages/effect/src/Trie.ts index 78d02ba495..82060a8221 100644 --- a/packages/effect/src/Trie.ts +++ b/packages/effect/src/Trie.ts @@ -15,12 +15,12 @@ * * @since 2.0.0 */ -import type { Equal } from "./Equal.js" -import type { Inspectable } from "./Inspectable.js" -import * as TR from "./internal/trie.js" -import type { Option } from "./Option.js" -import type { Pipeable } from "./Pipeable.js" -import type { Covariant, NoInfer } from "./Types.js" +import type { Equal } from "./Equal.ts" +import type { Inspectable } from "./Inspectable.ts" +import * as TR from "./internal/trie.ts" +import type { Option } from "./Option.ts" +import type { Pipeable } from "./Pipeable.ts" +import type { Covariant, NoInfer } from "./Types.ts" const TypeId: TypeId = "~effect/Trie" diff --git a/packages/effect/src/Tuple.ts b/packages/effect/src/Tuple.ts index a8b38f1afc..8fe07fa37e 100644 --- a/packages/effect/src/Tuple.ts +++ b/packages/effect/src/Tuple.ts @@ -3,11 +3,11 @@ * * @since 2.0.0 */ -import * as Equivalence from "./Equivalence.js" -import { dual } from "./Function.js" -import type { TypeLambda } from "./HKT.js" -import * as order from "./Order.js" -import type { Apply, Lambda } from "./Struct.js" +import * as Equivalence from "./Equivalence.ts" +import { dual } from "./Function.ts" +import type { TypeLambda } from "./HKT.ts" +import * as order from "./Order.ts" +import type { Apply, Lambda } from "./Struct.ts" /** * A type lambda for tuples with two elements, useful for higher-kinded type operations. @@ -589,4 +589,4 @@ export { * @since 3.3.0 */ isTupleOfAtLeast -} from "./Predicate.js" +} from "./Predicate.ts" diff --git a/packages/effect/src/TxChunk.ts b/packages/effect/src/TxChunk.ts index 49add562ac..15d96dabda 100644 --- a/packages/effect/src/TxChunk.ts +++ b/packages/effect/src/TxChunk.ts @@ -9,15 +9,15 @@ * * @since 4.0.0 */ -import * as Chunk from "./Chunk.js" -import * as Effect from "./Effect.js" -import { dual } from "./Function.js" -import type { Inspectable } from "./Inspectable.js" -import { format, NodeInspectSymbol, toJSON } from "./Inspectable.js" -import type { Pipeable } from "./Pipeable.js" -import { pipeArguments } from "./Pipeable.js" -import * as TxRef from "./TxRef.js" -import type { NoInfer } from "./Types.js" +import * as Chunk from "./Chunk.ts" +import * as Effect from "./Effect.ts" +import { dual } from "./Function.ts" +import type { Inspectable } from "./Inspectable.ts" +import { format, NodeInspectSymbol, toJSON } from "./Inspectable.ts" +import type { Pipeable } from "./Pipeable.ts" +import { pipeArguments } from "./Pipeable.ts" +import * as TxRef from "./TxRef.ts" +import type { NoInfer } from "./Types.ts" /** * Unique identifier for TxChunk instances. diff --git a/packages/effect/src/TxHashMap.ts b/packages/effect/src/TxHashMap.ts index 672beff2ac..a1b63ed1d3 100644 --- a/packages/effect/src/TxHashMap.ts +++ b/packages/effect/src/TxHashMap.ts @@ -2,15 +2,15 @@ * @since 2.0.0 */ -import * as Effect from "./Effect.js" -import { dual } from "./Function.js" -import * as HashMap from "./HashMap.js" -import type { Inspectable } from "./Inspectable.js" -import { format, NodeInspectSymbol, toJSON } from "./Inspectable.js" -import * as Option from "./Option.js" -import type { Pipeable } from "./Pipeable.js" -import { pipeArguments } from "./Pipeable.js" -import * as TxRef from "./TxRef.js" +import * as Effect from "./Effect.ts" +import { dual } from "./Function.ts" +import * as HashMap from "./HashMap.ts" +import type { Inspectable } from "./Inspectable.ts" +import { format, NodeInspectSymbol, toJSON } from "./Inspectable.ts" +import * as Option from "./Option.ts" +import type { Pipeable } from "./Pipeable.ts" +import { pipeArguments } from "./Pipeable.ts" +import * as TxRef from "./TxRef.ts" /** * Unique identifier for TxHashMap instances. diff --git a/packages/effect/src/TxHashSet.ts b/packages/effect/src/TxHashSet.ts index e8fcf83ff1..c03e54f2c9 100644 --- a/packages/effect/src/TxHashSet.ts +++ b/packages/effect/src/TxHashSet.ts @@ -2,16 +2,16 @@ * @since 2.0.0 */ -import * as Effect from "./Effect.js" -import { dual } from "./Function.js" -import * as HashSet from "./HashSet.js" -import type { Inspectable } from "./Inspectable.js" -import { format, NodeInspectSymbol, toJSON } from "./Inspectable.js" -import type { Pipeable } from "./Pipeable.js" -import { pipeArguments } from "./Pipeable.js" -import type { Predicate, Refinement } from "./Predicate.js" -import * as TxRef from "./TxRef.js" -import type { NoInfer } from "./Types.js" +import * as Effect from "./Effect.ts" +import { dual } from "./Function.ts" +import * as HashSet from "./HashSet.ts" +import type { Inspectable } from "./Inspectable.ts" +import { format, NodeInspectSymbol, toJSON } from "./Inspectable.ts" +import type { Pipeable } from "./Pipeable.ts" +import { pipeArguments } from "./Pipeable.ts" +import type { Predicate, Refinement } from "./Predicate.ts" +import * as TxRef from "./TxRef.ts" +import type { NoInfer } from "./Types.ts" /** * Unique identifier for TxHashSet instances. diff --git a/packages/effect/src/TxQueue.ts b/packages/effect/src/TxQueue.ts index feb430ec5d..8007e968bc 100644 --- a/packages/effect/src/TxQueue.ts +++ b/packages/effect/src/TxQueue.ts @@ -9,17 +9,17 @@ * * @since 4.0.0 */ -import * as Cause from "./Cause.js" -import * as Chunk from "./Chunk.js" -import * as Effect from "./Effect.js" -import { dual } from "./Function.js" -import type { Inspectable } from "./Inspectable.js" -import { format, NodeInspectSymbol, toJSON } from "./Inspectable.js" -import * as Option from "./Option.js" -import { hasProperty } from "./Predicate.js" -import * as TxChunk from "./TxChunk.js" -import * as TxRef from "./TxRef.js" -import type * as Types from "./Types.js" +import * as Cause from "./Cause.ts" +import * as Chunk from "./Chunk.ts" +import * as Effect from "./Effect.ts" +import { dual } from "./Function.ts" +import type { Inspectable } from "./Inspectable.ts" +import { format, NodeInspectSymbol, toJSON } from "./Inspectable.ts" +import * as Option from "./Option.ts" +import { hasProperty } from "./Predicate.ts" +import * as TxChunk from "./TxChunk.ts" +import * as TxRef from "./TxRef.ts" +import type * as Types from "./Types.ts" /** * Represents the state of a transactional queue with sophisticated lifecycle management. diff --git a/packages/effect/src/TxRef.ts b/packages/effect/src/TxRef.ts index 4ed2fcb986..246c98e678 100644 --- a/packages/effect/src/TxRef.ts +++ b/packages/effect/src/TxRef.ts @@ -8,9 +8,9 @@ * * @since 4.0.0 */ -import * as Effect from "./Effect.js" -import { dual } from "./Function.js" -import type { NoInfer } from "./Types.js" +import * as Effect from "./Effect.ts" +import { dual } from "./Function.ts" +import type { NoInfer } from "./Types.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/TxSemaphore.ts b/packages/effect/src/TxSemaphore.ts index 20065b5b47..19601fd65a 100644 --- a/packages/effect/src/TxSemaphore.ts +++ b/packages/effect/src/TxSemaphore.ts @@ -2,13 +2,13 @@ * @since 4.0.0 */ -import * as Effect from "./Effect.js" -import type { Inspectable } from "./Inspectable.js" -import { NodeInspectSymbol, toJSON } from "./Inspectable.js" -import type { Pipeable } from "./Pipeable.js" -import { pipeArguments } from "./Pipeable.js" -import type * as Scope from "./Scope.js" -import * as TxRef from "./TxRef.js" +import * as Effect from "./Effect.ts" +import type { Inspectable } from "./Inspectable.ts" +import { NodeInspectSymbol, toJSON } from "./Inspectable.ts" +import type { Pipeable } from "./Pipeable.ts" +import { pipeArguments } from "./Pipeable.ts" +import type * as Scope from "./Scope.ts" +import * as TxRef from "./TxRef.ts" /** * Unique identifier for TxSemaphore instances. diff --git a/packages/effect/src/Unify.ts b/packages/effect/src/Unify.ts index 6e774f38a1..18fd5f1028 100644 --- a/packages/effect/src/Unify.ts +++ b/packages/effect/src/Unify.ts @@ -2,7 +2,7 @@ * @since 2.0.0 */ -import { identity } from "./Function.js" +import { identity } from "./Function.ts" /** * A unique symbol used to identify unification behavior in Effect types. diff --git a/packages/effect/src/Utils.ts b/packages/effect/src/Utils.ts index fe328f68f9..0752639851 100644 --- a/packages/effect/src/Utils.ts +++ b/packages/effect/src/Utils.ts @@ -1,11 +1,11 @@ /** * @since 2.0.0 */ -import { identity } from "./Function.js" -import type { Kind, TypeLambda } from "./HKT.js" -import { getBugErrorMessage } from "./internal/errors.js" -import { isNullable, isObject } from "./Predicate.js" -import type * as Types from "./Types.js" +import { identity } from "./Function.ts" +import type { Kind, TypeLambda } from "./HKT.ts" +import { getBugErrorMessage } from "./internal/errors.ts" +import { isNullable, isObject } from "./Predicate.ts" +import type * as Types from "./Types.ts" /** * Copyright 2014 Thom Chiovoloni, released under the MIT license. diff --git a/packages/effect/src/batching/Request.ts b/packages/effect/src/batching/Request.ts index 5461ed49c5..2e513462ac 100644 --- a/packages/effect/src/batching/Request.ts +++ b/packages/effect/src/batching/Request.ts @@ -13,17 +13,17 @@ * * @since 2.0.0 */ -import type * as Cause from "../Cause.js" -import type * as Effect from "../Effect.js" -import type * as Exit from "../Exit.js" -import { dual } from "../Function.js" -import * as core from "../internal/core.js" -import { StructuralPrototype } from "../internal/core.js" -import * as internalEffect from "../internal/effect.js" -import type * as Option from "../Option.js" -import { hasProperty } from "../Predicate.js" -import type * as ServiceMap from "../ServiceMap.js" -import type * as Types from "../Types.js" +import type * as Cause from "../Cause.ts" +import type * as Effect from "../Effect.ts" +import type * as Exit from "../Exit.ts" +import { dual } from "../Function.ts" +import * as core from "../internal/core.ts" +import { StructuralPrototype } from "../internal/core.ts" +import * as internalEffect from "../internal/effect.ts" +import type * as Option from "../Option.ts" +import { hasProperty } from "../Predicate.ts" +import type * as ServiceMap from "../ServiceMap.ts" +import type * as Types from "../Types.ts" /** * @example diff --git a/packages/effect/src/batching/RequestResolver.ts b/packages/effect/src/batching/RequestResolver.ts index 2de0a835b8..47c3ae433f 100644 --- a/packages/effect/src/batching/RequestResolver.ts +++ b/packages/effect/src/batching/RequestResolver.ts @@ -1,21 +1,21 @@ /** * @since 2.0.0 */ -import type { NonEmptyArray } from "../Array.js" -import * as Cache from "../caching/Cache.js" -import * as Duration from "../Duration.js" -import type { Effect } from "../Effect.js" -import { constTrue, dual, identity } from "../Function.js" -import { exitFail, exitSucceed } from "../internal/core.js" -import * as effect from "../internal/effect.js" -import * as internal from "../internal/request.js" -import * as MutableHashMap from "../MutableHashMap.js" -import { type Pipeable, pipeArguments } from "../Pipeable.js" -import { hasProperty } from "../Predicate.js" -import * as ServiceMap from "../ServiceMap.js" -import * as Tracer from "../Tracer.js" -import type * as Types from "../Types.js" -import type * as Request from "./Request.js" +import type { NonEmptyArray } from "../Array.ts" +import * as Cache from "../caching/Cache.ts" +import * as Duration from "../Duration.ts" +import type { Effect } from "../Effect.ts" +import { constTrue, dual, identity } from "../Function.ts" +import { exitFail, exitSucceed } from "../internal/core.ts" +import * as effect from "../internal/effect.ts" +import * as internal from "../internal/request.ts" +import * as MutableHashMap from "../MutableHashMap.ts" +import { type Pipeable, pipeArguments } from "../Pipeable.ts" +import { hasProperty } from "../Predicate.ts" +import * as ServiceMap from "../ServiceMap.ts" +import * as Tracer from "../Tracer.ts" +import type * as Types from "../Types.ts" +import type * as Request from "./Request.ts" /** * @since 2.0.0 diff --git a/packages/effect/src/batching/index.ts b/packages/effect/src/batching/index.ts index 489f56527a..2199d0add7 100644 --- a/packages/effect/src/batching/index.ts +++ b/packages/effect/src/batching/index.ts @@ -17,9 +17,9 @@ * * @since 2.0.0 */ -export * as Request from "./Request.js" +export * as Request from "./Request.ts" /** * @since 2.0.0 */ -export * as RequestResolver from "./RequestResolver.js" +export * as RequestResolver from "./RequestResolver.ts" diff --git a/packages/effect/src/batching/.index.ts b/packages/effect/src/batching/index.ts.tpl similarity index 100% rename from packages/effect/src/batching/.index.ts rename to packages/effect/src/batching/index.ts.tpl diff --git a/packages/effect/src/caching/Cache.ts b/packages/effect/src/caching/Cache.ts index 4920515086..81cfcefeb3 100644 --- a/packages/effect/src/caching/Cache.ts +++ b/packages/effect/src/caching/Cache.ts @@ -1,21 +1,21 @@ /** * @since 4.0.0 */ -import * as Deferred from "../Deferred.js" -import * as Duration from "../Duration.js" -import type * as Effect from "../Effect.js" -import type * as Exit from "../Exit.js" -import type * as Fiber from "../Fiber.js" -import { dual } from "../Function.js" -import * as core from "../internal/core.js" -import { PipeInspectableProto } from "../internal/core.js" -import * as effect from "../internal/effect.js" -import * as Iterable from "../Iterable.js" -import * as MutableHashMap from "../MutableHashMap.js" -import * as Option from "../Option.js" -import type { Pipeable } from "../Pipeable.js" -import type { Predicate } from "../Predicate.js" -import * as ServiceMap from "../ServiceMap.js" +import * as Deferred from "../Deferred.ts" +import * as Duration from "../Duration.ts" +import type * as Effect from "../Effect.ts" +import type * as Exit from "../Exit.ts" +import type * as Fiber from "../Fiber.ts" +import { dual } from "../Function.ts" +import * as core from "../internal/core.ts" +import { PipeInspectableProto } from "../internal/core.ts" +import * as effect from "../internal/effect.ts" +import * as Iterable from "../Iterable.ts" +import * as MutableHashMap from "../MutableHashMap.ts" +import * as Option from "../Option.ts" +import type { Pipeable } from "../Pipeable.ts" +import type { Predicate } from "../Predicate.ts" +import * as ServiceMap from "../ServiceMap.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/caching/index.ts b/packages/effect/src/caching/index.ts index 342f355293..9ec9c5d01d 100644 --- a/packages/effect/src/caching/index.ts +++ b/packages/effect/src/caching/index.ts @@ -5,4 +5,4 @@ /** * @since 4.0.0 */ -export * as Cache from "./Cache.js" +export * as Cache from "./Cache.ts" diff --git a/packages/effect/src/caching/.index.ts b/packages/effect/src/caching/index.ts.tpl similarity index 100% rename from packages/effect/src/caching/.index.ts rename to packages/effect/src/caching/index.ts.tpl diff --git a/packages/effect/src/config/Config.ts b/packages/effect/src/config/Config.ts index 374685cc98..592c7f2fb2 100644 --- a/packages/effect/src/config/Config.ts +++ b/packages/effect/src/config/Config.ts @@ -1,26 +1,26 @@ /** * @since 4.0.0 */ -import * as Arr from "../Array.js" -import type * as Brand from "../Brand.js" -import * as Cause from "../Cause.js" -import * as DateTime_ from "../DateTime.js" -import * as Duration_ from "../Duration.js" -import * as Effect from "../Effect.js" -import * as Exit from "../Exit.js" -import * as Filter from "../Filter.js" -import type { LazyArg } from "../Function.js" -import { constant, dual } from "../Function.js" -import { PipeInspectableProto, YieldableProto } from "../internal/core.js" -import * as LogLevel_ from "../LogLevel.js" -import type * as Option from "../Option.js" -import type { Pipeable } from "../Pipeable.js" -import { hasProperty } from "../Predicate.js" -import * as Redacted_ from "../Redacted.js" -import * as Str from "../String.js" -import type { NoInfer } from "../Types.js" -import { type ConfigError, filterMissingDataOnly, InvalidData, MissingData } from "./ConfigError.js" -import * as ConfigProvider from "./ConfigProvider.js" +import * as Arr from "../Array.ts" +import type * as Brand from "../Brand.ts" +import * as Cause from "../Cause.ts" +import * as DateTime_ from "../DateTime.ts" +import * as Duration_ from "../Duration.ts" +import * as Effect from "../Effect.ts" +import * as Exit from "../Exit.ts" +import * as Filter from "../Filter.ts" +import type { LazyArg } from "../Function.ts" +import { constant, dual } from "../Function.ts" +import { PipeInspectableProto, YieldableProto } from "../internal/core.ts" +import * as LogLevel_ from "../LogLevel.ts" +import type * as Option from "../Option.ts" +import type { Pipeable } from "../Pipeable.ts" +import { hasProperty } from "../Predicate.ts" +import * as Redacted_ from "../Redacted.ts" +import * as Str from "../String.ts" +import type { NoInfer } from "../Types.ts" +import { type ConfigError, filterMissingDataOnly, InvalidData, MissingData } from "./ConfigError.ts" +import * as ConfigProvider from "./ConfigProvider.ts" /** * The type identifier for Config values. diff --git a/packages/effect/src/config/ConfigError.ts b/packages/effect/src/config/ConfigError.ts index 587c35b63d..4cd0f8278a 100644 --- a/packages/effect/src/config/ConfigError.ts +++ b/packages/effect/src/config/ConfigError.ts @@ -1,10 +1,10 @@ /** * @since 4.0.0 */ -import type * as Cause from "../Cause.js" -import * as Data from "../Data.js" -import * as Filter from "../Filter.js" -import { hasProperty } from "../Predicate.js" +import type * as Cause from "../Cause.ts" +import * as Data from "../Data.ts" +import * as Filter from "../Filter.ts" +import { hasProperty } from "../Predicate.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/config/ConfigProvider.ts b/packages/effect/src/config/ConfigProvider.ts index 3fc787d59e..1963d8693a 100644 --- a/packages/effect/src/config/ConfigProvider.ts +++ b/packages/effect/src/config/ConfigProvider.ts @@ -1,22 +1,22 @@ /** * @since 4.0.0 */ -import * as Arr from "../Array.js" -import * as Cause from "../Cause.js" -import * as Effect from "../Effect.js" -import { constant, dual, identity } from "../Function.js" -import { toStringUnknown } from "../Inspectable.js" -import { PipeInspectableProto } from "../internal/core.js" -import * as Layer from "../Layer.js" -import type { Pipeable } from "../Pipeable.js" -import * as FileSystem from "../platform/FileSystem.js" -import * as Path from "../platform/Path.js" -import type { PlatformError } from "../platform/PlatformError.js" -import { hasProperty } from "../Predicate.js" -import type { Scope } from "../Scope.js" -import * as ServiceMap from "../ServiceMap.js" -import * as Str from "../String.js" -import { type ConfigError, filterMissingDataOnly, MissingData, SourceError } from "./ConfigError.js" +import * as Arr from "../Array.ts" +import * as Cause from "../Cause.ts" +import * as Effect from "../Effect.ts" +import { constant, dual, identity } from "../Function.ts" +import { toStringUnknown } from "../Inspectable.ts" +import { PipeInspectableProto } from "../internal/core.ts" +import * as Layer from "../Layer.ts" +import type { Pipeable } from "../Pipeable.ts" +import * as FileSystem from "../platform/FileSystem.ts" +import * as Path from "../platform/Path.ts" +import type { PlatformError } from "../platform/PlatformError.ts" +import { hasProperty } from "../Predicate.ts" +import type { Scope } from "../Scope.ts" +import * as ServiceMap from "../ServiceMap.ts" +import * as Str from "../String.ts" +import { type ConfigError, filterMissingDataOnly, MissingData, SourceError } from "./ConfigError.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/config/index.ts b/packages/effect/src/config/index.ts index eba1f4c7ee..9d8e241c6a 100644 --- a/packages/effect/src/config/index.ts +++ b/packages/effect/src/config/index.ts @@ -5,14 +5,14 @@ /** * @since 4.0.0 */ -export * as Config from "./Config.js" +export * as Config from "./Config.ts" /** * @since 4.0.0 */ -export * as ConfigError from "./ConfigError.js" +export * as ConfigError from "./ConfigError.ts" /** * @since 4.0.0 */ -export * as ConfigProvider from "./ConfigProvider.js" +export * as ConfigProvider from "./ConfigProvider.ts" diff --git a/packages/effect/src/config/.index.ts b/packages/effect/src/config/index.ts.tpl similarity index 100% rename from packages/effect/src/config/.index.ts rename to packages/effect/src/config/index.ts.tpl diff --git a/packages/effect/src/index.ts b/packages/effect/src/index.ts index 045b8242b2..f061e98f9d 100644 --- a/packages/effect/src/index.ts +++ b/packages/effect/src/index.ts @@ -27,14 +27,14 @@ export { * @since 2.0.0 */ unsafeCoerce -} from "./Function.js" +} from "./Function.ts" /** * This module provides utility functions for working with arrays in TypeScript. * * @since 2.0.0 */ -export * as Array from "./Array.js" +export * as Array from "./Array.ts" /** * This module provides utility functions and type class instances for working with the `BigDecimal` type in TypeScript. @@ -51,7 +51,7 @@ export * as Array from "./Array.js" * * @since 2.0.0 */ -export * as BigDecimal from "./BigDecimal.js" +export * as BigDecimal from "./BigDecimal.ts" /** * This module provides utility functions and type class instances for working with the `bigint` type in TypeScript. @@ -60,7 +60,7 @@ export * as BigDecimal from "./BigDecimal.js" * * @since 2.0.0 */ -export * as BigInt from "./BigInt.js" +export * as BigInt from "./BigInt.ts" /** * This module provides utility functions and type class instances for working with the `boolean` type in TypeScript. @@ -69,7 +69,7 @@ export * as BigInt from "./BigInt.js" * * @since 2.0.0 */ -export * as Boolean from "./Boolean.js" +export * as Boolean from "./Boolean.ts" /** * This module provides types and utility functions to create and work with branded types, @@ -89,7 +89,7 @@ export * as Boolean from "./Boolean.js" * * @since 2.0.0 */ -export * as Brand from "./Brand.js" +export * as Brand from "./Brand.ts" /** * This module provides utilities for working with `Cause`, a data type that represents @@ -132,7 +132,7 @@ export * as Brand from "./Brand.js" * * @since 2.0.0 */ -export * as Cause from "./Cause.js" +export * as Cause from "./Cause.ts" /** * The `Channel` module provides a powerful abstraction for bi-directional communication @@ -192,7 +192,7 @@ export * as Cause from "./Cause.js" * * @since 2.0.0 */ -export * as Channel from "./Channel.js" +export * as Channel from "./Channel.ts" /** * The `Chunk` module provides an immutable, high-performance sequence data structure @@ -264,7 +264,7 @@ export * as Channel from "./Channel.js" * * @since 2.0.0 */ -export * as Chunk from "./Chunk.js" +export * as Chunk from "./Chunk.ts" /** * The `Clock` module provides functionality for time-based operations in Effect applications. @@ -324,7 +324,7 @@ export * as Chunk from "./Chunk.js" * * @since 2.0.0 */ -export * as Clock from "./Clock.js" +export * as Clock from "./Clock.ts" /** * The `Console` module provides a functional interface for console operations within @@ -398,12 +398,12 @@ export * as Clock from "./Clock.js" * * @since 2.0.0 */ -export * as Console from "./Console.js" +export * as Console from "./Console.ts" /** * @since 2.0.0 */ -export * as Cron from "./Cron.js" +export * as Cron from "./Cron.ts" /** * This module provides utilities for creating data types with structural equality @@ -450,12 +450,12 @@ export * as Cron from "./Cron.js" * * @since 2.0.0 */ -export * as Data from "./Data.js" +export * as Data from "./Data.ts" /** * @since 3.6.0 */ -export * as DateTime from "./DateTime.js" +export * as DateTime from "./DateTime.ts" /** * This module provides utilities for working with `Deferred`, a powerful concurrency @@ -525,7 +525,7 @@ export * as DateTime from "./DateTime.js" * * @since 2.0.0 */ -export * as Deferred from "./Deferred.js" +export * as Deferred from "./Deferred.ts" /** * This module provides utilities for working with durations of time. A `Duration` @@ -573,7 +573,7 @@ export * as Deferred from "./Deferred.js" * * @since 2.0.0 */ -export * as Duration from "./Duration.js" +export * as Duration from "./Duration.ts" /** * The `Effect` module is the core of the Effect library, providing a powerful and expressive @@ -643,7 +643,7 @@ export * as Duration from "./Duration.js" * * @since 2.0.0 */ -export * as Effect from "./Effect.js" +export * as Effect from "./Effect.ts" /** * This module provides encoding & decoding functionality for: @@ -654,7 +654,7 @@ export * as Effect from "./Effect.js" * * @since 2.0.0 */ -export * as Encoding from "./Encoding.js" +export * as Encoding from "./Encoding.ts" /** * This module provides functionality for defining and working with equality between values. @@ -663,7 +663,7 @@ export * as Encoding from "./Encoding.js" * * @since 2.0.0 */ -export * as Equal from "./Equal.js" +export * as Equal from "./Equal.ts" /** * This module provides utilities for working with equivalence relations - binary relations that are @@ -703,7 +703,7 @@ export * as Equal from "./Equal.js" * * @since 2.0.0 */ -export * as Equivalence from "./Equivalence.js" +export * as Equivalence from "./Equivalence.ts" /** * The `Exit` type represents the result of running an Effect computation. @@ -716,7 +716,7 @@ export * as Equivalence from "./Equivalence.js" * * @since 2.0.0 */ -export * as Exit from "./Exit.js" +export * as Exit from "./Exit.ts" /** * This module provides a re-export of the fast-check library for property-based testing. @@ -729,7 +729,7 @@ export * as Exit from "./Exit.js" * * @since 3.10.0 */ -export * as FastCheck from "./FastCheck.js" +export * as FastCheck from "./FastCheck.ts" /** * This module provides utilities for working with `Fiber`, the fundamental unit of @@ -805,37 +805,37 @@ export * as FastCheck from "./FastCheck.js" * * @since 2.0.0 */ -export * as Fiber from "./Fiber.js" +export * as Fiber from "./Fiber.ts" /** * @since 2.0.0 */ -export * as FiberHandle from "./FiberHandle.js" +export * as FiberHandle from "./FiberHandle.ts" /** * @since 2.0.0 */ -export * as FiberMap from "./FiberMap.js" +export * as FiberMap from "./FiberMap.ts" /** * @since 2.0.0 */ -export * as FiberSet from "./FiberSet.js" +export * as FiberSet from "./FiberSet.ts" /** * @since 4.0.0 */ -export * as Filter from "./Filter.js" +export * as Filter from "./Filter.ts" /** * @since 2.0.0 */ -export * as Function from "./Function.js" +export * as Function from "./Function.ts" /** * @since 4.0.0 */ -export * as Graph from "./Graph.js" +export * as Graph from "./Graph.ts" /** * This module provides utilities for hashing values in TypeScript. @@ -846,17 +846,17 @@ export * as Graph from "./Graph.js" * * @since 2.0.0 */ -export * as Hash from "./Hash.js" +export * as Hash from "./Hash.ts" /** * @since 2.0.0 */ -export * as HashMap from "./HashMap.js" +export * as HashMap from "./HashMap.ts" /** * @since 2.0.0 */ -export * as HashSet from "./HashSet.js" +export * as HashSet from "./HashSet.ts" /** * This module provides utilities for Higher-Kinded Types (HKT) in TypeScript. @@ -891,7 +891,7 @@ export * as HashSet from "./HashSet.js" * * @since 2.0.0 */ -export * as HKT from "./HKT.js" +export * as HKT from "./HKT.ts" /** * This module provides utilities for making values inspectable and debuggable in TypeScript. @@ -931,7 +931,7 @@ export * as HKT from "./HKT.js" * * @since 2.0.0 */ -export * as Inspectable from "./Inspectable.js" +export * as Inspectable from "./Inspectable.ts" /** * This module provides utility functions for working with Iterables in TypeScript. @@ -964,7 +964,7 @@ export * as Inspectable from "./Inspectable.js" * * @since 2.0.0 */ -export * as Iterable from "./Iterable.js" +export * as Iterable from "./Iterable.ts" /** * A `Layer` describes how to build one or more services in your @@ -985,13 +985,13 @@ export * as Iterable from "./Iterable.js" * * @since 2.0.0 */ -export * as Layer from "./Layer.js" +export * as Layer from "./Layer.ts" /** * @since 3.14.0 * @experimental */ -export * as LayerMap from "./LayerMap.js" +export * as LayerMap from "./LayerMap.ts" /** * @since 2.0.0 @@ -1092,7 +1092,7 @@ export * as LayerMap from "./LayerMap.js" * }) * ``` */ -export * as Logger from "./Logger.js" +export * as Logger from "./Logger.ts" /** * @since 2.0.0 @@ -1192,12 +1192,12 @@ export * as Logger from "./Logger.js" * }) * ``` */ -export * as LogLevel from "./LogLevel.js" +export * as LogLevel from "./LogLevel.ts" /** * @since 2.0.0 */ -export * as ManagedRuntime from "./ManagedRuntime.js" +export * as ManagedRuntime from "./ManagedRuntime.ts" /** * The `effect/match` module provides a type-safe pattern matching system for @@ -1227,7 +1227,7 @@ export * as ManagedRuntime from "./ManagedRuntime.js" * * @since 4.0.0 */ -export * as Match from "./Match.js" +export * as Match from "./Match.ts" /** * @since 2.0.0 @@ -1367,7 +1367,7 @@ export * as Match from "./Match.js" * }) * ``` */ -export * as Metric from "./Metric.js" +export * as Metric from "./Metric.ts" /** * @fileoverview @@ -1396,7 +1396,7 @@ export * as Metric from "./Metric.js" * @since 2.0.0 * @category data-structures */ -export * as MutableHashMap from "./MutableHashMap.js" +export * as MutableHashMap from "./MutableHashMap.ts" /** * @fileoverview @@ -1424,7 +1424,7 @@ export * as MutableHashMap from "./MutableHashMap.js" * @since 2.0.0 * @category data-structures */ -export * as MutableHashSet from "./MutableHashSet.js" +export * as MutableHashSet from "./MutableHashSet.ts" /** * @fileoverview @@ -1462,7 +1462,7 @@ export * as MutableHashSet from "./MutableHashSet.js" * @since 4.0.0 * @category data-structures */ -export * as MutableList from "./MutableList.js" +export * as MutableList from "./MutableList.ts" /** * @fileoverview @@ -1496,7 +1496,7 @@ export * as MutableList from "./MutableList.js" * @since 2.0.0 * @category data-structures */ -export * as MutableRef from "./MutableRef.js" +export * as MutableRef from "./MutableRef.ts" /** * @since 2.0.0 @@ -1612,7 +1612,7 @@ export * as MutableRef from "./MutableRef.js" * ) * ``` */ -export * as NonEmptyIterable from "./NonEmptyIterable.js" +export * as NonEmptyIterable from "./NonEmptyIterable.ts" /** * This module provides utility functions and type class instances for working with the `number` type in TypeScript. @@ -1621,12 +1621,12 @@ export * as NonEmptyIterable from "./NonEmptyIterable.js" * * @since 2.0.0 */ -export * as Number from "./Number.js" +export * as Number from "./Number.ts" /** * @since 2.0.0 */ -export * as Option from "./Option.js" +export * as Option from "./Option.ts" /** * This module provides an implementation of the `Order` type class which is used to define a total ordering on some type `A`. @@ -1646,7 +1646,7 @@ export * as Option from "./Option.js" * * @since 2.0.0 */ -export * as Order from "./Order.js" +export * as Order from "./Order.ts" /** * @fileoverview @@ -1675,17 +1675,17 @@ export * as Order from "./Order.js" * @since 2.0.0 * @category utilities */ -export * as Ordering from "./Ordering.js" +export * as Ordering from "./Ordering.ts" /** * @since 2.0.0 */ -export * as Pipeable from "./Pipeable.js" +export * as Pipeable from "./Pipeable.ts" /** * @since 2.0.0 */ -export * as Predicate from "./Predicate.js" +export * as Predicate from "./Predicate.ts" /** * This module provides functionality for working with primary keys. @@ -1698,7 +1698,7 @@ export * as Predicate from "./Predicate.js" * * @since 2.0.0 */ -export * as PrimaryKey from "./PrimaryKey.js" +export * as PrimaryKey from "./PrimaryKey.ts" /** * This module provides utilities for working with publish-subscribe (PubSub) systems. @@ -1730,12 +1730,12 @@ export * as PrimaryKey from "./PrimaryKey.js" * * @since 2.0.0 */ -export * as PubSub from "./PubSub.js" +export * as PubSub from "./PubSub.ts" /** * @since 4.0.0 */ -export * as Pull from "./Pull.js" +export * as Pull from "./Pull.ts" /** * This module provides utilities for working with asynchronous queues that support various backpressure strategies. @@ -1771,24 +1771,24 @@ export * as Pull from "./Pull.js" * * @since 3.8.0 */ -export * as Queue from "./Queue.js" +export * as Queue from "./Queue.ts" /** * @since 3.5.0 */ -export * as RcMap from "./RcMap.js" +export * as RcMap from "./RcMap.ts" /** * @since 3.5.0 */ -export * as RcRef from "./RcRef.js" +export * as RcRef from "./RcRef.ts" /** * This module provides utility functions for working with records in TypeScript. * * @since 2.0.0 */ -export * as Record from "./Record.js" +export * as Record from "./Record.ts" /** * The Redacted module provides functionality for handling sensitive information @@ -1798,7 +1798,7 @@ export * as Record from "./Record.js" * * @since 3.3.0 */ -export * as Redacted from "./Redacted.js" +export * as Redacted from "./Redacted.ts" /** * This module provides utilities for working with mutable references in a functional context. @@ -1830,7 +1830,7 @@ export * as Redacted from "./Redacted.js" * * @since 2.0.0 */ -export * as Ref from "./Ref.js" +export * as Ref from "./Ref.ts" /** * This module provides a collection of reference implementations for commonly used @@ -1844,19 +1844,19 @@ export * as Ref from "./Ref.js" * * @since 4.0.0 */ -export * as References from "./References.js" +export * as References from "./References.ts" /** * This module provides utility functions for working with RegExp in TypeScript. * * @since 2.0.0 */ -export * as RegExp from "./RegExp.js" +export * as RegExp from "./RegExp.ts" /** * @since 4.0.0 */ -export * as Result from "./Result.js" +export * as Result from "./Result.ts" /** * This module provides utilities for running Effect programs and managing their execution lifecycle. @@ -1886,7 +1886,7 @@ export * as Result from "./Result.js" * * @since 4.0.0 */ -export * as Runtime from "./Runtime.js" +export * as Runtime from "./Runtime.ts" /** * This module provides utilities for creating and composing schedules for retrying operations, @@ -1919,12 +1919,12 @@ export * as Runtime from "./Runtime.js" * * @since 2.0.0 */ -export * as Schedule from "./Schedule.js" +export * as Schedule from "./Schedule.ts" /** * @since 2.0.0 */ -export * as Scheduler from "./Scheduler.js" +export * as Scheduler from "./Scheduler.ts" /** * The `Scope` module provides functionality for managing resource lifecycles @@ -1941,7 +1941,7 @@ export * as Scheduler from "./Scheduler.js" * * @since 2.0.0 */ -export * as Scope from "./Scope.js" +export * as Scope from "./Scope.ts" /** * This module provides a data structure called `ServiceMap` that can be used for dependency injection in effectful @@ -1952,17 +1952,17 @@ export * as Scope from "./Scope.js" * * @since 4.0.0 */ -export * as ServiceMap from "./ServiceMap.js" +export * as ServiceMap from "./ServiceMap.ts" /** * @since 2.0.0 */ -export * as Sink from "./Sink.js" +export * as Sink from "./Sink.ts" /** * @since 2.0.0 */ -export * as Stream from "./Stream.js" +export * as Stream from "./Stream.ts" /** * This module provides utility functions and type class instances for working with the `string` type in TypeScript. @@ -1971,34 +1971,34 @@ export * as Stream from "./Stream.js" * * @since 2.0.0 */ -export * as String from "./String.js" +export * as String from "./String.ts" /** * This module provides utility functions for working with structs in TypeScript. * * @since 2.0.0 */ -export * as Struct from "./Struct.js" +export * as Struct from "./Struct.ts" /** * @since 2.0.0 */ -export * as Symbol from "./Symbol.js" +export * as Symbol from "./Symbol.ts" /** * @since 2.0.0 */ -export * as TestClock from "./TestClock.js" +export * as TestClock from "./TestClock.ts" /** * @since 4.0.0 */ -export * as TestConsole from "./TestConsole.js" +export * as TestConsole from "./TestConsole.ts" /** * @since 2.0.0 */ -export * as Tracer from "./Tracer.js" +export * as Tracer from "./Tracer.ts" /** * A `Trie` is used for locating specific `string` keys from within a set. @@ -2017,14 +2017,14 @@ export * as Tracer from "./Tracer.js" * * @since 2.0.0 */ -export * as Trie from "./Trie.js" +export * as Trie from "./Trie.ts" /** * This module provides utility functions for working with tuples in TypeScript. * * @since 2.0.0 */ -export * as Tuple from "./Tuple.js" +export * as Tuple from "./Tuple.ts" /** * TxChunk is a transactional chunk data structure that provides Software Transactional Memory (STM) @@ -2037,17 +2037,17 @@ export * as Tuple from "./Tuple.js" * * @since 4.0.0 */ -export * as TxChunk from "./TxChunk.js" +export * as TxChunk from "./TxChunk.ts" /** * @since 2.0.0 */ -export * as TxHashMap from "./TxHashMap.js" +export * as TxHashMap from "./TxHashMap.ts" /** * @since 2.0.0 */ -export * as TxHashSet from "./TxHashSet.js" +export * as TxHashSet from "./TxHashSet.ts" /** * TxQueue is a transactional queue data structure that provides Software Transactional Memory (STM) @@ -2060,7 +2060,7 @@ export * as TxHashSet from "./TxHashSet.js" * * @since 4.0.0 */ -export * as TxQueue from "./TxQueue.js" +export * as TxQueue from "./TxQueue.ts" /** * TxRef is a transactional value, it can be read and modified within the body of a transaction. @@ -2072,26 +2072,26 @@ export * as TxQueue from "./TxQueue.js" * * @since 4.0.0 */ -export * as TxRef from "./TxRef.js" +export * as TxRef from "./TxRef.ts" /** * @since 4.0.0 */ -export * as TxSemaphore from "./TxSemaphore.js" +export * as TxSemaphore from "./TxSemaphore.ts" /** * A collection of types that are commonly used types. * * @since 2.0.0 */ -export * as Types from "./Types.js" +export * as Types from "./Types.ts" /** * @since 2.0.0 */ -export * as Unify from "./Unify.js" +export * as Unify from "./Unify.ts" /** * @since 2.0.0 */ -export * as Utils from "./Utils.js" +export * as Utils from "./Utils.ts" diff --git a/packages/effect/src/.index.ts b/packages/effect/src/index.ts.tpl similarity index 92% rename from packages/effect/src/.index.ts rename to packages/effect/src/index.ts.tpl index c12c6cf5c6..23a89b9b1e 100644 --- a/packages/effect/src/.index.ts +++ b/packages/effect/src/index.ts.tpl @@ -27,4 +27,4 @@ export { * @since 2.0.0 */ unsafeCoerce -} from "./Function.js" +} from "./Function.ts" diff --git a/packages/effect/src/internal/array.ts b/packages/effect/src/internal/array.ts index 24d7ee216e..62513cb7d6 100644 --- a/packages/effect/src/internal/array.ts +++ b/packages/effect/src/internal/array.ts @@ -2,7 +2,7 @@ * @since 2.0.0 */ -import type { NonEmptyArray } from "../Array.js" +import type { NonEmptyArray } from "../Array.ts" /** @internal */ export const isNonEmptyArray = (self: ReadonlyArray): self is NonEmptyArray => self.length > 0 diff --git a/packages/effect/src/internal/concurrency.ts b/packages/effect/src/internal/concurrency.ts index 6a54d16462..7820c9f45b 100644 --- a/packages/effect/src/internal/concurrency.ts +++ b/packages/effect/src/internal/concurrency.ts @@ -1,7 +1,7 @@ -import type { Effect } from "../Effect.js" -import { CurrentConcurrency } from "../References.js" -import type { Concurrency } from "../Types.js" -import * as effect from "./effect.js" +import type { Effect } from "../Effect.ts" +import { CurrentConcurrency } from "../References.ts" +import type { Concurrency } from "../Types.ts" +import * as effect from "./effect.ts" /** @internal */ export const match = ( diff --git a/packages/effect/src/internal/core.ts b/packages/effect/src/internal/core.ts index a1224f759e..0e0218befe 100644 --- a/packages/effect/src/internal/core.ts +++ b/packages/effect/src/internal/core.ts @@ -1,18 +1,18 @@ -import type * as Cause from "../Cause.js" -import type * as Effect from "../Effect.js" -import * as Equal from "../Equal.js" -import type * as Exit from "../Exit.js" -import { dual, identity } from "../Function.js" -import * as Hash from "../Hash.js" -import { format, NodeInspectSymbol } from "../Inspectable.js" -import { pipeArguments } from "../Pipeable.js" -import { hasProperty, isObject } from "../Predicate.js" -import type * as ServiceMap from "../ServiceMap.js" -import type { Span } from "../Tracer.js" -import type { Equals, NoInfer } from "../Types.js" -import { SingleShotGen, YieldWrap } from "../Utils.js" -import type { FiberImpl } from "./effect.js" -import { version } from "./version.js" +import type * as Cause from "../Cause.ts" +import type * as Effect from "../Effect.ts" +import * as Equal from "../Equal.ts" +import type * as Exit from "../Exit.ts" +import { dual, identity } from "../Function.ts" +import * as Hash from "../Hash.ts" +import { format, NodeInspectSymbol } from "../Inspectable.ts" +import { pipeArguments } from "../Pipeable.ts" +import { hasProperty, isObject } from "../Predicate.ts" +import type * as ServiceMap from "../ServiceMap.ts" +import type { Span } from "../Tracer.ts" +import type { Equals, NoInfer } from "../Types.ts" +import { SingleShotGen, YieldWrap } from "../Utils.ts" +import type { FiberImpl } from "./effect.ts" +import { version } from "./version.ts" /** @internal */ export const TypeId: Effect.TypeId = `~effect/Effect/${version}` as const diff --git a/packages/effect/src/internal/data.ts b/packages/effect/src/internal/data.ts index fea65a961c..4289ded1ab 100644 --- a/packages/effect/src/internal/data.ts +++ b/packages/effect/src/internal/data.ts @@ -1,7 +1,7 @@ -import * as Equal from "../Equal.js" -import * as Hash from "../Hash.js" -import type * as Types from "../Types.js" -import { StructuralPrototype } from "./core.js" +import * as Equal from "../Equal.ts" +import * as Hash from "../Hash.ts" +import type * as Types from "../Types.ts" +import { StructuralPrototype } from "./core.ts" /** @internal */ export const ArrayProto: Equal.Equal = Object.assign( diff --git a/packages/effect/src/internal/dateTime.ts b/packages/effect/src/internal/dateTime.ts index f92383df13..a72eec5f71 100644 --- a/packages/effect/src/internal/dateTime.ts +++ b/packages/effect/src/internal/dateTime.ts @@ -1,21 +1,21 @@ -import { IllegalArgumentError } from "../Cause.js" -import * as Clock from "../Clock.js" -import type * as DateTime from "../DateTime.js" -import * as Duration from "../Duration.js" -import type * as Effect from "../Effect.js" -import * as Equal from "../Equal.js" -import * as equivalence from "../Equivalence.js" -import type { LazyArg } from "../Function.js" -import { dual, pipe } from "../Function.js" -import * as Hash from "../Hash.js" -import * as Inspectable from "../Inspectable.js" -import * as Option from "../Option.js" -import * as order from "../Order.js" -import { pipeArguments } from "../Pipeable.js" -import * as Predicate from "../Predicate.js" -import * as Result from "../Result.js" -import type { Mutable } from "../Types.js" -import * as effect from "./effect.js" +import { IllegalArgumentError } from "../Cause.ts" +import * as Clock from "../Clock.ts" +import type * as DateTime from "../DateTime.ts" +import * as Duration from "../Duration.ts" +import type * as Effect from "../Effect.ts" +import * as Equal from "../Equal.ts" +import * as equivalence from "../Equivalence.ts" +import type { LazyArg } from "../Function.ts" +import { dual, pipe } from "../Function.ts" +import * as Hash from "../Hash.ts" +import * as Inspectable from "../Inspectable.ts" +import * as Option from "../Option.ts" +import * as order from "../Order.ts" +import { pipeArguments } from "../Pipeable.ts" +import * as Predicate from "../Predicate.ts" +import * as Result from "../Result.ts" +import type { Mutable } from "../Types.ts" +import * as effect from "./effect.ts" /** @internal */ export const TypeId: DateTime.TypeId = "~effect/DateTime" diff --git a/packages/effect/src/internal/doNotation.ts b/packages/effect/src/internal/doNotation.ts index 7a75653f24..7c6e3c919b 100644 --- a/packages/effect/src/internal/doNotation.ts +++ b/packages/effect/src/internal/doNotation.ts @@ -1,6 +1,6 @@ -import { dual } from "../Function.js" -import type { Kind, TypeLambda } from "../HKT.js" -import type { NoInfer } from "../Types.js" +import { dual } from "../Function.ts" +import type { Kind, TypeLambda } from "../HKT.ts" +import type { NoInfer } from "../Types.ts" interface Map { ( diff --git a/packages/effect/src/internal/effect.ts b/packages/effect/src/internal/effect.ts index 6ff546404b..583e500f17 100644 --- a/packages/effect/src/internal/effect.ts +++ b/packages/effect/src/internal/effect.ts @@ -1,24 +1,24 @@ -import * as Arr from "../Array.js" -import type * as Cause from "../Cause.js" -import type * as Clock from "../Clock.js" -import type * as Console from "../Console.js" -import * as Duration from "../Duration.js" -import type * as Effect from "../Effect.js" -import * as Equal from "../Equal.js" -import type * as Exit from "../Exit.js" -import type * as Fiber from "../Fiber.js" -import * as Filter from "../Filter.js" -import type { LazyArg } from "../Function.js" -import { constant, constTrue, constVoid, dual, identity } from "../Function.js" -import * as Hash from "../Hash.js" -import { redact, stringifyCircular, toJSON } from "../Inspectable.js" -import type * as Logger from "../Logger.js" -import type * as LogLevel from "../LogLevel.js" -import type * as Metric from "../Metric.js" -import * as Option from "../Option.js" -import * as Order from "../Order.js" -import { pipeArguments } from "../Pipeable.js" -import { hasProperty, isIterable, isString, isTagged } from "../Predicate.js" +import * as Arr from "../Array.ts" +import type * as Cause from "../Cause.ts" +import type * as Clock from "../Clock.ts" +import type * as Console from "../Console.ts" +import * as Duration from "../Duration.ts" +import type * as Effect from "../Effect.ts" +import * as Equal from "../Equal.ts" +import type * as Exit from "../Exit.ts" +import type * as Fiber from "../Fiber.ts" +import * as Filter from "../Filter.ts" +import type { LazyArg } from "../Function.ts" +import { constant, constTrue, constVoid, dual, identity } from "../Function.ts" +import * as Hash from "../Hash.ts" +import { redact, stringifyCircular, toJSON } from "../Inspectable.ts" +import type * as Logger from "../Logger.ts" +import type * as LogLevel from "../LogLevel.ts" +import type * as Metric from "../Metric.ts" +import * as Option from "../Option.ts" +import * as Order from "../Order.ts" +import { pipeArguments } from "../Pipeable.ts" +import { hasProperty, isIterable, isString, isTagged } from "../Predicate.ts" import { CurrentConcurrency, CurrentLogAnnotations, @@ -28,16 +28,16 @@ import { TracerEnabled, TracerSpanAnnotations, TracerSpanLinks -} from "../References.js" -import * as Result from "../Result.js" -import * as Scheduler from "../Scheduler.js" -import type * as Scope from "../Scope.js" -import * as ServiceMap from "../ServiceMap.js" -import * as Tracer from "../Tracer.js" -import type { Concurrency, ExcludeTag, ExtractTag, NoInfer, NotFunction, Simplify, Tags } from "../Types.js" -import type { YieldWrap } from "../Utils.js" -import { internalCall, yieldWrapGet } from "../Utils.js" -import type { Primitive } from "./core.js" +} from "../References.ts" +import * as Result from "../Result.ts" +import * as Scheduler from "../Scheduler.ts" +import type * as Scope from "../Scope.ts" +import * as ServiceMap from "../ServiceMap.ts" +import * as Tracer from "../Tracer.ts" +import type { Concurrency, ExcludeTag, ExtractTag, NoInfer, NotFunction, Simplify, Tags } from "../Types.ts" +import type { YieldWrap } from "../Utils.ts" +import { internalCall, yieldWrapGet } from "../Utils.ts" +import type { Primitive } from "./core.ts" import { args, causeAnnotate, @@ -68,11 +68,11 @@ import { TaggedError, withFiber, Yield -} from "./core.js" -import * as doNotation from "./doNotation.js" -import * as InternalMetric from "./metric.js" -import { addSpanStackTrace, type ErrorWithStackTraceLimit } from "./tracer.js" -import { version } from "./version.js" +} from "./core.ts" +import * as doNotation from "./doNotation.ts" +import * as InternalMetric from "./metric.ts" +import { addSpanStackTrace, type ErrorWithStackTraceLimit } from "./tracer.ts" +import { version } from "./version.ts" // ---------------------------------------------------------------------------- // Cause diff --git a/packages/effect/src/internal/encoding/base64.ts b/packages/effect/src/internal/encoding/base64.ts index 9c943810bc..f8faddf228 100644 --- a/packages/effect/src/internal/encoding/base64.ts +++ b/packages/effect/src/internal/encoding/base64.ts @@ -1,6 +1,6 @@ -import type * as Encoding from "../../Encoding.js" -import * as Result from "../../Result.js" -import { DecodeException } from "./common.js" +import type * as Encoding from "../../Encoding.ts" +import * as Result from "../../Result.ts" +import { DecodeException } from "./common.ts" /** @internal */ export const encode = (bytes: Uint8Array) => { diff --git a/packages/effect/src/internal/encoding/base64Url.ts b/packages/effect/src/internal/encoding/base64Url.ts index 040d7d95ae..adc132db2b 100644 --- a/packages/effect/src/internal/encoding/base64Url.ts +++ b/packages/effect/src/internal/encoding/base64Url.ts @@ -1,7 +1,7 @@ -import type * as Encoding from "../../Encoding.js" -import * as Result from "../../Result.js" -import * as Base64 from "./base64.js" -import { DecodeException } from "./common.js" +import type * as Encoding from "../../Encoding.ts" +import * as Result from "../../Result.ts" +import * as Base64 from "./base64.ts" +import { DecodeException } from "./common.ts" /** @internal */ export const encode = (data: Uint8Array) => diff --git a/packages/effect/src/internal/encoding/common.ts b/packages/effect/src/internal/encoding/common.ts index 60244c27b5..a031c798cc 100644 --- a/packages/effect/src/internal/encoding/common.ts +++ b/packages/effect/src/internal/encoding/common.ts @@ -1,6 +1,6 @@ -import type * as Encoding from "../../Encoding.js" -import { hasProperty, isString } from "../../Predicate.js" -import type { Mutable } from "../../Types.js" +import type * as Encoding from "../../Encoding.ts" +import { hasProperty, isString } from "../../Predicate.ts" +import type { Mutable } from "../../Types.ts" /** @internal */ export const DecodeExceptionTypeId: Encoding.DecodeExceptionTypeId = Symbol.for( diff --git a/packages/effect/src/internal/encoding/hex.ts b/packages/effect/src/internal/encoding/hex.ts index 4be1925937..865e22811f 100644 --- a/packages/effect/src/internal/encoding/hex.ts +++ b/packages/effect/src/internal/encoding/hex.ts @@ -1,6 +1,6 @@ -import type * as Encoding from "../../Encoding.js" -import * as Result from "../../Result.js" -import { DecodeException } from "./common.js" +import type * as Encoding from "../../Encoding.ts" +import * as Result from "../../Result.ts" +import { DecodeException } from "./common.ts" /** @internal */ export const encode = (bytes: Uint8Array) => { diff --git a/packages/effect/src/internal/hashMap.ts b/packages/effect/src/internal/hashMap.ts index 7f68ef33d3..09223b6498 100644 --- a/packages/effect/src/internal/hashMap.ts +++ b/packages/effect/src/internal/hashMap.ts @@ -2,16 +2,16 @@ * @since 2.0.0 */ -import * as Equal_ from "../Equal.js" -import { dual, pipe } from "../Function.js" -import * as Hash from "../Hash.js" -import type { Inspectable } from "../Inspectable.js" -import { format, NodeInspectSymbol, toJSON } from "../Inspectable.js" -import * as Option from "../Option.js" -import type { Pipeable } from "../Pipeable.js" -import { pipeArguments } from "../Pipeable.js" -import { hasProperty } from "../Predicate.js" -import type { NoInfer } from "../Types.js" +import * as Equal_ from "../Equal.ts" +import { dual, pipe } from "../Function.ts" +import * as Hash from "../Hash.ts" +import type { Inspectable } from "../Inspectable.ts" +import { format, NodeInspectSymbol, toJSON } from "../Inspectable.ts" +import * as Option from "../Option.ts" +import type { Pipeable } from "../Pipeable.ts" +import { pipeArguments } from "../Pipeable.ts" +import { hasProperty } from "../Predicate.ts" +import type { NoInfer } from "../Types.ts" /** @internal */ export const HashMapTypeId: "~effect/HashMap" = "~effect/HashMap" as const diff --git a/packages/effect/src/internal/hashSet.ts b/packages/effect/src/internal/hashSet.ts index c366bc8d1e..b0ad5637cf 100644 --- a/packages/effect/src/internal/hashSet.ts +++ b/packages/effect/src/internal/hashSet.ts @@ -2,14 +2,14 @@ * @since 2.0.0 */ -import * as Equal from "../Equal.js" -import * as Hash from "../Hash.js" -import type { Inspectable } from "../Inspectable.js" -import { format, NodeInspectSymbol, toJSON } from "../Inspectable.js" -import type { Pipeable } from "../Pipeable.js" -import { pipeArguments } from "../Pipeable.js" -import { hasProperty } from "../Predicate.js" -import * as HashMap from "./hashMap.js" +import * as Equal from "../Equal.ts" +import * as Hash from "../Hash.ts" +import type { Inspectable } from "../Inspectable.ts" +import { format, NodeInspectSymbol, toJSON } from "../Inspectable.ts" +import type { Pipeable } from "../Pipeable.ts" +import { pipeArguments } from "../Pipeable.ts" +import { hasProperty } from "../Predicate.ts" +import * as HashMap from "./hashMap.ts" /** @internal */ export const HashSetTypeId: "~effect/HashSet" = "~effect/HashSet" as const diff --git a/packages/effect/src/internal/layer.ts b/packages/effect/src/internal/layer.ts index 84890dbd3d..5dfb3f2fdf 100644 --- a/packages/effect/src/internal/layer.ts +++ b/packages/effect/src/internal/layer.ts @@ -1,8 +1,8 @@ -import type { Effect } from "../Effect.js" -import { dual } from "../Function.js" -import * as Layer from "../Layer.js" -import * as ServiceMap from "../ServiceMap.js" -import * as effect from "./effect.js" +import type { Effect } from "../Effect.ts" +import { dual } from "../Function.ts" +import * as Layer from "../Layer.ts" +import * as ServiceMap from "../ServiceMap.ts" +import * as effect from "./effect.ts" const provideLayer = ( self: Effect, diff --git a/packages/effect/src/internal/matcher.ts b/packages/effect/src/internal/matcher.ts index 0c7bf670af..a22ca078a0 100644 --- a/packages/effect/src/internal/matcher.ts +++ b/packages/effect/src/internal/matcher.ts @@ -1,4 +1,4 @@ -import { dual, identity } from "../Function.js" +import { dual, identity } from "../Function.ts" import type { Case, Matcher, @@ -9,12 +9,12 @@ import type { Types, ValueMatcher, When -} from "../Match.js" -import * as Option from "../Option.js" -import { pipeArguments } from "../Pipeable.js" -import type * as Predicate from "../Predicate.js" -import * as Result from "../Result.js" -import type { Unify } from "../Unify.js" +} from "../Match.ts" +import * as Option from "../Option.ts" +import { pipeArguments } from "../Pipeable.ts" +import type * as Predicate from "../Predicate.ts" +import * as Result from "../Result.ts" +import type { Unify } from "../Unify.ts" /** @internal */ export const TypeId: MatcherTypeId = "~effect/Match/Matcher" diff --git a/packages/effect/src/internal/option.ts b/packages/effect/src/internal/option.ts index abc976b0ed..23198f5771 100644 --- a/packages/effect/src/internal/option.ts +++ b/packages/effect/src/internal/option.ts @@ -1,12 +1,12 @@ /** * @since 2.0.0 */ -import * as Equal from "../Equal.js" -import * as Hash from "../Hash.js" -import { toJSON } from "../Inspectable.js" -import type * as Option from "../Option.js" -import { hasProperty } from "../Predicate.js" -import { exitFail, exitSucceed, NoSuchElementError, PipeInspectableProto, YieldableProto } from "./core.js" +import * as Equal from "../Equal.ts" +import * as Hash from "../Hash.ts" +import { toJSON } from "../Inspectable.ts" +import type * as Option from "../Option.ts" +import { hasProperty } from "../Predicate.ts" +import { exitFail, exitSucceed, NoSuchElementError, PipeInspectableProto, YieldableProto } from "./core.ts" const TypeId: Option.TypeId = "~effect/Option" diff --git a/packages/effect/src/internal/rcRef.ts b/packages/effect/src/internal/rcRef.ts index c05572399f..73597a9289 100644 --- a/packages/effect/src/internal/rcRef.ts +++ b/packages/effect/src/internal/rcRef.ts @@ -1,11 +1,11 @@ -import * as Duration from "../Duration.js" -import * as Effect from "../Effect.js" -import * as Exit from "../Exit.js" -import * as Fiber from "../Fiber.js" -import { identity } from "../Function.js" -import type * as RcRef from "../RcRef.js" -import * as Scope from "../Scope.js" -import * as ServiceMap from "../ServiceMap.js" +import * as Duration from "../Duration.ts" +import * as Effect from "../Effect.ts" +import * as Exit from "../Exit.ts" +import * as Fiber from "../Fiber.ts" +import { identity } from "../Function.ts" +import type * as RcRef from "../RcRef.ts" +import * as Scope from "../Scope.ts" +import * as ServiceMap from "../ServiceMap.ts" /** @internal */ export const TypeId: RcRef.TypeId = "~effect/RcRef" diff --git a/packages/effect/src/internal/redacted.ts b/packages/effect/src/internal/redacted.ts index 49c76d380f..6043e1f99c 100644 --- a/packages/effect/src/internal/redacted.ts +++ b/packages/effect/src/internal/redacted.ts @@ -1,4 +1,4 @@ -import type * as Redacted from "../Redacted.js" +import type * as Redacted from "../Redacted.ts" /** @internal */ export const redactedRegistry = new WeakMap, any>() diff --git a/packages/effect/src/internal/request.ts b/packages/effect/src/internal/request.ts index 8809f27110..5d40da7c44 100644 --- a/packages/effect/src/internal/request.ts +++ b/packages/effect/src/internal/request.ts @@ -1,12 +1,12 @@ -import type { NonEmptyArray } from "../Array.js" -import type * as Request from "../batching/Request.js" -import { makeEntry } from "../batching/Request.js" -import type { RequestResolver } from "../batching/RequestResolver.js" -import type { Effect } from "../Effect.js" -import type { Fiber } from "../Fiber.js" -import { dual } from "../Function.js" -import { exitDie, isEffect } from "./core.js" -import * as effect from "./effect.js" +import type { NonEmptyArray } from "../Array.ts" +import type * as Request from "../batching/Request.ts" +import { makeEntry } from "../batching/Request.ts" +import type { RequestResolver } from "../batching/RequestResolver.ts" +import type { Effect } from "../Effect.ts" +import type { Fiber } from "../Fiber.ts" +import { dual } from "../Function.ts" +import { exitDie, isEffect } from "./core.ts" +import * as effect from "./effect.ts" /** @internal */ export const request: { diff --git a/packages/effect/src/internal/result.ts b/packages/effect/src/internal/result.ts index 47d1b0a22f..1115366a03 100644 --- a/packages/effect/src/internal/result.ts +++ b/packages/effect/src/internal/result.ts @@ -1,12 +1,12 @@ -import * as Equal from "../Equal.js" -import { dual } from "../Function.js" -import * as Hash from "../Hash.js" -import { toJSON } from "../Inspectable.js" -import type { Option } from "../Option.js" -import { hasProperty } from "../Predicate.js" -import type * as Result from "../Result.js" -import { exitFail, exitSucceed, PipeInspectableProto, YieldableProto } from "./core.js" -import * as option from "./option.js" +import * as Equal from "../Equal.ts" +import { dual } from "../Function.ts" +import * as Hash from "../Hash.ts" +import { toJSON } from "../Inspectable.ts" +import type { Option } from "../Option.ts" +import { hasProperty } from "../Predicate.ts" +import type * as Result from "../Result.ts" +import { exitFail, exitSucceed, PipeInspectableProto, YieldableProto } from "./core.ts" +import * as option from "./option.ts" /** * @internal diff --git a/packages/effect/src/internal/schedule.ts b/packages/effect/src/internal/schedule.ts index ea11e2e620..0848147db4 100644 --- a/packages/effect/src/internal/schedule.ts +++ b/packages/effect/src/internal/schedule.ts @@ -1,11 +1,11 @@ -import type { Effect, Repeat, Retry } from "../Effect.js" -import { dual } from "../Function.js" -import * as Option from "../Option.js" -import * as Pull from "../Pull.js" -import * as Schedule from "../Schedule.js" -import type { NoInfer } from "../Types.js" -import { internalCall } from "../Utils.js" -import * as effect from "./effect.js" +import type { Effect, Repeat, Retry } from "../Effect.ts" +import { dual } from "../Function.ts" +import * as Option from "../Option.ts" +import * as Pull from "../Pull.ts" +import * as Schedule from "../Schedule.ts" +import type { NoInfer } from "../Types.ts" +import { internalCall } from "../Utils.ts" +import * as effect from "./effect.ts" /** @internal */ export const repeatOrElse: { diff --git a/packages/effect/src/internal/schema/util.ts b/packages/effect/src/internal/schema/util.ts index bd85deabf2..bb827adb00 100644 --- a/packages/effect/src/internal/schema/util.ts +++ b/packages/effect/src/internal/schema/util.ts @@ -1,7 +1,7 @@ -import type { Pipeable } from "../../Pipeable.js" -import { pipeArguments } from "../../Pipeable.js" -import * as Predicate from "../../Predicate.js" -import type * as AST from "../../schema/AST.js" +import type { Pipeable } from "../../Pipeable.ts" +import { pipeArguments } from "../../Pipeable.ts" +import * as Predicate from "../../Predicate.ts" +import type * as AST from "../../schema/AST.ts" /** * JavaScript does not store the insertion order of properties in a way that diff --git a/packages/effect/src/internal/tracer.ts b/packages/effect/src/internal/tracer.ts index 43e7c17827..d39f0b38d3 100644 --- a/packages/effect/src/internal/tracer.ts +++ b/packages/effect/src/internal/tracer.ts @@ -1,4 +1,4 @@ -import type * as Tracer from "../Tracer.js" +import type * as Tracer from "../Tracer.ts" export interface ErrorWithStackTraceLimit { stackTraceLimit?: number | undefined diff --git a/packages/effect/src/internal/tracing/otlpExporter.ts b/packages/effect/src/internal/tracing/otlpExporter.ts index e34f219971..49b81a8249 100644 --- a/packages/effect/src/internal/tracing/otlpExporter.ts +++ b/packages/effect/src/internal/tracing/otlpExporter.ts @@ -1,14 +1,14 @@ -import * as Duration from "../../Duration.js" -import * as Effect from "../../Effect.js" -import * as Fiber from "../../Fiber.js" -import * as Num from "../../Number.js" -import * as Option from "../../Option.js" -import * as Schedule from "../../Schedule.js" -import * as Scope from "../../Scope.js" -import * as Headers from "../../unstable/http/Headers.js" -import * as HttpClient from "../../unstable/http/HttpClient.js" -import * as HttpClientError from "../../unstable/http/HttpClientError.js" -import * as HttpClientRequest from "../../unstable/http/HttpClientRequest.js" +import * as Duration from "../../Duration.ts" +import * as Effect from "../../Effect.ts" +import * as Fiber from "../../Fiber.ts" +import * as Num from "../../Number.ts" +import * as Option from "../../Option.ts" +import * as Schedule from "../../Schedule.ts" +import * as Scope from "../../Scope.ts" +import * as Headers from "../../unstable/http/Headers.ts" +import * as HttpClient from "../../unstable/http/HttpClient.ts" +import * as HttpClientError from "../../unstable/http/HttpClientError.ts" +import * as HttpClientRequest from "../../unstable/http/HttpClientRequest.ts" const policy = Schedule.forever.pipe( Schedule.passthrough, diff --git a/packages/effect/src/internal/trie.ts b/packages/effect/src/internal/trie.ts index 4ade6ce222..21d276479d 100644 --- a/packages/effect/src/internal/trie.ts +++ b/packages/effect/src/internal/trie.ts @@ -1,13 +1,13 @@ -import * as Equal from "../Equal.js" -import { dual, identity, pipe } from "../Function.js" -import * as Hash from "../Hash.js" -import { format, NodeInspectSymbol, toJSON } from "../Inspectable.js" -import * as Option from "../Option.js" -import type * as Ordering from "../Ordering.js" -import { pipeArguments } from "../Pipeable.js" -import { hasProperty } from "../Predicate.js" -import type * as TR from "../Trie.js" -import type { NoInfer } from "../Types.js" +import * as Equal from "../Equal.ts" +import { dual, identity, pipe } from "../Function.ts" +import * as Hash from "../Hash.ts" +import { format, NodeInspectSymbol, toJSON } from "../Inspectable.ts" +import * as Option from "../Option.ts" +import type * as Ordering from "../Ordering.ts" +import { pipeArguments } from "../Pipeable.ts" +import { hasProperty } from "../Predicate.ts" +import type * as TR from "../Trie.ts" +import type { NoInfer } from "../Types.ts" /** @internal */ export const TrieTypeId: TR.TypeId = "~effect/Trie" diff --git a/packages/effect/src/platform/FileSystem.ts b/packages/effect/src/platform/FileSystem.ts index 389dae210a..17b2770d13 100644 --- a/packages/effect/src/platform/FileSystem.ts +++ b/packages/effect/src/platform/FileSystem.ts @@ -36,20 +36,20 @@ * * @since 4.0.0 */ -import * as Arr from "../Array.js" -import * as Brand from "../Brand.js" -import * as Data from "../Data.js" -import * as Effect from "../Effect.js" -import { pipe } from "../Function.js" -import * as Layer from "../Layer.js" -import * as Option from "../Option.js" -import * as Pull from "../Pull.js" -import type { Scope } from "../Scope.js" -import * as ServiceMap from "../ServiceMap.js" -import * as Sink from "../Sink.js" -import * as Stream from "../Stream.js" -import type { PlatformError } from "./PlatformError.js" -import { BadArgument, SystemError } from "./PlatformError.js" +import * as Arr from "../Array.ts" +import * as Brand from "../Brand.ts" +import * as Data from "../Data.ts" +import * as Effect from "../Effect.ts" +import { pipe } from "../Function.ts" +import * as Layer from "../Layer.ts" +import * as Option from "../Option.ts" +import * as Pull from "../Pull.ts" +import type { Scope } from "../Scope.ts" +import * as ServiceMap from "../ServiceMap.ts" +import * as Sink from "../Sink.ts" +import * as Stream from "../Stream.ts" +import type { PlatformError } from "./PlatformError.ts" +import { BadArgument, SystemError } from "./PlatformError.ts" /** * The type identifier for the FileSystem service. diff --git a/packages/effect/src/platform/Path.ts b/packages/effect/src/platform/Path.ts index 952c98c23b..31829b2af0 100644 --- a/packages/effect/src/platform/Path.ts +++ b/packages/effect/src/platform/Path.ts @@ -1,11 +1,11 @@ /** * @since 4.0.0 */ -import * as Effect from "../Effect.js" -import { identity } from "../Function.js" -import * as Layer from "../Layer.js" -import * as ServiceMap from "../ServiceMap.js" -import { BadArgument } from "./PlatformError.js" +import * as Effect from "../Effect.ts" +import { identity } from "../Function.ts" +import * as Layer from "../Layer.ts" +import * as ServiceMap from "../ServiceMap.ts" +import { BadArgument } from "./PlatformError.ts" /** * @since 4.0.0 @@ -136,9 +136,9 @@ export declare namespace Path { * const formatted = path.format({ * dir: "/home/user", * name: "newfile", - * ext: ".js" + * ext: ".ts" * }) - * console.log(formatted) // "/home/user/newfile.js" + * console.log(formatted) // "/home/user/newfile.ts" * }) * ``` */ diff --git a/packages/effect/src/platform/PlatformError.ts b/packages/effect/src/platform/PlatformError.ts index 68057f2179..db27d4162f 100644 --- a/packages/effect/src/platform/PlatformError.ts +++ b/packages/effect/src/platform/PlatformError.ts @@ -1,7 +1,7 @@ /** * @since 4.0.0 */ -import * as Data from "../Data.js" +import * as Data from "../Data.ts" /** * @since 1.0.0 diff --git a/packages/effect/src/platform/index.ts b/packages/effect/src/platform/index.ts index 4bf2045052..0e2f951ad5 100644 --- a/packages/effect/src/platform/index.ts +++ b/packages/effect/src/platform/index.ts @@ -40,14 +40,14 @@ * * @since 4.0.0 */ -export * as FileSystem from "./FileSystem.js" +export * as FileSystem from "./FileSystem.ts" /** * @since 4.0.0 */ -export * as Path from "./Path.js" +export * as Path from "./Path.ts" /** * @since 4.0.0 */ -export * as PlatformError from "./PlatformError.js" +export * as PlatformError from "./PlatformError.ts" diff --git a/packages/effect/src/platform/.index.ts b/packages/effect/src/platform/index.ts.tpl similarity index 100% rename from packages/effect/src/platform/.index.ts rename to packages/effect/src/platform/index.ts.tpl diff --git a/packages/effect/src/schema/AST.ts b/packages/effect/src/schema/AST.ts index 7cd20bb852..0283bf9ba3 100644 --- a/packages/effect/src/schema/AST.ts +++ b/packages/effect/src/schema/AST.ts @@ -2,22 +2,22 @@ * @since 4.0.0 */ -import * as Arr from "../Array.js" -import * as Effect from "../Effect.js" -import * as internalRecord from "../internal/record.js" -import { formatPropertyKey, memoizeThunk, ownKeys } from "../internal/schema/util.js" -import * as Option from "../Option.js" -import * as Predicate from "../Predicate.js" -import * as RegEx from "../RegExp.js" -import * as Result from "../Result.js" -import type { Annotated } from "./Annotations.js" -import type * as Annotations from "./Annotations.js" -import type * as Check from "./Check.js" -import * as Getter from "./Getter.js" -import * as Issue from "./Issue.js" -import type * as Schema from "./Schema.js" -import type * as ToParser from "./ToParser.js" -import * as Transformation_ from "./Transformation.js" +import * as Arr from "../Array.ts" +import * as Effect from "../Effect.ts" +import * as internalRecord from "../internal/record.ts" +import { formatPropertyKey, memoizeThunk, ownKeys } from "../internal/schema/util.ts" +import * as Option from "../Option.ts" +import * as Predicate from "../Predicate.ts" +import * as RegEx from "../RegExp.ts" +import * as Result from "../Result.ts" +import type { Annotated } from "./Annotations.ts" +import type * as Annotations from "./Annotations.ts" +import type * as Check from "./Check.ts" +import * as Getter from "./Getter.ts" +import * as Issue from "./Issue.ts" +import type * as Schema from "./Schema.ts" +import type * as ToParser from "./ToParser.ts" +import * as Transformation_ from "./Transformation.ts" /** * @category model diff --git a/packages/effect/src/schema/Annotations.ts b/packages/effect/src/schema/Annotations.ts index 76b3455fda..cda000a03c 100644 --- a/packages/effect/src/schema/Annotations.ts +++ b/packages/effect/src/schema/Annotations.ts @@ -2,13 +2,13 @@ * @since 4.0.0 */ -import type * as AST from "./AST.js" -import type * as Issue from "./Issue.js" -import type * as Schema from "./Schema.js" -import type * as ToArbitarary from "./ToArbitrary.js" -import type * as ToEquivalence from "./ToEquivalence.js" -import type * as ToJsonSchema from "./ToJsonSchema.js" -import type * as ToPretty from "./ToPretty.js" +import type * as AST from "./AST.ts" +import type * as Issue from "./Issue.ts" +import type * as Schema from "./Schema.ts" +import type * as ToArbitarary from "./ToArbitrary.ts" +import type * as ToEquivalence from "./ToEquivalence.ts" +import type * as ToJsonSchema from "./ToJsonSchema.ts" +import type * as ToPretty from "./ToPretty.ts" /** * @category Model diff --git a/packages/effect/src/schema/Check.ts b/packages/effect/src/schema/Check.ts index 6d69d39cfa..6be828b75d 100644 --- a/packages/effect/src/schema/Check.ts +++ b/packages/effect/src/schema/Check.ts @@ -2,17 +2,17 @@ * @since 4.0.0 */ -import * as Arr from "../Array.js" -import type { Brand } from "../Brand.js" -import type * as Equivalence from "../Equivalence.js" -import { formatUnknown, PipeableClass } from "../internal/schema/util.js" -import * as Num from "../Number.js" -import * as Option from "../Option.js" -import * as Order from "../Order.js" -import * as Predicate from "../Predicate.js" -import type * as Annotations from "./Annotations.js" -import type * as AST from "./AST.js" -import * as Issue from "./Issue.js" +import * as Arr from "../Array.ts" +import type { Brand } from "../Brand.ts" +import type * as Equivalence from "../Equivalence.ts" +import { formatUnknown, PipeableClass } from "../internal/schema/util.ts" +import * as Num from "../Number.ts" +import * as Option from "../Option.ts" +import * as Order from "../Order.ts" +import * as Predicate from "../Predicate.ts" +import type * as Annotations from "./Annotations.ts" +import type * as AST from "./AST.ts" +import * as Issue from "./Issue.ts" /** * @category model diff --git a/packages/effect/src/schema/Formatter.ts b/packages/effect/src/schema/Formatter.ts index cce6bebc71..b234304791 100644 --- a/packages/effect/src/schema/Formatter.ts +++ b/packages/effect/src/schema/Formatter.ts @@ -2,17 +2,17 @@ * @since 4.0.0 */ import type { StandardSchemaV1 } from "@standard-schema/spec" -import * as Cause from "../Cause.js" -import * as Effect from "../Effect.js" -import { formatPath, formatUnknown } from "../internal/schema/util.js" -import * as Option from "../Option.js" -import * as Predicate from "../Predicate.js" -import type * as Annotations from "./Annotations.js" -import * as AST from "./AST.js" -import * as Check from "./Check.js" -import type * as Issue from "./Issue.js" -import type * as Schema from "./Schema.js" -import * as ToParser from "./ToParser.js" +import * as Cause from "../Cause.ts" +import * as Effect from "../Effect.ts" +import { formatPath, formatUnknown } from "../internal/schema/util.ts" +import * as Option from "../Option.ts" +import * as Predicate from "../Predicate.ts" +import type * as Annotations from "./Annotations.ts" +import * as AST from "./AST.ts" +import * as Check from "./Check.ts" +import type * as Issue from "./Issue.ts" +import type * as Schema from "./Schema.ts" +import * as ToParser from "./ToParser.ts" /** * @category Model diff --git a/packages/effect/src/schema/Getter.ts b/packages/effect/src/schema/Getter.ts index 02403351bd..30a04fbfb5 100644 --- a/packages/effect/src/schema/Getter.ts +++ b/packages/effect/src/schema/Getter.ts @@ -1,15 +1,15 @@ /** * @since 4.0.0 */ -import * as Effect from "../Effect.js" -import { PipeableClass } from "../internal/schema/util.js" -import * as Option from "../Option.js" -import * as Predicate from "../Predicate.js" -import * as Str from "../String.js" -import type * as Annotations from "./Annotations.js" -import type * as AST from "./AST.js" -import * as Check from "./Check.js" -import * as Issue from "./Issue.js" +import * as Effect from "../Effect.ts" +import { PipeableClass } from "../internal/schema/util.ts" +import * as Option from "../Option.ts" +import * as Predicate from "../Predicate.ts" +import * as Str from "../String.ts" +import type * as Annotations from "./Annotations.ts" +import type * as AST from "./AST.ts" +import * as Check from "./Check.ts" +import * as Issue from "./Issue.ts" /** * @category model diff --git a/packages/effect/src/schema/Issue.ts b/packages/effect/src/schema/Issue.ts index 9dadc92dd8..1f1b0c5cb7 100644 --- a/packages/effect/src/schema/Issue.ts +++ b/packages/effect/src/schema/Issue.ts @@ -1,11 +1,11 @@ /** * @since 4.0.0 */ -import * as Option from "../Option.js" -import { hasProperty } from "../Predicate.js" -import type * as Annotations from "./Annotations.js" -import type * as AST from "./AST.js" -import type * as Check from "./Check.js" +import * as Option from "../Option.ts" +import { hasProperty } from "../Predicate.ts" +import type * as Annotations from "./Annotations.ts" +import type * as AST from "./AST.ts" +import type * as Check from "./Check.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/schema/MetaAST.ts b/packages/effect/src/schema/MetaAST.ts index 73aab843c7..71a5e8c02e 100644 --- a/packages/effect/src/schema/MetaAST.ts +++ b/packages/effect/src/schema/MetaAST.ts @@ -3,10 +3,10 @@ * @experimental */ -import * as ast from "./AST.js" -import * as Schema from "./Schema.js" -import * as Serializer from "./Serializer.js" -import * as Transformation from "./Transformation.js" +import * as ast from "./AST.ts" +import * as Schema from "./Schema.ts" +import * as Serializer from "./Serializer.ts" +import * as Transformation from "./Transformation.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/schema/Schema.ts b/packages/effect/src/schema/Schema.ts index 7bf117afe1..e46b1ee249 100644 --- a/packages/effect/src/schema/Schema.ts +++ b/packages/effect/src/schema/Schema.ts @@ -3,34 +3,34 @@ */ import type { StandardSchemaV1 } from "@standard-schema/spec" -import * as Arr from "../Array.js" -import * as Request from "../batching/Request.js" -import type { Brand } from "../Brand.js" -import * as Cause from "../Cause.js" -import * as Data from "../Data.js" -import * as Effect from "../Effect.js" -import * as Equivalence from "../Equivalence.js" -import * as Exit from "../Exit.js" -import { identity } from "../Function.js" -import * as core from "../internal/core.js" -import * as O from "../Option.js" -import type { Pipeable } from "../Pipeable.js" -import { pipeArguments } from "../Pipeable.js" -import * as Predicate from "../Predicate.js" -import * as R from "../Record.js" -import * as Result from "../Result.js" -import * as Scheduler from "../Scheduler.js" -import type { Lambda, Merge, Mutable, Simplify } from "../Struct.js" -import { lambda, renameKeys } from "../Struct.js" -import type * as Annotations from "./Annotations.js" -import * as AST from "./AST.js" -import * as Check from "./Check.js" -import * as Formatter from "./Formatter.js" -import * as Getter from "./Getter.js" -import * as Issue from "./Issue.js" -import * as ToEquivalence from "./ToEquivalence.js" -import * as ToParser from "./ToParser.js" -import * as Transformation from "./Transformation.js" +import * as Arr from "../Array.ts" +import * as Request from "../batching/Request.ts" +import type { Brand } from "../Brand.ts" +import * as Cause from "../Cause.ts" +import * as Data from "../Data.ts" +import * as Effect from "../Effect.ts" +import * as Equivalence from "../Equivalence.ts" +import * as Exit from "../Exit.ts" +import { identity } from "../Function.ts" +import * as core from "../internal/core.ts" +import * as O from "../Option.ts" +import type { Pipeable } from "../Pipeable.ts" +import { pipeArguments } from "../Pipeable.ts" +import * as Predicate from "../Predicate.ts" +import * as R from "../Record.ts" +import * as Result from "../Result.ts" +import * as Scheduler from "../Scheduler.ts" +import type { Lambda, Merge, Mutable, Simplify } from "../Struct.ts" +import { lambda, renameKeys } from "../Struct.ts" +import type * as Annotations from "./Annotations.ts" +import * as AST from "./AST.ts" +import * as Check from "./Check.ts" +import * as Formatter from "./Formatter.ts" +import * as Getter from "./Getter.ts" +import * as Issue from "./Issue.ts" +import * as ToEquivalence from "./ToEquivalence.ts" +import * as ToParser from "./ToParser.ts" +import * as Transformation from "./Transformation.ts" /** Is this value required or optional? */ type Optionality = "required" | "optional" diff --git a/packages/effect/src/schema/Serializer.ts b/packages/effect/src/schema/Serializer.ts index b3444872ba..712d1f7ef3 100644 --- a/packages/effect/src/schema/Serializer.ts +++ b/packages/effect/src/schema/Serializer.ts @@ -2,15 +2,15 @@ * @since 4.0.0 */ -import * as Arr from "../Array.js" -import * as Effect from "../Effect.js" -import * as Option from "../Option.js" -import * as Predicate from "../Predicate.js" -import * as AST from "./AST.js" -import * as Getter from "./Getter.js" -import * as Issue from "./Issue.js" -import * as Schema from "./Schema.js" -import * as Transformation from "./Transformation.js" +import * as Arr from "../Array.ts" +import * as Effect from "../Effect.ts" +import * as Option from "../Option.ts" +import * as Predicate from "../Predicate.ts" +import * as AST from "./AST.ts" +import * as Getter from "./Getter.ts" +import * as Issue from "./Issue.ts" +import * as Schema from "./Schema.ts" +import * as Transformation from "./Transformation.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/schema/ToArbitrary.ts b/packages/effect/src/schema/ToArbitrary.ts index dc68230d6c..905f3f27d1 100644 --- a/packages/effect/src/schema/ToArbitrary.ts +++ b/packages/effect/src/schema/ToArbitrary.ts @@ -1,14 +1,14 @@ /** * @since 4.0.0 */ -import * as Array from "../Array.js" -import * as FastCheck from "../FastCheck.js" -import { defaultParseOptions, memoizeThunk } from "../internal/schema/util.js" -import * as Option from "../Option.js" -import * as Predicate from "../Predicate.js" -import * as AST from "./AST.js" -import type * as Check from "./Check.js" -import type * as Schema from "./Schema.js" +import * as Array from "../Array.ts" +import * as FastCheck from "../FastCheck.ts" +import { defaultParseOptions, memoizeThunk } from "../internal/schema/util.ts" +import * as Option from "../Option.ts" +import * as Predicate from "../Predicate.ts" +import * as AST from "./AST.ts" +import type * as Check from "./Check.ts" +import type * as Schema from "./Schema.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/schema/ToEquivalence.ts b/packages/effect/src/schema/ToEquivalence.ts index 4ec4f9c439..d91c2812e3 100644 --- a/packages/effect/src/schema/ToEquivalence.ts +++ b/packages/effect/src/schema/ToEquivalence.ts @@ -1,13 +1,13 @@ /** * @since 4.0.0 */ -import * as Equal from "../Equal.js" -import * as Equivalence from "../Equivalence.js" -import { memoizeThunk } from "../internal/schema/util.js" -import * as Predicate from "../Predicate.js" -import * as AST from "./AST.js" -import type * as Schema from "./Schema.js" -import * as ToParser from "./ToParser.js" +import * as Equal from "../Equal.ts" +import * as Equivalence from "../Equivalence.ts" +import { memoizeThunk } from "../internal/schema/util.ts" +import * as Predicate from "../Predicate.ts" +import * as AST from "./AST.ts" +import type * as Schema from "./Schema.ts" +import * as ToParser from "./ToParser.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/schema/ToJsonSchema.ts b/packages/effect/src/schema/ToJsonSchema.ts index 98cbb5230c..6062a12443 100644 --- a/packages/effect/src/schema/ToJsonSchema.ts +++ b/packages/effect/src/schema/ToJsonSchema.ts @@ -1,13 +1,13 @@ /** * @since 4.0.0 */ -import { formatPath, hasOwn } from "../internal/schema/util.js" -import * as Predicate from "../Predicate.js" -import type * as Record from "../Record.js" -import type * as Annotations from "./Annotations.js" -import * as AST from "./AST.js" -import type * as Check from "./Check.js" -import type * as Schema from "./Schema.js" +import { formatPath, hasOwn } from "../internal/schema/util.ts" +import * as Predicate from "../Predicate.ts" +import type * as Record from "../Record.ts" +import type * as Annotations from "./Annotations.ts" +import * as AST from "./AST.ts" +import type * as Check from "./Check.ts" +import type * as Schema from "./Schema.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/schema/ToParser.ts b/packages/effect/src/schema/ToParser.ts index 631635cfb4..e2aa80816c 100644 --- a/packages/effect/src/schema/ToParser.ts +++ b/packages/effect/src/schema/ToParser.ts @@ -2,15 +2,15 @@ * @since 4.0.0 */ -import * as Arr from "../Array.js" -import * as Effect from "../Effect.js" -import { defaultParseOptions } from "../internal/schema/util.js" -import * as Option from "../Option.js" -import * as Result from "../Result.js" -import * as AST from "./AST.js" -import type * as Check from "./Check.js" -import * as Issue from "./Issue.js" -import type * as Schema from "./Schema.js" +import * as Arr from "../Array.ts" +import * as Effect from "../Effect.ts" +import { defaultParseOptions } from "../internal/schema/util.ts" +import * as Option from "../Option.ts" +import * as Result from "../Result.ts" +import * as AST from "./AST.ts" +import type * as Check from "./Check.ts" +import * as Issue from "./Issue.ts" +import type * as Schema from "./Schema.ts" /** * @category Constructing diff --git a/packages/effect/src/schema/ToPretty.ts b/packages/effect/src/schema/ToPretty.ts index c003484133..3de6540c35 100644 --- a/packages/effect/src/schema/ToPretty.ts +++ b/packages/effect/src/schema/ToPretty.ts @@ -1,11 +1,11 @@ /** * @since 4.0.0 */ -import { formatPropertyKey, formatUnknown, memoizeThunk } from "../internal/schema/util.js" -import * as Option from "../Option.js" -import * as AST from "./AST.js" -import type * as Schema from "./Schema.js" -import * as ToParser from "./ToParser.js" +import { formatPropertyKey, formatUnknown, memoizeThunk } from "../internal/schema/util.ts" +import * as Option from "../Option.ts" +import * as AST from "./AST.ts" +import type * as Schema from "./Schema.ts" +import * as ToParser from "./ToParser.ts" /** * @category model diff --git a/packages/effect/src/schema/Transformation.ts b/packages/effect/src/schema/Transformation.ts index de2a2c7fd5..aa4aa26cf3 100644 --- a/packages/effect/src/schema/Transformation.ts +++ b/packages/effect/src/schema/Transformation.ts @@ -2,11 +2,11 @@ * @since 4.0.0 */ -import type * as Effect from "../Effect.js" -import type * as Option from "../Option.js" -import type * as AST from "./AST.js" -import * as Getter from "./Getter.js" -import type * as Issue from "./Issue.js" +import type * as Effect from "../Effect.ts" +import type * as Option from "../Option.ts" +import type * as AST from "./AST.ts" +import * as Getter from "./Getter.ts" +import type * as Issue from "./Issue.ts" /** * @category model diff --git a/packages/effect/src/schema/Util.ts b/packages/effect/src/schema/Util.ts index bf00efc705..2b8c76e1cf 100644 --- a/packages/effect/src/schema/Util.ts +++ b/packages/effect/src/schema/Util.ts @@ -1,10 +1,10 @@ /** * @since 4.0.0 */ -import { identity } from "../Function.js" -import type * as Annotations from "./Annotations.js" -import * as Schema from "./Schema.js" -import * as Transformation from "./Transformation.js" +import { identity } from "../Function.ts" +import type * as Annotations from "./Annotations.ts" +import * as Schema from "./Schema.ts" +import * as Transformation from "./Transformation.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/schema/index.ts b/packages/effect/src/schema/index.ts index daa1cb0ed5..98d9d40fa2 100644 --- a/packages/effect/src/schema/index.ts +++ b/packages/effect/src/schema/index.ts @@ -5,80 +5,80 @@ /** * @since 4.0.0 */ -export * as Annotations from "./Annotations.js" +export * as Annotations from "./Annotations.ts" /** * @since 4.0.0 */ -export * as AST from "./AST.js" +export * as AST from "./AST.ts" /** * @since 4.0.0 */ -export * as Check from "./Check.js" +export * as Check from "./Check.ts" /** * @since 4.0.0 */ -export * as Formatter from "./Formatter.js" +export * as Formatter from "./Formatter.ts" /** * @since 4.0.0 */ -export * as Getter from "./Getter.js" +export * as Getter from "./Getter.ts" /** * @since 4.0.0 */ -export * as Issue from "./Issue.js" +export * as Issue from "./Issue.ts" /** * @since 4.0.0 * @experimental */ -export * as MetaAST from "./MetaAST.js" +export * as MetaAST from "./MetaAST.ts" /** * @since 4.0.0 */ -export * as Schema from "./Schema.js" +export * as Schema from "./Schema.ts" /** * @since 4.0.0 */ -export * as Serializer from "./Serializer.js" +export * as Serializer from "./Serializer.ts" /** * @since 4.0.0 */ -export * as ToArbitrary from "./ToArbitrary.js" +export * as ToArbitrary from "./ToArbitrary.ts" /** * @since 4.0.0 */ -export * as ToEquivalence from "./ToEquivalence.js" +export * as ToEquivalence from "./ToEquivalence.ts" /** * @since 4.0.0 */ -export * as ToJsonSchema from "./ToJsonSchema.js" +export * as ToJsonSchema from "./ToJsonSchema.ts" /** * @since 4.0.0 */ -export * as ToParser from "./ToParser.js" +export * as ToParser from "./ToParser.ts" /** * @since 4.0.0 */ -export * as ToPretty from "./ToPretty.js" +export * as ToPretty from "./ToPretty.ts" /** * @since 4.0.0 */ -export * as Transformation from "./Transformation.js" +export * as Transformation from "./Transformation.ts" /** * @since 4.0.0 */ -export * as Util from "./Util.js" +export * as Util from "./Util.ts" diff --git a/packages/effect/src/schema/.index.ts b/packages/effect/src/schema/index.ts.tpl similarity index 100% rename from packages/effect/src/schema/.index.ts rename to packages/effect/src/schema/index.ts.tpl diff --git a/packages/effect/src/unstable/http/Cookies.ts b/packages/effect/src/unstable/http/Cookies.ts index 6c185c9ec8..6ce2f4e762 100644 --- a/packages/effect/src/unstable/http/Cookies.ts +++ b/packages/effect/src/unstable/http/Cookies.ts @@ -1,18 +1,18 @@ /** * @since 4.0.0 */ -import * as Data from "../../Data.js" -import * as Duration from "../../Duration.js" -import { dual, identity } from "../../Function.js" -import * as Inspectable from "../../Inspectable.js" -import * as Option from "../../Option.js" -import { type Pipeable, pipeArguments } from "../../Pipeable.js" -import * as Predicate from "../../Predicate.js" -import * as Record from "../../Record.js" -import * as Result from "../../Result.js" -import * as Schema from "../../schema/Schema.js" -import * as Transformation from "../../schema/Transformation.js" -import type * as Types from "../../Types.js" +import * as Data from "../../Data.ts" +import * as Duration from "../../Duration.ts" +import { dual, identity } from "../../Function.ts" +import * as Inspectable from "../../Inspectable.ts" +import * as Option from "../../Option.ts" +import { type Pipeable, pipeArguments } from "../../Pipeable.ts" +import * as Predicate from "../../Predicate.ts" +import * as Record from "../../Record.ts" +import * as Result from "../../Result.ts" +import * as Schema from "../../schema/Schema.ts" +import * as Transformation from "../../schema/Transformation.ts" +import type * as Types from "../../Types.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/Etag.ts b/packages/effect/src/unstable/http/Etag.ts index e102177059..bd8b64fb3f 100644 --- a/packages/effect/src/unstable/http/Etag.ts +++ b/packages/effect/src/unstable/http/Etag.ts @@ -1,11 +1,11 @@ /** * @since 4.0.0 */ -import * as Effect from "../../Effect.js" -import * as Layer from "../../Layer.js" -import type * as FileSystem from "../../platform/FileSystem.js" -import * as ServiceMap from "../../ServiceMap.js" -import type * as Body from "./HttpBody.js" +import * as Effect from "../../Effect.ts" +import * as Layer from "../../Layer.ts" +import type * as FileSystem from "../../platform/FileSystem.ts" +import * as ServiceMap from "../../ServiceMap.ts" +import type * as Body from "./HttpBody.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/FetchHttpClient.ts b/packages/effect/src/unstable/http/FetchHttpClient.ts index 1ed09e9d0b..d2a33421e2 100644 --- a/packages/effect/src/unstable/http/FetchHttpClient.ts +++ b/packages/effect/src/unstable/http/FetchHttpClient.ts @@ -1,14 +1,14 @@ /** * @since 1.0.0 */ -import * as Effect from "../../Effect.js" -import type * as Layer from "../../Layer.js" -import * as ServiceMap from "../../ServiceMap.js" -import * as Stream from "../../Stream.js" -import * as Headers from "./Headers.js" -import * as HttpClient from "./HttpClient.js" -import { RequestError } from "./HttpClientError.js" -import * as HttpClientResponse from "./HttpClientResponse.js" +import * as Effect from "../../Effect.ts" +import type * as Layer from "../../Layer.ts" +import * as ServiceMap from "../../ServiceMap.ts" +import * as Stream from "../../Stream.ts" +import * as Headers from "./Headers.ts" +import * as HttpClient from "./HttpClient.ts" +import { RequestError } from "./HttpClientError.ts" +import * as HttpClientResponse from "./HttpClientResponse.ts" /** * @since 1.0.0 diff --git a/packages/effect/src/unstable/http/Headers.ts b/packages/effect/src/unstable/http/Headers.ts index 2b023b373e..80bca45fbf 100644 --- a/packages/effect/src/unstable/http/Headers.ts +++ b/packages/effect/src/unstable/http/Headers.ts @@ -1,20 +1,20 @@ /** * @since 4.0.0 */ -import * as Equal from "../../Equal.js" -import type { Equivalence as Equivalence_ } from "../../Equivalence.js" -import { dual } from "../../Function.js" -import * as Hash from "../../Hash.js" -import { type Redactable, symbolRedactable } from "../../Inspectable.js" -import type * as Option from "../../Option.js" -import * as Predicate from "../../Predicate.js" -import * as Record from "../../Record.js" -import * as Redacted from "../../Redacted.js" -import * as Schema from "../../schema/Schema.js" -import * as Transformation from "../../schema/Transformation.js" -import * as ServiceMap from "../../ServiceMap.js" -import * as String from "../../String.js" -import type { Mutable } from "../../Types.js" +import * as Equal from "../../Equal.ts" +import type { Equivalence as Equivalence_ } from "../../Equivalence.ts" +import { dual } from "../../Function.ts" +import * as Hash from "../../Hash.ts" +import { type Redactable, symbolRedactable } from "../../Inspectable.ts" +import type * as Option from "../../Option.ts" +import * as Predicate from "../../Predicate.ts" +import * as Record from "../../Record.ts" +import * as Redacted from "../../Redacted.ts" +import * as Schema from "../../schema/Schema.ts" +import * as Transformation from "../../schema/Transformation.ts" +import * as ServiceMap from "../../ServiceMap.ts" +import * as String from "../../String.ts" +import type { Mutable } from "../../Types.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpBody.ts b/packages/effect/src/unstable/http/HttpBody.ts index 0692ed9149..38b65c3137 100644 --- a/packages/effect/src/unstable/http/HttpBody.ts +++ b/packages/effect/src/unstable/http/HttpBody.ts @@ -1,18 +1,18 @@ /** * @since 4.0.0 */ -import * as Data from "../../Data.js" -import * as Effect from "../../Effect.js" -import * as Inspectable from "../../Inspectable.js" -import * as FileSystem from "../../platform/FileSystem.js" -import type * as PlatformError from "../../platform/PlatformError.js" -import * as Predicate from "../../Predicate.js" -import type { ParseOptions } from "../../schema/AST.js" -import type { Issue } from "../../schema/Issue.js" -import * as Schema from "../../schema/Schema.js" -import * as Serializer from "../../schema/Serializer.js" -import type * as Stream_ from "../../Stream.js" -import * as UrlParams from "./UrlParams.js" +import * as Data from "../../Data.ts" +import * as Effect from "../../Effect.ts" +import * as Inspectable from "../../Inspectable.ts" +import * as FileSystem from "../../platform/FileSystem.ts" +import type * as PlatformError from "../../platform/PlatformError.ts" +import * as Predicate from "../../Predicate.ts" +import type { ParseOptions } from "../../schema/AST.ts" +import type { Issue } from "../../schema/Issue.ts" +import * as Schema from "../../schema/Schema.ts" +import * as Serializer from "../../schema/Serializer.ts" +import type * as Stream_ from "../../Stream.ts" +import * as UrlParams from "./UrlParams.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpClient.ts b/packages/effect/src/unstable/http/HttpClient.ts index 2fd04c28cf..1474f1b3df 100644 --- a/packages/effect/src/unstable/http/HttpClient.ts +++ b/packages/effect/src/unstable/http/HttpClient.ts @@ -1,34 +1,34 @@ /** * @since 4.0.0 */ -import type { NonEmptyReadonlyArray } from "../../Array.js" -import * as Cause from "../../Cause.js" -import * as Effect from "../../Effect.js" -import * as Exit from "../../Exit.js" -import type { Fiber } from "../../Fiber.js" -import type * as Filter from "../../Filter.js" -import { constFalse, constTrue, dual } from "../../Function.js" -import * as Inspectable from "../../Inspectable.js" -import * as Layer from "../../Layer.js" -import { type Pipeable, pipeArguments } from "../../Pipeable.js" -import * as Predicate from "../../Predicate.js" -import * as Ref from "../../Ref.js" -import * as Result from "../../Result.js" -import * as Schedule from "../../Schedule.js" -import type * as Scope from "../../Scope.js" -import * as ServiceMap from "../../ServiceMap.js" -import * as Stream from "../../Stream.js" -import * as Tracer from "../../Tracer.js" -import type { ExcludeTag, ExtractTag, NoExcessProperties, NoInfer, Tags } from "../../Types.js" -import * as Cookies from "./Cookies.js" -import * as Headers from "./Headers.js" -import * as Error from "./HttpClientError.js" -import * as HttpClientRequest from "./HttpClientRequest.js" -import * as HttpClientResponse from "./HttpClientResponse.js" -import * as HttpIncomingMessage from "./HttpIncomingMessage.js" -import * as HttpMethod from "./HttpMethod.js" -import * as TraceContext from "./HttpTraceContext.js" -import * as UrlParams from "./UrlParams.js" +import type { NonEmptyReadonlyArray } from "../../Array.ts" +import * as Cause from "../../Cause.ts" +import * as Effect from "../../Effect.ts" +import * as Exit from "../../Exit.ts" +import type { Fiber } from "../../Fiber.ts" +import type * as Filter from "../../Filter.ts" +import { constFalse, constTrue, dual } from "../../Function.ts" +import * as Inspectable from "../../Inspectable.ts" +import * as Layer from "../../Layer.ts" +import { type Pipeable, pipeArguments } from "../../Pipeable.ts" +import * as Predicate from "../../Predicate.ts" +import * as Ref from "../../Ref.ts" +import * as Result from "../../Result.ts" +import * as Schedule from "../../Schedule.ts" +import type * as Scope from "../../Scope.ts" +import * as ServiceMap from "../../ServiceMap.ts" +import * as Stream from "../../Stream.ts" +import * as Tracer from "../../Tracer.ts" +import type { ExcludeTag, ExtractTag, NoExcessProperties, NoInfer, Tags } from "../../Types.ts" +import * as Cookies from "./Cookies.ts" +import * as Headers from "./Headers.ts" +import * as Error from "./HttpClientError.ts" +import * as HttpClientRequest from "./HttpClientRequest.ts" +import * as HttpClientResponse from "./HttpClientResponse.ts" +import * as HttpIncomingMessage from "./HttpIncomingMessage.ts" +import * as HttpMethod from "./HttpMethod.ts" +import * as TraceContext from "./HttpTraceContext.ts" +import * as UrlParams from "./UrlParams.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpClientError.ts b/packages/effect/src/unstable/http/HttpClientError.ts index 1f00e2f3af..ad9b8218b7 100644 --- a/packages/effect/src/unstable/http/HttpClientError.ts +++ b/packages/effect/src/unstable/http/HttpClientError.ts @@ -1,10 +1,10 @@ /** * @since 4.0.0 */ -import * as Data from "../../Data.js" -import { hasProperty } from "../../Predicate.js" -import type * as HttpClientRequest from "./HttpClientRequest.js" -import type * as ClientResponse from "./HttpClientResponse.js" +import * as Data from "../../Data.ts" +import { hasProperty } from "../../Predicate.ts" +import type * as HttpClientRequest from "./HttpClientRequest.ts" +import type * as ClientResponse from "./HttpClientResponse.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpClientRequest.ts b/packages/effect/src/unstable/http/HttpClientRequest.ts index 6b2e3bbaab..c7cf57bf0a 100644 --- a/packages/effect/src/unstable/http/HttpClientRequest.ts +++ b/packages/effect/src/unstable/http/HttpClientRequest.ts @@ -1,23 +1,23 @@ /** * @since 4.0.0 */ -import * as Effect from "../../Effect.js" -import { dual } from "../../Function.js" -import * as Inspectable from "../../Inspectable.js" -import * as Option from "../../Option.js" -import { type Pipeable, pipeArguments } from "../../Pipeable.js" -import type * as FileSystem from "../../platform/FileSystem.js" -import type * as PlatformError from "../../platform/PlatformError.js" -import { hasProperty } from "../../Predicate.js" -import * as Redacted from "../../Redacted.js" -import * as Result from "../../Result.js" -import type { ParseOptions } from "../../schema/AST.js" -import type * as Schema from "../../schema/Schema.js" -import type * as Stream from "../../Stream.js" -import * as Headers from "./Headers.js" -import * as HttpBody from "./HttpBody.js" -import type { HttpMethod } from "./HttpMethod.js" -import * as UrlParams from "./UrlParams.js" +import * as Effect from "../../Effect.ts" +import { dual } from "../../Function.ts" +import * as Inspectable from "../../Inspectable.ts" +import * as Option from "../../Option.ts" +import { type Pipeable, pipeArguments } from "../../Pipeable.ts" +import type * as FileSystem from "../../platform/FileSystem.ts" +import type * as PlatformError from "../../platform/PlatformError.ts" +import { hasProperty } from "../../Predicate.ts" +import * as Redacted from "../../Redacted.ts" +import * as Result from "../../Result.ts" +import type { ParseOptions } from "../../schema/AST.ts" +import type * as Schema from "../../schema/Schema.ts" +import type * as Stream from "../../Stream.ts" +import * as Headers from "./Headers.ts" +import * as HttpBody from "./HttpBody.ts" +import type { HttpMethod } from "./HttpMethod.ts" +import * as UrlParams from "./UrlParams.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpClientResponse.ts b/packages/effect/src/unstable/http/HttpClientResponse.ts index 0e9a68a44d..636839595d 100644 --- a/packages/effect/src/unstable/http/HttpClientResponse.ts +++ b/packages/effect/src/unstable/http/HttpClientResponse.ts @@ -1,21 +1,21 @@ /** * @since 4.0.0 */ -import * as Effect from "../../Effect.js" -import { dual } from "../../Function.js" -import * as Inspectable from "../../Inspectable.js" -import * as Option from "../../Option.js" -import type { ParseOptions } from "../../schema/AST.js" -import * as Schema from "../../schema/Schema.js" -import * as Serializer from "../../schema/Serializer.js" -import * as Stream from "../../Stream.js" -import type { Unify } from "../../Unify.js" -import * as Cookies from "./Cookies.js" -import * as Headers from "./Headers.js" -import * as Error from "./HttpClientError.js" -import type * as HttpClientRequest from "./HttpClientRequest.js" -import * as HttpIncomingMessage from "./HttpIncomingMessage.js" -import * as UrlParams from "./UrlParams.js" +import * as Effect from "../../Effect.ts" +import { dual } from "../../Function.ts" +import * as Inspectable from "../../Inspectable.ts" +import * as Option from "../../Option.ts" +import type { ParseOptions } from "../../schema/AST.ts" +import * as Schema from "../../schema/Schema.ts" +import * as Serializer from "../../schema/Serializer.ts" +import * as Stream from "../../Stream.ts" +import type { Unify } from "../../Unify.ts" +import * as Cookies from "./Cookies.ts" +import * as Headers from "./Headers.ts" +import * as Error from "./HttpClientError.ts" +import type * as HttpClientRequest from "./HttpClientRequest.ts" +import * as HttpIncomingMessage from "./HttpIncomingMessage.ts" +import * as UrlParams from "./UrlParams.ts" export { /** @@ -33,7 +33,7 @@ export { * @category schema */ schemaHeaders -} from "./HttpIncomingMessage.js" +} from "./HttpIncomingMessage.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpEffect.ts b/packages/effect/src/unstable/http/HttpEffect.ts index 9f78ac0d8f..76313a9da8 100644 --- a/packages/effect/src/unstable/http/HttpEffect.ts +++ b/packages/effect/src/unstable/http/HttpEffect.ts @@ -1,23 +1,23 @@ /** * @since 4.0.0 */ -import * as Effect from "../../Effect.js" -import * as Exit from "../../Exit.js" -import * as Fiber from "../../Fiber.js" -import { dual } from "../../Function.js" -import * as Layer from "../../Layer.js" -import * as Option from "../../Option.js" -import * as Scope from "../../Scope.js" -import * as ServiceMap from "../../ServiceMap.js" -import * as Stream from "../../Stream.js" -import * as HttpBody from "./HttpBody.js" -import { type HttpMiddleware, tracer } from "./HttpMiddleware.js" -import type { HttpServerError } from "./HttpServerError.js" -import { causeResponse, clientAbortFiberId } from "./HttpServerError.js" -import { HttpServerRequest } from "./HttpServerRequest.js" -import * as Request from "./HttpServerRequest.js" -import type { HttpServerResponse } from "./HttpServerResponse.js" -import * as Response from "./HttpServerResponse.js" +import * as Effect from "../../Effect.ts" +import * as Exit from "../../Exit.ts" +import * as Fiber from "../../Fiber.ts" +import { dual } from "../../Function.ts" +import * as Layer from "../../Layer.ts" +import * as Option from "../../Option.ts" +import * as Scope from "../../Scope.ts" +import * as ServiceMap from "../../ServiceMap.ts" +import * as Stream from "../../Stream.ts" +import * as HttpBody from "./HttpBody.ts" +import { type HttpMiddleware, tracer } from "./HttpMiddleware.ts" +import type { HttpServerError } from "./HttpServerError.ts" +import { causeResponse, clientAbortFiberId } from "./HttpServerError.ts" +import { HttpServerRequest } from "./HttpServerRequest.ts" +import * as Request from "./HttpServerRequest.ts" +import type { HttpServerResponse } from "./HttpServerResponse.ts" +import * as Response from "./HttpServerResponse.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpIncomingMessage.ts b/packages/effect/src/unstable/http/HttpIncomingMessage.ts index ca6b429b20..b33b36d4c2 100644 --- a/packages/effect/src/unstable/http/HttpIncomingMessage.ts +++ b/packages/effect/src/unstable/http/HttpIncomingMessage.ts @@ -1,18 +1,18 @@ /** * @since 4.0.0 */ -import * as Effect from "../../Effect.js" -import * as Inspectable from "../../Inspectable.js" -import * as Option from "../../Option.js" -import type * as FileSystem from "../../platform/FileSystem.js" -import { hasProperty } from "../../Predicate.js" -import type { ParseOptions } from "../../schema/AST.js" -import * as Schema from "../../schema/Schema.js" -import * as Serializer from "../../schema/Serializer.js" -import * as ServiceMap from "../../ServiceMap.js" -import type * as Stream from "../../Stream.js" -import type * as Headers from "./Headers.js" -import * as UrlParams from "./UrlParams.js" +import * as Effect from "../../Effect.ts" +import * as Inspectable from "../../Inspectable.ts" +import * as Option from "../../Option.ts" +import type * as FileSystem from "../../platform/FileSystem.ts" +import { hasProperty } from "../../Predicate.ts" +import type { ParseOptions } from "../../schema/AST.ts" +import * as Schema from "../../schema/Schema.ts" +import * as Serializer from "../../schema/Serializer.ts" +import * as ServiceMap from "../../ServiceMap.ts" +import type * as Stream from "../../Stream.ts" +import type * as Headers from "./Headers.ts" +import * as UrlParams from "./UrlParams.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpMiddleware.ts b/packages/effect/src/unstable/http/HttpMiddleware.ts index 6ab7ead128..d1af3caa8f 100644 --- a/packages/effect/src/unstable/http/HttpMiddleware.ts +++ b/packages/effect/src/unstable/http/HttpMiddleware.ts @@ -2,20 +2,20 @@ * @since 4.0.0 */ import * as Effect from "effect/Effect" -import { constFalse } from "../../Function.js" -import * as Layer from "../../Layer.js" -import * as Option from "../../Option.js" -import type { Predicate } from "../../Predicate.js" -import type { ReadonlyRecord } from "../../Record.js" -import * as ServiceMap from "../../ServiceMap.js" -import * as Headers from "./Headers.js" -import type { PreResponseHandler } from "./HttpEffect.js" -import { causeResponseStripped, exitResponse } from "./HttpServerError.js" -import { HttpServerRequest } from "./HttpServerRequest.js" -import * as Request from "./HttpServerRequest.js" -import * as Response from "./HttpServerResponse.js" -import type { HttpServerResponse } from "./HttpServerResponse.js" -import * as TraceContext from "./HttpTraceContext.js" +import { constFalse } from "../../Function.ts" +import * as Layer from "../../Layer.ts" +import * as Option from "../../Option.ts" +import type { Predicate } from "../../Predicate.ts" +import type { ReadonlyRecord } from "../../Record.ts" +import * as ServiceMap from "../../ServiceMap.ts" +import * as Headers from "./Headers.ts" +import type { PreResponseHandler } from "./HttpEffect.ts" +import { causeResponseStripped, exitResponse } from "./HttpServerError.ts" +import { HttpServerRequest } from "./HttpServerRequest.ts" +import * as Request from "./HttpServerRequest.ts" +import * as Response from "./HttpServerResponse.ts" +import type { HttpServerResponse } from "./HttpServerResponse.ts" +import * as TraceContext from "./HttpTraceContext.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpPlatform.ts b/packages/effect/src/unstable/http/HttpPlatform.ts index 85edfec3af..c42c5022f4 100644 --- a/packages/effect/src/unstable/http/HttpPlatform.ts +++ b/packages/effect/src/unstable/http/HttpPlatform.ts @@ -1,17 +1,17 @@ /** * @since 4.0.0 */ -import * as Effect from "../../Effect.js" -import { identity } from "../../Function.js" -import * as Layer from "../../Layer.js" -import * as FileSystem from "../../platform/FileSystem.js" -import type { PlatformError } from "../../platform/PlatformError.js" -import * as ServiceMap from "../../ServiceMap.js" -import * as Stream from "../../Stream.js" -import * as Etag from "./Etag.js" -import * as Headers from "./Headers.js" -import type * as Body from "./HttpBody.js" -import * as Response from "./HttpServerResponse.js" +import * as Effect from "../../Effect.ts" +import { identity } from "../../Function.ts" +import * as Layer from "../../Layer.ts" +import * as FileSystem from "../../platform/FileSystem.ts" +import type { PlatformError } from "../../platform/PlatformError.ts" +import * as ServiceMap from "../../ServiceMap.ts" +import * as Stream from "../../Stream.ts" +import * as Etag from "./Etag.ts" +import * as Headers from "./Headers.ts" +import type * as Body from "./HttpBody.ts" +import * as Response from "./HttpServerResponse.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpRouter.ts b/packages/effect/src/unstable/http/HttpRouter.ts index e63e37632f..e0526bf88f 100644 --- a/packages/effect/src/unstable/http/HttpRouter.ts +++ b/packages/effect/src/unstable/http/HttpRouter.ts @@ -1,26 +1,26 @@ /** * @since 4.0.0 */ -import * as Arr from "../../Array.js" -import * as Effect from "../../Effect.js" -import { compose, dual, identity } from "../../Function.js" -import * as Layer from "../../Layer.js" -import * as Option from "../../Option.js" -import type { ReadonlyRecord } from "../../Record.js" -import type { ParseOptions } from "../../schema/AST.js" -import * as Schema from "../../schema/Schema.js" -import * as Scope from "../../Scope.js" -import * as ServiceMap from "../../ServiceMap.js" -import * as Tracer from "../../Tracer.js" -import type * as Types from "../../Types.js" -import * as FindMyWay from "./FindMyWay.js" -import * as HttpEffect from "./HttpEffect.js" -import type * as HttpMethod from "./HttpMethod.js" -import * as HttpMiddleware from "./HttpMiddleware.js" -import * as HttpServer from "./HttpServer.js" -import * as HttpServerError from "./HttpServerError.js" -import * as HttpServerRequest from "./HttpServerRequest.js" -import * as HttpServerResponse from "./HttpServerResponse.js" +import * as Arr from "../../Array.ts" +import * as Effect from "../../Effect.ts" +import { compose, dual, identity } from "../../Function.ts" +import * as Layer from "../../Layer.ts" +import * as Option from "../../Option.ts" +import type { ReadonlyRecord } from "../../Record.ts" +import type { ParseOptions } from "../../schema/AST.ts" +import * as Schema from "../../schema/Schema.ts" +import * as Scope from "../../Scope.ts" +import * as ServiceMap from "../../ServiceMap.ts" +import * as Tracer from "../../Tracer.ts" +import type * as Types from "../../Types.ts" +import * as FindMyWay from "./FindMyWay.ts" +import * as HttpEffect from "./HttpEffect.ts" +import type * as HttpMethod from "./HttpMethod.ts" +import * as HttpMiddleware from "./HttpMiddleware.ts" +import * as HttpServer from "./HttpServer.ts" +import * as HttpServerError from "./HttpServerError.ts" +import * as HttpServerRequest from "./HttpServerRequest.ts" +import * as HttpServerResponse from "./HttpServerResponse.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpServer.ts b/packages/effect/src/unstable/http/HttpServer.ts index e7a2838641..6537e24676 100644 --- a/packages/effect/src/unstable/http/HttpServer.ts +++ b/packages/effect/src/unstable/http/HttpServer.ts @@ -1,20 +1,20 @@ /** * @since 4.0.0 */ -import * as Effect from "../../Effect.js" -import { dual } from "../../Function.js" -import * as Layer from "../../Layer.js" -import * as FileSystem from "../../platform/FileSystem.js" -import * as Path from "../../platform/Path.js" -import type * as Scope from "../../Scope.js" -import * as ServiceMap from "../../ServiceMap.js" -import * as Etag from "./Etag.js" -import * as HttpClient from "./HttpClient.js" -import * as ClientRequest from "./HttpClientRequest.js" -import type * as Middleware from "./HttpMiddleware.js" -import * as HttpPlatform from "./HttpPlatform.js" -import type { HttpServerRequest } from "./HttpServerRequest.js" -import type { HttpServerResponse } from "./HttpServerResponse.js" +import * as Effect from "../../Effect.ts" +import { dual } from "../../Function.ts" +import * as Layer from "../../Layer.ts" +import * as FileSystem from "../../platform/FileSystem.ts" +import * as Path from "../../platform/Path.ts" +import type * as Scope from "../../Scope.ts" +import * as ServiceMap from "../../ServiceMap.ts" +import * as Etag from "./Etag.ts" +import * as HttpClient from "./HttpClient.ts" +import * as ClientRequest from "./HttpClientRequest.ts" +import type * as Middleware from "./HttpMiddleware.ts" +import * as HttpPlatform from "./HttpPlatform.ts" +import type { HttpServerRequest } from "./HttpServerRequest.ts" +import type { HttpServerResponse } from "./HttpServerResponse.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpServerError.ts b/packages/effect/src/unstable/http/HttpServerError.ts index f93a09e473..c9eee5cdad 100644 --- a/packages/effect/src/unstable/http/HttpServerError.ts +++ b/packages/effect/src/unstable/http/HttpServerError.ts @@ -1,16 +1,16 @@ /** * @since 4.0.0 */ -import * as Arr from "../../Array.js" -import * as Cause from "../../Cause.js" -import * as Data from "../../Data.js" -import * as Effect from "../../Effect.js" -import type * as Exit from "../../Exit.js" -import * as Option from "../../Option.js" -import { hasProperty } from "../../Predicate.js" -import type * as Request from "./HttpServerRequest.js" -import * as Respondable from "./HttpServerRespondable.js" -import * as Response from "./HttpServerResponse.js" +import * as Arr from "../../Array.ts" +import * as Cause from "../../Cause.ts" +import * as Data from "../../Data.ts" +import * as Effect from "../../Effect.ts" +import type * as Exit from "../../Exit.ts" +import * as Option from "../../Option.ts" +import { hasProperty } from "../../Predicate.ts" +import type * as Request from "./HttpServerRequest.ts" +import * as Respondable from "./HttpServerRespondable.ts" +import * as Response from "./HttpServerResponse.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpServerRequest.ts b/packages/effect/src/unstable/http/HttpServerRequest.ts index c8a130de61..2e6419c321 100644 --- a/packages/effect/src/unstable/http/HttpServerRequest.ts +++ b/packages/effect/src/unstable/http/HttpServerRequest.ts @@ -1,27 +1,27 @@ /** * @since 4.0.0 */ -import type * as Arr from "../../Array.js" -import * as Channel from "../../Channel.js" -import * as Effect from "../../Effect.js" -import * as Inspectable from "../../Inspectable.js" -import * as Option from "../../Option.js" -import type * as FileSystem from "../../platform/FileSystem.js" -import type * as Path from "../../platform/Path.js" -import type { ReadonlyRecord } from "../../Record.js" -import type { ParseOptions } from "../../schema/AST.js" -import * as Schema from "../../schema/Schema.js" -import type * as Scope from "../../Scope.js" -import * as ServiceMap from "../../ServiceMap.js" -import * as Stream from "../../Stream.js" -import * as Socket from "../socket/Socket.js" -import * as Cookies from "./Cookies.js" -import * as Headers from "./Headers.js" -import * as HttpIncomingMessage from "./HttpIncomingMessage.js" -import type { HttpMethod } from "./HttpMethod.js" -import { type HttpServerError, RequestError } from "./HttpServerError.js" -import * as Multipart from "./Multipart.js" -import * as UrlParams from "./UrlParams.js" +import type * as Arr from "../../Array.ts" +import * as Channel from "../../Channel.ts" +import * as Effect from "../../Effect.ts" +import * as Inspectable from "../../Inspectable.ts" +import * as Option from "../../Option.ts" +import type * as FileSystem from "../../platform/FileSystem.ts" +import type * as Path from "../../platform/Path.ts" +import type { ReadonlyRecord } from "../../Record.ts" +import type { ParseOptions } from "../../schema/AST.ts" +import * as Schema from "../../schema/Schema.ts" +import type * as Scope from "../../Scope.ts" +import * as ServiceMap from "../../ServiceMap.ts" +import * as Stream from "../../Stream.ts" +import * as Socket from "../socket/Socket.ts" +import * as Cookies from "./Cookies.ts" +import * as Headers from "./Headers.ts" +import * as HttpIncomingMessage from "./HttpIncomingMessage.ts" +import type { HttpMethod } from "./HttpMethod.ts" +import { type HttpServerError, RequestError } from "./HttpServerError.ts" +import * as Multipart from "./Multipart.ts" +import * as UrlParams from "./UrlParams.ts" export { /** @@ -29,7 +29,7 @@ export { * @category fiber refs */ MaxBodySize -} from "./HttpIncomingMessage.js" +} from "./HttpIncomingMessage.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpServerRespondable.ts b/packages/effect/src/unstable/http/HttpServerRespondable.ts index 88cf47e89a..70f297e763 100644 --- a/packages/effect/src/unstable/http/HttpServerRespondable.ts +++ b/packages/effect/src/unstable/http/HttpServerRespondable.ts @@ -1,12 +1,12 @@ /** * @since 4.0.0 */ -import * as Cause from "../../Cause.js" -import * as Effect from "../../Effect.js" -import { hasProperty } from "../../Predicate.js" -import * as Schema from "../../schema/Schema.js" -import type { HttpServerResponse } from "./HttpServerResponse.js" -import * as Response from "./HttpServerResponse.js" +import * as Cause from "../../Cause.ts" +import * as Effect from "../../Effect.ts" +import { hasProperty } from "../../Predicate.ts" +import * as Schema from "../../schema/Schema.ts" +import type { HttpServerResponse } from "./HttpServerResponse.ts" +import * as Response from "./HttpServerResponse.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpServerResponse.ts b/packages/effect/src/unstable/http/HttpServerResponse.ts index e81dc03fc5..e274b45b36 100644 --- a/packages/effect/src/unstable/http/HttpServerResponse.ts +++ b/packages/effect/src/unstable/http/HttpServerResponse.ts @@ -1,25 +1,25 @@ /** * @since 4.0.0 */ -import * as Effect from "../../Effect.js" -import { dual } from "../../Function.js" -import { ServiceMap } from "../../index.js" -import * as Inspectable from "../../Inspectable.js" -import { PipeInspectableProto } from "../../internal/core.js" -import type { Pipeable } from "../../Pipeable.js" -import type * as FileSystem from "../../platform/FileSystem.js" -import type { PlatformError } from "../../platform/PlatformError.js" -import { hasProperty } from "../../Predicate.js" -import type { ParseOptions } from "../../schema/AST.js" -import type * as Schema from "../../schema/Schema.js" -import * as Stream from "../../Stream.js" -import type { Mutable } from "../../Types.js" -import * as Cookies from "./Cookies.js" -import * as Headers from "./Headers.js" -import * as Body from "./HttpBody.js" -import type { HttpPlatform } from "./HttpPlatform.js" -import * as Template from "./Template.js" -import * as UrlParams from "./UrlParams.js" +import * as Effect from "../../Effect.ts" +import { dual } from "../../Function.ts" +import { ServiceMap } from "../../index.ts" +import * as Inspectable from "../../Inspectable.ts" +import { PipeInspectableProto } from "../../internal/core.ts" +import type { Pipeable } from "../../Pipeable.ts" +import type * as FileSystem from "../../platform/FileSystem.ts" +import type { PlatformError } from "../../platform/PlatformError.ts" +import { hasProperty } from "../../Predicate.ts" +import type { ParseOptions } from "../../schema/AST.ts" +import type * as Schema from "../../schema/Schema.ts" +import * as Stream from "../../Stream.ts" +import type { Mutable } from "../../Types.ts" +import * as Cookies from "./Cookies.ts" +import * as Headers from "./Headers.ts" +import * as Body from "./HttpBody.ts" +import type { HttpPlatform } from "./HttpPlatform.ts" +import * as Template from "./Template.ts" +import * as UrlParams from "./UrlParams.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/HttpTraceContext.ts b/packages/effect/src/unstable/http/HttpTraceContext.ts index 00c135caf1..8c287c2643 100644 --- a/packages/effect/src/unstable/http/HttpTraceContext.ts +++ b/packages/effect/src/unstable/http/HttpTraceContext.ts @@ -1,9 +1,9 @@ /** * @since 4.0.0 */ -import * as Option from "../../Option.js" -import * as Tracer from "../../Tracer.js" -import * as Headers from "./Headers.js" +import * as Option from "../../Option.ts" +import * as Tracer from "../../Tracer.ts" +import * as Headers from "./Headers.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/Multipart.ts b/packages/effect/src/unstable/http/Multipart.ts index 00c2a903cf..aee1a7ccd2 100644 --- a/packages/effect/src/unstable/http/Multipart.ts +++ b/packages/effect/src/unstable/http/Multipart.ts @@ -1,26 +1,26 @@ /** * @since 4.0.0 */ -import * as Arr from "../../Array.js" -import * as Channel from "../../Channel.js" -import * as Effect from "../../Effect.js" -import * as Exit from "../../Exit.js" -import { constant, dual } from "../../Function.js" -import * as Inspectable from "../../Inspectable.js" -import * as Option from "../../Option.js" -import * as FileSystem from "../../platform/FileSystem.js" -import * as Path from "../../platform/Path.js" -import * as Predicate from "../../Predicate.js" -import * as Pull from "../../Pull.js" -import type { ParseOptions } from "../../schema/AST.js" -import * as Check from "../../schema/Check.js" -import * as Schema from "../../schema/Schema.js" -import * as Transformation from "../../schema/Transformation.js" -import type * as Scope from "../../Scope.js" -import * as ServiceMap from "../../ServiceMap.js" -import * as Stream from "../../Stream.js" -import * as IncomingMessage from "./HttpIncomingMessage.js" -import * as MP from "./Multipasta.js" +import * as Arr from "../../Array.ts" +import * as Channel from "../../Channel.ts" +import * as Effect from "../../Effect.ts" +import * as Exit from "../../Exit.ts" +import { constant, dual } from "../../Function.ts" +import * as Inspectable from "../../Inspectable.ts" +import * as Option from "../../Option.ts" +import * as FileSystem from "../../platform/FileSystem.ts" +import * as Path from "../../platform/Path.ts" +import * as Predicate from "../../Predicate.ts" +import * as Pull from "../../Pull.ts" +import type { ParseOptions } from "../../schema/AST.ts" +import * as Check from "../../schema/Check.ts" +import * as Schema from "../../schema/Schema.ts" +import * as Transformation from "../../schema/Transformation.ts" +import type * as Scope from "../../Scope.ts" +import * as ServiceMap from "../../ServiceMap.ts" +import * as Stream from "../../Stream.ts" +import * as IncomingMessage from "./HttpIncomingMessage.ts" +import * as MP from "./Multipasta.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/Template.ts b/packages/effect/src/unstable/http/Template.ts index d0e267a231..5b75a73e17 100644 --- a/packages/effect/src/unstable/http/Template.ts +++ b/packages/effect/src/unstable/http/Template.ts @@ -1,10 +1,10 @@ /** * @since 4.0.0 */ -import * as Effect from "../../Effect.js" -import * as Exit from "../../Exit.js" -import * as Option from "../../Option.js" -import * as Stream from "../../Stream.js" +import * as Effect from "../../Effect.ts" +import * as Exit from "../../Exit.ts" +import * as Option from "../../Option.ts" +import * as Stream from "../../Stream.ts" /** * @category models diff --git a/packages/effect/src/unstable/http/UrlParams.ts b/packages/effect/src/unstable/http/UrlParams.ts index e1dae44a7a..92bd80da2d 100644 --- a/packages/effect/src/unstable/http/UrlParams.ts +++ b/packages/effect/src/unstable/http/UrlParams.ts @@ -1,27 +1,27 @@ /** * @since 4.0.0 */ -import * as Arr from "../../Array.js" -import * as Data from "../../Data.js" -import * as Effect from "../../Effect.js" -import * as Equal from "../../Equal.js" -import * as Equivalence_ from "../../Equivalence.js" -import { dual } from "../../Function.js" -import * as Hash from "../../Hash.js" -import { type Inspectable } from "../../Inspectable.js" -import { PipeInspectableProto } from "../../internal/core.js" -import * as Option from "../../Option.js" -import type { Pipeable } from "../../Pipeable.js" -import { hasProperty } from "../../Predicate.js" -import type { ReadonlyRecord } from "../../Record.js" -import * as Result from "../../Result.js" -import type * as Annotations from "../../schema/Annotations.js" -import type * as AST from "../../schema/AST.js" -import * as Issue from "../../schema/Issue.js" -import * as Schema from "../../schema/Schema.js" -import * as Transformation from "../../schema/Transformation.js" -import * as String$ from "../../String.js" -import * as Tuple from "../../Tuple.js" +import * as Arr from "../../Array.ts" +import * as Data from "../../Data.ts" +import * as Effect from "../../Effect.ts" +import * as Equal from "../../Equal.ts" +import * as Equivalence_ from "../../Equivalence.ts" +import { dual } from "../../Function.ts" +import * as Hash from "../../Hash.ts" +import { type Inspectable } from "../../Inspectable.ts" +import { PipeInspectableProto } from "../../internal/core.ts" +import * as Option from "../../Option.ts" +import type { Pipeable } from "../../Pipeable.ts" +import { hasProperty } from "../../Predicate.ts" +import type { ReadonlyRecord } from "../../Record.ts" +import * as Result from "../../Result.ts" +import type * as Annotations from "../../schema/Annotations.ts" +import type * as AST from "../../schema/AST.ts" +import * as Issue from "../../schema/Issue.ts" +import * as Schema from "../../schema/Schema.ts" +import * as Transformation from "../../schema/Transformation.ts" +import * as String$ from "../../String.ts" +import * as Tuple from "../../Tuple.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/http/index.ts b/packages/effect/src/unstable/http/index.ts index 756ce90e10..636a85a223 100644 --- a/packages/effect/src/unstable/http/index.ts +++ b/packages/effect/src/unstable/http/index.ts @@ -5,129 +5,129 @@ /** * @since 4.0.0 */ -export * as Cookies from "./Cookies.js" +export * as Cookies from "./Cookies.ts" /** * @since 4.0.0 */ -export * as Etag from "./Etag.js" +export * as Etag from "./Etag.ts" /** * @since 1.0.0 */ -export * as FetchHttpClient from "./FetchHttpClient.js" +export * as FetchHttpClient from "./FetchHttpClient.ts" /** * @since 4.0.0 */ -export * as FindMyWay from "./FindMyWay.js" +export * as FindMyWay from "./FindMyWay.ts" /** * @since 4.0.0 */ -export * as Headers from "./Headers.js" +export * as Headers from "./Headers.ts" /** * @since 4.0.0 */ -export * as HttpBody from "./HttpBody.js" +export * as HttpBody from "./HttpBody.ts" /** * @since 4.0.0 */ -export * as HttpClient from "./HttpClient.js" +export * as HttpClient from "./HttpClient.ts" /** * @since 4.0.0 */ -export * as HttpClientError from "./HttpClientError.js" +export * as HttpClientError from "./HttpClientError.ts" /** * @since 4.0.0 */ -export * as HttpClientRequest from "./HttpClientRequest.js" +export * as HttpClientRequest from "./HttpClientRequest.ts" /** * @since 4.0.0 */ -export * as HttpClientResponse from "./HttpClientResponse.js" +export * as HttpClientResponse from "./HttpClientResponse.ts" /** * @since 4.0.0 */ -export * as HttpEffect from "./HttpEffect.js" +export * as HttpEffect from "./HttpEffect.ts" /** * @since 4.0.0 */ -export * as HttpIncomingMessage from "./HttpIncomingMessage.js" +export * as HttpIncomingMessage from "./HttpIncomingMessage.ts" /** * @since 4.0.0 */ -export * as HttpMethod from "./HttpMethod.js" +export * as HttpMethod from "./HttpMethod.ts" /** * @since 4.0.0 */ -export * as HttpMiddleware from "./HttpMiddleware.js" +export * as HttpMiddleware from "./HttpMiddleware.ts" /** * @since 4.0.0 */ -export * as HttpPlatform from "./HttpPlatform.js" +export * as HttpPlatform from "./HttpPlatform.ts" /** * @since 4.0.0 */ -export * as HttpRouter from "./HttpRouter.js" +export * as HttpRouter from "./HttpRouter.ts" /** * @since 4.0.0 */ -export * as HttpServer from "./HttpServer.js" +export * as HttpServer from "./HttpServer.ts" /** * @since 4.0.0 */ -export * as HttpServerError from "./HttpServerError.js" +export * as HttpServerError from "./HttpServerError.ts" /** * @since 4.0.0 */ -export * as HttpServerRequest from "./HttpServerRequest.js" +export * as HttpServerRequest from "./HttpServerRequest.ts" /** * @since 4.0.0 */ -export * as HttpServerRespondable from "./HttpServerRespondable.js" +export * as HttpServerRespondable from "./HttpServerRespondable.ts" /** * @since 4.0.0 */ -export * as HttpServerResponse from "./HttpServerResponse.js" +export * as HttpServerResponse from "./HttpServerResponse.ts" /** * @since 4.0.0 */ -export * as HttpTraceContext from "./HttpTraceContext.js" +export * as HttpTraceContext from "./HttpTraceContext.ts" /** * @since 4.0.0 */ -export * as Multipart from "./Multipart.js" +export * as Multipart from "./Multipart.ts" /** * @since 4.0.0 */ -export * as Multipasta from "./Multipasta.js" +export * as Multipasta from "./Multipasta.ts" /** * @since 4.0.0 */ -export * as Template from "./Template.js" +export * as Template from "./Template.ts" /** * @since 4.0.0 */ -export * as UrlParams from "./UrlParams.js" +export * as UrlParams from "./UrlParams.ts" diff --git a/packages/effect/src/unstable/http/.index.ts b/packages/effect/src/unstable/http/index.ts.tpl similarity index 100% rename from packages/effect/src/unstable/http/.index.ts rename to packages/effect/src/unstable/http/index.ts.tpl diff --git a/packages/effect/src/unstable/socket/Socket.ts b/packages/effect/src/unstable/socket/Socket.ts index dc92e0d5b0..0f4a9051dc 100644 --- a/packages/effect/src/unstable/socket/Socket.ts +++ b/packages/effect/src/unstable/socket/Socket.ts @@ -1,22 +1,22 @@ /** * @since 4.0.0 */ -import type { NonEmptyReadonlyArray } from "../../Array.js" -import * as Channel from "../../Channel.js" -import * as Data from "../../Data.js" -import * as Deferred from "../../Deferred.js" -import type { DurationInput } from "../../Duration.js" -import * as Effect from "../../Effect.js" -import * as Exit from "../../Exit.js" -import * as FiberSet from "../../FiberSet.js" -import * as Filter from "../../Filter.js" -import { dual } from "../../Function.js" -import * as Layer from "../../Layer.js" -import * as Predicate from "../../Predicate.js" -import * as Pull from "../../Pull.js" -import * as Queue from "../../Queue.js" -import * as Scope from "../../Scope.js" -import * as ServiceMap from "../../ServiceMap.js" +import type { NonEmptyReadonlyArray } from "../../Array.ts" +import * as Channel from "../../Channel.ts" +import * as Data from "../../Data.ts" +import * as Deferred from "../../Deferred.ts" +import type { DurationInput } from "../../Duration.ts" +import * as Effect from "../../Effect.ts" +import * as Exit from "../../Exit.ts" +import * as FiberSet from "../../FiberSet.ts" +import * as Filter from "../../Filter.ts" +import { dual } from "../../Function.ts" +import * as Layer from "../../Layer.ts" +import * as Predicate from "../../Predicate.ts" +import * as Pull from "../../Pull.ts" +import * as Queue from "../../Queue.ts" +import * as Scope from "../../Scope.ts" +import * as ServiceMap from "../../ServiceMap.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/socket/SocketServer.ts b/packages/effect/src/unstable/socket/SocketServer.ts index fed43fb6fe..d9454518a3 100644 --- a/packages/effect/src/unstable/socket/SocketServer.ts +++ b/packages/effect/src/unstable/socket/SocketServer.ts @@ -1,10 +1,10 @@ /** * @since 4.0.0 */ -import * as Data from "../../Data.js" -import type * as Effect from "../../Effect.js" -import * as ServiceMap from "../../ServiceMap.js" -import type * as Socket from "./Socket.js" +import * as Data from "../../Data.ts" +import type * as Effect from "../../Effect.ts" +import * as ServiceMap from "../../ServiceMap.ts" +import type * as Socket from "./Socket.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/socket/index.ts b/packages/effect/src/unstable/socket/index.ts index 752b3adb9c..4b1abb9876 100644 --- a/packages/effect/src/unstable/socket/index.ts +++ b/packages/effect/src/unstable/socket/index.ts @@ -5,9 +5,9 @@ /** * @since 4.0.0 */ -export * as Socket from "./Socket.js" +export * as Socket from "./Socket.ts" /** * @since 4.0.0 */ -export * as SocketServer from "./SocketServer.js" +export * as SocketServer from "./SocketServer.ts" diff --git a/packages/effect/src/unstable/socket/.index.ts b/packages/effect/src/unstable/socket/index.ts.tpl similarity index 100% rename from packages/effect/src/unstable/socket/.index.ts rename to packages/effect/src/unstable/socket/index.ts.tpl diff --git a/packages/effect/src/unstable/tracing/Otlp.ts b/packages/effect/src/unstable/tracing/Otlp.ts index 1bb9ec120e..c6500688c3 100644 --- a/packages/effect/src/unstable/tracing/Otlp.ts +++ b/packages/effect/src/unstable/tracing/Otlp.ts @@ -1,14 +1,14 @@ /** * @since 4.0.0 */ -import type * as Duration from "../../Duration.js" -import * as Layer from "../../Layer.js" -import type * as Tracer from "../../Tracer.js" -import type * as Headers from "../http/Headers.js" -import type * as HttpClient from "../http/HttpClient.js" -import * as OtlpLogger from "./OtlpLogger.js" -import * as OtlpMetrics from "./OtlpMetrics.js" -import * as OtlpTracer from "./OtlpTracer.js" +import type * as Duration from "../../Duration.ts" +import * as Layer from "../../Layer.ts" +import type * as Tracer from "../../Tracer.ts" +import type * as Headers from "../http/Headers.ts" +import type * as HttpClient from "../http/HttpClient.ts" +import * as OtlpLogger from "./OtlpLogger.ts" +import * as OtlpMetrics from "./OtlpMetrics.ts" +import * as OtlpTracer from "./OtlpTracer.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/tracing/OtlpLogger.ts b/packages/effect/src/unstable/tracing/OtlpLogger.ts index 9fc8b5627b..3d2fd4b05d 100644 --- a/packages/effect/src/unstable/tracing/OtlpLogger.ts +++ b/packages/effect/src/unstable/tracing/OtlpLogger.ts @@ -1,20 +1,20 @@ /** * @since 4.0.0 */ -import * as Arr from "../../Array.js" -import * as Cause from "../../Cause.js" -import * as Duration from "../../Duration.js" -import * as Effect from "../../Effect.js" -import * as Exporter from "../../internal/tracing/otlpExporter.js" -import type * as Layer from "../../Layer.js" -import * as Logger from "../../Logger.js" -import type * as LogLevel from "../../LogLevel.js" -import { CurrentLogAnnotations, CurrentLogSpans } from "../../References.js" -import type * as Scope from "../../Scope.js" -import type * as Headers from "../http/Headers.js" -import type * as HttpClient from "../http/HttpClient.js" -import type { AnyValue, Fixed64, KeyValue, Resource } from "./OtlpResource.js" -import * as OtlpResource from "./OtlpResource.js" +import * as Arr from "../../Array.ts" +import * as Cause from "../../Cause.ts" +import * as Duration from "../../Duration.ts" +import * as Effect from "../../Effect.ts" +import * as Exporter from "../../internal/tracing/otlpExporter.ts" +import type * as Layer from "../../Layer.ts" +import * as Logger from "../../Logger.ts" +import type * as LogLevel from "../../LogLevel.ts" +import { CurrentLogAnnotations, CurrentLogSpans } from "../../References.ts" +import type * as Scope from "../../Scope.ts" +import type * as Headers from "../http/Headers.ts" +import type * as HttpClient from "../http/HttpClient.ts" +import type { AnyValue, Fixed64, KeyValue, Resource } from "./OtlpResource.ts" +import * as OtlpResource from "./OtlpResource.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/tracing/OtlpMetrics.ts b/packages/effect/src/unstable/tracing/OtlpMetrics.ts index 51e50420c4..ae7db4c14b 100644 --- a/packages/effect/src/unstable/tracing/OtlpMetrics.ts +++ b/packages/effect/src/unstable/tracing/OtlpMetrics.ts @@ -1,18 +1,18 @@ /** * @since 4.0.0 */ -import * as Arr from "../../Array.js" -import { Clock } from "../../Clock.js" -import * as Duration from "../../Duration.js" -import * as Effect from "../../Effect.js" -import * as Exporter from "../../internal/tracing/otlpExporter.js" -import * as Layer from "../../Layer.js" -import * as Metric from "../../Metric.js" -import type * as Scope from "../../Scope.js" -import type * as Headers from "../http/Headers.js" -import type * as HttpClient from "../http/HttpClient.js" -import type { Fixed64, KeyValue } from "./OtlpResource.js" -import * as OtlpResource from "./OtlpResource.js" +import * as Arr from "../../Array.ts" +import { Clock } from "../../Clock.ts" +import * as Duration from "../../Duration.ts" +import * as Effect from "../../Effect.ts" +import * as Exporter from "../../internal/tracing/otlpExporter.ts" +import * as Layer from "../../Layer.ts" +import * as Metric from "../../Metric.ts" +import type * as Scope from "../../Scope.ts" +import type * as Headers from "../http/Headers.ts" +import type * as HttpClient from "../http/HttpClient.ts" +import type { Fixed64, KeyValue } from "./OtlpResource.ts" +import * as OtlpResource from "./OtlpResource.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/tracing/OtlpResource.ts b/packages/effect/src/unstable/tracing/OtlpResource.ts index 59c712481d..afc4405fa3 100644 --- a/packages/effect/src/unstable/tracing/OtlpResource.ts +++ b/packages/effect/src/unstable/tracing/OtlpResource.ts @@ -1,9 +1,9 @@ /** * @since 4.0.0 */ -import * as Config from "../../config/Config.js" -import * as Effect from "../../Effect.js" -import * as Inspectable from "../../Inspectable.js" +import * as Config from "../../config/Config.ts" +import * as Effect from "../../Effect.ts" +import * as Inspectable from "../../Inspectable.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/tracing/OtlpTracer.ts b/packages/effect/src/unstable/tracing/OtlpTracer.ts index 49139ee4a7..5a03218ace 100644 --- a/packages/effect/src/unstable/tracing/OtlpTracer.ts +++ b/packages/effect/src/unstable/tracing/OtlpTracer.ts @@ -1,22 +1,22 @@ /** * @since 4.0.0 */ -import * as Cause from "../../Cause.js" -import * as Duration from "../../Duration.js" -import * as Effect from "../../Effect.js" -import type * as Exit from "../../Exit.js" -import * as Exporter from "../../internal/tracing/otlpExporter.js" -import * as Layer from "../../Layer.js" -import * as Option from "../../Option.js" -import type * as Scope from "../../Scope.js" -import type * as ServiceMap from "../../ServiceMap.js" -import * as Tracer from "../../Tracer.js" -import type { ExtractTag } from "../../Types.js" -import type * as Headers from "../http/Headers.js" -import type * as HttpClient from "../http/HttpClient.js" -import type { KeyValue, Resource } from "./OtlpResource.js" -import { entriesToAttributes } from "./OtlpResource.js" -import * as OtlpResource from "./OtlpResource.js" +import * as Cause from "../../Cause.ts" +import * as Duration from "../../Duration.ts" +import * as Effect from "../../Effect.ts" +import type * as Exit from "../../Exit.ts" +import * as Exporter from "../../internal/tracing/otlpExporter.ts" +import * as Layer from "../../Layer.ts" +import * as Option from "../../Option.ts" +import type * as Scope from "../../Scope.ts" +import type * as ServiceMap from "../../ServiceMap.ts" +import * as Tracer from "../../Tracer.ts" +import type { ExtractTag } from "../../Types.ts" +import type * as Headers from "../http/Headers.ts" +import type * as HttpClient from "../http/HttpClient.ts" +import type { KeyValue, Resource } from "./OtlpResource.ts" +import { entriesToAttributes } from "./OtlpResource.ts" +import * as OtlpResource from "./OtlpResource.ts" /** * @since 4.0.0 diff --git a/packages/effect/src/unstable/tracing/index.ts b/packages/effect/src/unstable/tracing/index.ts index 7771e9bac1..dc663f041d 100644 --- a/packages/effect/src/unstable/tracing/index.ts +++ b/packages/effect/src/unstable/tracing/index.ts @@ -5,24 +5,24 @@ /** * @since 4.0.0 */ -export * as Otlp from "./Otlp.js" +export * as Otlp from "./Otlp.ts" /** * @since 4.0.0 */ -export * as OtlpLogger from "./OtlpLogger.js" +export * as OtlpLogger from "./OtlpLogger.ts" /** * @since 4.0.0 */ -export * as OtlpMetrics from "./OtlpMetrics.js" +export * as OtlpMetrics from "./OtlpMetrics.ts" /** * @since 4.0.0 */ -export * as OtlpResource from "./OtlpResource.js" +export * as OtlpResource from "./OtlpResource.ts" /** * @since 4.0.0 */ -export * as OtlpTracer from "./OtlpTracer.js" +export * as OtlpTracer from "./OtlpTracer.ts" diff --git a/packages/effect/src/unstable/tracing/.index.ts b/packages/effect/src/unstable/tracing/index.ts.tpl similarity index 100% rename from packages/effect/src/unstable/tracing/.index.ts rename to packages/effect/src/unstable/tracing/index.ts.tpl diff --git a/packages/effect/test/EffectEager.test.ts b/packages/effect/test/EffectEager.test.ts index 42bf5bbd1a..25d155f5d6 100644 --- a/packages/effect/test/EffectEager.test.ts +++ b/packages/effect/test/EffectEager.test.ts @@ -1,8 +1,8 @@ import { assert, describe, it } from "@effect/vitest" -import * as Effect from "../src/Effect.js" -import * as Exit from "../src/Exit.js" -import * as Fiber from "../src/Fiber.js" -import * as TestClock from "../src/TestClock.js" +import * as Effect from "effect/Effect" +import * as Exit from "effect/Exit" +import * as Fiber from "effect/Fiber" +import * as TestClock from "effect/TestClock" describe("Effect Eager Operations", () => { describe("fnUntracedEager", () => { diff --git a/packages/effect/test/Record.test.ts b/packages/effect/test/Record.test.ts index 64d834afdc..9a5e433baf 100644 --- a/packages/effect/test/Record.test.ts +++ b/packages/effect/test/Record.test.ts @@ -1,6 +1,6 @@ import { Record } from "effect" import { describe, it } from "vitest" -import { deepStrictEqual } from "./utils/assert.js" +import { deepStrictEqual } from "./utils/assert.ts" describe("Record", () => { it("singleton", () => { diff --git a/packages/effect/test/Result.test.ts b/packages/effect/test/Result.test.ts index 7c90c0203a..16d32acc21 100644 --- a/packages/effect/test/Result.test.ts +++ b/packages/effect/test/Result.test.ts @@ -13,7 +13,7 @@ import { deepStrictEqual, strictEqual, throws -} from "./utils/assert.js" +} from "./utils/assert.ts" describe("Result", () => { describe("Constructors", () => { diff --git a/packages/effect/test/Struct.test.ts b/packages/effect/test/Struct.test.ts index 69caaf020b..ee5feabcb1 100644 --- a/packages/effect/test/Struct.test.ts +++ b/packages/effect/test/Struct.test.ts @@ -1,8 +1,8 @@ import { Equivalence, pipe, String as Str, Struct } from "effect" import { Schema } from "effect/schema" import { describe, it } from "vitest" -import { assertFalse, assertTrue, deepStrictEqual, strictEqual } from "./utils/assert.js" -import { assertions } from "./utils/schema.js" +import { assertFalse, assertTrue, deepStrictEqual, strictEqual } from "./utils/assert.ts" +import { assertions } from "./utils/schema.ts" describe("Struct", () => { it("get", () => { diff --git a/packages/effect/test/Tuple.test.ts b/packages/effect/test/Tuple.test.ts index 3756c2e242..af2d490bfe 100644 --- a/packages/effect/test/Tuple.test.ts +++ b/packages/effect/test/Tuple.test.ts @@ -1,8 +1,8 @@ import { pipe, Tuple } from "effect" import { Schema } from "effect/schema" import { describe, it } from "vitest" -import { deepStrictEqual, strictEqual } from "./utils/assert.js" -import { assertions } from "./utils/schema.js" +import { deepStrictEqual, strictEqual } from "./utils/assert.ts" +import { assertions } from "./utils/schema.ts" const tuple = ["a", 2, true] as [string, number, boolean] diff --git a/packages/effect/test/schema/AST.test.ts b/packages/effect/test/schema/AST.test.ts index e16860bee5..df4e6e1dc6 100644 --- a/packages/effect/test/schema/AST.test.ts +++ b/packages/effect/test/schema/AST.test.ts @@ -1,6 +1,6 @@ import { AST, Schema } from "effect/schema" import { describe, it } from "vitest" -import { deepStrictEqual } from "../utils/assert.js" +import { deepStrictEqual } from "../utils/assert.ts" describe("AST", () => { describe("collectSentinels", () => { diff --git a/packages/effect/test/schema/Formatter.test.ts b/packages/effect/test/schema/Formatter.test.ts index 67bcf9fdbf..71dddc4100 100644 --- a/packages/effect/test/schema/Formatter.test.ts +++ b/packages/effect/test/schema/Formatter.test.ts @@ -2,7 +2,7 @@ import { Effect, Option } from "effect" import type { AST } from "effect/schema" import { Check, Formatter, Getter, Issue, Schema, ToParser } from "effect/schema" import { describe, it } from "vitest" -import { assertions } from "../utils/schema.js" +import { assertions } from "../utils/schema.ts" const assertStructuredIssue = async ( schema: Schema.Codec, diff --git a/packages/effect/test/schema/Issue.test.ts b/packages/effect/test/schema/Issue.test.ts index a900a47440..ab5a2be163 100644 --- a/packages/effect/test/schema/Issue.test.ts +++ b/packages/effect/test/schema/Issue.test.ts @@ -1,6 +1,6 @@ import { Issue } from "effect/schema" import { describe, it } from "vitest" -import { assertTrue } from "../utils/assert.js" +import { assertTrue } from "../utils/assert.ts" describe("Issue", () => { it("isIssue", () => { diff --git a/packages/effect/test/schema/Schema.test.ts b/packages/effect/test/schema/Schema.test.ts index cfbb5c34f8..754711ec83 100644 --- a/packages/effect/test/schema/Schema.test.ts +++ b/packages/effect/test/schema/Schema.test.ts @@ -15,8 +15,8 @@ import { import { AST, Check, Getter, Issue, Schema, ToParser, Transformation } from "effect/schema" import { produce } from "immer" import { describe, it } from "vitest" -import { assertFalse, assertInclude, assertTrue, deepStrictEqual, strictEqual, throws } from "../utils/assert.js" -import { assertions } from "../utils/schema.js" +import { assertFalse, assertInclude, assertTrue, deepStrictEqual, strictEqual, throws } from "../utils/assert.ts" +import { assertions } from "../utils/schema.ts" const Trim = Schema.String.pipe(Schema.decode(Transformation.trim())) diff --git a/packages/effect/test/schema/Serializer.test.ts b/packages/effect/test/schema/Serializer.test.ts index a6b8e065e6..7ec3eaaa29 100644 --- a/packages/effect/test/schema/Serializer.test.ts +++ b/packages/effect/test/schema/Serializer.test.ts @@ -1,8 +1,8 @@ import { Option } from "effect" import { Schema, Serializer, Transformation } from "effect/schema" import { describe, it } from "vitest" -import { strictEqual } from "../utils/assert.js" -import { assertions } from "../utils/schema.js" +import { strictEqual } from "../utils/assert.ts" +import { assertions } from "../utils/schema.ts" const FiniteFromDate = Schema.Date.pipe(Schema.decodeTo( Schema.Number, diff --git a/packages/effect/test/schema/ToArbitrary.test.ts b/packages/effect/test/schema/ToArbitrary.test.ts index be4bb9eedd..4f9343ea7f 100644 --- a/packages/effect/test/schema/ToArbitrary.test.ts +++ b/packages/effect/test/schema/ToArbitrary.test.ts @@ -1,7 +1,7 @@ import { AST, Check, Schema, ToArbitrary, ToEquivalence } from "effect/schema" import { describe, it } from "vitest" -import { deepStrictEqual } from "../utils/assert.js" -import { assertions } from "../utils/schema.js" +import { deepStrictEqual } from "../utils/assert.ts" +import { assertions } from "../utils/schema.ts" function assertFragments(schema: Schema.Schema, ctx: ToArbitrary.Context) { const ast = schema.ast diff --git a/packages/effect/test/schema/ToEquivalence.test.ts b/packages/effect/test/schema/ToEquivalence.test.ts index dbb575a3d4..b0c9b9fbd1 100644 --- a/packages/effect/test/schema/ToEquivalence.test.ts +++ b/packages/effect/test/schema/ToEquivalence.test.ts @@ -1,7 +1,7 @@ import { Equivalence, Option } from "effect" import { Schema, ToEquivalence } from "effect/schema" import { describe, it } from "vitest" -import { assertFalse, assertTrue } from "../utils/assert.js" +import { assertFalse, assertTrue } from "../utils/assert.ts" describe("ToEquivalence", () => { it("String", () => { diff --git a/packages/effect/test/schema/ToJsonSchema.test.ts b/packages/effect/test/schema/ToJsonSchema.test.ts index f59eaa0edd..592e5e123e 100644 --- a/packages/effect/test/schema/ToJsonSchema.test.ts +++ b/packages/effect/test/schema/ToJsonSchema.test.ts @@ -2,7 +2,7 @@ import Ajv from "ajv" import { Check, Schema, ToJsonSchema } from "effect/schema" import { describe, it } from "vitest" -import { assertFalse, assertTrue, deepStrictEqual, throws } from "../utils/assert.js" +import { assertFalse, assertTrue, deepStrictEqual, throws } from "../utils/assert.ts" const ajvOptions: Ajv.Options = { strictTuples: false, diff --git a/packages/effect/test/schema/ToPretty.test.ts b/packages/effect/test/schema/ToPretty.test.ts index 0672a31a05..e4156c68ea 100644 --- a/packages/effect/test/schema/ToPretty.test.ts +++ b/packages/effect/test/schema/ToPretty.test.ts @@ -1,7 +1,7 @@ import { Option } from "effect" import { Schema, ToPretty } from "effect/schema" import { describe, it } from "vitest" -import { strictEqual } from "../utils/assert.js" +import { strictEqual } from "../utils/assert.ts" describe("ToPretty", () => { it("Any", () => { diff --git a/packages/effect/test/schema/standardSchemaV1.test.ts b/packages/effect/test/schema/standardSchemaV1.test.ts index 405d8de72d..5fa2b01cfc 100644 --- a/packages/effect/test/schema/standardSchemaV1.test.ts +++ b/packages/effect/test/schema/standardSchemaV1.test.ts @@ -2,7 +2,7 @@ import { assertTrue, deepStrictEqual, strictEqual } from "@effect/vitest/utils" import { Effect, Option, ServiceMap } from "effect" import { Check, Getter, Schema } from "effect/schema" import { describe, it } from "vitest" -import { standard } from "../utils/schema.js" +import { standard } from "../utils/schema.ts" const AsyncString = Schema.String.pipe(Schema.decode({ decode: new Getter.Getter((os: Option.Option) => diff --git a/packages/effect/test/utils/schema.ts b/packages/effect/test/utils/schema.ts index 257bb047e2..7fe429b58a 100644 --- a/packages/effect/test/utils/schema.ts +++ b/packages/effect/test/utils/schema.ts @@ -2,7 +2,7 @@ import type { StandardSchemaV1 } from "@standard-schema/spec" import type { ServiceMap } from "effect" import { Effect, FastCheck, Predicate, Record, Result } from "effect" import { AST, Formatter, Issue, Schema, Serializer, ToArbitrary, ToParser } from "effect/schema" -import { deepStrictEqual, fail, strictEqual, throws } from "./assert.js" +import { deepStrictEqual, fail, strictEqual, throws } from "./assert.ts" export const assertions = make({ deepStrictEqual, diff --git a/packages/effect/vitest.config.ts b/packages/effect/vitest.config.ts index 578d066724..fb966ae875 100644 --- a/packages/effect/vitest.config.ts +++ b/packages/effect/vitest.config.ts @@ -1,5 +1,5 @@ import { mergeConfig, type ViteUserConfig } from "vitest/config" -import shared from "../../vitest.shared.js" +import shared from "../../vitest.shared.ts" const config: ViteUserConfig = {} diff --git a/packages/platform-bun/docgen.json b/packages/platform-bun/docgen.json index 6d0200410f..17e30631bf 100644 --- a/packages/platform-bun/docgen.json +++ b/packages/platform-bun/docgen.json @@ -1,5 +1,16 @@ { "$schema": "../../node_modules/@effect/docgen/schema.json", "srcLink": "https://github.com/Effect-TS/effect/tree/main/packages/platform-bun/src/", - "exclude": ["src/internal/**/*.ts"] + "exclude": ["src/internal/**/*.ts"], + "examplesCompilerOptions": { + "noEmit": true, + "strict": true, + "skipLibCheck": true, + "moduleResolution": "Bundler", + "module": "ES2022", + "target": "ES2022", + "lib": ["ES2022", "DOM", "DOM.Iterable"], + "rewriteRelativeImportExtensions": true, + "allowImportingTsExtensions": true + } } diff --git a/packages/platform-bun/src/BunHttpPlatform.ts b/packages/platform-bun/src/BunHttpPlatform.ts index d556aad7ae..34a303850e 100644 --- a/packages/platform-bun/src/BunHttpPlatform.ts +++ b/packages/platform-bun/src/BunHttpPlatform.ts @@ -7,7 +7,7 @@ import type { FileSystem } from "effect/platform/FileSystem" import * as Etag from "effect/unstable/http/Etag" import * as Platform from "effect/unstable/http/HttpPlatform" import * as Response from "effect/unstable/http/HttpServerResponse" -import * as BunFileSystem from "./BunFileSystem.js" +import * as BunFileSystem from "./BunFileSystem.ts" /** * @since 1.0.0 diff --git a/packages/platform-bun/src/BunHttpServer.ts b/packages/platform-bun/src/BunHttpServer.ts index a4caf93968..b769f52d32 100644 --- a/packages/platform-bun/src/BunHttpServer.ts +++ b/packages/platform-bun/src/BunHttpServer.ts @@ -34,10 +34,10 @@ import type * as ServerResponse from "effect/unstable/http/HttpServerResponse" import type * as Multipart from "effect/unstable/http/Multipart" import * as UrlParams from "effect/unstable/http/UrlParams" import * as Socket from "effect/unstable/socket/Socket" -import * as Platform from "./BunHttpPlatform.js" -import * as BunMultipart from "./BunMultipart.js" -import * as BunServices from "./BunServices.js" -import * as BunStream from "./BunStream.js" +import * as Platform from "./BunHttpPlatform.ts" +import * as BunMultipart from "./BunMultipart.ts" +import * as BunServices from "./BunServices.ts" +import * as BunStream from "./BunStream.ts" /** * @since 1.0.0 diff --git a/packages/platform-bun/src/BunMultipart.ts b/packages/platform-bun/src/BunMultipart.ts index 6b3d6726b2..e13e9e5ea9 100644 --- a/packages/platform-bun/src/BunMultipart.ts +++ b/packages/platform-bun/src/BunMultipart.ts @@ -7,7 +7,7 @@ import type { Path } from "effect/platform/Path" import type * as Scope from "effect/Scope" import * as Stream from "effect/Stream" import * as Multipart from "effect/unstable/http/Multipart" -import * as BunStream from "./BunStream.js" +import * as BunStream from "./BunStream.ts" /** * @since 1.0.0 diff --git a/packages/platform-bun/src/BunServices.ts b/packages/platform-bun/src/BunServices.ts index 07930906d9..ae32c97dd4 100644 --- a/packages/platform-bun/src/BunServices.ts +++ b/packages/platform-bun/src/BunServices.ts @@ -4,8 +4,8 @@ import * as Layer from "effect/Layer" import type { FileSystem } from "effect/platform/FileSystem" import type { Path } from "effect/platform/Path" -import * as NodeFileSystem from "./BunFileSystem.js" -import * as NodePath from "./BunPath.js" +import * as NodeFileSystem from "./BunFileSystem.ts" +import * as NodePath from "./BunPath.ts" /** * @since 1.0.0 diff --git a/packages/platform-bun/src/index.ts b/packages/platform-bun/src/index.ts index 8bdd69918c..5269f50fdf 100644 --- a/packages/platform-bun/src/index.ts +++ b/packages/platform-bun/src/index.ts @@ -5,64 +5,64 @@ /** * @since 1.0.0 */ -export * as BunFileSystem from "./BunFileSystem.js" +export * as BunFileSystem from "./BunFileSystem.ts" /** * @since 1.0.0 */ -export * as BunHttpClient from "./BunHttpClient.js" +export * as BunHttpClient from "./BunHttpClient.ts" /** * @since 1.0.0 */ -export * as BunHttpPlatform from "./BunHttpPlatform.js" +export * as BunHttpPlatform from "./BunHttpPlatform.ts" /** * @since 1.0.0 */ -export * as BunHttpServer from "./BunHttpServer.js" +export * as BunHttpServer from "./BunHttpServer.ts" /** * @since 1.0.0 */ -export * as BunHttpServerRequest from "./BunHttpServerRequest.js" +export * as BunHttpServerRequest from "./BunHttpServerRequest.ts" /** * @since 1.0.0 */ -export * as BunMultipart from "./BunMultipart.js" +export * as BunMultipart from "./BunMultipart.ts" /** * @since 1.0.0 */ -export * as BunPath from "./BunPath.js" +export * as BunPath from "./BunPath.ts" /** * @since 1.0.0 */ -export * as BunRuntime from "./BunRuntime.js" +export * as BunRuntime from "./BunRuntime.ts" /** * @since 1.0.0 */ -export * as BunServices from "./BunServices.js" +export * as BunServices from "./BunServices.ts" /** * @since 1.0.0 */ -export * as BunSink from "./BunSink.js" +export * as BunSink from "./BunSink.ts" /** * @since 1.0.0 */ -export * as BunSocket from "./BunSocket.js" +export * as BunSocket from "./BunSocket.ts" /** * @since 1.0.0 */ -export * as BunSocketServer from "./BunSocketServer.js" +export * as BunSocketServer from "./BunSocketServer.ts" /** * @since 1.0.0 */ -export * as BunStream from "./BunStream.js" +export * as BunStream from "./BunStream.ts" diff --git a/packages/platform-bun/src/.index.ts b/packages/platform-bun/src/index.ts.tpl similarity index 100% rename from packages/platform-bun/src/.index.ts rename to packages/platform-bun/src/index.ts.tpl diff --git a/packages/platform-node-shared/docgen.json b/packages/platform-node-shared/docgen.json index f806321c24..9781bdfd42 100644 --- a/packages/platform-node-shared/docgen.json +++ b/packages/platform-node-shared/docgen.json @@ -10,6 +10,8 @@ "module": "ES2022", "target": "ES2022", "lib": ["ES2022", "DOM", "DOM.Iterable"], + "rewriteRelativeImportExtensions": true, + "allowImportingTsExtensions": true, "paths": { "effect": ["../../../effect/src/index.js"], "effect/*": ["../../../effect/src/*.js"], @@ -21,12 +23,8 @@ "@effect/platform/*": ["../../../platform/src/*.js"], "@effect/platform-node": ["../../../platform-node/src/index.js"], "@effect/platform-node/*": ["../../../platform-node/src/*.js"], - "@effect/platform-node-shared": [ - "../../../platform-node-shared/src/index.js" - ], - "@effect/platform-node-shared/*": [ - "../../../platform-node-shared/src/*.js" - ], + "@effect/platform-node-shared": ["../../../platform-node-shared/src/index.js"], + "@effect/platform-node-shared/*": ["../../../platform-node-shared/src/*.js"], "@effect/rpc": ["../../../rpc/src/index.js"], "@effect/rpc/*": ["../../../rpc/src/*.js"], "@effect/sql": ["../../../sql/src/index.js"], diff --git a/packages/platform-node-shared/src/NodeFileSystem.ts b/packages/platform-node-shared/src/NodeFileSystem.ts index 8ca2ac1189..983fdf0e89 100644 --- a/packages/platform-node-shared/src/NodeFileSystem.ts +++ b/packages/platform-node-shared/src/NodeFileSystem.ts @@ -15,7 +15,7 @@ import * as Crypto from "node:crypto" import * as NFS from "node:fs" import * as OS from "node:os" import * as Path from "node:path" -import { handleErrnoException } from "./internal/utils.js" +import { handleErrnoException } from "./internal/utils.ts" const handleBadArgument = (method: string) => (err: unknown) => new Error.BadArgument({ diff --git a/packages/platform-node-shared/src/NodeSocketServer.ts b/packages/platform-node-shared/src/NodeSocketServer.ts index 618acf9d2f..7882d3f146 100644 --- a/packages/platform-node-shared/src/NodeSocketServer.ts +++ b/packages/platform-node-shared/src/NodeSocketServer.ts @@ -14,8 +14,8 @@ import * as Socket from "effect/unstable/socket/Socket" import * as SocketServer from "effect/unstable/socket/SocketServer" import type * as Http from "node:http" import * as Net from "node:net" -import * as NodeSocket from "./NodeSocket.js" -import { NodeWS } from "./NodeSocket.js" +import * as NodeSocket from "./NodeSocket.ts" +import { NodeWS } from "./NodeSocket.ts" /** * @since 1.0.0 diff --git a/packages/platform-node-shared/src/NodeStream.ts b/packages/platform-node-shared/src/NodeStream.ts index 3a747da80d..315404a6cd 100644 --- a/packages/platform-node-shared/src/NodeStream.ts +++ b/packages/platform-node-shared/src/NodeStream.ts @@ -17,7 +17,7 @@ import * as ServiceMap from "effect/ServiceMap" import * as Stream from "effect/Stream" import type { Duplex } from "node:stream" import { Readable } from "node:stream" -import { pullIntoWritable } from "./NodeSink.js" +import { pullIntoWritable } from "./NodeSink.ts" /** * @category constructors diff --git a/packages/platform-node-shared/vitest.config.ts b/packages/platform-node-shared/vitest.config.ts index 578d066724..fb966ae875 100644 --- a/packages/platform-node-shared/vitest.config.ts +++ b/packages/platform-node-shared/vitest.config.ts @@ -1,5 +1,5 @@ import { mergeConfig, type ViteUserConfig } from "vitest/config" -import shared from "../../vitest.shared.js" +import shared from "../../vitest.shared.ts" const config: ViteUserConfig = {} diff --git a/packages/platform-node/docgen.json b/packages/platform-node/docgen.json index f806321c24..9781bdfd42 100644 --- a/packages/platform-node/docgen.json +++ b/packages/platform-node/docgen.json @@ -10,6 +10,8 @@ "module": "ES2022", "target": "ES2022", "lib": ["ES2022", "DOM", "DOM.Iterable"], + "rewriteRelativeImportExtensions": true, + "allowImportingTsExtensions": true, "paths": { "effect": ["../../../effect/src/index.js"], "effect/*": ["../../../effect/src/*.js"], @@ -21,12 +23,8 @@ "@effect/platform/*": ["../../../platform/src/*.js"], "@effect/platform-node": ["../../../platform-node/src/index.js"], "@effect/platform-node/*": ["../../../platform-node/src/*.js"], - "@effect/platform-node-shared": [ - "../../../platform-node-shared/src/index.js" - ], - "@effect/platform-node-shared/*": [ - "../../../platform-node-shared/src/*.js" - ], + "@effect/platform-node-shared": ["../../../platform-node-shared/src/index.js"], + "@effect/platform-node-shared/*": ["../../../platform-node-shared/src/*.js"], "@effect/rpc": ["../../../rpc/src/index.js"], "@effect/rpc/*": ["../../../rpc/src/*.js"], "@effect/sql": ["../../../sql/src/index.js"], diff --git a/packages/platform-node/src/NodeHttpClient.ts b/packages/platform-node/src/NodeHttpClient.ts index 7302831318..3c2406c64f 100644 --- a/packages/platform-node/src/NodeHttpClient.ts +++ b/packages/platform-node/src/NodeHttpClient.ts @@ -22,10 +22,10 @@ import * as Http from "node:http" import * as Https from "node:https" import { Readable } from "node:stream" import { pipeline } from "node:stream/promises" -import { NodeHttpIncomingMessage } from "./NodeHttpIncomingMessage.js" -import * as NodeSink from "./NodeSink.js" -import * as NodeStream from "./NodeStream.js" -import * as Undici from "./Undici.js" +import { NodeHttpIncomingMessage } from "./NodeHttpIncomingMessage.ts" +import * as NodeSink from "./NodeSink.ts" +import * as NodeStream from "./NodeStream.ts" +import * as Undici from "./Undici.ts" // ----------------------------------------------------------------------------- // Fetch diff --git a/packages/platform-node/src/NodeHttpIncomingMessage.ts b/packages/platform-node/src/NodeHttpIncomingMessage.ts index b7106cb4a1..74945c0604 100644 --- a/packages/platform-node/src/NodeHttpIncomingMessage.ts +++ b/packages/platform-node/src/NodeHttpIncomingMessage.ts @@ -9,7 +9,7 @@ import * as Headers from "effect/unstable/http/Headers" import * as IncomingMessage from "effect/unstable/http/HttpIncomingMessage" import * as UrlParams from "effect/unstable/http/UrlParams" import type * as Http from "node:http" -import * as NodeStream from "./NodeStream.js" +import * as NodeStream from "./NodeStream.ts" /** * @since 1.0.0 diff --git a/packages/platform-node/src/NodeHttpPlatform.ts b/packages/platform-node/src/NodeHttpPlatform.ts index e161f162b6..110969bb49 100644 --- a/packages/platform-node/src/NodeHttpPlatform.ts +++ b/packages/platform-node/src/NodeHttpPlatform.ts @@ -9,8 +9,8 @@ import * as Platform from "effect/unstable/http/HttpPlatform" import * as ServerResponse from "effect/unstable/http/HttpServerResponse" import * as Fs from "node:fs" import { Readable } from "node:stream" -import Mime from "./Mime.js" -import * as NodeFileSystem from "./NodeFileSystem.js" +import Mime from "./Mime.ts" +import * as NodeFileSystem from "./NodeFileSystem.ts" /** * @since 1.0.0 diff --git a/packages/platform-node/src/NodeHttpServer.ts b/packages/platform-node/src/NodeHttpServer.ts index 068a8c6938..408a607f43 100644 --- a/packages/platform-node/src/NodeHttpServer.ts +++ b/packages/platform-node/src/NodeHttpServer.ts @@ -43,11 +43,11 @@ import type * as Net from "node:net" import type { Duplex } from "node:stream" import { Readable } from "node:stream" import { pipeline } from "node:stream/promises" -import { NodeHttpIncomingMessage } from "./NodeHttpIncomingMessage.js" -import * as NodeHttpPlatform from "./NodeHttpPlatform.js" -import * as NodeMultipart from "./NodeMultipart.js" -import * as NodeServices from "./NodeServices.js" -import { NodeWS } from "./NodeSocket.js" +import { NodeHttpIncomingMessage } from "./NodeHttpIncomingMessage.ts" +import * as NodeHttpPlatform from "./NodeHttpPlatform.ts" +import * as NodeMultipart from "./NodeMultipart.ts" +import * as NodeServices from "./NodeServices.ts" +import { NodeWS } from "./NodeSocket.ts" /** * @since 1.0.0 diff --git a/packages/platform-node/src/NodeMultipart.ts b/packages/platform-node/src/NodeMultipart.ts index ca8ebc7cb4..76cc24727c 100644 --- a/packages/platform-node/src/NodeMultipart.ts +++ b/packages/platform-node/src/NodeMultipart.ts @@ -13,7 +13,7 @@ import * as NFS from "node:fs" import type { IncomingHttpHeaders } from "node:http" import type { Readable } from "node:stream" import * as NodeStreamP from "node:stream/promises" -import * as NodeStream from "./NodeStream.js" +import * as NodeStream from "./NodeStream.ts" /** * @since 1.0.0 diff --git a/packages/platform-node/src/NodeServices.ts b/packages/platform-node/src/NodeServices.ts index 761d3850cb..3e2bb4d4a5 100644 --- a/packages/platform-node/src/NodeServices.ts +++ b/packages/platform-node/src/NodeServices.ts @@ -4,8 +4,8 @@ import * as Layer from "effect/Layer" import type { FileSystem } from "effect/platform/FileSystem" import type { Path } from "effect/platform/Path" -import * as NodeFileSystem from "./NodeFileSystem.js" -import * as NodePath from "./NodePath.js" +import * as NodeFileSystem from "./NodeFileSystem.ts" +import * as NodePath from "./NodePath.ts" /** * @since 1.0.0 diff --git a/packages/platform-node/src/index.ts b/packages/platform-node/src/index.ts index de1bfbae9d..8fb1a0b869 100644 --- a/packages/platform-node/src/index.ts +++ b/packages/platform-node/src/index.ts @@ -5,79 +5,79 @@ /** * @since 1.0.0 */ -export * as Mime from "./Mime.js" +export * as Mime from "./Mime.ts" /** * @since 1.0.0 */ -export * as NodeFileSystem from "./NodeFileSystem.js" +export * as NodeFileSystem from "./NodeFileSystem.ts" /** * @since 1.0.0 */ -export * as NodeHttpClient from "./NodeHttpClient.js" +export * as NodeHttpClient from "./NodeHttpClient.ts" /** * @since 1.0.0 */ -export * as NodeHttpIncomingMessage from "./NodeHttpIncomingMessage.js" +export * as NodeHttpIncomingMessage from "./NodeHttpIncomingMessage.ts" /** * @since 1.0.0 */ -export * as NodeHttpPlatform from "./NodeHttpPlatform.js" +export * as NodeHttpPlatform from "./NodeHttpPlatform.ts" /** * @since 1.0.0 */ -export * as NodeHttpServer from "./NodeHttpServer.js" +export * as NodeHttpServer from "./NodeHttpServer.ts" /** * @since 1.0.0 */ -export * as NodeHttpServerRequest from "./NodeHttpServerRequest.js" +export * as NodeHttpServerRequest from "./NodeHttpServerRequest.ts" /** * @since 1.0.0 */ -export * as NodeMultipart from "./NodeMultipart.js" +export * as NodeMultipart from "./NodeMultipart.ts" /** * @since 1.0.0 */ -export * as NodePath from "./NodePath.js" +export * as NodePath from "./NodePath.ts" /** * @since 1.0.0 */ -export * as NodeRuntime from "./NodeRuntime.js" +export * as NodeRuntime from "./NodeRuntime.ts" /** * @since 1.0.0 */ -export * as NodeServices from "./NodeServices.js" +export * as NodeServices from "./NodeServices.ts" /** * @since 1.0.0 */ -export * as NodeSink from "./NodeSink.js" +export * as NodeSink from "./NodeSink.ts" /** * @since 1.0.0 */ -export * as NodeSocket from "./NodeSocket.js" +export * as NodeSocket from "./NodeSocket.ts" /** * @since 1.0.0 */ -export * as NodeSocketServer from "./NodeSocketServer.js" +export * as NodeSocketServer from "./NodeSocketServer.ts" /** * @since 1.0.0 */ -export * as NodeStream from "./NodeStream.js" +export * as NodeStream from "./NodeStream.ts" /** * @since 1.0.0 */ -export * as Undici from "./Undici.js" +export * as Undici from "./Undici.ts" diff --git a/packages/platform-node/src/.index.ts b/packages/platform-node/src/index.ts.tpl similarity index 100% rename from packages/platform-node/src/.index.ts rename to packages/platform-node/src/index.ts.tpl diff --git a/packages/platform-node/vitest.config.ts b/packages/platform-node/vitest.config.ts index 578d066724..fb966ae875 100644 --- a/packages/platform-node/vitest.config.ts +++ b/packages/platform-node/vitest.config.ts @@ -1,5 +1,5 @@ import { mergeConfig, type ViteUserConfig } from "vitest/config" -import shared from "../../vitest.shared.js" +import shared from "../../vitest.shared.ts" const config: ViteUserConfig = {} diff --git a/packages/vitest/docgen.json b/packages/vitest/docgen.json index 71c20b0552..5b3c5dc63e 100644 --- a/packages/vitest/docgen.json +++ b/packages/vitest/docgen.json @@ -1,9 +1,7 @@ { "$schema": "../../node_modules/@effect/docgen/schema.json", "srcLink": "https://github.com/Effect-TS/effect/tree/main/packages/vitest/src/", - "exclude": [ - "src/internal/**/*.ts" - ], + "exclude": ["src/internal/**/*.ts"], "examplesCompilerOptions": { "noEmit": true, "strict": true, @@ -11,17 +9,12 @@ "moduleResolution": "Bundler", "module": "ES2022", "target": "ES2022", - "lib": [ - "ES2022", - "DOM" - ], + "lib": ["ES2022", "DOM"], + "rewriteRelativeImportExtensions": true, + "allowImportingTsExtensions": true, "paths": { - "effect": [ - "../../../effect/src/index.js" - ], - "effect/*": [ - "../../../effect/src/*.js" - ] + "effect": ["../../../effect/src/index.js"], + "effect/*": ["../../../effect/src/*.js"] } } } diff --git a/packages/vitest/src/index.ts b/packages/vitest/src/index.ts index 8357fb0376..5262dfa5cb 100644 --- a/packages/vitest/src/index.ts +++ b/packages/vitest/src/index.ts @@ -8,7 +8,7 @@ import type * as Layer from "effect/Layer" import type * as Schema from "effect/schema/Schema" import type * as Scope from "effect/Scope" import * as V from "vitest" -import * as internal from "./internal/internal.js" +import * as internal from "./internal/internal.ts" /** * @since 1.0.0 diff --git a/packages/vitest/src/internal/internal.ts b/packages/vitest/src/internal/internal.ts index 23a4245ec4..38b82b3f47 100644 --- a/packages/vitest/src/internal/internal.ts +++ b/packages/vitest/src/internal/internal.ts @@ -17,7 +17,7 @@ import * as Scope from "effect/Scope" import * as TestClock from "effect/TestClock" import * as TestConsole from "effect/TestConsole" import * as V from "vitest" -import type * as Vitest from "../index.js" +import type * as Vitest from "../index.ts" const runPromise = (ctx?: Vitest.TestContext) => Effect.fnUntraced(function*(effect: Effect.Effect) { diff --git a/packages/vitest/vitest.config.ts b/packages/vitest/vitest.config.ts index 578d066724..fb966ae875 100644 --- a/packages/vitest/vitest.config.ts +++ b/packages/vitest/vitest.config.ts @@ -1,5 +1,5 @@ import { mergeConfig, type ViteUserConfig } from "vitest/config" -import shared from "../../vitest.shared.js" +import shared from "../../vitest.shared.ts" const config: ViteUserConfig = {} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5e2fe2a144..37a89ea763 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,8 +50,8 @@ importers: specifier: ^5.0.0 version: 5.0.0 '@effect/build-utils': - specifier: ^0.8.8 - version: 0.8.8 + specifier: ^0.8.9 + version: 0.8.9 '@effect/docgen': specifier: https://pkg.pr.new/Effect-TS/docgen/@effect/docgen@49e99a2 version: https://pkg.pr.new/Effect-TS/docgen/@effect/docgen@49e99a2(tsx@4.20.3)(typescript@5.8.3) @@ -640,8 +640,8 @@ packages: resolution: {integrity: sha512-NKBGBSIKUG584qrS1tyxVpX/AKJKQw5HgjYEnPLC0QsTw79JrGn+qUr8CXFb955Iy7GUdiiUv1rJ6JBGvaKb6w==} engines: {node: '>=18'} - '@effect/build-utils@0.8.8': - resolution: {integrity: sha512-OWyGEMsInZaA1seUIqa16qJX9zgo0f85Vll304hnxo4KhjWZTByzUartJ/GG7BZJ+m8eRj0xOkr9Kv9PBnV+ng==} + '@effect/build-utils@0.8.9': + resolution: {integrity: sha512-wzunjr8pyNjghLueo5ePQD7vaM3qeO2H/jF57hNYbQM/rxfipBWYKukoqWyp04qGZ+V86FyOHb8zD5+PMZvH2A==} engines: {node: '>=16.17.1'} hasBin: true @@ -4630,7 +4630,7 @@ snapshots: dependencies: '@edge-runtime/primitives': 6.0.0 - '@effect/build-utils@0.8.8': + '@effect/build-utils@0.8.9': dependencies: micromatch: 4.0.8 pkg-entry-points: 1.1.1 diff --git a/tsconfig.base.json b/tsconfig.base.json index 8c8b114fb1..98442b3381 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -12,7 +12,8 @@ "skipLibCheck": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "moduleResolution": "NodeNext", + "rewriteRelativeImportExtensions": true, + "allowImportingTsExtensions": true, "lib": ["ES2022", "DOM", "DOM.Iterable"], "types": [], "isolatedModules": true, @@ -36,10 +37,6 @@ "module": "NodeNext", "incremental": true, "removeComments": false, - "plugins": [ - { - "name": "@effect/language-service" - } - ] + "plugins": [{ "name": "@effect/language-service" }] } } diff --git a/tstyche.config.json b/tstyche.config.json index 20f64b478e..90f931fa1a 100644 --- a/tstyche.config.json +++ b/tstyche.config.json @@ -1,7 +1,5 @@ { "$schema": "https://tstyche.org/schemas/config.json", "checkSuppressedErrors": true, - "testFileMatch": [ - "packages/*/dtslint/**/*.tst.*" - ] + "testFileMatch": ["packages/*/dtslint/**/*.tst.*"] }