@travetto/web-http 7.0.0-rc.6 → 7.0.0

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.md CHANGED
@@ -16,7 +16,7 @@ yarn add @travetto/web-http
16
16
  This module provides basic for running [http](https://nodejs.org/api/http.html). [https](https://nodejs.org/api/https.html) and [http2](https://nodejs.org/api/http2.html) servers, along with support for tls key generation during development.
17
17
 
18
18
  ## Running a Server
19
- By default, the framework provides a default [@CliCommand](https://github.com/travetto/travetto/tree/main/module/cli/src/registry/decorator.ts#L85) for [WebHttpServer](https://github.com/travetto/travetto/tree/main/module/web-http/src/types.ts#L19) that will follow default behaviors, and spin up the server.
19
+ By default, the framework provides a default [@CliCommand](https://github.com/travetto/travetto/tree/main/module/cli/src/registry/decorator.ts#L98) for [WebHttpServer](https://github.com/travetto/travetto/tree/main/module/web-http/src/types.ts#L19) that will follow default behaviors, and spin up the server.
20
20
 
21
21
  **Terminal: Standard application**
22
22
  ```bash
@@ -33,7 +33,6 @@ Initialized {
33
33
  path: './doc-exec',
34
34
  mono: false,
35
35
  manager: 'npm',
36
- type: 'commonjs',
37
36
  defaultEnv: 'local'
38
37
  }
39
38
  },
@@ -151,7 +150,7 @@ export class WebHttpConfig {
151
150
  ```
152
151
 
153
152
  ### Creating a Custom CLI Entry Point
154
- To customize a Web server, you may need to construct an entry point using the [@CliCommand](https://github.com/travetto/travetto/tree/main/module/cli/src/registry/decorator.ts#L85) decorator. This could look like:
153
+ To customize a Web server, you may need to construct an entry point using the [@CliCommand](https://github.com/travetto/travetto/tree/main/module/cli/src/registry/decorator.ts#L98) decorator. This could look like:
155
154
 
156
155
  **Code: Application entry point for Web Applications**
157
156
  ```typescript
@@ -203,7 +202,6 @@ Initialized {
203
202
  path: './doc-exec',
204
203
  mono: false,
205
204
  manager: 'npm',
206
- type: 'commonjs',
207
205
  defaultEnv: 'local'
208
206
  }
209
207
  },
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@travetto/web-http",
3
- "version": "7.0.0-rc.6",
3
+ "version": "7.0.0",
4
+ "type": "module",
4
5
  "description": "Web HTTP Server Support",
5
6
  "keywords": [
6
7
  "web",
@@ -26,11 +27,11 @@
26
27
  "directory": "module/web-http"
27
28
  },
28
29
  "dependencies": {
29
- "@travetto/web": "^7.0.0-rc.5"
30
+ "@travetto/web": "^7.0.0"
30
31
  },
31
32
  "peerDependencies": {
32
- "@travetto/cli": "^7.0.0-rc.4",
33
- "@travetto/test": "^7.0.0-rc.4"
33
+ "@travetto/cli": "^7.0.0",
34
+ "@travetto/test": "^7.0.0"
34
35
  },
35
36
  "peerDependenciesMeta": {
36
37
  "@travetto/test": {
@@ -9,7 +9,7 @@ import type { WebHttpServer } from '../src/types.ts';
9
9
  /**
10
10
  * Run a web server
11
11
  */
12
- @CliCommand({ runTarget: true, with: { debugIpc: true, restartForDev: true, module: true, env: true } })
12
+ @CliCommand({ runTarget: true, with: { debugIpc: 'optional', restartOnChange: true, module: true, env: true } })
13
13
  export class WebHttpCommand implements CliCommandShape {
14
14
 
15
15
  /** Port to run on */
@@ -5,7 +5,6 @@ import { Inject, Injectable } from '@travetto/di';
5
5
  import { WebFilterContext, WebResponse, WebDispatcher, WebBodyUtil } from '@travetto/web';
6
6
  import { castTo } from '@travetto/runtime';
7
7
 
8
-
9
8
  import { WebTestDispatchUtil } from '@travetto/web/support/test/dispatch-util.ts';
10
9
 
11
10
  import { WebHttpConfig } from '../../src/config.ts';