express-fast-json-stringify 1.2.9 → 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-fast-json-stringify",
3
- "version": "1.2.9",
3
+ "version": "2.0.0",
4
4
  "description": "With express-fast-json-stringify, you can leverage fast-json-stringify in your Express application to improve JSON serialization performance",
5
5
  "main": "build/main/index.js",
6
6
  "typings": "build/main/index.d.ts",
@@ -22,68 +22,68 @@
22
22
  "build:main": "tsc -p tsconfig.json",
23
23
  "build:module": "tsc -p tsconfig.module.json",
24
24
  "fix": "run-s fix:*",
25
- "fix:prettier": "prettier \"src/**/*.ts\" --write",
26
- "fix:lint": "eslint src --ext .ts --fix",
25
+ "fix:prettier": "prettier \"{src,example}/**/*.ts\" --write",
26
+ "fix:lint": "eslint . --fix",
27
27
  "test": "run-s build test:*",
28
- "test:lint": "eslint src --ext .ts",
29
- "test:prettier": "prettier \"src/**/*.ts\" --list-different",
30
- "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"",
31
- "test:unit": "nyc --silent ava",
32
- "check-cli": "run-s test diff-integration-tests check-integration-tests",
33
- "check-integration-tests": "run-s check-integration-test:*",
34
- "diff-integration-tests": "mkdir -p diff && rm -rf diff/test && cp -r test diff/test && rm -rf diff/test/test-*/.git && cd diff && git init --quiet && git add -A && git commit --quiet --no-verify --allow-empty -m 'WIP' && echo '\\n\\nCommitted most recent integration test output in the \"diff\" directory. Review the changes with \"cd diff && git diff HEAD\" or your preferred git diff viewer.'",
28
+ "test:lint": "eslint .",
29
+ "test:prettier": "prettier \"{src,example}/**/*.ts\" --list-different",
30
+ "test:spelling": "cspell \"{README.md,.github/**/*.md,src/**/*.ts,example/**/*.ts}\"",
31
+ "test:types": "tsc -p tsconfig.spec.json",
32
+ "test:unit": "vitest run",
35
33
  "watch:build": "tsc -p tsconfig.json -w",
36
- "watch:test": "nyc --silent ava --watch",
37
- "cov": "run-s build test:unit cov:html cov:lcov && open-cli coverage/index.html",
38
- "cov:html": "nyc report --reporter=html",
39
- "cov:lcov": "nyc report --reporter=lcov",
40
- "cov:send": "run-s cov:lcov && codecov",
41
- "cov:check": "nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100",
42
- "doc": "run-s doc:html && open-cli build/docs/index.html",
43
- "doc:html": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs",
44
- "doc:json": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json",
34
+ "watch:test": "vitest",
35
+ "cov": "run-s cov:check cov:open",
36
+ "cov:check": "vitest run --coverage",
37
+ "cov:open": "open-cli coverage/index.html",
38
+ "doc": "run-s doc:html doc:open",
39
+ "doc:html": "typedoc src/index.ts --out build/docs",
40
+ "doc:open": "open-cli build/docs/index.html",
41
+ "doc:json": "typedoc src/index.ts --json build/docs/typedoc.json",
45
42
  "doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs",
46
- "version": "standard-version",
47
43
  "reset-hard": "git clean -dfx && git reset --hard && npm i",
48
- "prepare-release": "run-s reset-hard test cov:check doc:html version doc:publish"
44
+ "prepare-release": "run-s reset-hard test cov:check doc:html release doc:publish",
45
+ "example": "tsx example/index.ts",
46
+ "release": "release-it",
47
+ "example:openapi": "tsx example/openapi.ts",
48
+ "prepare": "husky"
49
49
  },
50
50
  "engines": {
51
- "node": ">=18"
51
+ "node": ">=20"
52
52
  },
