express-fast-json-stringify 1.1.2 → 1.2.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/CHANGELOG.md +9 -0
- package/README.md +3 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.2.0](https://github.com/nigrosimone/express-fast-json-stringify/compare/v1.1.4...v1.2.0) (2024-09-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add options ([9466dc3](https://github.com/nigrosimone/express-fast-json-stringify/commit/9466dc30c20693a7ceabf2240d5d9701c76280c0))
|
|
11
|
+
|
|
12
|
+
### [1.1.4](https://github.com/nigrosimone/express-fast-json-stringify/compare/v1.1.2...v1.1.4) (2024-09-29)
|
|
13
|
+
|
|
5
14
|
### [1.1.2](https://github.com/nigrosimone/express-fast-json-stringify/compare/v1.1.0...v1.1.2) (2024-09-29)
|
|
6
15
|
|
|
7
16
|
## 1.1.0 (2024-09-29)
|
package/README.md
CHANGED
|
@@ -43,6 +43,8 @@ app.get('/', fastJsonSchema(schema), (req, res, next) => {
|
|
|
43
43
|
});
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
See the stackblitz [demo](https://stackblitz.com/edit/express-fast-json-stringify).
|
|
47
|
+
|
|
46
48
|
## How to Use
|
|
47
49
|
|
|
48
50
|
1. Install the package:
|
|
@@ -74,7 +76,7 @@ const schema: Schema = {
|
|
|
74
76
|
};
|
|
75
77
|
```
|
|
76
78
|
|
|
77
|
-
3.
|
|
79
|
+
3. Apply the `fastJsonSchema` middleware to your Express route, passing in the schema object, eg.:
|
|
78
80
|
|
|
79
81
|
```ts
|
|
80
82
|
import { fastJsonSchema, Schema } from 'express-fast-json-stringify';
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-fast-json-stringify",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "With express-fast-json-stringify, you can leverage fast-json-stringify in your Express application",
|
|
5
5
|
"main": "build/main/index.js",
|
|
6
6
|
"typings": "build/main/index.d.ts",
|
|
7
7
|
"module": "build/module/index.js",
|
|
8
8
|
"repository": "https://github.com/nigrosimone/express-fast-json-stringify",
|
|
9
9
|
"license": "MIT",
|
|
10
|
-
"keywords": [
|
|
10
|
+
"keywords": [
|
|
11
|
+
"express",
|
|
12
|
+
"fast-json-stringify"
|
|
13
|
+
],
|
|
11
14
|
"scripts": {
|
|
12
15
|
"build": "run-p build:*",
|
|
13
16
|
"build:main": "tsc -p tsconfig.json",
|