nhb-toolbox 4.14.2 → 4.14.3
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
CHANGED
|
@@ -6,6 +6,10 @@ All notable changes to the package will be documented here.
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [4.14.1-3] - 2025-08-11 - 2025-08-12
|
|
10
|
+
|
|
11
|
+
- **Updated** JSDoc, dev dependencies and **fixed** minor issues.
|
|
12
|
+
|
|
9
13
|
## [4.14.0] - 2025-08-11
|
|
10
14
|
|
|
11
15
|
- **Added** new class `HttpStatus` for retrieving and managing HTTP status codes.
|
|
@@ -8,10 +8,10 @@ const constants_1 = require("./constants");
|
|
|
8
8
|
* @remarks
|
|
9
9
|
* - Supports lookup by code or name (both `SOME_NAME` and `Some Name` formats).
|
|
10
10
|
* - Allows adding custom codes and overriding messages for existing ones.
|
|
11
|
-
* - Provides pre-grouped categories for quick filtering (see {@link HttpStatus.Groups}).
|
|
11
|
+
* - Provides pre-grouped categories for quick filtering (see {@link https://nhb-toolbox.vercel.app/docs/classes/HttpStatus#groups-static-property HttpStatus.Groups}).
|
|
12
12
|
* - Intended to be reusable — create multiple instances if you want separate registries.
|
|
13
13
|
*
|
|
14
|
-
* @see {@link httpStatus} for the default preloaded singleton instance.
|
|
14
|
+
* @see {@link https://nhb-toolbox.vercel.app/docs/utilities/misc/httpStatus httpStatus} for the default preloaded singleton instance.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```ts
|
|
@@ -135,7 +135,7 @@ class HttpStatus {
|
|
|
135
135
|
}
|
|
136
136
|
exports.HttpStatus = HttpStatus;
|
|
137
137
|
/**
|
|
138
|
-
* * Default singleton instance of {@link HttpStatus} class.
|
|
138
|
+
* * Default singleton instance of {@link https://nhb-toolbox.vercel.app/docs/classes/HttpStatus HttpStatus} class.
|
|
139
139
|
*
|
|
140
140
|
* @remarks
|
|
141
141
|
* - Preloaded with all MDN-based HTTP status codes.
|
|
@@ -5,10 +5,10 @@ import type { HttpStatusName, StatusCategory, StatusCode, StatusEntry } from './
|
|
|
5
5
|
* @remarks
|
|
6
6
|
* - Supports lookup by code or name (both `SOME_NAME` and `Some Name` formats).
|
|
7
7
|
* - Allows adding custom codes and overriding messages for existing ones.
|
|
8
|
-
* - Provides pre-grouped categories for quick filtering (see {@link HttpStatus.Groups}).
|
|
8
|
+
* - Provides pre-grouped categories for quick filtering (see {@link https://nhb-toolbox.vercel.app/docs/classes/HttpStatus#groups-static-property HttpStatus.Groups}).
|
|
9
9
|
* - Intended to be reusable — create multiple instances if you want separate registries.
|
|
10
10
|
*
|
|
11
|
-
* @see {@link httpStatus} for the default preloaded singleton instance.
|
|
11
|
+
* @see {@link https://nhb-toolbox.vercel.app/docs/utilities/misc/httpStatus httpStatus} for the default preloaded singleton instance.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
@@ -80,7 +80,7 @@ export declare class HttpStatus {
|
|
|
80
80
|
list(category?: StatusCategory): StatusEntry[];
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* * Default singleton instance of {@link HttpStatus} class.
|
|
83
|
+
* * Default singleton instance of {@link https://nhb-toolbox.vercel.app/docs/classes/HttpStatus HttpStatus} class.
|
|
84
84
|
*
|
|
85
85
|
* @remarks
|
|
86
86
|
* - Preloaded with all MDN-based HTTP status codes.
|
|
@@ -5,10 +5,10 @@ import { HTTP_STATUS_DATA } from './constants.js';
|
|
|
5
5
|
* @remarks
|
|
6
6
|
* - Supports lookup by code or name (both `SOME_NAME` and `Some Name` formats).
|
|
7
7
|
* - Allows adding custom codes and overriding messages for existing ones.
|
|
8
|
-
* - Provides pre-grouped categories for quick filtering (see {@link HttpStatus.Groups}).
|
|
8
|
+
* - Provides pre-grouped categories for quick filtering (see {@link https://nhb-toolbox.vercel.app/docs/classes/HttpStatus#groups-static-property HttpStatus.Groups}).
|
|
9
9
|
* - Intended to be reusable — create multiple instances if you want separate registries.
|
|
10
10
|
*
|
|
11
|
-
* @see {@link httpStatus} for the default preloaded singleton instance.
|
|
11
|
+
* @see {@link https://nhb-toolbox.vercel.app/docs/utilities/misc/httpStatus httpStatus} for the default preloaded singleton instance.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
@@ -131,7 +131,7 @@ export class HttpStatus {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
|
-
* * Default singleton instance of {@link HttpStatus} class.
|
|
134
|
+
* * Default singleton instance of {@link https://nhb-toolbox.vercel.app/docs/classes/HttpStatus HttpStatus} class.
|
|
135
135
|
*
|
|
136
136
|
* @remarks
|
|
137
137
|
* - Preloaded with all MDN-based HTTP status codes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nhb-toolbox",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.3",
|
|
4
4
|
"description": "A versatile collection of smart, efficient, and reusable utility functions and classes for everyday development needs.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
},
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@eslint/js": "^9.
|
|
42
|
-
"@types/jest": "^
|
|
43
|
-
"@types/node": "^
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
45
|
-
"@typescript-eslint/parser": "^8.
|
|
46
|
-
"eslint": "^9.
|
|
47
|
-
"eslint-config-prettier": "^10.1.
|
|
48
|
-
"eslint-plugin-prettier": "^5.4
|
|
49
|
-
"globals": "^16.
|
|
41
|
+
"@eslint/js": "^9.33.0",
|
|
42
|
+
"@types/jest": "^30.0.0",
|
|
43
|
+
"@types/node": "^24.2.1",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^8.39.0",
|
|
45
|
+
"@typescript-eslint/parser": "^8.39.0",
|
|
46
|
+
"eslint": "^9.33.0",
|
|
47
|
+
"eslint-config-prettier": "^10.1.8",
|
|
48
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
49
|
+
"globals": "^16.3.0",
|
|
50
50
|
"husky": "^9.1.7",
|
|
51
|
-
"jest": "^
|
|
52
|
-
"lint-staged": "^16.1.
|
|
53
|
-
"nhb-scripts": "^1.8.
|
|
54
|
-
"prettier": "^3.
|
|
55
|
-
"ts-jest": "^29.
|
|
56
|
-
"typescript": "^5.
|
|
57
|
-
"typescript-eslint": "^8.
|
|
51
|
+
"jest": "^30.0.5",
|
|
52
|
+
"lint-staged": "^16.1.5",
|
|
53
|
+
"nhb-scripts": "^1.8.54",
|
|
54
|
+
"prettier": "^3.6.2",
|
|
55
|
+
"ts-jest": "^29.4.1",
|
|
56
|
+
"typescript": "^5.9.2",
|
|
57
|
+
"typescript-eslint": "^8.39.0"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
60
60
|
"toolbox",
|