@d1g1tal/transportr 2.0.0 → 2.1.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@d1g1tal/transportr",
3
3
  "author": "D1g1talEntr0py",
4
- "version": "2.0.0",
4
+ "version": "2.1.1",
5
5
  "license": "ISC",
6
6
  "description": "JavaScript wrapper for the Fetch API and more...",
7
7
  "homepage": "https://github.com/D1g1talEntr0py/transportr#readme",
@@ -19,13 +19,29 @@
19
19
  }
20
20
  ],
21
21
  "engines": {
22
- "node": ">=22.0.0"
22
+ "node": ">=20.0.0"
23
23
  },
24
24
  "type": "module",
25
25
  "exports": {
26
26
  ".": {
27
27
  "types": "./dist/transportr.d.ts",
28
28
  "import": "./dist/transportr.js"
29
+ },
30
+ "./headers": {
31
+ "types": "./dist/http-request-headers.d.ts",
32
+ "import": "./dist/http-request-headers.js"
33
+ },
34
+ "./response-headers": {
35
+ "types": "./dist/http-response-headers.d.ts",
36
+ "import": "./dist/http-response-headers.js"
37
+ },
38
+ "./methods": {
39
+ "types": "./dist/http-request-methods.d.ts",
40
+ "import": "./dist/http-request-methods.js"
41
+ },
42
+ "./media-types": {
43
+ "types": "./dist/http-media-type.d.ts",
44
+ "import": "./dist/http-media-type.js"
29
45
  }
30
46
  },
31
47
  "publishConfig": {
@@ -39,8 +55,15 @@
39
55
  "dependencies": {
40
56
  "@d1g1tal/media-type": "^6.0.4",
41
57
  "@d1g1tal/subscribr": "^4.1.8",
42
- "dompurify": "^3.3.3",
43
- "jsdom": "^28.1.0"
58
+ "dompurify": "^3.3.3"
59
+ },
60
+ "peerDependencies": {
61
+ "jsdom": ">=25.0.0"
62
+ },
63
+ "peerDependenciesMeta": {
64
+ "jsdom": {
65
+ "optional": true
66
+ }
44
67
  },
45
68
  "devDependencies": {
46
69
  "@d1g1tal/tsbuild": "^1.6.0",
@@ -55,6 +78,7 @@
55
78
  "@xmldom/xmldom": "^0.9.8",
56
79
  "eslint": "^10.0.3",
57
80
  "eslint-plugin-compat": "^7.0.1",
81
+ "jsdom": "^28.1.0",
58
82
  "eslint-plugin-jsdoc": "^62.8.0",
59
83
  "globals": "^17.4.0",
60
84
  "typescript": "^5.9.3",
@@ -65,7 +89,7 @@
65
89
  ">0.3% and not dead",
66
90
  "defaults and fully supports es6-module",
67
91
  "not iOS <= 16.1",
68
- "node >= 19.0.0"
92
+ "node >= 20.0.0"
69
93
  ],
70
94
  "keywords": [
71
95
  "Fetch",
@@ -81,6 +105,7 @@
81
105
  ],
82
106
  "scripts": {
83
107
  "build": "tsbuild",
108
+ "build:release": "tsbuild --minify --force",
84
109
  "build:watch": "tsbuild --watch",
85
110
  "type-check": "tsbuild --noEmit",
86
111
  "lint": "eslint ./src",