@frost.js/adapter-node 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +18 -5
  3. package/package.json +5 -5
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Frost contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Frost contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # @frost.js/adapter-node
2
2
 
3
- Node.js http adapter for Frost: request bridge, static file serving, compression.
3
+ Node.js `http` adapter for [Frost](https://github.com/ben-bader/Frost): static file serving with path containment, content-negotiated compression, `/healthz`, and graceful shutdown.
4
4
 
5
- Part of the [Frost](https://frostjs.dev) framework monorepo
6
- ([github.com/ben-bader/Frost](https://github.com/ben-bader/Frost)).
5
+ `frost start` uses this automatically — import `createNodeServer` directly for a custom listener or embedding.
7
6
 
8
7
  ## Install
9
8
 
@@ -11,5 +10,19 @@ Part of the [Frost](https://frostjs.dev) framework monorepo
11
10
  npm install @frost.js/adapter-node
12
11
  ```
13
12
 
14
- See the repository docs for routing, data loading, contracts, middleware,
15
- deployment, and the full API surface.
13
+ ## Example
14
+
15
+ ```ts
16
+ import { createNodeServer } from "@frost.js/adapter-node";
17
+
18
+ const server = createNodeServer({
19
+ port: 3000,
20
+ staticDirs: ["public", ".frost/client"],
21
+ handleRequest, // from createRequestHandler
22
+ });
23
+ server.listen();
24
+ ```
25
+
26
+ ## Docs
27
+
28
+ [docs/api/adapter-node.md](https://github.com/ben-bader/Frost/blob/main/docs/api/adapter-node.md) · [Deployment](https://github.com/ben-bader/Frost/blob/main/docs/guides/deployment.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frost.js/adapter-node",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Node.js http adapter for Frost: request bridge, static file serving, compression",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,10 +12,10 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@frost.js/core": "^0.1.1",
16
- "@frost.js/router": "^0.1.1",
17
- "@frost.js/server": "^0.1.1",
18
- "@frost.js/react": "^0.1.1"
15
+ "@frost.js/core": "^0.1.2",
16
+ "@frost.js/router": "^0.1.2",
17
+ "@frost.js/server": "^0.1.2",
18
+ "@frost.js/react": "^0.1.2"
19
19
  },
20
20
  "publishConfig": {
21
21
  "access": "public"