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

Commit

Permalink
Re-add http module (#251)
Browse files Browse the repository at this point in the history
Merging this fix for now to resolve the issue for others.
  • Loading branch information
fubhy authored Nov 10, 2023
1 parent bebcdf8 commit 05fef78
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 36 deletions.
8 changes: 8 additions & 0 deletions .changeset/grumpy-wolves-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@effect/platform-browser": minor
"@effect/platform-node": minor
"@effect/platform-bun": minor
"@effect/platform": minor
---

Re-added exports for http module
2 changes: 1 addition & 1 deletion docs/platform-node/HttpServer.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Added in v1.0.0
**Signature**
```ts
export declare const request: any
export declare const request: typeof request
```
Added in v1.0.0
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@effect/build-utils": "^0.3.1",
"@effect/build-utils": "^0.4.0",
"@effect/docgen": "^0.3.0",
"@effect/eslint-plugin": "^0.1.2",
"@effect/language-service": "^0.0.21",
Expand All @@ -50,6 +50,12 @@
"pnpm": {
"patchedDependencies": {
"@changesets/[email protected]": "patches/@[email protected]"
},
"overrides": {
"@effect/platform": "workspace:*",
"@effect/platform-node": "workspace:*",
"@effect/platform-bun": "workspace:*",
"@effect/platform-browser": "workspace:*"
}
}
}
8 changes: 8 additions & 0 deletions packages/platform-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
"author": "Effect contributors",
"license": "MIT",
"sideEffects": false,
"effect": {
"generateExports": {
"include": [
"*.ts",
"Http/*.ts"
]
}
},
"scripts": {
"build": "pnpm build-prepare && pnpm build-esm && pnpm build-cjs && pnpm build-annotate && build-utils pack-v2",
"build-prepare": "build-utils prepare-v2",
Expand Down
8 changes: 8 additions & 0 deletions packages/platform-bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
"author": "Effect contributors",
"license": "MIT",
"sideEffects": false,
"effect": {
"generateExports": {
"include": [
"*.ts",
"Http/*.ts"
]
}
},
"scripts": {
"build": "pnpm build-prepare && pnpm build-esm && pnpm build-cjs && pnpm build-annotate && build-utils pack-v2",
"build-prepare": "build-utils prepare-v2",
Expand Down
2 changes: 0 additions & 2 deletions packages/platform-node/docgen.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"exclude": ["src/internal/**/*.ts"],
"parseCompilerOptions": {
"noEmit": true,
"strict": true,
"target": "ES2022",
"lib": ["ES2022", "DOM"],
Expand All @@ -11,7 +10,6 @@
}
},
"examplesCompilerOptions": {
"noEmit": true,
"strict": true,
"target": "ES2022",
"lib": ["ES2022", "DOM"],
Expand Down
8 changes: 8 additions & 0 deletions packages/platform-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
"author": "Effect contributors",
"license": "MIT",
"sideEffects": false,
"effect": {
"generateExports": {
"include": [
"*.ts",
"Http/*.ts"
]
}
},
"scripts": {
"build": "pnpm build-prepare && pnpm build-esm && pnpm build-cjs && pnpm build-annotate && build-utils pack-v2",
"build-prepare": "build-utils prepare-v2",
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-node/src/HttpServer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* @since 1.0.0
*/
import * as request from "@effect/platform-node/Http/ServerRequest"
import * as app from "@effect/platform/Http/App"
import * as body from "@effect/platform/Http/Body"
import * as headers from "@effect/platform/Http/Headers"
Expand All @@ -13,6 +12,7 @@ import * as urlParams from "@effect/platform/Http/UrlParams"
import * as etag from "./Http/Etag.js"
import * as formData from "./Http/FormData.js"
import * as server from "./Http/Server.js"
import * as request from "./Http/ServerRequest.js"

export {
/**
Expand Down
8 changes: 8 additions & 0 deletions packages/platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
"author": "Effect contributors",
"license": "MIT",
"sideEffects": false,
"effect": {
"generateExports": {
"include": [
"*.ts",
"Http/*.ts"
]
}
},
"scripts": {
"build": "pnpm build-prepare && pnpm build-esm && pnpm build-cjs && pnpm build-annotate && build-utils pack-v2",
"build-prepare": "build-utils prepare-v2",
Expand Down
50 changes: 19 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 05fef78

Please sign in to comment.