@fluojs/platform-nodejs 1.0.0-beta.2 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ko.md +3 -3
- package/README.md +3 -3
- package/package.json +3 -3
package/README.ko.md
CHANGED
|
@@ -51,11 +51,11 @@ const adapter = createNodejsAdapter({
|
|
|
51
51
|
key: fs.readFileSync('key.pem'),
|
|
52
52
|
cert: fs.readFileSync('cert.pem'),
|
|
53
53
|
},
|
|
54
|
-
maxBodySize:
|
|
54
|
+
maxBodySize: 1_048_576,
|
|
55
55
|
});
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
`maxBodySize`는 raw Node 요청 바디가 아직 스트리밍되는 동안 바로 강제되며, 부트스트랩 시 `multipart.maxTotalSize`를 따로 재정의하지 않으면 같은 값이 멀티파트 전체 페이로드 한도의 기본값으로도 사용됩니다.
|
|
58
|
+
`maxBodySize`는 바이트 수를 나타내는 숫자만 받습니다. 이 값은 raw Node 요청 바디가 아직 스트리밍되는 동안 바로 강제되며, 부트스트랩 시 `multipart.maxTotalSize`를 따로 재정의하지 않으면 같은 값이 멀티파트 전체 페이로드 한도의 기본값으로도 사용됩니다.
|
|
59
59
|
|
|
60
60
|
### 직접 애플리케이션 실행
|
|
61
61
|
`runNodejsApplication`을 사용하여 graceful shutdown 및 로깅이 포함된 보일러플레이트 없는 시작이 가능합니다.
|
|
@@ -76,7 +76,7 @@ await runNodejsApplication(AppModule, {
|
|
|
76
76
|
## 동작 계약
|
|
77
77
|
|
|
78
78
|
- `createNodejsAdapter(options)`는 Node 내장 `http` 또는 `https` 서버 primitive 위에서 fluo를 직접 실행하는 adapter-first 진입점입니다.
|
|
79
|
-
- `maxBodySize`는 raw Node 요청 바이트가 아직 스트리밍되는 동안
|
|
79
|
+
- `maxBodySize`는 바이트 수를 나타내는 숫자만 받으며, raw Node 요청 바이트가 아직 스트리밍되는 동안 강제되고, 부트스트랩/실행 헬퍼에서 `multipart.maxTotalSize`를 명시적으로 제공하지 않으면 멀티파트 전체 크기 한도의 기본값이 됩니다.
|
|
80
80
|
- `bootstrapNodejsApplication(module, options)`는 raw Node 어댑터가 포함된 애플리케이션을 만들지만 리스닝은 시작하지 않으므로 이후 `app.listen()`과 `app.close()` 생명주기는 호출자가 소유합니다.
|
|
81
81
|
- `runNodejsApplication(module, options)`는 부트스트랩, 리스닝 시작, graceful shutdown 배선을 함께 수행합니다. 시그널 기반 종료가 타임아웃되거나 실패하면 해당 상태를 로그와 `process.exitCode`로 보고하며, 최종 프로세스 종료는 호스트 프로세스가 계속 소유합니다.
|
|
82
82
|
- 고급 압축 및 shutdown 유틸리티 함수는 이 기본 platform startup surface가 아니라 `@fluojs/runtime/node` 또는 runtime 내부 seam에 남아 있습니다.
|
package/README.md
CHANGED
|
@@ -51,11 +51,11 @@ const adapter = createNodejsAdapter({
|
|
|
51
51
|
key: fs.readFileSync('key.pem'),
|
|
52
52
|
cert: fs.readFileSync('cert.pem'),
|
|
53
53
|
},
|
|
54
|
-
maxBodySize:
|
|
54
|
+
maxBodySize: 1_048_576,
|
|
55
55
|
});
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
`maxBodySize` is enforced while the raw Node request body is still streaming, and the same limit becomes the default total multipart payload cap unless you override `multipart.maxTotalSize` during bootstrap.
|
|
58
|
+
`maxBodySize` accepts a byte count number. It is enforced while the raw Node request body is still streaming, and the same limit becomes the default total multipart payload cap unless you override `multipart.maxTotalSize` during bootstrap.
|
|
59
59
|
|
|
60
60
|
### Direct Application Execution
|
|
61
61
|
You can use `runNodejsApplication` for a zero-boilerplate startup that includes graceful shutdown and logging.
|
|
@@ -76,7 +76,7 @@ await runNodejsApplication(AppModule, {
|
|
|
76
76
|
## Behavioral Contracts
|
|
77
77
|
|
|
78
78
|
- `createNodejsAdapter(options)` is the adapter-first entrypoint for running fluo directly on Node's built-in `http` or `https` server primitives.
|
|
79
|
-
- `maxBodySize` is enforced while raw Node request bytes are still streaming, and
|
|
79
|
+
- `maxBodySize` accepts a byte count number, is enforced while raw Node request bytes are still streaming, and becomes the default multipart total-size cap unless `multipart.maxTotalSize` is explicitly provided through the bootstrap/run helpers.
|
|
80
80
|
- `bootstrapNodejsApplication(module, options)` creates an application with the raw Node adapter but does not start listening, so the caller owns the subsequent `app.listen()` and `app.close()` lifecycle.
|
|
81
81
|
- `runNodejsApplication(module, options)` bootstraps, starts, and wires graceful shutdown. When signal-driven shutdown times out or fails, it logs the condition and sets `process.exitCode`; final process termination remains owned by the host process.
|
|
82
82
|
- Advanced compression and shutdown utility functions remain on `@fluojs/runtime/node` or internal runtime seams rather than this primary platform startup surface.
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"platform",
|
|
10
10
|
"server"
|
|
11
11
|
],
|
|
12
|
-
"version": "1.0.0-beta.
|
|
12
|
+
"version": "1.0.0-beta.4",
|
|
13
13
|
"private": false,
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"repository": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@fluojs/http": "^1.0.0-beta.
|
|
40
|
-
"@fluojs/runtime": "^1.0.0-beta.
|
|
39
|
+
"@fluojs/http": "^1.0.0-beta.5",
|
|
40
|
+
"@fluojs/runtime": "^1.0.0-beta.7"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"vitest": "^3.2.4"
|