dx-server 0.10.1 → 0.10.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 (2) hide show
  1. package/README.md +6 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,32 +1,25 @@
1
1
  # dx-server
2
2
 
3
- A modern, unopinionated, and performant Node.js server framework built on AsyncLocalStorage for elegant request/response handling without prop drilling.
3
+ A modern, unopinionated, and performant Node.js server framework built on AsyncLocalStorage for elegant API interfaces.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/dx-server.svg)](https://www.npmjs.com/package/dx-server)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
7
 
8
8
  ## Features
9
9
 
10
- - 🚀 **Context-based architecture** - Access request/response from anywhere using AsyncLocalStorage
10
+ - 🎯 **Elegant API interface** - No need to pass req/res objects through middleware chains
11
11
  - 🔗 **Chainable middleware** - Elegant middleware composition with [jchain](https://www.npmjs.com/package/jchain)
12
- - 🎯 **Type-safe** - Written in TypeScript with comprehensive type definitions
12
+ - 🚀 **Context-based architecture** - Access request/response from anywhere using AsyncLocalStorage
13
13
  - 🔄 **Express compatible** - Use existing Express middleware and applications
14
14
  - 📦 **Zero dependencies** - No runtime dependencies, all functionality built-in
15
15
  - 🛡️ **Built-in body parsing** - JSON, text, URL-encoded, and raw body parsing with size limits
16
- - 🗂️ **Static file serving** - Efficient static file handling with ETag support
17
- - 🔀 **Modern routing** - URLPattern-based routing (not Express patterns)
16
+ - 🗂️ **Static file serving** - Efficient static file handling with ETag, Range, and Last-Modified support
17
+ - 🔀 **Modern routing** - URLPattern-based routing
18
18
 
19
19
  ## Installation
20
20
 
21
21
  ```bash
22
- # npm
23
- npm install dx-server jchain
24
-
25
- # yarn
26
- yarn add dx-server jchain
27
-
28
- # pnpm
29
- pnpm add dx-server jchain
22
+ npm i dx-server jchain
30
23
  ```
31
24
 
32
25
  ### URLPattern Support
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dx-server",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "main": "./cjs/index.js",
5
5
  "homepage": "https://github.com/tranvansang/dx-server",
6
6
  "repository": "https://github.com/tranvansang/dx-server",