53
53
  "dependencies": {
54
- "fast-json-stringify": "^6.2.0"
54
+ "fast-json-stringify": "^6.2.0 || ^7.0.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@ava/typescript": "^6.0.0",
58
- "@eslint/compat": "^2.0.1",
59
- "@eslint/eslintrc": "^3.3.3",
60
- "@eslint/js": "^9.39.2",
61
- "@istanbuljs/nyc-config-typescript": "^1.0.2",
57
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
58
+ "@eslint/js": "^10.0.1",
59
+ "@release-it/conventional-changelog": "^11.0.1",
62
60
  "@types/express": "^5.0.6",
63
- "@types/node": "^25.0.9",
64
- "@types/supertest": "^6.0.3",
65
- "@typescript-eslint/eslint-plugin": "^8.53.0",
66
- "@typescript-eslint/parser": "^8.53.0",
67
- "ava": "^6.4.1",
68
- "codecov": "^3.8.3",
69
- "cspell": "^9.6.0",
70
- "cz-conventional-changelog": "^3.3.0",
71
- "eslint": "^9.39.2",
61
+ "@types/node": "^26.1.1",
62
+ "@types/supertest": "^7.2.1",
63
+ "@vitest/coverage-v8": "^4.1.10",
64
+ "cspell": "^10.0.1",
65
+ "eslint": "^10.8.0",
72
66
  "eslint-config-prettier": "^10.1.8",
73
- "eslint-plugin-eslint-comments": "^3.2.0",
74
- "eslint-plugin-functional": "^9.0.2",
75
- "eslint-plugin-import": "^2.32.0",
67
+ "eslint-plugin-functional": "^10.0.0",
68
+ "eslint-plugin-import-x": "^4.17.1",
76
69
  "express": "^5.2.1",
70
+ "fulmine.js": "^5.21.2",
77
71
  "gh-pages": "^6.3.0",
78
- "npm-run-all": "^4.1.5",
79
- "nyc": "^17.1.0",
80
- "open-cli": "^8.0.0",
81
- "prettier": "^3.8.0",
82
- "standard-version": "^9.5.0",
72
+ "husky": "^9.1.7",
73
+ "lint-staged": "^17.2.0",
74
+ "npm-run-all2": "^9.0.2",
75
+ "open-cli": "^9.0.0",
76
+ "prettier": "^3.9.6",
77
+ "release-it": "^20.2.1",
83
78
  "supertest": "^7.2.2",
84
- "ts-node": "^10.9.2",
85
- "typedoc": "^0.28.16",
86
- "typescript": "^5.9.3"
79
+ "tsx": "^4.23.1",
80
+ "typedoc": "^0.28.20",
81
+ "typescript": "^6.0.3",
82
+ "typescript-eslint": "^8.65.0",
83
+ "vitest": "^4.1.10"
84
+ },
85
+ "peerDependencies": {
86
+ "express": "^4.16.0 || ^5.0.0"
87
87
  },
88
88
  "files": [
89
89
  "build/main",
@@ -94,34 +94,11 @@
94
94
  "LICENSE",
95
95
  "README.md"
96
96
  ],
97
- "ava": {
98
- "failFast": true,
99
- "timeout": "60s",
100
- "typescript": {
101
- "compile": false,
102
- "rewritePaths": {
103
- "src/": "build/main/"
104
- }
105
- },
106
- "files": [
107
- "!build/module/**"
108
- ]
109
- },
110
- "config": {
111
- "commitizen": {
112
- "path": "cz-conventional-changelog"
113
- }
114
- },
115
97
  "prettier": {
116
- "singleQuote": true
117
- },
118
- "nyc": {
119
- "extends": "@istanbuljs/nyc-config-typescript",
120
- "exclude": [
121
- "**/*.spec.js"
122
- ]
98
+ "singleQuote": true,
99
+ "printWidth": 180
123
100
  },
124
- "peerDependencies": {
125
- "fast-json-stringify": "^6.2.0"
101
+ "lint-staged": {
102
+ "*": "prettier --write --ignore-unknown"
126
103
  }
127
104
  }