@web-ts-toolkit/express-response-handler 0.44.0 → 0.46.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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -80,6 +80,7 @@ Root entrypoint (`@web-ts-toolkit/express-response-handler`):
80
80
  - `HttpResponse`
81
81
  - `createHandler(...)`
82
82
  - `ErrorFormats`
83
+ - `CSVResponse`, `Response`, and 10 success classes: `Accepted`, `AlreadyReported`, `Created`, `IMUsed`, `MultiStatus`, `NoContent`, `NonAuthoritativeInfo`, `OK`, `PartialContent`, `ResetContent`
83
84
 
84
85
  Subpath entrypoints:
85
86
 
@@ -91,6 +92,7 @@ Subpath entrypoints:
91
92
  ### Subpath import example
92
93
 
93
94
  ```ts
95
+ import { handleResponse } from '@web-ts-toolkit/express-response-handler';
94
96
  import { Created, NoContent } from '@web-ts-toolkit/express-response-handler/responses/success';
95
97
 
96
98
  async function createUser() {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@web-ts-toolkit/express-response-handler",
3
3
  "description": "FastAPI-style return-value response handling for Express",
4
4
  "homepage": "https://web-ts-toolkit.pages.dev/docs/packages/express-response-handler",
5
- "version": "0.44.0",
5
+ "version": "0.46.0",
6
6
  "sideEffects": false,
7
7
  "keywords": [
8
8
  "express",
@@ -72,8 +72,8 @@
72
72
  "dependencies": {
73
73
  "@fast-csv/format": "^5.0.7",
74
74
  "@types/express-serve-static-core": "^5.1.1",
75
- "@web-ts-toolkit/http-errors": "0.44.0",
76
- "@web-ts-toolkit/utils": "0.44.0"
75
+ "@web-ts-toolkit/http-errors": "0.46.0",
76
+ "@web-ts-toolkit/utils": "0.46.0"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "express": "^5.0.0"