diff --git a/.changeset/selfish-rabbits-heal.md b/.changeset/selfish-rabbits-heal.md
new file mode 100644
index 00000000..e61ea880
--- /dev/null
+++ b/.changeset/selfish-rabbits-heal.md
@@ -0,0 +1,8 @@
+---
+"@effect/platform-browser": minor
+"@effect/platform-node": minor
+"@effect/platform-bun": minor
+"@effect/platform": minor
+---
+
+update to effect package
diff --git a/docs/platform-browser/KeyValueStore.ts.md b/docs/platform-browser/KeyValueStore.ts.md
index b154873a..d30d72f9 100644
--- a/docs/platform-browser/KeyValueStore.ts.md
+++ b/docs/platform-browser/KeyValueStore.ts.md
@@ -1,6 +1,6 @@
---
title: KeyValueStore.ts
-nav_order: 5
+nav_order: 6
parent: "@effect/platform-browser"
---
diff --git a/docs/platform-browser/Path.ts.md b/docs/platform-browser/Path.ts.md
index 933c1479..e3bbab91 100644
--- a/docs/platform-browser/Path.ts.md
+++ b/docs/platform-browser/Path.ts.md
@@ -1,6 +1,6 @@
---
title: Path.ts
-nav_order: 6
+nav_order: 7
parent: "@effect/platform-browser"
---
diff --git a/docs/platform-browser/Runtime.ts.md b/docs/platform-browser/Runtime.ts.md
index 9a073a32..b77d29d4 100644
--- a/docs/platform-browser/Runtime.ts.md
+++ b/docs/platform-browser/Runtime.ts.md
@@ -1,6 +1,6 @@
---
title: Runtime.ts
-nav_order: 7
+nav_order: 8
parent: "@effect/platform-browser"
---
diff --git a/docs/platform-browser/index.ts.md b/docs/platform-browser/index.ts.md
new file mode 100644
index 00000000..95b3a199
--- /dev/null
+++ b/docs/platform-browser/index.ts.md
@@ -0,0 +1,114 @@
+---
+title: index.ts
+nav_order: 5
+parent: "@effect/platform-browser"
+---
+
+## index overview
+
+Added in v1.0.0
+
+---
+
+
Table of contents
+
+- [exports](#exports)
+ - [From "@effect/platform-browser/Clipboard"](#from-effectplatform-browserclipboard)
+ - [From "@effect/platform-browser/Effectify"](#from-effectplatform-browsereffectify)
+ - [From "@effect/platform-browser/Error"](#from-effectplatform-browsererror)
+ - [From "@effect/platform-browser/HttpClient"](#from-effectplatform-browserhttpclient)
+ - [From "@effect/platform-browser/KeyValueStore"](#from-effectplatform-browserkeyvaluestore)
+ - [From "@effect/platform-browser/Path"](#from-effectplatform-browserpath)
+ - [From "@effect/platform-browser/Runtime"](#from-effectplatform-browserruntime)
+
+---
+
+# exports
+
+## From "@effect/platform-browser/Clipboard"
+
+Re-exports all named exports from the "@effect/platform-browser/Clipboard" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-browser/Clipboard'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-browser/Effectify"
+
+Re-exports all named exports from the "@effect/platform-browser/Effectify" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-browser/Effectify'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-browser/Error"
+
+Re-exports all named exports from the "@effect/platform-browser/Error" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-browser/Error'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-browser/HttpClient"
+
+Re-exports all named exports from the "@effect/platform-browser/HttpClient" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-browser/HttpClient'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-browser/KeyValueStore"
+
+Re-exports all named exports from the "@effect/platform-browser/KeyValueStore" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-browser/KeyValueStore'
+```
+
+Added in v1.0.0
+
+Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
+
+## From "@effect/platform-browser/Path"
+
+Re-exports all named exports from the "@effect/platform-browser/Path" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-browser/Path'
+```
+
+Added in v1.0.0
+
+Also includes exports from [`@effect/platform/Path`](https://effect-ts.github.io/platform/platform/Path.ts.html).
+
+## From "@effect/platform-browser/Runtime"
+
+Re-exports all named exports from the "@effect/platform-browser/Runtime" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-browser/Runtime'
+```
+
+Added in v1.0.0
diff --git a/docs/platform-bun/KeyValueStore.ts.md b/docs/platform-bun/KeyValueStore.ts.md
index 7a06289d..7a16327f 100644
--- a/docs/platform-bun/KeyValueStore.ts.md
+++ b/docs/platform-bun/KeyValueStore.ts.md
@@ -1,6 +1,6 @@
---
title: KeyValueStore.ts
-nav_order: 11
+nav_order: 12
parent: "@effect/platform-bun"
---
diff --git a/docs/platform-bun/Path.ts.md b/docs/platform-bun/Path.ts.md
index 4fee2f84..e147fca3 100644
--- a/docs/platform-bun/Path.ts.md
+++ b/docs/platform-bun/Path.ts.md
@@ -1,6 +1,6 @@
---
title: Path.ts
-nav_order: 12
+nav_order: 13
parent: "@effect/platform-bun"
---
diff --git a/docs/platform-bun/Runtime.ts.md b/docs/platform-bun/Runtime.ts.md
index 9ba4373f..9c1c3ebb 100644
--- a/docs/platform-bun/Runtime.ts.md
+++ b/docs/platform-bun/Runtime.ts.md
@@ -1,6 +1,6 @@
---
title: Runtime.ts
-nav_order: 13
+nav_order: 14
parent: "@effect/platform-bun"
---
diff --git a/docs/platform-bun/Sink.ts.md b/docs/platform-bun/Sink.ts.md
index 380eacbe..a25790c3 100644
--- a/docs/platform-bun/Sink.ts.md
+++ b/docs/platform-bun/Sink.ts.md
@@ -1,6 +1,6 @@
---
title: Sink.ts
-nav_order: 14
+nav_order: 15
parent: "@effect/platform-bun"
---
diff --git a/docs/platform-bun/Stream.ts.md b/docs/platform-bun/Stream.ts.md
index 5ed754e9..506e2fd9 100644
--- a/docs/platform-bun/Stream.ts.md
+++ b/docs/platform-bun/Stream.ts.md
@@ -1,6 +1,6 @@
---
title: Stream.ts
-nav_order: 15
+nav_order: 16
parent: "@effect/platform-bun"
---
diff --git a/docs/platform-bun/index.ts.md b/docs/platform-bun/index.ts.md
new file mode 100644
index 00000000..a327258f
--- /dev/null
+++ b/docs/platform-bun/index.ts.md
@@ -0,0 +1,190 @@
+---
+title: index.ts
+nav_order: 11
+parent: "@effect/platform-bun"
+---
+
+## index overview
+
+Added in v1.0.0
+
+---
+
+Table of contents
+
+- [exports](#exports)
+ - [From "@effect/platform-bun/BunContext"](#from-effectplatform-bunbuncontext)
+ - [From "@effect/platform-bun/Command"](#from-effectplatform-buncommand)
+ - [From "@effect/platform-bun/CommandExecutor"](#from-effectplatform-buncommandexecutor)
+ - [From "@effect/platform-bun/Effectify"](#from-effectplatform-buneffectify)
+ - [From "@effect/platform-bun/Error"](#from-effectplatform-bunerror)
+ - [From "@effect/platform-bun/FileSystem"](#from-effectplatform-bunfilesystem)
+ - [From "@effect/platform-bun/HttpClient"](#from-effectplatform-bunhttpclient)
+ - [From "@effect/platform-bun/HttpServer"](#from-effectplatform-bunhttpserver)
+ - [From "@effect/platform-bun/KeyValueStore"](#from-effectplatform-bunkeyvaluestore)
+ - [From "@effect/platform-bun/Path"](#from-effectplatform-bunpath)
+ - [From "@effect/platform-bun/Runtime"](#from-effectplatform-bunruntime)
+ - [From "@effect/platform-bun/Sink"](#from-effectplatform-bunsink)
+ - [From "@effect/platform-bun/Stream"](#from-effectplatform-bunstream)
+
+---
+
+# exports
+
+## From "@effect/platform-bun/BunContext"
+
+Re-exports all named exports from the "@effect/platform-bun/BunContext" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-bun/BunContext'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-bun/Command"
+
+Re-exports all named exports from the "@effect/platform-bun/Command" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-bun/Command'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-bun/CommandExecutor"
+
+Re-exports all named exports from the "@effect/platform-bun/CommandExecutor" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-bun/CommandExecutor'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-bun/Effectify"
+
+Re-exports all named exports from the "@effect/platform-bun/Effectify" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-bun/Effectify'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-bun/Error"
+
+Re-exports all named exports from the "@effect/platform-bun/Error" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-bun/Error'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-bun/FileSystem"
+
+Re-exports all named exports from the "@effect/platform-bun/FileSystem" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-bun/FileSystem'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-bun/HttpClient"
+
+Re-exports all named exports from the "@effect/platform-bun/HttpClient" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-bun/HttpClient'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-bun/HttpServer"
+
+Re-exports all named exports from the "@effect/platform-bun/HttpServer" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-bun/HttpServer'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-bun/KeyValueStore"
+
+Re-exports all named exports from the "@effect/platform-bun/KeyValueStore" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-bun/KeyValueStore'
+```
+
+Added in v1.0.0
+
+Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
+
+## From "@effect/platform-bun/Path"
+
+Re-exports all named exports from the "@effect/platform-bun/Path" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-bun/Path'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-bun/Runtime"
+
+Re-exports all named exports from the "@effect/platform-bun/Runtime" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-bun/Runtime'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-bun/Sink"
+
+Re-exports all named exports from the "@effect/platform-bun/Sink" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-bun/Sink'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-bun/Stream"
+
+Re-exports all named exports from the "@effect/platform-bun/Stream" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-bun/Stream'
+```
+
+Added in v1.0.0
diff --git a/docs/platform-node/KeyValueStore.ts.md b/docs/platform-node/KeyValueStore.ts.md
index 675a5aed..2fcd1302 100644
--- a/docs/platform-node/KeyValueStore.ts.md
+++ b/docs/platform-node/KeyValueStore.ts.md
@@ -1,6 +1,6 @@
---
title: KeyValueStore.ts
-nav_order: 13
+nav_order: 14
parent: "@effect/platform-node"
---
diff --git a/docs/platform-node/NodeContext.ts.md b/docs/platform-node/NodeContext.ts.md
index e5ddd524..dc5d681d 100644
--- a/docs/platform-node/NodeContext.ts.md
+++ b/docs/platform-node/NodeContext.ts.md
@@ -1,6 +1,6 @@
---
title: NodeContext.ts
-nav_order: 14
+nav_order: 15
parent: "@effect/platform-node"
---
diff --git a/docs/platform-node/Path.ts.md b/docs/platform-node/Path.ts.md
index 4351e607..91a94d76 100644
--- a/docs/platform-node/Path.ts.md
+++ b/docs/platform-node/Path.ts.md
@@ -1,6 +1,6 @@
---
title: Path.ts
-nav_order: 15
+nav_order: 16
parent: "@effect/platform-node"
---
diff --git a/docs/platform-node/Runtime.ts.md b/docs/platform-node/Runtime.ts.md
index e8a0236b..97f920cc 100644
--- a/docs/platform-node/Runtime.ts.md
+++ b/docs/platform-node/Runtime.ts.md
@@ -1,6 +1,6 @@
---
title: Runtime.ts
-nav_order: 16
+nav_order: 17
parent: "@effect/platform-node"
---
diff --git a/docs/platform-node/Sink.ts.md b/docs/platform-node/Sink.ts.md
index 52300d0f..6d302b4d 100644
--- a/docs/platform-node/Sink.ts.md
+++ b/docs/platform-node/Sink.ts.md
@@ -1,6 +1,6 @@
---
title: Sink.ts
-nav_order: 17
+nav_order: 18
parent: "@effect/platform-node"
---
diff --git a/docs/platform-node/Stream.ts.md b/docs/platform-node/Stream.ts.md
index 2fe4c8a4..46511ba8 100644
--- a/docs/platform-node/Stream.ts.md
+++ b/docs/platform-node/Stream.ts.md
@@ -1,6 +1,6 @@
---
title: Stream.ts
-nav_order: 18
+nav_order: 19
parent: "@effect/platform-node"
---
diff --git a/docs/platform-node/index.ts.md b/docs/platform-node/index.ts.md
new file mode 100644
index 00000000..4908bbcc
--- /dev/null
+++ b/docs/platform-node/index.ts.md
@@ -0,0 +1,190 @@
+---
+title: index.ts
+nav_order: 13
+parent: "@effect/platform-node"
+---
+
+## index overview
+
+Added in v1.0.0
+
+---
+
+Table of contents
+
+- [exports](#exports)
+ - [From "@effect/platform-node/Command"](#from-effectplatform-nodecommand)
+ - [From "@effect/platform-node/CommandExecutor"](#from-effectplatform-nodecommandexecutor)
+ - [From "@effect/platform-node/Effectify"](#from-effectplatform-nodeeffectify)
+ - [From "@effect/platform-node/Error"](#from-effectplatform-nodeerror)
+ - [From "@effect/platform-node/FileSystem"](#from-effectplatform-nodefilesystem)
+ - [From "@effect/platform-node/HttpClient"](#from-effectplatform-nodehttpclient)
+ - [From "@effect/platform-node/HttpServer"](#from-effectplatform-nodehttpserver)
+ - [From "@effect/platform-node/KeyValueStore"](#from-effectplatform-nodekeyvaluestore)
+ - [From "@effect/platform-node/NodeContext"](#from-effectplatform-nodenodecontext)
+ - [From "@effect/platform-node/Path"](#from-effectplatform-nodepath)
+ - [From "@effect/platform-node/Runtime"](#from-effectplatform-noderuntime)
+ - [From "@effect/platform-node/Sink"](#from-effectplatform-nodesink)
+ - [From "@effect/platform-node/Stream"](#from-effectplatform-nodestream)
+
+---
+
+# exports
+
+## From "@effect/platform-node/Command"
+
+Re-exports all named exports from the "@effect/platform-node/Command" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-node/Command'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-node/CommandExecutor"
+
+Re-exports all named exports from the "@effect/platform-node/CommandExecutor" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-node/CommandExecutor'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-node/Effectify"
+
+Re-exports all named exports from the "@effect/platform-node/Effectify" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-node/Effectify'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-node/Error"
+
+Re-exports all named exports from the "@effect/platform-node/Error" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-node/Error'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-node/FileSystem"
+
+Re-exports all named exports from the "@effect/platform-node/FileSystem" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-node/FileSystem'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-node/HttpClient"
+
+Re-exports all named exports from the "@effect/platform-node/HttpClient" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-node/HttpClient'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-node/HttpServer"
+
+Re-exports all named exports from the "@effect/platform-node/HttpServer" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-node/HttpServer'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-node/KeyValueStore"
+
+Re-exports all named exports from the "@effect/platform-node/KeyValueStore" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-node/KeyValueStore'
+```
+
+Added in v1.0.0
+
+Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
+
+## From "@effect/platform-node/NodeContext"
+
+Re-exports all named exports from the "@effect/platform-node/NodeContext" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-node/NodeContext'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-node/Path"
+
+Re-exports all named exports from the "@effect/platform-node/Path" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-node/Path'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-node/Runtime"
+
+Re-exports all named exports from the "@effect/platform-node/Runtime" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-node/Runtime'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-node/Sink"
+
+Re-exports all named exports from the "@effect/platform-node/Sink" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-node/Sink'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform-node/Stream"
+
+Re-exports all named exports from the "@effect/platform-node/Stream" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform-node/Stream'
+```
+
+Added in v1.0.0
diff --git a/docs/platform/KeyValueStore.ts.md b/docs/platform/KeyValueStore.ts.md
index b1a135b7..55358c4f 100644
--- a/docs/platform/KeyValueStore.ts.md
+++ b/docs/platform/KeyValueStore.ts.md
@@ -1,6 +1,6 @@
---
title: KeyValueStore.ts
-nav_order: 27
+nav_order: 28
parent: "@effect/platform"
---
diff --git a/docs/platform/Path.ts.md b/docs/platform/Path.ts.md
index d87f2ba7..628c94cf 100644
--- a/docs/platform/Path.ts.md
+++ b/docs/platform/Path.ts.md
@@ -1,6 +1,6 @@
---
title: Path.ts
-nav_order: 28
+nav_order: 29
parent: "@effect/platform"
---
diff --git a/docs/platform/Runtime.ts.md b/docs/platform/Runtime.ts.md
index a9b7b5de..b47be247 100644
--- a/docs/platform/Runtime.ts.md
+++ b/docs/platform/Runtime.ts.md
@@ -1,6 +1,6 @@
---
title: Runtime.ts
-nav_order: 29
+nav_order: 30
parent: "@effect/platform"
---
diff --git a/docs/platform/index.ts.md b/docs/platform/index.ts.md
new file mode 100644
index 00000000..2a29616a
--- /dev/null
+++ b/docs/platform/index.ts.md
@@ -0,0 +1,149 @@
+---
+title: index.ts
+nav_order: 27
+parent: "@effect/platform"
+---
+
+## index overview
+
+Added in v1.0.0
+
+---
+
+Table of contents
+
+- [exports](#exports)
+ - [From "@effect/platform/Command"](#from-effectplatformcommand)
+ - [From "@effect/platform/CommandExecutor"](#from-effectplatformcommandexecutor)
+ - [From "@effect/platform/Effectify"](#from-effectplatformeffectify)
+ - [From "@effect/platform/Error"](#from-effectplatformerror)
+ - [From "@effect/platform/FileSystem"](#from-effectplatformfilesystem)
+ - [From "@effect/platform/HttpClient"](#from-effectplatformhttpclient)
+ - [From "@effect/platform/HttpServer"](#from-effectplatformhttpserver)
+ - [From "@effect/platform/KeyValueStore"](#from-effectplatformkeyvaluestore)
+ - [From "@effect/platform/Path"](#from-effectplatformpath)
+ - [From "@effect/platform/Runtime"](#from-effectplatformruntime)
+
+---
+
+# exports
+
+## From "@effect/platform/Command"
+
+Re-exports all named exports from the "@effect/platform/Command" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform/Command'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform/CommandExecutor"
+
+Re-exports all named exports from the "@effect/platform/CommandExecutor" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform/CommandExecutor'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform/Effectify"
+
+Re-exports all named exports from the "@effect/platform/Effectify" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform/Effectify'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform/Error"
+
+Re-exports all named exports from the "@effect/platform/Error" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform/Error'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform/FileSystem"
+
+Re-exports all named exports from the "@effect/platform/FileSystem" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform/FileSystem'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform/HttpClient"
+
+Re-exports all named exports from the "@effect/platform/HttpClient" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform/HttpClient'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform/HttpServer"
+
+Re-exports all named exports from the "@effect/platform/HttpServer" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform/HttpServer'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform/KeyValueStore"
+
+Re-exports all named exports from the "@effect/platform/KeyValueStore" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform/KeyValueStore'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform/Path"
+
+Re-exports all named exports from the "@effect/platform/Path" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform/Path'
+```
+
+Added in v1.0.0
+
+## From "@effect/platform/Runtime"
+
+Re-exports all named exports from the "@effect/platform/Runtime" module.
+
+**Signature**
+
+```ts
+export * from '@effect/platform/Runtime'
+```
+
+Added in v1.0.0
diff --git a/package.json b/package.json
index 35a30214..975b0283 100644
--- a/package.json
+++ b/package.json
@@ -17,6 +17,7 @@
"build": "pnpm build-all && ultra -r -b build-pack",
"build-all": "tsc -b tsconfig.build.json",
"build-watch": "tsc -b tsconfig.build.json --watch",
+ "gen:index": "ultra -r gen:index",
"circular": "madge --ts-config ./tsconfig.madge.json --circular --no-color --no-spinner --warning packages/*/build/esm",
"test": "vitest",
"autofix": "ultra -r autofix",
@@ -35,11 +36,11 @@
"@changesets/cli": "^2.26.2",
"@effect/babel-plugin": "^0.2.0",
"@effect/build-utils": "^0.1.4",
- "@effect/docgen": "^0.1.7",
+ "@effect/docgen": "^0.1.8",
"@effect/eslint-plugin": "^0.1.2",
"@effect/language-service": "0.0.21",
"@types/chai": "^4.3.6",
- "@types/node": "^20.7.0",
+ "@types/node": "^20.7.1",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"@vitejs/plugin-react": "^4.1.0",
@@ -55,7 +56,7 @@
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-sort-destructure-keys": "^1.5.0",
"madge": "^6.1.0",
- "rimraf": "^5.0.4",
+ "rimraf": "^5.0.5",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"ultra-runner": "^3.10.5",
diff --git a/packages/platform-browser/examples/keyValueStore.ts b/packages/platform-browser/examples/keyValueStore.ts
index b70b7b47..7f17042f 100644
--- a/packages/platform-browser/examples/keyValueStore.ts
+++ b/packages/platform-browser/examples/keyValueStore.ts
@@ -1,5 +1,5 @@
-import * as Effect from "@effect/io/Effect"
import * as KeyValueStore from "@effect/platform-browser/KeyValueStore"
+import * as Effect from "effect/Effect"
const program = KeyValueStore.KeyValueStore.pipe(
Effect.flatMap((kv) => kv.set("foo", "bar")),
diff --git a/packages/platform-browser/package.json b/packages/platform-browser/package.json
index 1b1a2ff5..a803c5d9 100644
--- a/packages/platform-browser/package.json
+++ b/packages/platform-browser/package.json
@@ -12,6 +12,9 @@
},
"homepage": "https://github.com/effect-ts/platform",
"exports": {
+ ".": {
+ "require": "./build/cjs/index.js"
+ },
"./*": {
"require": "./build/cjs/*.js"
}
@@ -28,6 +31,7 @@
"build-pack": "concurrently \"pnpm build-cjs\" \"pnpm build-mjs\" && pnpm build-post",
"build-all": "tsc -b tsconfig.json",
"build-watch": "tsc -b tsconfig.json --watch",
+ "gen:index": "node scripts/gen-index.mjs > src/index.ts",
"circular": "madge --ts-config ./tsconfig.madge.json --circular --no-color --no-spinner --warning build/esm",
"docs": "docgen",
"lint": "eslint src/**/*.ts test/**/*.ts",
@@ -43,12 +47,10 @@
"@effect/platform": "workspace:^"
},
"devDependencies": {
- "@effect/data": "^0.18.6",
- "@effect/io": "^0.41.0",
+ "effect": "2.0.0-next.37",
"vitest-localstorage-mock": "^0.0.1"
},
"peerDependencies": {
- "@effect/data": "^0.18.6",
- "@effect/io": "^0.41.0"
+ "effect": "2.0.0-next.37"
}
}
diff --git a/packages/platform-browser/scripts/gen-index.mjs b/packages/platform-browser/scripts/gen-index.mjs
new file mode 100644
index 00000000..535b9aa1
--- /dev/null
+++ b/packages/platform-browser/scripts/gen-index.mjs
@@ -0,0 +1,16 @@
+import * as Fs from "node:fs";
+
+const modules = Fs.readdirSync("src")
+ .filter((_) => _ !== "index.ts" && _.endsWith(".ts"))
+ .map((_) => _.slice(0, -3));
+
+console.log(
+ modules
+ .map((module) => {
+ const content = Fs.readFileSync(`src/${module}.ts`, "utf8");
+ const topComment = content.match(/\/\*\*\n.+?\*\//s)?.[0] ?? "";
+ return `${topComment}
+export * as ${module} from "@effect/platform-browser/${module}"`;
+ })
+ .join("\n\n")
+);
diff --git a/packages/platform-browser/src/Clipboard.ts b/packages/platform-browser/src/Clipboard.ts
index 0aa6f09c..34b58fce 100644
--- a/packages/platform-browser/src/Clipboard.ts
+++ b/packages/platform-browser/src/Clipboard.ts
@@ -2,11 +2,11 @@
* @since 1.0.0
*/
-import type { Tag } from "@effect/data/Context"
-import type * as Effect from "@effect/io/Effect"
-import type * as Layer from "@effect/io/Layer"
import * as internal from "@effect/platform-browser/internal/clipboard"
import type { PlatformError } from "@effect/platform/Error"
+import type { Tag } from "effect/Context"
+import type * as Effect from "effect/Effect"
+import type * as Layer from "effect/Layer"
/**
* @since 1.0.0
diff --git a/packages/platform-browser/src/Runtime.ts b/packages/platform-browser/src/Runtime.ts
index 7ab58f0d..e0cd6021 100644
--- a/packages/platform-browser/src/Runtime.ts
+++ b/packages/platform-browser/src/Runtime.ts
@@ -1,8 +1,8 @@
/**
* @since 1.0.0
*/
-import type * as Effect from "@effect/io/Effect"
import * as internal from "@effect/platform-browser/internal/runtime"
+import type * as Effect from "effect/Effect"
/**
* @since 1.0.0
diff --git a/packages/platform-browser/src/index.ts b/packages/platform-browser/src/index.ts
new file mode 100644
index 00000000..14f39e45
--- /dev/null
+++ b/packages/platform-browser/src/index.ts
@@ -0,0 +1,38 @@
+/**
+ * @since 1.0.0
+ */
+export * as Clipboard from "@effect/platform-browser/Clipboard"
+
+/**
+ * @since 1.0.0
+ */
+export * as Effectify from "@effect/platform-browser/Effectify"
+
+/**
+ * @since 1.0.0
+ */
+export * as Error from "@effect/platform-browser/Error"
+
+/**
+ * @since 1.0.0
+ */
+export * as HttpClient from "@effect/platform-browser/HttpClient"
+
+/**
+ * @since 1.0.0
+ *
+ * Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
+ */
+export * as KeyValueStore from "@effect/platform-browser/KeyValueStore"
+
+/**
+ * @since 1.0.0
+ *
+ * Also includes exports from [`@effect/platform/Path`](https://effect-ts.github.io/platform/platform/Path.ts.html).
+ */
+export * as Path from "@effect/platform-browser/Path"
+
+/**
+ * @since 1.0.0
+ */
+export * as Runtime from "@effect/platform-browser/Runtime"
diff --git a/packages/platform-browser/src/internal/clipboard.ts b/packages/platform-browser/src/internal/clipboard.ts
index 1d9c9409..7f64d69d 100644
--- a/packages/platform-browser/src/internal/clipboard.ts
+++ b/packages/platform-browser/src/internal/clipboard.ts
@@ -1,8 +1,8 @@
-import { Tag } from "@effect/data/Context"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import type * as Clipboard from "@effect/platform-browser/Clipboard"
import * as PlatformError from "@effect/platform/Error"
+import { Tag } from "effect/Context"
+import * as Effect from "effect/Effect"
+import * as Layer from "effect/Layer"
/** @internal */
export const tag = Tag("@effect/platform-browser/Clipboard")
diff --git a/packages/platform-browser/src/internal/keyValueStore.ts b/packages/platform-browser/src/internal/keyValueStore.ts
index 0885f6dd..4019f412 100644
--- a/packages/platform-browser/src/internal/keyValueStore.ts
+++ b/packages/platform-browser/src/internal/keyValueStore.ts
@@ -1,8 +1,8 @@
-import * as Option from "@effect/data/Option"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import * as PlatformError from "@effect/platform/Error"
import * as KeyValueStore from "@effect/platform/KeyValueStore"
+import * as Effect from "effect/Effect"
+import * as Layer from "effect/Layer"
+import * as Option from "effect/Option"
const storageError = (props: Omit[0], "reason" | "module">) =>
PlatformError.SystemError({
diff --git a/packages/platform-browser/src/internal/runtime.ts b/packages/platform-browser/src/internal/runtime.ts
index a7f19c05..53f59f83 100644
--- a/packages/platform-browser/src/internal/runtime.ts
+++ b/packages/platform-browser/src/internal/runtime.ts
@@ -1,6 +1,6 @@
-import * as Effect from "@effect/io/Effect"
-import * as Fiber from "@effect/io/Fiber"
-import type * as FiberId from "@effect/io/FiberId"
+import * as Effect from "effect/Effect"
+import * as Fiber from "effect/Fiber"
+import type * as FiberId from "effect/FiberId"
/** @internal */
export const runMain = (
diff --git a/packages/platform-bun/examples/http-client.ts b/packages/platform-bun/examples/http-client.ts
index 60357672..6c87a5ad 100644
--- a/packages/platform-bun/examples/http-client.ts
+++ b/packages/platform-bun/examples/http-client.ts
@@ -1,10 +1,10 @@
-import * as Context from "@effect/data/Context"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import * as Http from "@effect/platform-bun/HttpClient"
import { runMain } from "@effect/platform-bun/Runtime"
import type * as ParseResult from "@effect/schema/ParseResult"
import * as Schema from "@effect/schema/Schema"
+import * as Context from "effect/Context"
+import * as Effect from "effect/Effect"
+import * as Layer from "effect/Layer"
class Todo extends Schema.Class()({
userId: Schema.number,
diff --git a/packages/platform-bun/examples/http-router.ts b/packages/platform-bun/examples/http-router.ts
index 3b5c5e40..254d0c60 100644
--- a/packages/platform-bun/examples/http-router.ts
+++ b/packages/platform-bun/examples/http-router.ts
@@ -1,9 +1,9 @@
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import * as NodeContext from "@effect/platform-bun/BunContext"
import * as Http from "@effect/platform-bun/HttpServer"
import { runMain } from "@effect/platform-bun/Runtime"
import * as Schema from "@effect/schema/Schema"
+import * as Effect from "effect/Effect"
+import * as Layer from "effect/Layer"
const ServerLive = Http.server.layer({ port: 3000 })
diff --git a/packages/platform-bun/examples/http-server.ts b/packages/platform-bun/examples/http-server.ts
index 87c8fb13..a96fe525 100644
--- a/packages/platform-bun/examples/http-server.ts
+++ b/packages/platform-bun/examples/http-server.ts
@@ -1,6 +1,6 @@
-import * as Effect from "@effect/io/Effect"
import * as Http from "@effect/platform-bun/HttpServer"
import { runMain } from "@effect/platform-bun/Runtime"
+import * as Effect from "effect/Effect"
const ServerLive = Http.server.layer({ port: 3000 })
diff --git a/packages/platform-bun/package.json b/packages/platform-bun/package.json
index d8f19f0b..3a096de6 100644
--- a/packages/platform-bun/package.json
+++ b/packages/platform-bun/package.json
@@ -12,6 +12,9 @@
},
"homepage": "https://github.com/effect-ts/platform",
"exports": {
+ ".": {
+ "require": "./build/cjs/index.js"
+ },
"./*": {
"require": "./build/cjs/*.js"
}
@@ -28,6 +31,7 @@
"build-pack": "concurrently \"pnpm build-cjs\" \"pnpm build-mjs\" && pnpm build-post",
"build-all": "tsc -b tsconfig.json",
"build-watch": "tsc -b tsconfig.json --watch",
+ "gen:index": "node scripts/gen-index.mjs > src/index.ts",
"circular": "madge --ts-config ./tsconfig.madge.json --circular --no-color --no-spinner --warning build/esm",
"docs": "docgen",
"lint": "eslint src/**/*.ts test/**/*.ts",
@@ -44,15 +48,11 @@
"@effect/platform-node": "workspace:^"
},
"devDependencies": {
- "@effect/data": "^0.18.6",
- "@effect/io": "^0.41.0",
- "@effect/schema": "^0.37.0",
- "@effect/stream": "^0.37.0",
- "bun-types": "^1.0.3"
+ "@effect/schema": "^0.39.0",
+ "bun-types": "^1.0.3",
+ "effect": "2.0.0-next.37"
},
"peerDependencies": {
- "@effect/data": "^0.18.6",
- "@effect/io": "^0.41.0",
- "@effect/stream": "^0.37.0"
+ "effect": "2.0.0-next.37"
}
}
diff --git a/packages/platform-bun/scripts/gen-index.mjs b/packages/platform-bun/scripts/gen-index.mjs
new file mode 100644
index 00000000..a79577c6
--- /dev/null
+++ b/packages/platform-bun/scripts/gen-index.mjs
@@ -0,0 +1,16 @@
+import * as Fs from "node:fs";
+
+const modules = Fs.readdirSync("src")
+ .filter((_) => _ !== "index.ts" && _.endsWith(".ts"))
+ .map((_) => _.slice(0, -3));
+
+console.log(
+ modules
+ .map((module) => {
+ const content = Fs.readFileSync(`src/${module}.ts`, "utf8");
+ const topComment = content.match(/\/\*\*\n.+?\*\//s)?.[0] ?? "";
+ return `${topComment}
+export * as ${module} from "@effect/platform-bun/${module}"`;
+ })
+ .join("\n\n")
+);
diff --git a/packages/platform-bun/src/BunContext.ts b/packages/platform-bun/src/BunContext.ts
index 4d6f7dc9..8c7f1c65 100644
--- a/packages/platform-bun/src/BunContext.ts
+++ b/packages/platform-bun/src/BunContext.ts
@@ -1,11 +1,11 @@
/**
* @since 1.0.0
*/
-import { pipe } from "@effect/data/Function"
-import * as Layer from "@effect/io/Layer"
import * as CommandExecutor from "@effect/platform-bun/CommandExecutor"
import * as FileSystem from "@effect/platform-bun/FileSystem"
import * as Path from "@effect/platform-bun/Path"
+import { pipe } from "effect/Function"
+import * as Layer from "effect/Layer"
/**
* @since 1.0.0
diff --git a/packages/platform-bun/src/Http/Platform.ts b/packages/platform-bun/src/Http/Platform.ts
index b9e4357b..3160cb90 100644
--- a/packages/platform-bun/src/Http/Platform.ts
+++ b/packages/platform-bun/src/Http/Platform.ts
@@ -3,12 +3,12 @@
*
* Also includes exports from [`@effect/platform/Http/Platform`](https://effect-ts.github.io/platform/platform/Http/Platform.ts.html).
*/
-import type * as Effect from "@effect/io/Effect"
-import type * as Layer from "@effect/io/Layer"
import type * as FileSystem from "@effect/platform-bun/FileSystem"
import * as internal from "@effect/platform-bun/internal/http/platform"
import type * as Etag from "@effect/platform/Http/Etag"
import type * as Platform from "@effect/platform/Http/Platform"
+import type * as Effect from "effect/Effect"
+import type * as Layer from "effect/Layer"
/**
* @since 1.0.0
diff --git a/packages/platform-bun/src/Http/Server.ts b/packages/platform-bun/src/Http/Server.ts
index a0ffa46b..f73d6de1 100644
--- a/packages/platform-bun/src/Http/Server.ts
+++ b/packages/platform-bun/src/Http/Server.ts
@@ -3,15 +3,15 @@
*
* Also includes exports from [`@effect/platform/Http/Server`](https://effect-ts.github.io/platform/platform/Http/Server.ts.html).
*/
-import type * as Config from "@effect/io/Config"
-import type * as ConfigError from "@effect/io/ConfigError"
-import type * as Effect from "@effect/io/Effect"
-import type * as Layer from "@effect/io/Layer"
-import type * as Scope from "@effect/io/Scope"
import type * as Platform from "@effect/platform-bun/Http/Platform"
import * as internal from "@effect/platform-bun/internal/http/server"
import type * as Server from "@effect/platform/Http/Server"
import type { ServeOptions } from "bun"
+import type * as Config from "effect/Config"
+import type * as ConfigError from "effect/ConfigError"
+import type * as Effect from "effect/Effect"
+import type * as Layer from "effect/Layer"
+import type * as Scope from "effect/Scope"
/**
* @since 1.0.0
diff --git a/packages/platform-bun/src/index.ts b/packages/platform-bun/src/index.ts
new file mode 100644
index 00000000..5a8394f0
--- /dev/null
+++ b/packages/platform-bun/src/index.ts
@@ -0,0 +1,66 @@
+/**
+ * @since 1.0.0
+ */
+export * as BunContext from "@effect/platform-bun/BunContext"
+
+/**
+ * @since 1.0.0
+ */
+export * as Command from "@effect/platform-bun/Command"
+
+/**
+ * @since 1.0.0
+ */
+export * as CommandExecutor from "@effect/platform-bun/CommandExecutor"
+
+/**
+ * @since 1.0.0
+ */
+export * as Effectify from "@effect/platform-bun/Effectify"
+
+/**
+ * @since 1.0.0
+ */
+export * as Error from "@effect/platform-bun/Error"
+
+/**
+ * @since 1.0.0
+ */
+export * as FileSystem from "@effect/platform-bun/FileSystem"
+
+/**
+ * @since 1.0.0
+ */
+export * as HttpClient from "@effect/platform-bun/HttpClient"
+
+/**
+ * @since 1.0.0
+ */
+export * as HttpServer from "@effect/platform-bun/HttpServer"
+
+/**
+ * @since 1.0.0
+ *
+ * Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
+ */
+export * as KeyValueStore from "@effect/platform-bun/KeyValueStore"
+
+/**
+ * @since 1.0.0
+ */
+export * as Path from "@effect/platform-bun/Path"
+
+/**
+ * @since 1.0.0
+ */
+export * as Runtime from "@effect/platform-bun/Runtime"
+
+/**
+ * @since 1.0.0
+ */
+export * as Sink from "@effect/platform-bun/Sink"
+
+/**
+ * @since 1.0.0
+ */
+export * as Stream from "@effect/platform-bun/Stream"
diff --git a/packages/platform-bun/src/internal/http/platform.ts b/packages/platform-bun/src/internal/http/platform.ts
index 8b517f41..75cfaa5e 100644
--- a/packages/platform-bun/src/internal/http/platform.ts
+++ b/packages/platform-bun/src/internal/http/platform.ts
@@ -1,9 +1,9 @@
-import { pipe } from "@effect/data/Function"
-import * as Layer from "@effect/io/Layer"
import * as FileSystem from "@effect/platform-bun/FileSystem"
import * as Etag from "@effect/platform-node/Http/Etag"
import * as Platform from "@effect/platform/Http/Platform"
import * as ServerResponse from "@effect/platform/Http/ServerResponse"
+import { pipe } from "effect/Function"
+import * as Layer from "effect/Layer"
/** @internal */
export const make = Platform.make({
diff --git a/packages/platform-bun/src/internal/http/server.ts b/packages/platform-bun/src/internal/http/server.ts
index da81a005..602c6db1 100644
--- a/packages/platform-bun/src/internal/http/server.ts
+++ b/packages/platform-bun/src/internal/http/server.ts
@@ -1,11 +1,3 @@
-import { pipe } from "@effect/data/Function"
-import * as Option from "@effect/data/Option"
-import * as Cause from "@effect/io/Cause"
-import * as Config from "@effect/io/Config"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
-import * as Runtime from "@effect/io/Runtime"
-import type * as Scope from "@effect/io/Scope"
import * as Platform from "@effect/platform-bun/Http/Platform"
import * as FormData from "@effect/platform-node/Http/FormData"
import type * as FileSystem from "@effect/platform/FileSystem"
@@ -20,8 +12,16 @@ import * as ServerRequest from "@effect/platform/Http/ServerRequest"
import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
import * as UrlParams from "@effect/platform/Http/UrlParams"
import type * as Path from "@effect/platform/Path"
-import * as Stream from "@effect/stream/Stream"
import type { ServeOptions, Server as BunServer } from "bun"
+import * as Cause from "effect/Cause"
+import * as Config from "effect/Config"
+import * as Effect from "effect/Effect"
+import { pipe } from "effect/Function"
+import * as Layer from "effect/Layer"
+import * as Option from "effect/Option"
+import * as Runtime from "effect/Runtime"
+import type * as Scope from "effect/Scope"
+import * as Stream from "effect/Stream"
import { Readable } from "node:stream"
/** @internal */
diff --git a/packages/platform-node/examples/http-client.ts b/packages/platform-node/examples/http-client.ts
index a1a8653d..9d1ef645 100644
--- a/packages/platform-node/examples/http-client.ts
+++ b/packages/platform-node/examples/http-client.ts
@@ -1,6 +1,6 @@
-import * as Context from "@effect/data/Context"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
+import * as Context from "effect/Context"
+import * as Effect from "effect/Effect"
+import * as Layer from "effect/Layer"
import * as Http from "@effect/platform-node/HttpClient"
import { runMain } from "@effect/platform-node/Runtime"
import type * as ParseResult from "@effect/schema/ParseResult"
diff --git a/packages/platform-node/examples/http-router.ts b/packages/platform-node/examples/http-router.ts
index a20f4dca..4750f87c 100644
--- a/packages/platform-node/examples/http-router.ts
+++ b/packages/platform-node/examples/http-router.ts
@@ -1,5 +1,5 @@
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
+import * as Effect from "effect/Effect"
+import * as Layer from "effect/Layer"
import * as Http from "@effect/platform-node/HttpServer"
import * as NodeContext from "@effect/platform-node/NodeContext"
import { runMain } from "@effect/platform-node/Runtime"
diff --git a/packages/platform-node/examples/http-server.ts b/packages/platform-node/examples/http-server.ts
index 4559ba31..58182c28 100644
--- a/packages/platform-node/examples/http-server.ts
+++ b/packages/platform-node/examples/http-server.ts
@@ -1,4 +1,4 @@
-import * as Effect from "@effect/io/Effect"
+import * as Effect from "effect/Effect"
import * as Http from "@effect/platform-node/HttpServer"
import { runMain } from "@effect/platform-node/Runtime"
import { createServer } from "node:http"
diff --git a/packages/platform-node/package.json b/packages/platform-node/package.json
index 04582bb9..fc9dfb29 100644
--- a/packages/platform-node/package.json
+++ b/packages/platform-node/package.json
@@ -15,6 +15,9 @@
},
"homepage": "https://github.com/effect-ts/platform",
"exports": {
+ ".": {
+ "require": "./build/cjs/index.js"
+ },
"./*": {
"require": "./build/cjs/*.js"
}
@@ -31,6 +34,7 @@
"build-pack": "concurrently \"pnpm build-cjs\" \"pnpm build-mjs\" && pnpm build-post",
"build-all": "tsc -b tsconfig.json",
"build-watch": "tsc -b tsconfig.json --watch",
+ "gen:index": "node scripts/gen-index.mjs > src/index.ts",
"circular": "madge --ts-config ./tsconfig.madge.json --circular --no-color --no-spinner --warning build/esm",
"docs": "docgen",
"lint": "eslint src/**/*.ts test/**/*.ts",
@@ -43,17 +47,13 @@
"license": "MIT",
"sideEffects": [],
"devDependencies": {
- "@effect/data": "^0.18.6",
- "@effect/io": "^0.41.0",
- "@effect/schema": "^0.37.0",
- "@effect/stream": "^0.37.0",
+ "@effect/schema": "^0.39.0",
"@types/busboy": "^1.5.1",
- "@types/mime": "^3.0.1"
+ "@types/mime": "^3.0.2",
+ "effect": "2.0.0-next.37"
},
"peerDependencies": {
- "@effect/data": "^0.18.6",
- "@effect/io": "^0.41.0",
- "@effect/stream": "^0.37.0"
+ "effect": "2.0.0-next.37"
},
"dependencies": {
"@effect/platform": "workspace:^",
diff --git a/packages/platform-node/scripts/gen-index.mjs b/packages/platform-node/scripts/gen-index.mjs
new file mode 100644
index 00000000..e7635e9f
--- /dev/null
+++ b/packages/platform-node/scripts/gen-index.mjs
@@ -0,0 +1,16 @@
+import * as Fs from "node:fs";
+
+const modules = Fs.readdirSync("src")
+ .filter((_) => _ !== "index.ts" && _.endsWith(".ts"))
+ .map((_) => _.slice(0, -3));
+
+console.log(
+ modules
+ .map((module) => {
+ const content = Fs.readFileSync(`src/${module}.ts`, "utf8");
+ const topComment = content.match(/\/\*\*\n.+?\*\//s)?.[0] ?? "";
+ return `${topComment}
+export * as ${module} from "@effect/platform-node/${module}"`;
+ })
+ .join("\n\n")
+);
diff --git a/packages/platform-node/src/CommandExecutor.ts b/packages/platform-node/src/CommandExecutor.ts
index c86c1349..a8d890b9 100644
--- a/packages/platform-node/src/CommandExecutor.ts
+++ b/packages/platform-node/src/CommandExecutor.ts
@@ -1,10 +1,10 @@
/**
* @since 1.0.0
*/
-import type { Layer } from "@effect/io/Layer"
import * as internal from "@effect/platform-node/internal/commandExecutor"
import type { CommandExecutor } from "@effect/platform/CommandExecutor"
import type { FileSystem } from "@effect/platform/FileSystem"
+import type { Layer } from "effect/Layer"
export type {
/**
diff --git a/packages/platform-node/src/FileSystem.ts b/packages/platform-node/src/FileSystem.ts
index 848f9fa7..34320d14 100644
--- a/packages/platform-node/src/FileSystem.ts
+++ b/packages/platform-node/src/FileSystem.ts
@@ -2,9 +2,9 @@
* @since 1.0.0
*/
-import type { Layer } from "@effect/io/Layer"
import * as internal from "@effect/platform-node/internal/fileSystem"
import type { FileSystem } from "@effect/platform/FileSystem"
+import type { Layer } from "effect/Layer"
export type {
/**
diff --git a/packages/platform-node/src/Http/Etag.ts b/packages/platform-node/src/Http/Etag.ts
index 00d15ba2..64919a02 100644
--- a/packages/platform-node/src/Http/Etag.ts
+++ b/packages/platform-node/src/Http/Etag.ts
@@ -3,9 +3,9 @@
*
* Also includes exports from [`@effect/platform/Http/Etag`](https://effect-ts.github.io/platform/platform/Http/Etag.ts.html).
*/
-import type * as Layer from "@effect/io/Layer"
import * as internal from "@effect/platform-node/internal/http/etag"
import type * as Etag from "@effect/platform/Http/Etag"
+import type * as Layer from "effect/Layer"
/**
* @since 1.0.0
diff --git a/packages/platform-node/src/Http/FormData.ts b/packages/platform-node/src/Http/FormData.ts
index 7f944490..2b90caac 100644
--- a/packages/platform-node/src/Http/FormData.ts
+++ b/packages/platform-node/src/Http/FormData.ts
@@ -3,13 +3,13 @@
*
* Also includes exports from [`@effect/platform/Http/FormData`](https://effect-ts.github.io/platform/platform/Http/FormData.ts.html).
*/
-import type * as Effect from "@effect/io/Effect"
-import type * as Scope from "@effect/io/Scope"
import * as internal from "@effect/platform-node/internal/http/formData"
import type * as FileSystem from "@effect/platform/FileSystem"
import type * as FormData from "@effect/platform/Http/FormData"
import type * as Path from "@effect/platform/Path"
-import type * as Stream from "@effect/stream/Stream"
+import type * as Effect from "effect/Effect"
+import type * as Scope from "effect/Scope"
+import type * as Stream from "effect/Stream"
import type { IncomingHttpHeaders } from "node:http"
import type { Readable } from "node:stream"
diff --git a/packages/platform-node/src/Http/NodeClient.ts b/packages/platform-node/src/Http/NodeClient.ts
index 2bfebb4b..05dc45c0 100644
--- a/packages/platform-node/src/Http/NodeClient.ts
+++ b/packages/platform-node/src/Http/NodeClient.ts
@@ -1,12 +1,12 @@
/**
* @since 1.0.0
*/
-import type * as Context from "@effect/data/Context"
-import type * as Effect from "@effect/io/Effect"
-import type * as Layer from "@effect/io/Layer"
-import type * as Scope from "@effect/io/Scope"
import * as internal from "@effect/platform-node/internal/http/nodeClient"
import type * as Client from "@effect/platform/Http/Client"
+import type * as Context from "effect/Context"
+import type * as Effect from "effect/Effect"
+import type * as Layer from "effect/Layer"
+import type * as Scope from "effect/Scope"
import type * as Http from "node:http"
import type * as Https from "node:https"
diff --git a/packages/platform-node/src/Http/Platform.ts b/packages/platform-node/src/Http/Platform.ts
index 2358150d..ae0d6ad6 100644
--- a/packages/platform-node/src/Http/Platform.ts
+++ b/packages/platform-node/src/Http/Platform.ts
@@ -3,12 +3,12 @@
*
* Also includes exports from [`@effect/platform/Http/Platform`](https://effect-ts.github.io/platform/platform/Http/Platform.ts.html).
*/
-import type * as Effect from "@effect/io/Effect"
-import type * as Layer from "@effect/io/Layer"
import * as internal from "@effect/platform-node/internal/http/platform"
import type * as FileSystem from "@effect/platform/FileSystem"
import type * as Etag from "@effect/platform/Http/Etag"
import type * as Platform from "@effect/platform/Http/Platform"
+import type * as Effect from "effect/Effect"
+import type * as Layer from "effect/Layer"
/**
* @since 1.0.0
diff --git a/packages/platform-node/src/Http/Server.ts b/packages/platform-node/src/Http/Server.ts
index b9f6025a..60123637 100644
--- a/packages/platform-node/src/Http/Server.ts
+++ b/packages/platform-node/src/Http/Server.ts
@@ -3,15 +3,15 @@
*
* Also includes exports from [`@effect/platform/Http/Server`](https://effect-ts.github.io/platform/platform/Http/Server.ts.html).
*/
-import type { LazyArg } from "@effect/data/Function"
-import type * as Config from "@effect/io/Config"
-import type * as ConfigError from "@effect/io/ConfigError"
-import type * as Effect from "@effect/io/Effect"
-import type * as Layer from "@effect/io/Layer"
-import type * as Scope from "@effect/io/Scope"
import * as internal from "@effect/platform-node/internal/http/server"
import type * as Platform from "@effect/platform/Http/Platform"
import type * as Server from "@effect/platform/Http/Server"
+import type * as Config from "effect/Config"
+import type * as ConfigError from "effect/ConfigError"
+import type * as Effect from "effect/Effect"
+import type { LazyArg } from "effect/Function"
+import type * as Layer from "effect/Layer"
+import type * as Scope from "effect/Scope"
import type * as Http from "node:http"
import type * as Net from "node:net"
diff --git a/packages/platform-node/src/KeyValueStore.ts b/packages/platform-node/src/KeyValueStore.ts
index 3dfdddab..fa0528a6 100644
--- a/packages/platform-node/src/KeyValueStore.ts
+++ b/packages/platform-node/src/KeyValueStore.ts
@@ -3,11 +3,11 @@
*
* Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
*/
-import * as Layer from "@effect/io/Layer"
import * as FileSystem from "@effect/platform-node/FileSystem"
import * as Path from "@effect/platform-node/Path"
import type * as PlatformError from "@effect/platform/Error"
import * as KeyValueStore from "@effect/platform/KeyValueStore"
+import * as Layer from "effect/Layer"
/**
* @since 1.0.0
diff --git a/packages/platform-node/src/NodeContext.ts b/packages/platform-node/src/NodeContext.ts
index b56e25b0..4db3c494 100644
--- a/packages/platform-node/src/NodeContext.ts
+++ b/packages/platform-node/src/NodeContext.ts
@@ -1,11 +1,11 @@
/**
* @since 1.0.0
*/
-import { pipe } from "@effect/data/Function"
-import * as Layer from "@effect/io/Layer"
import * as CommandExecutor from "@effect/platform-node/CommandExecutor"
import * as FileSystem from "@effect/platform-node/FileSystem"
import * as Path from "@effect/platform-node/Path"
+import { pipe } from "effect/Function"
+import * as Layer from "effect/Layer"
/**
* @since 1.0.0
diff --git a/packages/platform-node/src/Path.ts b/packages/platform-node/src/Path.ts
index 076bd858..dc61d2c6 100644
--- a/packages/platform-node/src/Path.ts
+++ b/packages/platform-node/src/Path.ts
@@ -2,9 +2,9 @@
* @since 1.0.0
*/
-import type { Layer } from "@effect/io/Layer"
import * as internal from "@effect/platform-node/internal/path"
import type { Path } from "@effect/platform/Path"
+import type { Layer } from "effect/Layer"
export {
/**
diff --git a/packages/platform-node/src/Sink.ts b/packages/platform-node/src/Sink.ts
index bc1f5a4c..0bb1501b 100644
--- a/packages/platform-node/src/Sink.ts
+++ b/packages/platform-node/src/Sink.ts
@@ -2,9 +2,9 @@
* @since 1.0.0
*/
-import type { LazyArg } from "@effect/data/Function"
import * as internal from "@effect/platform-node/internal/sink"
-import type { Sink } from "@effect/stream/Sink"
+import type { LazyArg } from "effect/Function"
+import type { Sink } from "effect/Sink"
import type { Writable } from "stream"
/**
diff --git a/packages/platform-node/src/Stream.ts b/packages/platform-node/src/Stream.ts
index c99fa78c..76592f8b 100644
--- a/packages/platform-node/src/Stream.ts
+++ b/packages/platform-node/src/Stream.ts
@@ -1,11 +1,11 @@
/**
* @since 1.0.0
*/
-import type { LazyArg } from "@effect/data/Function"
-import type { Effect } from "@effect/io/Effect"
import * as internal from "@effect/platform-node/internal/stream"
import type { SizeInput } from "@effect/platform/FileSystem"
-import type { Stream } from "@effect/stream/Stream"
+import type { Effect } from "effect/Effect"
+import type { LazyArg } from "effect/Function"
+import type { Stream } from "effect/Stream"
import type { Readable } from "stream"
/**
diff --git a/packages/platform-node/src/index.ts b/packages/platform-node/src/index.ts
new file mode 100644
index 00000000..709e296b
--- /dev/null
+++ b/packages/platform-node/src/index.ts
@@ -0,0 +1,66 @@
+/**
+ * @since 1.0.0
+ */
+export * as Command from "@effect/platform-node/Command"
+
+/**
+ * @since 1.0.0
+ */
+export * as CommandExecutor from "@effect/platform-node/CommandExecutor"
+
+/**
+ * @since 1.0.0
+ */
+export * as Effectify from "@effect/platform-node/Effectify"
+
+/**
+ * @since 1.0.0
+ */
+export * as Error from "@effect/platform-node/Error"
+
+/**
+ * @since 1.0.0
+ */
+export * as FileSystem from "@effect/platform-node/FileSystem"
+
+/**
+ * @since 1.0.0
+ */
+export * as HttpClient from "@effect/platform-node/HttpClient"
+
+/**
+ * @since 1.0.0
+ */
+export * as HttpServer from "@effect/platform-node/HttpServer"
+
+/**
+ * @since 1.0.0
+ *
+ * Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
+ */
+export * as KeyValueStore from "@effect/platform-node/KeyValueStore"
+
+/**
+ * @since 1.0.0
+ */
+export * as NodeContext from "@effect/platform-node/NodeContext"
+
+/**
+ * @since 1.0.0
+ */
+export * as Path from "@effect/platform-node/Path"
+
+/**
+ * @since 1.0.0
+ */
+export * as Runtime from "@effect/platform-node/Runtime"
+
+/**
+ * @since 1.0.0
+ */
+export * as Sink from "@effect/platform-node/Sink"
+
+/**
+ * @since 1.0.0
+ */
+export * as Stream from "@effect/platform-node/Stream"
diff --git a/packages/platform-node/src/internal/commandExecutor.ts b/packages/platform-node/src/internal/commandExecutor.ts
index 6a00b064..8fd41978 100644
--- a/packages/platform-node/src/internal/commandExecutor.ts
+++ b/packages/platform-node/src/internal/commandExecutor.ts
@@ -1,7 +1,3 @@
-import { constUndefined, pipe } from "@effect/data/Function"
-import * as Option from "@effect/data/Option"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import { handleErrnoException } from "@effect/platform-node/internal/error"
import { fromWritable } from "@effect/platform-node/internal/sink"
import { fromReadable } from "@effect/platform-node/internal/stream"
@@ -9,8 +5,12 @@ import * as Command from "@effect/platform/Command"
import * as CommandExecutor from "@effect/platform/CommandExecutor"
import type * as Error from "@effect/platform/Error"
import * as FileSystem from "@effect/platform/FileSystem"
-import * as Sink from "@effect/stream/Sink"
-import * as Stream from "@effect/stream/Stream"
+import * as Effect from "effect/Effect"
+import { constUndefined, pipe } from "effect/Function"
+import * as Layer from "effect/Layer"
+import * as Option from "effect/Option"
+import * as Sink from "effect/Sink"
+import * as Stream from "effect/Stream"
import * as ChildProcess from "node:child_process"
const inputToStdioOption = (stdin: Option.Option): "pipe" | "inherit" =>
diff --git a/packages/platform-node/src/internal/fileSystem.ts b/packages/platform-node/src/internal/fileSystem.ts
index 4a1f1364..5f8f08ad 100644
--- a/packages/platform-node/src/internal/fileSystem.ts
+++ b/packages/platform-node/src/internal/fileSystem.ts
@@ -1,11 +1,11 @@
-import { pipe } from "@effect/data/Function"
-import * as Option from "@effect/data/Option"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import { handleErrnoException } from "@effect/platform-node/internal/error"
import { effectify } from "@effect/platform/Effectify"
import * as Error from "@effect/platform/Error"
import * as FileSystem from "@effect/platform/FileSystem"
+import * as Effect from "effect/Effect"
+import { pipe } from "effect/Function"
+import * as Layer from "effect/Layer"
+import * as Option from "effect/Option"
import * as Crypto from "node:crypto"
import * as NFS from "node:fs"
import * as OS from "node:os"
diff --git a/packages/platform-node/src/internal/http/etag.ts b/packages/platform-node/src/internal/http/etag.ts
index 3902080e..7e440299 100644
--- a/packages/platform-node/src/internal/http/etag.ts
+++ b/packages/platform-node/src/internal/http/etag.ts
@@ -1,8 +1,8 @@
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import type * as FileSystem from "@effect/platform/FileSystem"
import type * as Body from "@effect/platform/Http/Body"
import * as Etag from "@effect/platform/Http/Etag"
+import * as Effect from "effect/Effect"
+import * as Layer from "effect/Layer"
const fromFileInfo = (info: FileSystem.File.Info) => {
const mtime = info.mtime._tag === "Some"
diff --git a/packages/platform-node/src/internal/http/formData.ts b/packages/platform-node/src/internal/http/formData.ts
index 2a9d9eb0..39d55cd5 100644
--- a/packages/platform-node/src/internal/http/formData.ts
+++ b/packages/platform-node/src/internal/http/formData.ts
@@ -1,14 +1,14 @@
-import * as Chunk from "@effect/data/Chunk"
-import { pipe } from "@effect/data/Function"
-import * as Option from "@effect/data/Option"
-import * as Effect from "@effect/io/Effect"
-import * as FiberRef from "@effect/io/FiberRef"
import * as NodeStream from "@effect/platform-node/Stream"
import * as FileSystem from "@effect/platform/FileSystem"
import * as FormData from "@effect/platform/Http/FormData"
import * as Path from "@effect/platform/Path"
-import * as Stream from "@effect/stream/Stream"
import Busboy from "busboy"
+import * as Chunk from "effect/Chunk"
+import * as Effect from "effect/Effect"
+import * as FiberRef from "effect/FiberRef"
+import { pipe } from "effect/Function"
+import * as Option from "effect/Option"
+import * as Stream from "effect/Stream"
import * as NodeFs from "node:fs"
import type { IncomingHttpHeaders } from "node:http"
import type { Readable } from "node:stream"
diff --git a/packages/platform-node/src/internal/http/incomingMessage.ts b/packages/platform-node/src/internal/http/incomingMessage.ts
index a77e4d8c..25f4d520 100644
--- a/packages/platform-node/src/internal/http/incomingMessage.ts
+++ b/packages/platform-node/src/internal/http/incomingMessage.ts
@@ -1,11 +1,11 @@
-import * as Option from "@effect/data/Option"
-import * as Effect from "@effect/io/Effect"
-import * as FiberRef from "@effect/io/FiberRef"
import * as NodeStream from "@effect/platform-node/Stream"
import * as Headers from "@effect/platform/Http/Headers"
import * as IncomingMessage from "@effect/platform/Http/IncomingMessage"
import * as UrlParams from "@effect/platform/Http/UrlParams"
-import type * as Stream from "@effect/stream/Stream"
+import * as Effect from "effect/Effect"
+import * as FiberRef from "effect/FiberRef"
+import * as Option from "effect/Option"
+import type * as Stream from "effect/Stream"
import type * as Http from "node:http"
/** @internal */
diff --git a/packages/platform-node/src/internal/http/nodeClient.ts b/packages/platform-node/src/internal/http/nodeClient.ts
index e7680551..2368630d 100644
--- a/packages/platform-node/src/internal/http/nodeClient.ts
+++ b/packages/platform-node/src/internal/http/nodeClient.ts
@@ -1,8 +1,3 @@
-import * as Context from "@effect/data/Context"
-import { pipe } from "@effect/data/Function"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
-import type * as Scope from "@effect/io/Scope"
import type * as NodeClient from "@effect/platform-node/Http/NodeClient"
import { IncomingMessageImpl } from "@effect/platform-node/internal/http/incomingMessage"
import * as NodeSink from "@effect/platform-node/Sink"
@@ -12,7 +7,12 @@ import * as Error from "@effect/platform/Http/ClientError"
import type * as ClientRequest from "@effect/platform/Http/ClientRequest"
import * as ClientResponse from "@effect/platform/Http/ClientResponse"
import * as UrlParams from "@effect/platform/Http/UrlParams"
-import * as Stream from "@effect/stream/Stream"
+import * as Context from "effect/Context"
+import * as Effect from "effect/Effect"
+import { pipe } from "effect/Function"
+import * as Layer from "effect/Layer"
+import type * as Scope from "effect/Scope"
+import * as Stream from "effect/Stream"
import * as Http from "node:http"
import * as Https from "node:https"
import { Readable } from "node:stream"
diff --git a/packages/platform-node/src/internal/http/platform.ts b/packages/platform-node/src/internal/http/platform.ts
index 6d17f70c..0be0068e 100644
--- a/packages/platform-node/src/internal/http/platform.ts
+++ b/packages/platform-node/src/internal/http/platform.ts
@@ -1,9 +1,9 @@
-import { pipe } from "@effect/data/Function"
-import * as Layer from "@effect/io/Layer"
import * as FileSystem from "@effect/platform-node/FileSystem"
import * as Etag from "@effect/platform-node/Http/Etag"
import * as Platform from "@effect/platform/Http/Platform"
import * as ServerResponse from "@effect/platform/Http/ServerResponse"
+import { pipe } from "effect/Function"
+import * as Layer from "effect/Layer"
import Mime from "mime"
import * as Fs from "node:fs"
import { Readable } from "node:stream"
diff --git a/packages/platform-node/src/internal/http/server.ts b/packages/platform-node/src/internal/http/server.ts
index ade3d8de..b8b9be98 100644
--- a/packages/platform-node/src/internal/http/server.ts
+++ b/packages/platform-node/src/internal/http/server.ts
@@ -1,11 +1,3 @@
-import type { LazyArg } from "@effect/data/Function"
-import * as Option from "@effect/data/Option"
-import * as Config from "@effect/io/Config"
-import * as Effect from "@effect/io/Effect"
-import * as Fiber from "@effect/io/Fiber"
-import * as Layer from "@effect/io/Layer"
-import * as Runtime from "@effect/io/Runtime"
-import type * as Scope from "@effect/io/Scope"
import * as internalFormData from "@effect/platform-node/internal/http/formData"
import { IncomingMessageImpl } from "@effect/platform-node/internal/http/incomingMessage"
import * as internalPlatform from "@effect/platform-node/internal/http/platform"
@@ -21,7 +13,15 @@ import * as Error from "@effect/platform/Http/ServerError"
import * as ServerRequest from "@effect/platform/Http/ServerRequest"
import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
import type * as Path from "@effect/platform/Path"
-import * as Stream from "@effect/stream/Stream"
+import * as Config from "effect/Config"
+import * as Effect from "effect/Effect"
+import * as Fiber from "effect/Fiber"
+import type { LazyArg } from "effect/Function"
+import * as Layer from "effect/Layer"
+import * as Option from "effect/Option"
+import * as Runtime from "effect/Runtime"
+import type * as Scope from "effect/Scope"
+import * as Stream from "effect/Stream"
import type * as Http from "node:http"
import type * as Net from "node:net"
import { Readable } from "node:stream"
diff --git a/packages/platform-node/src/internal/path.ts b/packages/platform-node/src/internal/path.ts
index 0e2e2094..ad9d3cc8 100644
--- a/packages/platform-node/src/internal/path.ts
+++ b/packages/platform-node/src/internal/path.ts
@@ -1,7 +1,7 @@
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import { BadArgument } from "@effect/platform/Error"
import { Path } from "@effect/platform/Path"
+import * as Effect from "effect/Effect"
+import * as Layer from "effect/Layer"
import * as NodePath from "node:path"
import * as NodeUrl from "node:url"
diff --git a/packages/platform-node/src/internal/runtime.ts b/packages/platform-node/src/internal/runtime.ts
index 83370fa9..9b06e199 100644
--- a/packages/platform-node/src/internal/runtime.ts
+++ b/packages/platform-node/src/internal/runtime.ts
@@ -1,7 +1,7 @@
-import * as Effect from "@effect/io/Effect"
-import * as Fiber from "@effect/io/Fiber"
-import type * as FiberId from "@effect/io/FiberId"
import { defaultTeardown, type RunMain } from "@effect/platform/Runtime"
+import * as Effect from "effect/Effect"
+import * as Fiber from "effect/Fiber"
+import type * as FiberId from "effect/FiberId"
/** @internal */
export const runMain: RunMain = (
diff --git a/packages/platform-node/src/internal/sink.ts b/packages/platform-node/src/internal/sink.ts
index 603b8fc6..f01567d6 100644
--- a/packages/platform-node/src/internal/sink.ts
+++ b/packages/platform-node/src/internal/sink.ts
@@ -1,8 +1,8 @@
-import type { LazyArg } from "@effect/data/Function"
-import { pipe } from "@effect/data/Function"
-import * as Effect from "@effect/io/Effect"
import type { FromWritableOptions } from "@effect/platform-node/Sink"
-import * as Sink from "@effect/stream/Sink"
+import * as Effect from "effect/Effect"
+import type { LazyArg } from "effect/Function"
+import { pipe } from "effect/Function"
+import * as Sink from "effect/Sink"
import type { Writable } from "node:stream"
/** @internal */
diff --git a/packages/platform-node/src/internal/stream.ts b/packages/platform-node/src/internal/stream.ts
index d23b0c1c..c8254ece 100644
--- a/packages/platform-node/src/internal/stream.ts
+++ b/packages/platform-node/src/internal/stream.ts
@@ -1,10 +1,10 @@
-import type { LazyArg } from "@effect/data/Function"
-import { pipe } from "@effect/data/Function"
-import * as Option from "@effect/data/Option"
-import * as Effect from "@effect/io/Effect"
import type { FromReadableOptions } from "@effect/platform-node/Stream"
import type { SizeInput } from "@effect/platform/FileSystem"
-import * as Stream from "@effect/stream/Stream"
+import * as Effect from "effect/Effect"
+import type { LazyArg } from "effect/Function"
+import { pipe } from "effect/Function"
+import * as Option from "effect/Option"
+import * as Stream from "effect/Stream"
import type { Readable } from "node:stream"
/** @internal */
diff --git a/packages/platform-node/test/Command.test.ts b/packages/platform-node/test/Command.test.ts
index 973dd709..d8e1c337 100644
--- a/packages/platform-node/test/Command.test.ts
+++ b/packages/platform-node/test/Command.test.ts
@@ -1,15 +1,15 @@
-import * as Chunk from "@effect/data/Chunk"
-import { pipe } from "@effect/data/Function"
-import * as Option from "@effect/data/Option"
-import * as Effect from "@effect/io/Effect"
-import * as Exit from "@effect/io/Exit"
-import * as Fiber from "@effect/io/Fiber"
-import * as Layer from "@effect/io/Layer"
import * as Command from "@effect/platform-node/Command"
import * as CommandExecutor from "@effect/platform-node/CommandExecutor"
import { SystemError } from "@effect/platform-node/Error"
import * as FileSystem from "@effect/platform-node/FileSystem"
-import * as Stream from "@effect/stream/Stream"
+import * as Chunk from "effect/Chunk"
+import * as Effect from "effect/Effect"
+import * as Exit from "effect/Exit"
+import * as Fiber from "effect/Fiber"
+import { pipe } from "effect/Function"
+import * as Layer from "effect/Layer"
+import * as Option from "effect/Option"
+import * as Stream from "effect/Stream"
import * as Path from "node:path"
import { describe, expect } from "vitest"
diff --git a/packages/platform-node/test/FileSystem.test.ts b/packages/platform-node/test/FileSystem.test.ts
index 97640f66..ae760ca3 100644
--- a/packages/platform-node/test/FileSystem.test.ts
+++ b/packages/platform-node/test/FileSystem.test.ts
@@ -1,7 +1,7 @@
-import * as Chunk from "@effect/data/Chunk"
-import * as Effect from "@effect/io/Effect"
import * as Fs from "@effect/platform-node/FileSystem"
-import * as Stream from "@effect/stream/Stream"
+import * as Chunk from "effect/Chunk"
+import * as Effect from "effect/Effect"
+import * as Stream from "effect/Stream"
const runPromise = (self: Effect.Effect) =>
Effect.runPromise(
diff --git a/packages/platform-node/test/Http/NodeClient.test.ts b/packages/platform-node/test/Http/NodeClient.test.ts
index 4e63da30..7912b6c2 100644
--- a/packages/platform-node/test/Http/NodeClient.test.ts
+++ b/packages/platform-node/test/Http/NodeClient.test.ts
@@ -1,10 +1,10 @@
-import * as Context from "@effect/data/Context"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import * as NodeClient from "@effect/platform-node/Http/NodeClient"
import * as Http from "@effect/platform/HttpClient"
import * as Schema from "@effect/schema/Schema"
-import * as Stream from "@effect/stream/Stream"
+import * as Context from "effect/Context"
+import * as Effect from "effect/Effect"
+import * as Layer from "effect/Layer"
+import * as Stream from "effect/Stream"
import { describe, it } from "vitest"
const Todo = Schema.struct({
diff --git a/packages/platform-node/test/HttpServer.test.ts b/packages/platform-node/test/HttpServer.test.ts
index c2d65484..ceb14a3f 100644
--- a/packages/platform-node/test/HttpServer.test.ts
+++ b/packages/platform-node/test/HttpServer.test.ts
@@ -1,12 +1,12 @@
-import * as Option from "@effect/data/Option"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import * as Etag from "@effect/platform-node/Http/Etag"
import * as Platform from "@effect/platform-node/Http/Platform"
import * as HttpC from "@effect/platform-node/HttpClient"
import * as Http from "@effect/platform-node/HttpServer"
import * as NodeContext from "@effect/platform-node/NodeContext"
import * as Schema from "@effect/schema/Schema"
+import * as Effect from "effect/Effect"
+import * as Layer from "effect/Layer"
+import * as Option from "effect/Option"
import { createServer } from "http"
import * as Buffer from "node:buffer"
import { describe, it } from "vitest"
diff --git a/packages/platform/package.json b/packages/platform/package.json
index 868a889a..5b181afc 100644
--- a/packages/platform/package.json
+++ b/packages/platform/package.json
@@ -12,6 +12,9 @@
},
"homepage": "https://github.com/effect-ts/platform",
"exports": {
+ ".": {
+ "require": "./build/cjs/index.js"
+ },
"./*": {
"require": "./build/cjs/*.js"
}
@@ -28,6 +31,7 @@
"build-pack": "concurrently \"pnpm build-cjs\" \"pnpm build-mjs\" && pnpm build-post",
"build-all": "tsc -b tsconfig.json",
"build-watch": "tsc -b tsconfig.json --watch",
+ "gen:index": "node scripts/gen-index.mjs > src/index.ts",
"circular": "madge --ts-config ./tsconfig.madge.json --circular --no-color --no-spinner --warning build/esm",
"docs": "docgen",
"lint": "eslint --ext .ts,.tsx src/**/* test/**/*",
@@ -44,16 +48,12 @@
"path-browserify": "^1.0.1"
},
"devDependencies": {
- "@effect/data": "^0.18.6",
- "@effect/io": "^0.41.0",
- "@effect/schema": "^0.37.0",
- "@effect/stream": "^0.37.0",
- "@types/path-browserify": "^1.0.0"
+ "@effect/schema": "^0.39.0",
+ "@types/path-browserify": "^1.0.0",
+ "effect": "2.0.0-next.37"
},
"peerDependencies": {
- "@effect/data": "^0.18.6",
- "@effect/io": "^0.41.0",
"@effect/schema": "^0.37.0",
- "@effect/stream": "^0.37.0"
+ "effect": "2.0.0-next.37"
}
}
diff --git a/packages/platform/scripts/gen-index.mjs b/packages/platform/scripts/gen-index.mjs
new file mode 100644
index 00000000..fb2c2b17
--- /dev/null
+++ b/packages/platform/scripts/gen-index.mjs
@@ -0,0 +1,16 @@
+import * as Fs from "node:fs";
+
+const modules = Fs.readdirSync("src")
+ .filter((_) => _ !== "index.ts" && _.endsWith(".ts"))
+ .map((_) => _.slice(0, -3));
+
+console.log(
+ modules
+ .map((module) => {
+ const content = Fs.readFileSync(`src/${module}.ts`, "utf8");
+ const topComment = content.match(/\/\*\*\n.+?\*\//s)?.[0] ?? "";
+ return `${topComment}
+export * as ${module} from "@effect/platform/${module}"`;
+ })
+ .join("\n\n")
+);
diff --git a/packages/platform/src/Command.ts b/packages/platform/src/Command.ts
index ca592ece..8022c52d 100644
--- a/packages/platform/src/Command.ts
+++ b/packages/platform/src/Command.ts
@@ -1,16 +1,16 @@
/**
* @since 1.0.0
*/
-import type { HashMap } from "@effect/data/HashMap"
-import type { Option } from "@effect/data/Option"
-import type { Pipeable } from "@effect/data/Pipeable"
-import type { NonEmptyReadonlyArray } from "@effect/data/ReadonlyArray"
-import type { Effect } from "@effect/io/Effect"
import type { CommandExecutor, ExitCode, Process } from "@effect/platform/CommandExecutor"
import type { PlatformError } from "@effect/platform/Error"
import * as internal from "@effect/platform/internal/command"
-import type { Sink } from "@effect/stream/Sink"
-import type { Stream } from "@effect/stream/Stream"
+import type { Effect } from "effect/Effect"
+import type { HashMap } from "effect/HashMap"
+import type { Option } from "effect/Option"
+import type { Pipeable } from "effect/Pipeable"
+import type { NonEmptyReadonlyArray } from "effect/ReadonlyArray"
+import type { Sink } from "effect/Sink"
+import type { Stream } from "effect/Stream"
/**
* @since 1.0.0
diff --git a/packages/platform/src/CommandExecutor.ts b/packages/platform/src/CommandExecutor.ts
index 77234b7d..9725ff8d 100644
--- a/packages/platform/src/CommandExecutor.ts
+++ b/packages/platform/src/CommandExecutor.ts
@@ -1,14 +1,14 @@
/**
* @since 1.0.0
*/
-import type * as Brand from "@effect/data/Brand"
-import type { Tag } from "@effect/data/Context"
-import type { Effect } from "@effect/io/Effect"
import type { Command } from "@effect/platform/Command"
import type { PlatformError } from "@effect/platform/Error"
import * as internal from "@effect/platform/internal/commandExecutor"
-import type { Sink } from "@effect/stream/Sink"
-import type { Stream } from "@effect/stream/Stream"
+import type * as Brand from "effect/Brand"
+import type { Tag } from "effect/Context"
+import type { Effect } from "effect/Effect"
+import type { Sink } from "effect/Sink"
+import type { Stream } from "effect/Stream"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Effectify.ts b/packages/platform/src/Effectify.ts
index f48d75f2..0b836efb 100644
--- a/packages/platform/src/Effectify.ts
+++ b/packages/platform/src/Effectify.ts
@@ -1,8 +1,8 @@
/**
* @since 1.0.0
*/
-import type * as Effect from "@effect/io/Effect"
import * as internal from "@effect/platform/internal/effectify"
+import type * as Effect from "effect/Effect"
interface Callback {
(err: E, a?: A): void
diff --git a/packages/platform/src/Error.ts b/packages/platform/src/Error.ts
index 39ad0e1a..a3ae605f 100644
--- a/packages/platform/src/Error.ts
+++ b/packages/platform/src/Error.ts
@@ -1,8 +1,8 @@
/**
* @since 1.0.0
*/
-import type * as Data from "@effect/data/Data"
import * as internal from "@effect/platform/internal/error"
+import type * as Data from "effect/Data"
/**
* @since 1.0.0
diff --git a/packages/platform/src/FileSystem.ts b/packages/platform/src/FileSystem.ts
index 9655807a..71b2acb2 100644
--- a/packages/platform/src/FileSystem.ts
+++ b/packages/platform/src/FileSystem.ts
@@ -1,15 +1,15 @@
/**
* @since 1.0.0
*/
-import * as Brand from "@effect/data/Brand"
-import type { Tag } from "@effect/data/Context"
-import type { Option } from "@effect/data/Option"
-import type * as Effect from "@effect/io/Effect"
-import type { Scope } from "@effect/io/Scope"
import type { PlatformError } from "@effect/platform/Error"
import * as internal from "@effect/platform/internal/fileSystem"
-import type { Sink } from "@effect/stream/Sink"
-import type { Stream } from "@effect/stream/Stream"
+import * as Brand from "effect/Brand"
+import type { Tag } from "effect/Context"
+import type * as Effect from "effect/Effect"
+import type { Option } from "effect/Option"
+import type { Scope } from "effect/Scope"
+import type { Sink } from "effect/Sink"
+import type { Stream } from "effect/Stream"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/App.ts b/packages/platform/src/Http/App.ts
index 1d3d0879..1d169067 100644
--- a/packages/platform/src/Http/App.ts
+++ b/packages/platform/src/Http/App.ts
@@ -1,9 +1,9 @@
/**
* @since 1.0.0
*/
-import type * as Effect from "@effect/io/Effect"
import type * as ServerRequest from "@effect/platform/Http/ServerRequest"
import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
+import type * as Effect from "effect/Effect"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/Body.ts b/packages/platform/src/Http/Body.ts
index f5bc8eff..30bc4406 100644
--- a/packages/platform/src/Http/Body.ts
+++ b/packages/platform/src/Http/Body.ts
@@ -1,14 +1,14 @@
/**
* @since 1.0.0
*/
-import type * as Data from "@effect/data/Data"
-import type * as Effect from "@effect/io/Effect"
import type * as PlatformError from "@effect/platform/Error"
import type * as FileSystem from "@effect/platform/FileSystem"
import * as internal from "@effect/platform/internal/http/body"
import type * as ParseResult from "@effect/schema/ParseResult"
import type * as Schema from "@effect/schema/Schema"
-import type * as Stream_ from "@effect/stream/Stream"
+import type * as Data from "effect/Data"
+import type * as Effect from "effect/Effect"
+import type * as Stream_ from "effect/Stream"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/Client.ts b/packages/platform/src/Http/Client.ts
index 5d8a0ddc..22ff7835 100644
--- a/packages/platform/src/Http/Client.ts
+++ b/packages/platform/src/Http/Client.ts
@@ -1,19 +1,19 @@
/**
* @since 1.0.0
*/
-import type * as Context from "@effect/data/Context"
-import type { Pipeable } from "@effect/data/Pipeable"
-import type * as Predicate from "@effect/data/Predicate"
-import type * as Effect from "@effect/io/Effect"
-import type * as Layer from "@effect/io/Layer"
-import type * as Schedule from "@effect/io/Schedule"
-import type * as Scope from "@effect/io/Scope"
import type * as Error from "@effect/platform/Http/ClientError"
import type * as ClientRequest from "@effect/platform/Http/ClientRequest"
import type * as ClientResponse from "@effect/platform/Http/ClientResponse"
import * as internal from "@effect/platform/internal/http/client"
import type * as ParseResult from "@effect/schema/ParseResult"
import type * as Schema from "@effect/schema/Schema"
+import type * as Context from "effect/Context"
+import type * as Effect from "effect/Effect"
+import type * as Layer from "effect/Layer"
+import type { Pipeable } from "effect/Pipeable"
+import type * as Predicate from "effect/Predicate"
+import type * as Schedule from "effect/Schedule"
+import type * as Scope from "effect/Scope"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/ClientError.ts b/packages/platform/src/Http/ClientError.ts
index c7305db0..dc03ed30 100644
--- a/packages/platform/src/Http/ClientError.ts
+++ b/packages/platform/src/Http/ClientError.ts
@@ -1,10 +1,10 @@
/**
* @since 1.0.0
*/
-import type * as Data from "@effect/data/Data"
import type * as ClientRequest from "@effect/platform/Http/ClientRequest"
import type * as ClientResponse from "@effect/platform/Http/ClientResponse"
import * as internal from "@effect/platform/internal/http/clientError"
+import type * as Data from "effect/Data"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/ClientRequest.ts b/packages/platform/src/Http/ClientRequest.ts
index 0eaadc5a..14447d26 100644
--- a/packages/platform/src/Http/ClientRequest.ts
+++ b/packages/platform/src/Http/ClientRequest.ts
@@ -1,8 +1,6 @@
/**
* @since 1.0.0
*/
-import type { Pipeable } from "@effect/data/Pipeable"
-import type * as Effect from "@effect/io/Effect"
import type * as PlatformError from "@effect/platform/Error"
import type * as FileSystem from "@effect/platform/FileSystem"
import type * as Body from "@effect/platform/Http/Body"
@@ -12,7 +10,9 @@ import type { Method } from "@effect/platform/Http/Method"
import type * as UrlParams from "@effect/platform/Http/UrlParams"
import * as internal from "@effect/platform/internal/http/clientRequest"
import type * as Schema from "@effect/schema/Schema"
-import type * as Stream from "@effect/stream/Stream"
+import type * as Effect from "effect/Effect"
+import type { Pipeable } from "effect/Pipeable"
+import type * as Stream from "effect/Stream"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/ClientResponse.ts b/packages/platform/src/Http/ClientResponse.ts
index 15d28823..05c61a40 100644
--- a/packages/platform/src/Http/ClientResponse.ts
+++ b/packages/platform/src/Http/ClientResponse.ts
@@ -1,7 +1,6 @@
/**
* @since 1.0.0
*/
-import type * as Effect from "@effect/io/Effect"
import type * as Error from "@effect/platform/Http/ClientError"
import type * as ClientRequest from "@effect/platform/Http/ClientRequest"
import type * as Headers from "@effect/platform/Http/Headers"
@@ -9,6 +8,7 @@ import type * as IncomingMessage from "@effect/platform/Http/IncomingMessage"
import * as internal from "@effect/platform/internal/http/clientResponse"
import type * as ParseResult from "@effect/schema/ParseResult"
import type * as Schema from "@effect/schema/Schema"
+import type * as Effect from "effect/Effect"
export {
/**
diff --git a/packages/platform/src/Http/Etag.ts b/packages/platform/src/Http/Etag.ts
index 8c03d1ba..76f069d2 100644
--- a/packages/platform/src/Http/Etag.ts
+++ b/packages/platform/src/Http/Etag.ts
@@ -1,11 +1,11 @@
/**
* @since 1.0.0
*/
-import type * as Context from "@effect/data/Context"
-import type * as Effect from "@effect/io/Effect"
import type * as FileSystem from "@effect/platform/FileSystem"
import type * as Body from "@effect/platform/Http/Body"
import * as internal from "@effect/platform/internal/http/etag"
+import type * as Context from "effect/Context"
+import type * as Effect from "effect/Effect"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/FormData.ts b/packages/platform/src/Http/FormData.ts
index 597893d8..f0acc2e9 100644
--- a/packages/platform/src/Http/FormData.ts
+++ b/packages/platform/src/Http/FormData.ts
@@ -1,16 +1,16 @@
/**
* @since 1.0.0
*/
-import type * as Chunk from "@effect/data/Chunk"
-import type * as Data from "@effect/data/Data"
-import type * as Option from "@effect/data/Option"
-import type * as Effect from "@effect/io/Effect"
-import type * as FiberRef from "@effect/io/FiberRef"
import type * as FileSystem from "@effect/platform/FileSystem"
import * as internal from "@effect/platform/internal/http/formData"
import type * as ParseResult from "@effect/schema/ParseResult"
import type * as Schema from "@effect/schema/Schema"
-import type * as Stream from "@effect/stream/Stream"
+import type * as Chunk from "effect/Chunk"
+import type * as Data from "effect/Data"
+import type * as Effect from "effect/Effect"
+import type * as FiberRef from "effect/FiberRef"
+import type * as Option from "effect/Option"
+import type * as Stream from "effect/Stream"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/Headers.ts b/packages/platform/src/Http/Headers.ts
index 224f3a2c..f350a8fa 100644
--- a/packages/platform/src/Http/Headers.ts
+++ b/packages/platform/src/Http/Headers.ts
@@ -1,10 +1,10 @@
/**
* @since 1.0.0
*/
-import { dual } from "@effect/data/Function"
-import type * as Option from "@effect/data/Option"
-import * as ReadonlyArray from "@effect/data/ReadonlyArray"
-import * as ReadonlyRecord from "@effect/data/ReadonlyRecord"
+import { dual } from "effect/Function"
+import type * as Option from "effect/Option"
+import * as ReadonlyArray from "effect/ReadonlyArray"
+import * as ReadonlyRecord from "effect/ReadonlyRecord"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/IncomingMessage.ts b/packages/platform/src/Http/IncomingMessage.ts
index 9cf77c9d..c386cf1e 100644
--- a/packages/platform/src/Http/IncomingMessage.ts
+++ b/packages/platform/src/Http/IncomingMessage.ts
@@ -1,19 +1,19 @@
/**
* @since 1.0.0
*/
-import * as Context from "@effect/data/Context"
-import { dual, flow } from "@effect/data/Function"
-import * as Global from "@effect/data/GlobalValue"
-import * as Option from "@effect/data/Option"
-import * as Effect from "@effect/io/Effect"
-import * as FiberRef from "@effect/io/FiberRef"
-import type { ExternalSpan } from "@effect/io/Tracer"
import * as FileSystem from "@effect/platform/FileSystem"
import type * as Headers from "@effect/platform/Http/Headers"
import type * as UrlParams from "@effect/platform/Http/UrlParams"
import * as ParseResult from "@effect/schema/ParseResult"
import * as Schema from "@effect/schema/Schema"
-import type * as Stream from "@effect/stream/Stream"
+import * as Context from "effect/Context"
+import * as Effect from "effect/Effect"
+import * as FiberRef from "effect/FiberRef"
+import { dual, flow } from "effect/Function"
+import * as Global from "effect/GlobalValue"
+import * as Option from "effect/Option"
+import type * as Stream from "effect/Stream"
+import type { ExternalSpan } from "effect/Tracer"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/Platform.ts b/packages/platform/src/Http/Platform.ts
index a903d4e8..cffe9c71 100644
--- a/packages/platform/src/Http/Platform.ts
+++ b/packages/platform/src/Http/Platform.ts
@@ -1,14 +1,14 @@
/**
* @since 1.0.0
*/
-import type * as Context from "@effect/data/Context"
-import type * as Effect from "@effect/io/Effect"
import type * as Error from "@effect/platform/Error"
import type * as FileSystem from "@effect/platform/FileSystem"
import type * as Body from "@effect/platform/Http/Body"
import type * as Etag from "@effect/platform/Http/Etag"
import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
import * as internal from "@effect/platform/internal/http/platform"
+import type * as Context from "effect/Context"
+import type * as Effect from "effect/Effect"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/Router.ts b/packages/platform/src/Http/Router.ts
index ad5c8cff..d6134a19 100644
--- a/packages/platform/src/Http/Router.ts
+++ b/packages/platform/src/Http/Router.ts
@@ -1,11 +1,6 @@
/**
* @since 1.0.0
*/
-import type * as Chunk from "@effect/data/Chunk"
-import type * as Context from "@effect/data/Context"
-import type * as Option from "@effect/data/Option"
-import type * as Cause from "@effect/io/Cause"
-import type * as Effect from "@effect/io/Effect"
import type * as App from "@effect/platform/Http/App"
import type * as Method from "@effect/platform/Http/Method"
import type * as Error from "@effect/platform/Http/ServerError"
@@ -14,6 +9,11 @@ import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
import * as internal from "@effect/platform/internal/http/router"
import type * as ParseResult from "@effect/schema/ParseResult"
import type * as Schema from "@effect/schema/Schema"
+import type * as Cause from "effect/Cause"
+import type * as Chunk from "effect/Chunk"
+import type * as Context from "effect/Context"
+import type * as Effect from "effect/Effect"
+import type * as Option from "effect/Option"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/Server.ts b/packages/platform/src/Http/Server.ts
index c2dcd196..4e118134 100644
--- a/packages/platform/src/Http/Server.ts
+++ b/packages/platform/src/Http/Server.ts
@@ -1,14 +1,14 @@
/**
* @since 1.0.0
*/
-import type * as Context from "@effect/data/Context"
-import type * as Effect from "@effect/io/Effect"
-import type * as Scope from "@effect/io/Scope"
import type * as App from "@effect/platform/Http/App"
import type * as Middleware from "@effect/platform/Http/Middleware"
import type * as Error from "@effect/platform/Http/ServerError"
import type * as ServerRequest from "@effect/platform/Http/ServerRequest"
import * as internal from "@effect/platform/internal/http/server"
+import type * as Context from "effect/Context"
+import type * as Effect from "effect/Effect"
+import type * as Scope from "effect/Scope"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/ServerError.ts b/packages/platform/src/Http/ServerError.ts
index 2872e7e3..ea385df0 100644
--- a/packages/platform/src/Http/ServerError.ts
+++ b/packages/platform/src/Http/ServerError.ts
@@ -1,10 +1,10 @@
/**
* @since 1.0.0
*/
-import type * as Data from "@effect/data/Data"
import type * as ServerRequest from "@effect/platform/Http/ServerRequest"
import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
import * as internal from "@effect/platform/internal/http/serverError"
+import type * as Data from "effect/Data"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/ServerRequest.ts b/packages/platform/src/Http/ServerRequest.ts
index daf02187..c4dd1c25 100644
--- a/packages/platform/src/Http/ServerRequest.ts
+++ b/packages/platform/src/Http/ServerRequest.ts
@@ -1,9 +1,6 @@
/**
* @since 1.0.0
*/
-import type * as Context from "@effect/data/Context"
-import type * as Effect from "@effect/io/Effect"
-import type * as Scope from "@effect/io/Scope"
import type * as FileSystem from "@effect/platform/FileSystem"
import type * as FormData from "@effect/platform/Http/FormData"
import type * as Headers from "@effect/platform/Http/Headers"
@@ -14,7 +11,10 @@ import * as internal from "@effect/platform/internal/http/serverRequest"
import type * as Path from "@effect/platform/Path"
import type * as ParseResult from "@effect/schema/ParseResult"
import type * as Schema from "@effect/schema/Schema"
-import type * as Stream from "@effect/stream/Stream"
+import type * as Context from "effect/Context"
+import type * as Effect from "effect/Effect"
+import type * as Scope from "effect/Scope"
+import type * as Stream from "effect/Stream"
export {
/**
diff --git a/packages/platform/src/Http/ServerResponse.ts b/packages/platform/src/Http/ServerResponse.ts
index 35362675..28510291 100644
--- a/packages/platform/src/Http/ServerResponse.ts
+++ b/packages/platform/src/Http/ServerResponse.ts
@@ -1,8 +1,6 @@
/**
* @since 1.0.0
*/
-import type { Pipeable } from "@effect/data/Pipeable"
-import type * as Effect from "@effect/io/Effect"
import type * as PlatformError from "@effect/platform/Error"
import type * as FileSystem from "@effect/platform/FileSystem"
import type * as Body from "@effect/platform/Http/Body"
@@ -11,7 +9,9 @@ import type * as Platform from "@effect/platform/Http/Platform"
import type * as UrlParams from "@effect/platform/Http/UrlParams"
import * as internal from "@effect/platform/internal/http/serverResponse"
import type * as Schema from "@effect/schema/Schema"
-import type * as Stream from "@effect/stream/Stream"
+import type * as Effect from "effect/Effect"
+import type { Pipeable } from "effect/Pipeable"
+import type * as Stream from "effect/Stream"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Http/UrlParams.ts b/packages/platform/src/Http/UrlParams.ts
index 415e9756..83ca0c95 100644
--- a/packages/platform/src/Http/UrlParams.ts
+++ b/packages/platform/src/Http/UrlParams.ts
@@ -1,9 +1,9 @@
/**
* @since 1.0.0
*/
-import * as Chunk from "@effect/data/Chunk"
-import { dual } from "@effect/data/Function"
-import * as Effect from "@effect/io/Effect"
+import * as Chunk from "effect/Chunk"
+import * as Effect from "effect/Effect"
+import { dual } from "effect/Function"
/**
* @since 1.0.0
diff --git a/packages/platform/src/KeyValueStore.ts b/packages/platform/src/KeyValueStore.ts
index 7105ad8b..853ec212 100644
--- a/packages/platform/src/KeyValueStore.ts
+++ b/packages/platform/src/KeyValueStore.ts
@@ -1,16 +1,16 @@
/**
* @since 1.0.0
*/
-import type * as Context from "@effect/data/Context"
-import type * as Option from "@effect/data/Option"
-import type * as Effect from "@effect/io/Effect"
-import type * as Layer from "@effect/io/Layer"
import type * as PlatformError from "@effect/platform/Error"
import type * as FileSystem from "@effect/platform/FileSystem"
import * as internal from "@effect/platform/internal/keyValueStore"
import type * as Path from "@effect/platform/Path"
import type * as ParseResult from "@effect/schema/ParseResult"
import type * as Schema from "@effect/schema/Schema"
+import type * as Context from "effect/Context"
+import type * as Effect from "effect/Effect"
+import type * as Layer from "effect/Layer"
+import type * as Option from "effect/Option"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Path.ts b/packages/platform/src/Path.ts
index d021413e..fb5e1a55 100644
--- a/packages/platform/src/Path.ts
+++ b/packages/platform/src/Path.ts
@@ -2,11 +2,11 @@
* @since 1.0.0
*/
-import type { Tag } from "@effect/data/Context"
-import type { Effect } from "@effect/io/Effect"
-import type { Layer } from "@effect/io/Layer"
import type { BadArgument } from "@effect/platform/Error"
import * as internal from "@effect/platform/internal/path"
+import type { Tag } from "effect/Context"
+import type { Effect } from "effect/Effect"
+import type { Layer } from "effect/Layer"
/**
* @since 1.0.0
diff --git a/packages/platform/src/Runtime.ts b/packages/platform/src/Runtime.ts
index 1e38dd28..a566ab46 100644
--- a/packages/platform/src/Runtime.ts
+++ b/packages/platform/src/Runtime.ts
@@ -1,9 +1,9 @@
/**
* @since 1.0.0
*/
-import * as Cause from "@effect/io/Cause"
-import type { Effect } from "@effect/io/Effect"
-import * as Exit from "@effect/io/Exit"
+import * as Cause from "effect/Cause"
+import type { Effect } from "effect/Effect"
+import * as Exit from "effect/Exit"
/**
* @category model
diff --git a/packages/platform/src/index.ts b/packages/platform/src/index.ts
new file mode 100644
index 00000000..54efb08e
--- /dev/null
+++ b/packages/platform/src/index.ts
@@ -0,0 +1,49 @@
+/**
+ * @since 1.0.0
+ */
+export * as Command from "@effect/platform/Command"
+
+/**
+ * @since 1.0.0
+ */
+export * as CommandExecutor from "@effect/platform/CommandExecutor"
+
+/**
+ * @since 1.0.0
+ */
+export * as Effectify from "@effect/platform/Effectify"
+
+/**
+ * @since 1.0.0
+ */
+export * as Error from "@effect/platform/Error"
+
+/**
+ * @since 1.0.0
+ */
+export * as FileSystem from "@effect/platform/FileSystem"
+
+/**
+ * @since 1.0.0
+ */
+export * as HttpClient from "@effect/platform/HttpClient"
+
+/**
+ * @since 1.0.0
+ */
+export * as HttpServer from "@effect/platform/HttpServer"
+
+/**
+ * @since 1.0.0
+ */
+export * as KeyValueStore from "@effect/platform/KeyValueStore"
+
+/**
+ * @since 1.0.0
+ */
+export * as Path from "@effect/platform/Path"
+
+/**
+ * @since 1.0.0
+ */
+export * as Runtime from "@effect/platform/Runtime"
diff --git a/packages/platform/src/internal/command.ts b/packages/platform/src/internal/command.ts
index 2eaf066e..29f58104 100644
--- a/packages/platform/src/internal/command.ts
+++ b/packages/platform/src/internal/command.ts
@@ -1,15 +1,15 @@
-import * as Chunk from "@effect/data/Chunk"
-import { dual } from "@effect/data/Function"
-import * as HashMap from "@effect/data/HashMap"
-import * as Option from "@effect/data/Option"
-import { pipeArguments } from "@effect/data/Pipeable"
-import type ReadonlyArray from "@effect/data/ReadonlyArray"
-import * as Effect from "@effect/io/Effect"
import type * as Command from "@effect/platform/Command"
import type * as CommandExecutor from "@effect/platform/CommandExecutor"
import type { PlatformError } from "@effect/platform/Error"
import * as commandExecutor from "@effect/platform/internal/commandExecutor"
-import * as Stream from "@effect/stream/Stream"
+import * as Chunk from "effect/Chunk"
+import * as Effect from "effect/Effect"
+import { dual } from "effect/Function"
+import * as HashMap from "effect/HashMap"
+import * as Option from "effect/Option"
+import { pipeArguments } from "effect/Pipeable"
+import type ReadonlyArray from "effect/ReadonlyArray"
+import * as Stream from "effect/Stream"
/** @internal */
export const CommandTypeId: Command.CommandTypeId = Symbol.for("@effect/platform/Command") as Command.CommandTypeId
diff --git a/packages/platform/src/internal/commandExecutor.ts b/packages/platform/src/internal/commandExecutor.ts
index f9e4c819..d40f584f 100644
--- a/packages/platform/src/internal/commandExecutor.ts
+++ b/packages/platform/src/internal/commandExecutor.ts
@@ -1,11 +1,11 @@
-import * as Brand from "@effect/data/Brand"
-import * as Chunk from "@effect/data/Chunk"
-import { Tag } from "@effect/data/Context"
-import { pipe } from "@effect/data/Function"
-import * as Effect from "@effect/io/Effect"
import type * as _CommandExecutor from "@effect/platform/CommandExecutor"
-import * as Sink from "@effect/stream/Sink"
-import * as Stream from "@effect/stream/Stream"
+import * as Brand from "effect/Brand"
+import * as Chunk from "effect/Chunk"
+import { Tag } from "effect/Context"
+import * as Effect from "effect/Effect"
+import { pipe } from "effect/Function"
+import * as Sink from "effect/Sink"
+import * as Stream from "effect/Stream"
/** @internal */
export const ProcessTypeId: _CommandExecutor.ProcessTypeId = Symbol.for(
diff --git a/packages/platform/src/internal/effectify.ts b/packages/platform/src/internal/effectify.ts
index 90afe1d2..4867d8c7 100644
--- a/packages/platform/src/internal/effectify.ts
+++ b/packages/platform/src/internal/effectify.ts
@@ -1,5 +1,5 @@
-import * as Effect from "@effect/io/Effect"
import type { Effectify, EffectifyError } from "@effect/platform/Effectify"
+import * as Effect from "effect/Effect"
/** @internal */
export const effectify: {
diff --git a/packages/platform/src/internal/error.ts b/packages/platform/src/internal/error.ts
index b23e5331..8ffe77d0 100644
--- a/packages/platform/src/internal/error.ts
+++ b/packages/platform/src/internal/error.ts
@@ -1,5 +1,5 @@
-import * as Data from "@effect/data/Data"
import type * as Error from "@effect/platform/Error"
+import * as Data from "effect/Data"
/** @internal */
export const PlatformErrorTypeId: Error.PlatformErrorTypeId = Symbol.for(
diff --git a/packages/platform/src/internal/fileSystem.ts b/packages/platform/src/internal/fileSystem.ts
index 0edd41e9..f131a96b 100644
--- a/packages/platform/src/internal/fileSystem.ts
+++ b/packages/platform/src/internal/fileSystem.ts
@@ -1,11 +1,11 @@
-import { Tag } from "@effect/data/Context"
-import { identity, pipe } from "@effect/data/Function"
-import * as Option from "@effect/data/Option"
-import * as Effect from "@effect/io/Effect"
import * as Error from "@effect/platform/Error"
import type { File, FileSystem, Size as Size_, SizeInput, StreamOptions } from "@effect/platform/FileSystem"
-import * as Sink from "@effect/stream/Sink"
-import * as Stream from "@effect/stream/Stream"
+import { Tag } from "effect/Context"
+import * as Effect from "effect/Effect"
+import { identity, pipe } from "effect/Function"
+import * as Option from "effect/Option"
+import * as Sink from "effect/Sink"
+import * as Stream from "effect/Stream"
/** @internal */
export const tag = Tag("@effect/platform/FileSystem")
diff --git a/packages/platform/src/internal/http/body.ts b/packages/platform/src/internal/http/body.ts
index 62f910b5..1997d7a8 100644
--- a/packages/platform/src/internal/http/body.ts
+++ b/packages/platform/src/internal/http/body.ts
@@ -1,11 +1,11 @@
-import * as Data from "@effect/data/Data"
-import { identity } from "@effect/data/Function"
-import * as Effect from "@effect/io/Effect"
import type * as PlatformError from "@effect/platform/Error"
import * as FileSystem from "@effect/platform/FileSystem"
import type * as Body from "@effect/platform/Http/Body"
import * as Schema from "@effect/schema/Schema"
-import * as Stream_ from "@effect/stream/Stream"
+import * as Data from "effect/Data"
+import * as Effect from "effect/Effect"
+import { identity } from "effect/Function"
+import * as Stream_ from "effect/Stream"
/** @internal */
export const TypeId: Body.TypeId = Symbol.for(
diff --git a/packages/platform/src/internal/http/client.ts b/packages/platform/src/internal/http/client.ts
index 422cd104..c892865a 100644
--- a/packages/platform/src/internal/http/client.ts
+++ b/packages/platform/src/internal/http/client.ts
@@ -1,12 +1,3 @@
-import * as Context from "@effect/data/Context"
-import { dual, pipe } from "@effect/data/Function"
-import * as Option from "@effect/data/Option"
-import { pipeArguments } from "@effect/data/Pipeable"
-import type * as Predicate from "@effect/data/Predicate"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
-import type * as Schedule from "@effect/io/Schedule"
-import type * as Scope from "@effect/io/Scope"
import type * as Body from "@effect/platform/Http/Body"
import type * as Client from "@effect/platform/Http/Client"
import type * as Error from "@effect/platform/Http/ClientError"
@@ -20,7 +11,16 @@ import * as internalRequest from "@effect/platform/internal/http/clientRequest"
import * as internalResponse from "@effect/platform/internal/http/clientResponse"
import type * as ParseResult from "@effect/schema/ParseResult"
import * as Schema from "@effect/schema/Schema"
-import * as Stream from "@effect/stream/Stream"
+import * as Context from "effect/Context"
+import * as Effect from "effect/Effect"
+import { dual, pipe } from "effect/Function"
+import * as Layer from "effect/Layer"
+import * as Option from "effect/Option"
+import { pipeArguments } from "effect/Pipeable"
+import type * as Predicate from "effect/Predicate"
+import type * as Schedule from "effect/Schedule"
+import type * as Scope from "effect/Scope"
+import * as Stream from "effect/Stream"
/** @internal */
export const TypeId: Client.TypeId = Symbol.for("@effect/platform/Http/Client") as Client.TypeId
diff --git a/packages/platform/src/internal/http/clientError.ts b/packages/platform/src/internal/http/clientError.ts
index a0e71cf2..80ce2146 100644
--- a/packages/platform/src/internal/http/clientError.ts
+++ b/packages/platform/src/internal/http/clientError.ts
@@ -1,5 +1,5 @@
-import * as Data from "@effect/data/Data"
import type * as Error from "@effect/platform/Http/ClientError"
+import * as Data from "effect/Data"
/** @internal */
export const TypeId: Error.TypeId = Symbol.for(
diff --git a/packages/platform/src/internal/http/clientRequest.ts b/packages/platform/src/internal/http/clientRequest.ts
index da6c24ae..d1f3283a 100644
--- a/packages/platform/src/internal/http/clientRequest.ts
+++ b/packages/platform/src/internal/http/clientRequest.ts
@@ -1,6 +1,3 @@
-import { dual } from "@effect/data/Function"
-import { pipeArguments } from "@effect/data/Pipeable"
-import * as Effect from "@effect/io/Effect"
import type * as PlatformError from "@effect/platform/Error"
import type * as FileSystem from "@effect/platform/FileSystem"
import type * as Body from "@effect/platform/Http/Body"
@@ -11,7 +8,10 @@ import type { Method } from "@effect/platform/Http/Method"
import * as UrlParams from "@effect/platform/Http/UrlParams"
import * as internalBody from "@effect/platform/internal/http/body"
import type * as Schema from "@effect/schema/Schema"
-import type * as Stream from "@effect/stream/Stream"
+import * as Effect from "effect/Effect"
+import { dual } from "effect/Function"
+import { pipeArguments } from "effect/Pipeable"
+import type * as Stream from "effect/Stream"
/** @internal */
export const TypeId: ClientRequest.TypeId = Symbol.for("@effect/platform/Http/ClientRequest") as ClientRequest.TypeId
diff --git a/packages/platform/src/internal/http/clientResponse.ts b/packages/platform/src/internal/http/clientResponse.ts
index b78bdf0b..5094b146 100644
--- a/packages/platform/src/internal/http/clientResponse.ts
+++ b/packages/platform/src/internal/http/clientResponse.ts
@@ -1,5 +1,3 @@
-import * as Option from "@effect/data/Option"
-import * as Effect from "@effect/io/Effect"
import type * as Error from "@effect/platform/Http/ClientError"
import type * as ClientRequest from "@effect/platform/Http/ClientRequest"
import type * as ClientResponse from "@effect/platform/Http/ClientResponse"
@@ -9,7 +7,9 @@ import * as UrlParams from "@effect/platform/Http/UrlParams"
import * as internalError from "@effect/platform/internal/http/clientError"
import type * as ParseResult from "@effect/schema/ParseResult"
import * as Schema from "@effect/schema/Schema"
-import * as Stream from "@effect/stream/Stream"
+import * as Effect from "effect/Effect"
+import * as Option from "effect/Option"
+import * as Stream from "effect/Stream"
/** @internal */
export const TypeId: ClientResponse.TypeId = Symbol.for("@effect/platform/Http/ClientResponse") as ClientResponse.TypeId
diff --git a/packages/platform/src/internal/http/etag.ts b/packages/platform/src/internal/http/etag.ts
index 6ba6cbdf..cbbb7dc6 100644
--- a/packages/platform/src/internal/http/etag.ts
+++ b/packages/platform/src/internal/http/etag.ts
@@ -1,5 +1,5 @@
-import * as Context from "@effect/data/Context"
import type * as Etag from "@effect/platform/Http/Etag"
+import * as Context from "effect/Context"
/** @internal */
export const GeneratorTypeId: Etag.GeneratorTypeId = Symbol.for(
diff --git a/packages/platform/src/internal/http/formData.ts b/packages/platform/src/internal/http/formData.ts
index cd5624a7..98fa166e 100644
--- a/packages/platform/src/internal/http/formData.ts
+++ b/packages/platform/src/internal/http/formData.ts
@@ -1,16 +1,16 @@
-import * as Chunk from "@effect/data/Chunk"
-import * as Data from "@effect/data/Data"
-import { dual, pipe } from "@effect/data/Function"
-import { globalValue } from "@effect/data/GlobalValue"
-import * as Option from "@effect/data/Option"
-import * as Predicate from "@effect/data/Predicate"
-import * as ReadonlyArray from "@effect/data/ReadonlyArray"
-import * as Effect from "@effect/io/Effect"
-import * as FiberRef from "@effect/io/FiberRef"
import * as FileSystem from "@effect/platform/FileSystem"
import type * as FormData from "@effect/platform/Http/FormData"
import type * as ParseResult from "@effect/schema/ParseResult"
import * as Schema from "@effect/schema/Schema"
+import * as Chunk from "effect/Chunk"
+import * as Data from "effect/Data"
+import * as Effect from "effect/Effect"
+import * as FiberRef from "effect/FiberRef"
+import { dual, pipe } from "effect/Function"
+import { globalValue } from "effect/GlobalValue"
+import * as Option from "effect/Option"
+import * as Predicate from "effect/Predicate"
+import * as ReadonlyArray from "effect/ReadonlyArray"
/** @internal */
export const TypeId: FormData.TypeId = Symbol.for("@effect/platform/Http/FormData") as FormData.TypeId
diff --git a/packages/platform/src/internal/http/middleware.ts b/packages/platform/src/internal/http/middleware.ts
index 60d5be33..60fed15f 100644
--- a/packages/platform/src/internal/http/middleware.ts
+++ b/packages/platform/src/internal/http/middleware.ts
@@ -1,10 +1,10 @@
-import { flow } from "@effect/data/Function"
-import * as Effect from "@effect/io/Effect"
import * as Headers from "@effect/platform/Http/Headers"
import * as IncomingMessage from "@effect/platform/Http/IncomingMessage"
import type * as Middleware from "@effect/platform/Http/Middleware"
import * as ServerRequest from "@effect/platform/Http/ServerRequest"
import * as ServerResponse from "@effect/platform/Http/ServerResponse"
+import * as Effect from "effect/Effect"
+import { flow } from "effect/Function"
/** @internal */
export const make = (middleware: M): M => middleware
diff --git a/packages/platform/src/internal/http/platform.ts b/packages/platform/src/internal/http/platform.ts
index 380ceb64..6ffa672c 100644
--- a/packages/platform/src/internal/http/platform.ts
+++ b/packages/platform/src/internal/http/platform.ts
@@ -1,11 +1,11 @@
-import * as Context from "@effect/data/Context"
-import { pipe } from "@effect/data/Function"
-import * as Effect from "@effect/io/Effect"
import * as FileSystem from "@effect/platform/FileSystem"
import type * as Body from "@effect/platform/Http/Body"
import * as Etag from "@effect/platform/Http/Etag"
import type * as Platform from "@effect/platform/Http/Platform"
import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
+import * as Context from "effect/Context"
+import * as Effect from "effect/Effect"
+import { pipe } from "effect/Function"
/** @internal */
export const TypeId: Platform.TypeId = Symbol.for("@effect/platform/Http/Platform") as Platform.TypeId
diff --git a/packages/platform/src/internal/http/router.ts b/packages/platform/src/internal/http/router.ts
index 2582bab8..07e35197 100644
--- a/packages/platform/src/internal/http/router.ts
+++ b/packages/platform/src/internal/http/router.ts
@@ -1,13 +1,3 @@
-import * as Chunk from "@effect/data/Chunk"
-import * as Context from "@effect/data/Context"
-import * as Equal from "@effect/data/Equal"
-import { dual } from "@effect/data/Function"
-import * as Hash from "@effect/data/Hash"
-import * as Inspectable from "@effect/data/Inspectable"
-import * as Option from "@effect/data/Option"
-import { pipeArguments } from "@effect/data/Pipeable"
-import type * as Cause from "@effect/io/Cause"
-import * as Effect from "@effect/io/Effect"
import type * as App from "@effect/platform/Http/App"
import type * as Method from "@effect/platform/Http/Method"
import type * as Router from "@effect/platform/Http/Router"
@@ -15,9 +5,14 @@ import * as Error from "@effect/platform/Http/ServerError"
import * as ServerRequest from "@effect/platform/Http/ServerRequest"
import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
import * as Schema from "@effect/schema/Schema"
-import * as Channel from "@effect/stream/Channel"
-import * as Sink from "@effect/stream/Sink"
-import * as Stream from "@effect/stream/Stream"
+import type * as Cause from "effect/Cause"
+import * as Chunk from "effect/Chunk"
+import * as Context from "effect/Context"
+import * as Effect from "effect/Effect"
+import * as Effectable from "effect/Effectable"
+import { dual } from "effect/Function"
+import * as Inspectable from "effect/Inspectable"
+import * as Option from "effect/Option"
import type { HTTPMethod } from "find-my-way"
import FindMyWay from "find-my-way"
@@ -54,43 +49,27 @@ export const schemaParams = >, A>(sche
)
}
-class RouterImpl implements Router.Router {
+class RouterImpl extends Effectable.Effectable<
+ Exclude,
+ E | Error.RouteNotFound,
+ ServerResponse.ServerResponse
+> implements Router.Router {
readonly [TypeId]: Router.TypeId
constructor(
readonly routes: Chunk.Chunk>,
readonly mounts: Chunk.Chunk]>
) {
+ super()
this[TypeId] = TypeId
- this[Effect.EffectTypeId] = undefined
- this[Stream.StreamTypeId] = undefined
- this[Sink.SinkTypeId] = undefined
- this[Channel.ChannelTypeId] = undefined
}
- pipe() {
- return pipeArguments(this, arguments)
- }
- private httpApp: App.Default, E | Error.RouteNotFound> | undefined
+ private httpApp:
+ | Effect.Effect, E | Error.RouteNotFound, ServerResponse.ServerResponse>
+ | undefined
commit() {
if (this.httpApp === undefined) {
- this.httpApp = toHttpApp(this)
+ this.httpApp = toHttpApp(this) as any
}
- return this.httpApp
- }
-
- // implements HttpApp/Effect
- public _tag = "Commit" // OP_COMMIT
- readonly [Effect.EffectTypeId]: any
- readonly [Stream.StreamTypeId]: any
- readonly [Sink.SinkTypeId]: any
- readonly [Channel.ChannelTypeId]: any;
- [Equal.symbol](
- this: RouterImpl,
- that: RouterImpl
- ): boolean {
- return this === that
- }
- [Hash.symbol](this: RouterImpl): number {
- return Hash.random(this)
+ return this.httpApp!
}
toJSON() {
return {
diff --git a/packages/platform/src/internal/http/server.ts b/packages/platform/src/internal/http/server.ts
index 53c82eb3..805663cc 100644
--- a/packages/platform/src/internal/http/server.ts
+++ b/packages/platform/src/internal/http/server.ts
@@ -1,12 +1,12 @@
-import * as Context from "@effect/data/Context"
-import { dual } from "@effect/data/Function"
-import * as Effect from "@effect/io/Effect"
-import type * as Scope from "@effect/io/Scope"
import type * as App from "@effect/platform/Http/App"
import type * as Middleware from "@effect/platform/Http/Middleware"
import type * as Server from "@effect/platform/Http/Server"
import type * as Error from "@effect/platform/Http/ServerError"
import type * as ServerRequest from "@effect/platform/Http/ServerRequest"
+import * as Context from "effect/Context"
+import * as Effect from "effect/Effect"
+import { dual } from "effect/Function"
+import type * as Scope from "effect/Scope"
/** @internal */
export const TypeId: Server.TypeId = Symbol.for("@effect/platform/Http/Server") as Server.TypeId
diff --git a/packages/platform/src/internal/http/serverError.ts b/packages/platform/src/internal/http/serverError.ts
index 15a0cec7..e9724810 100644
--- a/packages/platform/src/internal/http/serverError.ts
+++ b/packages/platform/src/internal/http/serverError.ts
@@ -1,5 +1,5 @@
-import * as Data from "@effect/data/Data"
import type * as Error from "@effect/platform/Http/ServerError"
+import * as Data from "effect/Data"
/** @internal */
export const TypeId: Error.TypeId = Symbol.for(
diff --git a/packages/platform/src/internal/http/serverRequest.ts b/packages/platform/src/internal/http/serverRequest.ts
index a1ea546e..e48406a1 100644
--- a/packages/platform/src/internal/http/serverRequest.ts
+++ b/packages/platform/src/internal/http/serverRequest.ts
@@ -1,10 +1,10 @@
-import * as Context from "@effect/data/Context"
-import * as Effect from "@effect/io/Effect"
import * as FormData from "@effect/platform/Http/FormData"
import * as IncomingMessage from "@effect/platform/Http/IncomingMessage"
import * as Error from "@effect/platform/Http/ServerError"
import type * as ServerRequest from "@effect/platform/Http/ServerRequest"
import type * as Schema from "@effect/schema/Schema"
+import * as Context from "effect/Context"
+import * as Effect from "effect/Effect"
/** @internal */
export const TypeId: ServerRequest.TypeId = Symbol.for("@effect/platform/Http/ServerRequest") as ServerRequest.TypeId
diff --git a/packages/platform/src/internal/http/serverResponse.ts b/packages/platform/src/internal/http/serverResponse.ts
index 069edea6..284a8fc3 100644
--- a/packages/platform/src/internal/http/serverResponse.ts
+++ b/packages/platform/src/internal/http/serverResponse.ts
@@ -1,6 +1,3 @@
-import { dual } from "@effect/data/Function"
-import { pipeArguments } from "@effect/data/Pipeable"
-import * as Effect from "@effect/io/Effect"
import type * as PlatformError from "@effect/platform/Error"
import type * as FileSystem from "@effect/platform/FileSystem"
import type * as Body from "@effect/platform/Http/Body"
@@ -10,7 +7,10 @@ import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
import * as UrlParams from "@effect/platform/Http/UrlParams"
import * as internalBody from "@effect/platform/internal/http/body"
import type * as Schema from "@effect/schema/Schema"
-import type * as Stream from "@effect/stream/Stream"
+import * as Effect from "effect/Effect"
+import { dual } from "effect/Function"
+import { pipeArguments } from "effect/Pipeable"
+import type * as Stream from "effect/Stream"
/** @internal */
export const TypeId: ServerResponse.TypeId = Symbol.for("@effect/platform/Http/ServerResponse") as ServerResponse.TypeId
diff --git a/packages/platform/src/internal/keyValueStore.ts b/packages/platform/src/internal/keyValueStore.ts
index b4c6a977..5946ea5b 100644
--- a/packages/platform/src/internal/keyValueStore.ts
+++ b/packages/platform/src/internal/keyValueStore.ts
@@ -1,12 +1,12 @@
-import * as Context from "@effect/data/Context"
-import { dual, pipe } from "@effect/data/Function"
-import * as Option from "@effect/data/Option"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import * as FileSystem from "@effect/platform/FileSystem"
import type * as KeyValueStore from "@effect/platform/KeyValueStore"
import * as Path from "@effect/platform/Path"
import * as Schema from "@effect/schema/Schema"
+import * as Context from "effect/Context"
+import * as Effect from "effect/Effect"
+import { dual, pipe } from "effect/Function"
+import * as Layer from "effect/Layer"
+import * as Option from "effect/Option"
/** @internal */
export const TypeId: KeyValueStore.TypeId = Symbol.for(
diff --git a/packages/platform/src/internal/path.ts b/packages/platform/src/internal/path.ts
index 966855c8..2ba39b2b 100644
--- a/packages/platform/src/internal/path.ts
+++ b/packages/platform/src/internal/path.ts
@@ -1,9 +1,9 @@
-import { Tag } from "@effect/data/Context"
-import { identity } from "@effect/data/Function"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import { BadArgument } from "@effect/platform/Error"
import type { Path as _Path } from "@effect/platform/Path"
+import { Tag } from "effect/Context"
+import * as Effect from "effect/Effect"
+import { identity } from "effect/Function"
+import * as Layer from "effect/Layer"
import * as PathB from "path-browserify"
/** @internal */
diff --git a/packages/platform/test/HttpClient.test.ts b/packages/platform/test/HttpClient.test.ts
index 69b22bc2..3d6a9402 100644
--- a/packages/platform/test/HttpClient.test.ts
+++ b/packages/platform/test/HttpClient.test.ts
@@ -1,9 +1,9 @@
-import * as Context from "@effect/data/Context"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import * as Http from "@effect/platform/HttpClient"
import * as Schema from "@effect/schema/Schema"
-import * as Stream from "@effect/stream/Stream"
+import * as Context from "effect/Context"
+import * as Effect from "effect/Effect"
+import * as Layer from "effect/Layer"
+import * as Stream from "effect/Stream"
import { describe, it } from "vitest"
const Todo = Schema.struct({
diff --git a/packages/platform/test/KeyValueStore.test.ts b/packages/platform/test/KeyValueStore.test.ts
index 54b42041..bebffaaa 100644
--- a/packages/platform/test/KeyValueStore.test.ts
+++ b/packages/platform/test/KeyValueStore.test.ts
@@ -1,9 +1,9 @@
-import { identity } from "@effect/data/Function"
-import * as Option from "@effect/data/Option"
-import * as Effect from "@effect/io/Effect"
-import * as Layer from "@effect/io/Layer"
import * as KeyValueStore from "@effect/platform/KeyValueStore"
import * as Schema from "@effect/schema/Schema"
+import * as Effect from "effect/Effect"
+import { identity } from "effect/Function"
+import * as Layer from "effect/Layer"
+import * as Option from "effect/Option"
import { afterEach } from "vitest"
export const testLayer = (layer: Layer.Layer) => {
diff --git a/packages/platform/test/Path.test.ts b/packages/platform/test/Path.test.ts
index 9382a198..d26c17c4 100644
--- a/packages/platform/test/Path.test.ts
+++ b/packages/platform/test/Path.test.ts
@@ -1,6 +1,6 @@
-import * as Effect from "@effect/io/Effect"
import { BadArgument } from "@effect/platform/Error"
import * as Path from "@effect/platform/Path"
+import * as Effect from "effect/Effect"
const runPromise = (effect: Effect.Effect) =>
Effect.runPromise(Effect.provide(effect, Path.layer))
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 21c95b96..d9833876 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -35,8 +35,8 @@ importers:
specifier: ^0.1.4
version: 0.1.4
'@effect/docgen':
- specifier: ^0.1.7
- version: 0.1.7(@types/node@20.7.0)(typescript@5.2.2)
+ specifier: ^0.1.8
+ version: 0.1.8(@types/node@20.7.1)(typescript@5.2.2)
'@effect/eslint-plugin':
specifier: ^0.1.2
version: 0.1.2
@@ -47,8 +47,8 @@ importers:
specifier: ^4.3.6
version: 4.3.6
'@types/node':
- specifier: ^20.7.0
- version: 20.7.0
+ specifier: ^20.7.1
+ version: 20.7.1
'@typescript-eslint/eslint-plugin':
specifier: ^6.7.3
version: 6.7.3(@typescript-eslint/parser@6.7.3)(eslint@8.50.0)(typescript@5.2.2)
@@ -95,11 +95,11 @@ importers:
specifier: ^6.1.0
version: 6.1.0(typescript@5.2.2)
rimraf:
- specifier: ^5.0.4
- version: 5.0.4
+ specifier: ^5.0.5
+ version: 5.0.5
ts-node:
specifier: ^10.9.1
- version: 10.9.1(@types/node@20.7.0)(typescript@5.2.2)
+ version: 10.9.1(@types/node@20.7.1)(typescript@5.2.2)
typescript:
specifier: ^5.2.2
version: 5.2.2
@@ -108,7 +108,7 @@ importers:
version: 3.10.5
vite:
specifier: ^4.4.9
- version: 4.4.9(@types/node@20.7.0)
+ version: 4.4.9(@types/node@20.7.1)
vitest:
specifier: 0.34.5
version: 0.34.5
@@ -122,21 +122,15 @@ importers:
specifier: ^1.0.1
version: 1.0.1
devDependencies:
- '@effect/data':
- specifier: ^0.18.6
- version: 0.18.6
- '@effect/io':
- specifier: ^0.41.0
- version: 0.41.0(@effect/data@0.18.6)
'@effect/schema':
- specifier: ^0.37.0
- version: 0.37.0(@effect/data@0.18.6)(@effect/io@0.41.0)
- '@effect/stream':
- specifier: ^0.37.0
- version: 0.37.0(@effect/data@0.18.6)(@effect/io@0.41.0)
+ specifier: ^0.39.0
+ version: 0.39.0(effect@2.0.0-next.37)
'@types/path-browserify':
specifier: ^1.0.0
version: 1.0.0
+ effect:
+ specifier: 2.0.0-next.37
+ version: 2.0.0-next.37
publishDirectory: dist
packages/platform-browser:
@@ -145,12 +139,9 @@ importers:
specifier: workspace:^
version: link:../platform/dist
devDependencies:
- '@effect/data':
- specifier: ^0.18.6
- version: 0.18.6
- '@effect/io':
- specifier: ^0.41.0
- version: 0.41.0(@effect/data@0.18.6)
+ effect:
+ specifier: 2.0.0-next.37
+ version: 2.0.0-next.37
vitest-localstorage-mock:
specifier: ^0.0.1
version: 0.0.1(vitest@0.34.5)
@@ -165,21 +156,15 @@ importers:
specifier: workspace:^
version: link:../platform-node/dist
devDependencies:
- '@effect/data':
- specifier: ^0.18.6
- version: 0.18.6
- '@effect/io':
- specifier: ^0.41.0
- version: 0.41.0(@effect/data@0.18.6)
'@effect/schema':
- specifier: ^0.37.0
- version: 0.37.0(@effect/data@0.18.6)(@effect/io@0.41.0)
- '@effect/stream':
- specifier: ^0.37.0
- version: 0.37.0(@effect/data@0.18.6)(@effect/io@0.41.0)
+ specifier: ^0.39.0
+ version: 0.39.0(effect@2.0.0-next.37)
bun-types:
specifier: ^1.0.3
version: 1.0.3
+ effect:
+ specifier: 2.0.0-next.37
+ version: 2.0.0-next.37
publishDirectory: dist
packages/platform-node:
@@ -194,24 +179,18 @@ importers:
specifier: ^3.0.0
version: 3.0.0
devDependencies:
- '@effect/data':
- specifier: ^0.18.6
- version: 0.18.6
- '@effect/io':
- specifier: ^0.41.0
- version: 0.41.0(@effect/data@0.18.6)
'@effect/schema':
- specifier: ^0.37.0
- version: 0.37.0(@effect/data@0.18.6)(@effect/io@0.41.0)
- '@effect/stream':
- specifier: ^0.37.0
- version: 0.37.0(@effect/data@0.18.6)(@effect/io@0.41.0)
+ specifier: ^0.39.0
+ version: 0.39.0(effect@2.0.0-next.37)
'@types/busboy':
specifier: ^1.5.1
version: 1.5.1
'@types/mime':
- specifier: ^3.0.1
- version: 3.0.1
+ specifier: ^3.0.2
+ version: 3.0.2
+ effect:
+ specifier: 2.0.0-next.37
+ version: 2.0.0-next.37
publishDirectory: dist
packages:
@@ -776,12 +755,8 @@ packages:
hasBin: true
dev: true
- /@effect/data@0.18.6:
- resolution: {integrity: sha512-gfjorojxEJ0KKxwluZLoAsPv1kkHi7MV1vQDlibClfdtC9iY9JqkJo+BjWTKsU0zV4mW2inmTZQCF72KKbn2tQ==}
- dev: true
-
- /@effect/docgen@0.1.7(@types/node@20.7.0)(typescript@5.2.2):
- resolution: {integrity: sha512-HFvw3k/B7i4o73GIWELktbHs2SX5xT1JFjxxnXp/k6AcWfc4Bf4RMaRe1huAwCpv3VvZZFQMkhJ48ee4YRGaOQ==}
+ /@effect/docgen@0.1.8(@types/node@20.7.1)(typescript@5.2.2):
+ resolution: {integrity: sha512-o3iLXvbkkxEuRUnJ6hJDEXHfeDfA86iVkQm/s8heWQQgD7UBZ7TTWkDIobFaXRKU8qKoCKPSgmLlSq0F3IsBgw==}
engines: {node: '>=16.17.1'}
hasBin: true
peerDependencies:
@@ -789,12 +764,12 @@ packages:
dependencies:
doctrine: 3.0.0
fs-extra: 11.1.1
- glob: 10.3.7
+ glob: 10.3.10
markdown-toc: github.com/effect-ts/markdown-toc/4bfeb0f140105440ea0d12df2fa23199cc3ec1d5
prettier: 2.8.8
- rimraf: 5.0.4
+ rimraf: 5.0.5
ts-morph: 19.0.0
- ts-node: 10.9.1(@types/node@20.7.0)(typescript@5.2.2)
+ ts-node: 10.9.1(@types/node@20.7.1)(typescript@5.2.2)
tsconfck: 2.1.2(typescript@5.2.2)
typescript: 5.2.2
transitivePeerDependencies:
@@ -811,37 +786,17 @@ packages:
diff: 5.1.0
dev: true
- /@effect/io@0.41.0(@effect/data@0.18.6):
- resolution: {integrity: sha512-gCjntDN3lbUh8wVQnwNoYlugNlWESZWsVkBFPfmOf2439EptHkvdEDNA47vR4OSB3lcqhH+J5jJHi2KWnEbRew==}
- peerDependencies:
- '@effect/data': ^0.18.5
- dependencies:
- '@effect/data': 0.18.6
- dev: true
-
/@effect/language-service@0.0.21:
resolution: {integrity: sha512-e8vfKbjnbYiyneBincEFS0tzXluopGK77OkVFbPRtUbNDS5tJfb+jiwOQEiqASDsadcZmd+9J9+Q6v/z7GuN2g==}
dev: true
- /@effect/schema@0.37.0(@effect/data@0.18.6)(@effect/io@0.41.0):
- resolution: {integrity: sha512-PZv5zHEW3MpY4iY45dxhBS7IZxRHM2MXODi8gAY8g+4ACEkRWcNVua1Js6/JhRhQtpur9w3dvx913kpOZ+Fpmw==}
- peerDependencies:
- '@effect/data': ^0.18.6
- '@effect/io': ^0.41.0
- dependencies:
- '@effect/data': 0.18.6
- '@effect/io': 0.41.0(@effect/data@0.18.6)
- fast-check: 3.13.0
- dev: true
-
- /@effect/stream@0.37.0(@effect/data@0.18.6)(@effect/io@0.41.0):
- resolution: {integrity: sha512-fa5OeBCta/nmllMl3CZhgTUJseAlUsFFojMrEjIOW3HJrnz7VbJV1mceJuWSgNkrM2lhIXmWEVBBrZPjH63kEA==}
+ /@effect/schema@0.39.0(effect@2.0.0-next.37):
+ resolution: {integrity: sha512-Bnu8LW6aM7B2QIPVi9YglB/BAbibboFQ7lhaE68FNCyYQcAqCLpq5gufbaCLfxsQ15h1kaD5w+minXS+JJqaxg==}
peerDependencies:
- '@effect/data': ^0.18.6
- '@effect/io': ^0.41.0
+ effect: 2.0.0-next.37
dependencies:
- '@effect/data': 0.18.6
- '@effect/io': 0.41.0(@effect/data@0.18.6)
+ effect: 2.0.0-next.37
+ fast-check: 3.13.1
dev: true
/@esbuild/android-arm64@0.18.20:
@@ -1129,7 +1084,7 @@ packages:
dependencies:
'@types/istanbul-lib-coverage': 2.0.4
'@types/istanbul-reports': 3.0.1
- '@types/node': 20.7.0
+ '@types/node': 20.7.1
'@types/yargs': 15.0.15
chalk: 4.1.2
dev: true
@@ -1286,7 +1241,7 @@ packages:
/@types/busboy@1.5.1:
resolution: {integrity: sha512-JAymE2skNionWnBUwby3MatzPUw4D/6/7FX1qxBXLzmRnFxmqU0luIof7om0I8R3B/rSr9FKUnFCqxZ/NeGbrw==}
dependencies:
- '@types/node': 20.7.0
+ '@types/node': 20.7.1
dev: true
/@types/chai-subset@1.3.3:
@@ -1329,8 +1284,8 @@ packages:
resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}
dev: true
- /@types/mime@3.0.1:
- resolution: {integrity: sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==}
+ /@types/mime@3.0.2:
+ resolution: {integrity: sha512-Wj+fqpTLtTbG7c0tH47dkahefpLKEbB+xAZuLq7b4/IDHPl/n6VoXcyUQ2bypFlbSwvCr0y+bD4euTTqTJsPxQ==}
dev: true
/@types/minimist@1.2.2:
@@ -1341,8 +1296,8 @@ packages:
resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==}
dev: true
- /@types/node@20.7.0:
- resolution: {integrity: sha512-zI22/pJW2wUZOVyguFaUL1HABdmSVxpXrzIqkjsHmyUjNhPoWM1CKfvVuXfetHhIok4RY573cqS0mZ1SJEnoTg==}
+ /@types/node@20.7.1:
+ resolution: {integrity: sha512-LT+OIXpp2kj4E2S/p91BMe+VgGX2+lfO+XTpfXhh+bCk2LkQtHZSub8ewFBMGP5ClysPjTDFa4sMI8Q3n4T0wg==}
dev: true
/@types/normalize-package-data@2.4.1:
@@ -1650,7 +1605,7 @@ packages:
'@babel/plugin-transform-react-jsx-source': 7.22.5(@babel/core@7.23.0)
'@types/babel__core': 7.20.2
react-refresh: 0.14.0
- vite: 4.4.9(@types/node@20.7.0)
+ vite: 4.4.9(@types/node@20.7.1)
transitivePeerDependencies:
- supports-color
dev: true
@@ -2086,11 +2041,6 @@ packages:
supports-color: 7.2.0
dev: true
- /chalk@5.3.0:
- resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}
- engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
- dev: true
-
/chardet@0.7.0:
resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==}
dev: true
@@ -2607,6 +2557,10 @@ packages:
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
dev: true
+ /effect@2.0.0-next.37:
+ resolution: {integrity: sha512-poONzql/x5pn9ZtsmabqiPPZPuiGJoMUoZccGMaCZWYY1DSD8klYNviQEker1BDU0szr+J7bmyFFjgdYT3BVfQ==}
+ dev: true
+
/electron-to-chromium@1.4.529:
resolution: {integrity: sha512-6uyPyXTo8lkv8SWAmjKFbG42U073TXlzD4R8rW3EzuznhFS2olCIAfjjQtV2dV2ar/vRF55KUd3zQYnCB0dd3A==}
dev: true
@@ -3065,11 +3019,11 @@ packages:
tmp: 0.0.33
dev: true
- /fast-check@3.13.0:
- resolution: {integrity: sha512-m6+3gZ/yTiCWTuV/1e/UuPPjyyyHdQ5gu0pMd84C6705VTDjAgAE6nqFT5jhgegFllCJ95yOzBpqvJSs2DZAxQ==}
+ /fast-check@3.13.1:
+ resolution: {integrity: sha512-Xp00tFuWd83i8rbG/4wU54qU+yINjQha7bXH2N4ARNTkyOimzHtUBJ5+htpdXk7RMaCOD/j2jxSjEt9u9ZPNeQ==}
engines: {node: '>=8.0.0'}
dependencies:
- pure-rand: 6.0.3
+ pure-rand: 6.0.4
dev: true
/fast-decode-uri-component@1.0.1:
@@ -3363,15 +3317,15 @@ packages:
is-glob: 4.0.3
dev: true
- /glob@10.3.7:
- resolution: {integrity: sha512-wCMbE1m9Nx5yD9LYtgsVWq5VhHlk5WzJirw594qZR6AIvQYuHrdDtIktUVjQItalD53y7dqoedu9xP0u0WaxIQ==}
+ /glob@10.3.10:
+ resolution: {integrity: sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==}
engines: {node: '>=16 || 14 >=14.17'}
hasBin: true
dependencies:
foreground-child: 3.1.1
- jackspeak: 2.3.4
+ jackspeak: 2.3.6
minimatch: 9.0.3
- minipass: 7.0.3
+ minipass: 7.0.4
path-scurry: 1.10.1
dev: true
@@ -3887,12 +3841,11 @@ packages:
istanbul-lib-report: 3.0.1
dev: true
- /jackspeak@2.3.4:
- resolution: {integrity: sha512-W2D3zl/D62WLkJKZgr1vTXmIvLHAOxg4lTKjm3cymILSTEFQbtybC/V34xRtwFd+rNdJlzKuMBkNISa9YlxOBw==}
+ /jackspeak@2.3.6:
+ resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==}
engines: {node: '>=14'}
dependencies:
'@isaacs/cliui': 8.0.2
- tshy: 1.1.1
optionalDependencies:
'@pkgjs/parseargs': 0.11.0
dev: true
@@ -4333,8 +4286,8 @@ packages:
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
dev: true
- /minipass@7.0.3:
- resolution: {integrity: sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==}
+ /minipass@7.0.4:
+ resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==}
engines: {node: '>=16 || 14 >=14.17'}
dev: true
@@ -4357,12 +4310,6 @@ packages:
hasBin: true
dev: true
- /mkdirp@3.0.1:
- resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==}
- engines: {node: '>=10'}
- hasBin: true
- dev: true
-
/mlly@1.4.2:
resolution: {integrity: sha512-i/Ykufi2t1EZ6NaPLdfnZk2AX8cs0d+mTzVKuPfqPKPatxLApaBoxJQ9x1/uckXtrS/U5oisPMDkNs0yQTaBRg==}
dependencies:
@@ -4682,7 +4629,7 @@ packages:
engines: {node: '>=16 || 14 >=14.17'}
dependencies:
lru-cache: 10.0.1
- minipass: 7.0.3
+ minipass: 7.0.4
dev: true
/path-type@4.0.0:
@@ -4883,8 +4830,8 @@ packages:
engines: {node: '>=6'}
dev: true
- /pure-rand@6.0.3:
- resolution: {integrity: sha512-KddyFewCsO0j3+np81IQ+SweXLDnDQTs5s67BOnrYmYe/yNmUhttQyGsYzy8yUnoljGAQ9sl38YB4vH8ur7Y+w==}
+ /pure-rand@6.0.4:
+ resolution: {integrity: sha512-LA0Y9kxMYv47GIPJy6MI84fqTd2HmYZI83W/kM/SkKfDlajnZYfmXFTxkbY+xSBPkLJxltMa9hIkmdc29eguMA==}
dev: true
/queue-microtask@1.2.3:
@@ -5069,14 +5016,6 @@ packages:
engines: {node: '>=8'}
dev: true
- /resolve-import@1.4.1:
- resolution: {integrity: sha512-afPxGmDnvJ4Atfg5mc+JFhxI4Rp3VnxFTsAa4WRbblyhDFYg5ZFyhqtrQ/AL29te1TK2ADcbAHX7uKK7Bwcjaw==}
- engines: {node: '>=16'}
- dependencies:
- glob: 10.3.7
- walk-up-path: 3.0.1
- dev: true
-
/resolve-pkg-maps@1.0.0:
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
dev: true
@@ -5115,12 +5054,12 @@ packages:
glob: 7.2.3
dev: true
- /rimraf@5.0.4:
- resolution: {integrity: sha512-rizQI/o/YAMM1us0Zyax0uRfIK39XR52EAjjOi0fzMolpGp0onj6CWzBAXuOx6+6Xi9Rgi0d9tUZojhJerLUmQ==}
+ /rimraf@5.0.5:
+ resolution: {integrity: sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==}
engines: {node: '>=14'}
hasBin: true
dependencies:
- glob: 10.3.7
+ glob: 10.3.10
dev: true
/rollup@3.29.1:
@@ -5543,17 +5482,6 @@ packages:
engines: {node: '>= 0.4'}
dev: true
- /sync-content@1.0.2:
- resolution: {integrity: sha512-znd3rYiiSxU3WteWyS9a6FXkTA/Wjk8WQsOyzHbineeL837dLn3DA4MRhsIX3qGcxDMH6+uuFV4axztssk7wEQ==}
- engines: {node: '>=14'}
- hasBin: true
- dependencies:
- glob: 10.3.7
- mkdirp: 3.0.1
- path-scurry: 1.10.1
- rimraf: 5.0.4
- dev: true
-
/tapable@2.2.1:
resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}
engines: {node: '>=6'}
@@ -5660,7 +5588,7 @@ packages:
code-block-writer: 12.0.0
dev: true
- /ts-node@10.9.1(@types/node@20.7.0)(typescript@5.2.2):
+ /ts-node@10.9.1(@types/node@20.7.1)(typescript@5.2.2):
resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==}
hasBin: true
peerDependencies:
@@ -5679,7 +5607,7 @@ packages:
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.4
- '@types/node': 20.7.0
+ '@types/node': 20.7.1
acorn: 8.10.0
acorn-walk: 8.2.0
arg: 4.1.3
@@ -5713,21 +5641,6 @@ packages:
strip-bom: 3.0.0
dev: true
- /tshy@1.1.1:
- resolution: {integrity: sha512-rtsY0MRxSY0wB7NRJNiRMH0BfLyYzTSbb1zbb87qJKbDwQS71nJ9B6BTOZRJoALbzu/KrOTHvRC7uaaPyUm36A==}
- engines: {node: 16 >=16.17 || 18 >=18.16.0 || >=20.6.1}
- hasBin: true
- dependencies:
- chalk: 5.3.0
- foreground-child: 3.1.1
- mkdirp: 3.0.1
- resolve-import: 1.4.1
- rimraf: 5.0.4
- sync-content: 1.0.2
- typescript: 5.2.2
- walk-up-path: 3.0.1
- dev: true
-
/tslib@1.14.1:
resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}
dev: true
@@ -5974,7 +5887,7 @@ packages:
spdx-expression-parse: 3.0.1
dev: true
- /vite-node@0.34.5(@types/node@20.7.0):
+ /vite-node@0.34.5(@types/node@20.7.1):
resolution: {integrity: sha512-RNZ+DwbCvDoI5CbCSQSyRyzDTfFvFauvMs6Yq4ObJROKlIKuat1KgSX/Ako5rlDMfVCyMcpMRMTkJBxd6z8YRA==}
engines: {node: '>=v14.18.0'}
hasBin: true
@@ -5984,7 +5897,7 @@ packages:
mlly: 1.4.2
pathe: 1.1.1
picocolors: 1.0.0
- vite: 4.4.9(@types/node@20.7.0)
+ vite: 4.4.9(@types/node@20.7.1)
transitivePeerDependencies:
- '@types/node'
- less
@@ -5996,7 +5909,7 @@ packages:
- terser
dev: true
- /vite@4.4.9(@types/node@20.7.0):
+ /vite@4.4.9(@types/node@20.7.1):
resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
@@ -6024,7 +5937,7 @@ packages:
terser:
optional: true
dependencies:
- '@types/node': 20.7.0
+ '@types/node': 20.7.1
esbuild: 0.18.20
postcss: 8.4.29
rollup: 3.29.1
@@ -6073,7 +5986,7 @@ packages:
dependencies:
'@types/chai': 4.3.6
'@types/chai-subset': 1.3.3
- '@types/node': 20.7.0
+ '@types/node': 20.7.1
'@vitest/expect': 0.34.5
'@vitest/runner': 0.34.5
'@vitest/snapshot': 0.34.5
@@ -6092,8 +6005,8 @@ packages:
strip-literal: 1.3.0
tinybench: 2.5.1
tinypool: 0.7.0
- vite: 4.4.9(@types/node@20.7.0)
- vite-node: 0.34.5(@types/node@20.7.0)
+ vite: 4.4.9(@types/node@20.7.1)
+ vite-node: 0.34.5(@types/node@20.7.1)
why-is-node-running: 2.2.2
transitivePeerDependencies:
- less
@@ -6105,10 +6018,6 @@ packages:
- terser
dev: true
- /walk-up-path@3.0.1:
- resolution: {integrity: sha512-9YlCL/ynK3CTlrSRrDxZvUauLzAswPCrsaCgilqFevUYpeEW0/3ScEjaa3kbW/T0ghhkEr7mv+fpjqn1Y1YuTA==}
- dev: true
-
/walkdir@0.4.1:
resolution: {integrity: sha512-3eBwRyEln6E1MSzcxcVpQIhRG8Q1jLvEqRmCZqS3dsfXEDR/AhOF4d+jHg1qvDCpYaVRZjENPQyrVxAkQqxPgQ==}
engines: {node: '>=6.0.0'}