nightingale-web-processor 16.0.0 → 18.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/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [18.0.0](https://github.com/christophehurpeau/nightingale/compare/v17.0.1...v18.0.0) (2025-11-15)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * drop node 20
11
+
12
+ ### Features
13
+
14
+ * update dependencies
15
+
16
+ Version bump for dependency: nightingale-types
17
+
18
+
19
+ ## [17.0.0](https://github.com/christophehurpeau/nightingale/compare/v16.2.0...v17.0.0) (2025-10-20)
20
+
21
+ Version bump for dependency: nightingale-types
22
+
23
+
6
24
  ## [16.0.0](https://github.com/christophehurpeau/nightingale/compare/v15.0.0...v16.0.0) (2025-03-30)
7
25
 
8
26
  ### ⚠ BREAKING CHANGES
@@ -12,4 +12,4 @@ function webProcessor(record, context) {
12
12
  }
13
13
 
14
14
  export { webProcessor as default };
15
- //# sourceMappingURL=index-node20.mjs.map
15
+ //# sourceMappingURL=index-node.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-node.mjs","sources":["../src/index.ts"],"sourcesContent":["import type { IncomingMessage } from \"node:http\";\nimport type { LogRecord, Metadata } from \"nightingale-types\";\n\nexport interface ContextWithOptionalRequest {\n request?: IncomingMessage;\n}\n\nexport default function webProcessor<T extends Metadata>(\n record: LogRecord<T>,\n context?: ContextWithOptionalRequest,\n): void {\n const request = context?.request;\n if (request) {\n record.extra = record.extra || {};\n Object.assign(record.extra, {\n url: request.url,\n method: request.method,\n server: request.headers.host,\n ip: request.headers[\"x-forwarded-for\"] || request.socket.remoteAddress,\n });\n }\n}\n"],"names":[],"mappings":"AAOA,SAAwB,YAAA,CACtB,QACA,OAAA,EACM;AACN,EAAA,MAAM,UAAU,OAAA,EAAS,OAAA;AACzB,EAAA,IAAI,OAAA,EAAS;AACX,IAAA,MAAA,CAAO,KAAA,GAAQ,MAAA,CAAO,KAAA,IAAS,EAAC;AAChC,IAAA,MAAA,CAAO,MAAA,CAAO,OAAO,KAAA,EAAO;AAAA,MAC1B,KAAK,OAAA,CAAQ,GAAA;AAAA,MACb,QAAQ,OAAA,CAAQ,MAAA;AAAA,MAChB,MAAA,EAAQ,QAAQ,OAAA,CAAQ,IAAA;AAAA,MACxB,IAAI,OAAA,CAAQ,OAAA,CAAQ,iBAAiB,CAAA,IAAK,QAAQ,MAAA,CAAO;AAAA,KAC1D,CAAA;AAAA,EACH;AACF;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-web-processor",
3
- "version": "16.0.0",
3
+ "version": "18.0.0",
4
4
  "description": "Nightingale web processor",
5
5
  "keywords": [
6
6
  "nightingale",
@@ -16,17 +16,17 @@
16
16
  "homepage": "https://github.com/christophehurpeau/nightingale",
17
17
  "type": "module",
18
18
  "engines": {
19
- "node": ">=20.9.0"
19
+ "node": ">=22.18.0"
20
20
  },
21
21
  "sideEffects": false,
22
- "main": "./dist/index-node20.mjs",
22
+ "main": "./dist/index-node.mjs",
23
23
  "types": "./dist/definitions/index.d.ts",
24
24
  "exports": {
25
25
  "./package.json": "./package.json",
26
26
  ".": {
27
27
  "types": "./dist/definitions/index.d.ts",
28
28
  "node": {
29
- "import": "./dist/index-node20.mjs"
29
+ "import": "./dist/index-node.mjs"
30
30
  }
31
31
  }
32
32
  },
@@ -38,31 +38,32 @@
38
38
  "build": "yarn clean:build && rollup --config rollup.config.mjs && yarn run build:definitions",
39
39
  "build:definitions": "tsc -p tsconfig.json",
40
40
  "clean": "yarn clean:build",
41
- "clean:build": "pob-babel-clean-out dist",
41
+ "clean:build": "pob-esbuild-clean-out dist",
42
42
  "lint": "yarn run lint:eslint",
43
43
  "lint:eslint": "yarn ../.. run eslint --quiet packages/nightingale-web-processor",
44
44
  "watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
45
45
  },
46
46
  "pob": {
47
- "bundler": "rollup-babel",
47
+ "bundler": "rollup-esbuild",
48
48
  "entries": [
49
49
  "index"
50
50
  ],
51
51
  "envs": [
52
52
  {
53
53
  "target": "node",
54
- "version": "20"
54
+ "version": "22",
55
+ "omitVersionInFileName": true
55
56
  }
56
- ]
57
+ ],
58
+ "typescript": true
57
59
  },
58
60
  "prettier": "@pob/root/prettier-config",
59
61
  "dependencies": {
60
- "@types/node": ">=20.0.0",
61
- "nightingale-types": "16.0.0"
62
+ "@types/node": ">=22.0.0",
63
+ "nightingale-types": "18.0.0"
62
64
  },
63
65
  "devDependencies": {
64
- "@babel/core": "7.26.10",
65
- "pob-babel": "43.4.0",
66
- "typescript": "5.8.2"
66
+ "@pob/rollup-esbuild": "7.3.2",
67
+ "typescript": "5.9.3"
67
68
  }
68
69
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node20.mjs","sources":["../src/index.ts"],"sourcesContent":["import type { IncomingMessage } from \"node:http\";\nimport type { LogRecord, Metadata } from \"nightingale-types\";\n\nexport interface ContextWithOptionalRequest {\n request?: IncomingMessage;\n}\n\nexport default function webProcessor<T extends Metadata>(\n record: LogRecord<T>,\n context?: ContextWithOptionalRequest,\n): void {\n const request = context?.request;\n if (request) {\n record.extra = record.extra || {};\n Object.assign(record.extra, {\n url: request.url,\n method: request.method,\n server: request.headers.host,\n ip: request.headers[\"x-forwarded-for\"] || request.socket.remoteAddress,\n });\n }\n}\n"],"names":["webProcessor","record","context","request","extra","Object","assign","url","method","server","headers","host","ip","socket","remoteAddress"],"mappings":"AAOe,SAASA,YAAYA,CAClCC,MAAoB,EACpBC,OAAoC,EAC9B;AACN,EAAA,MAAMC,OAAO,GAAGD,OAAO,EAAEC,OAAO;AAChC,EAAA,IAAIA,OAAO,EAAE;IACXF,MAAM,CAACG,KAAK,GAAGH,MAAM,CAACG,KAAK,IAAI,EAAE;AACjCC,IAAAA,MAAM,CAACC,MAAM,CAACL,MAAM,CAACG,KAAK,EAAE;MAC1BG,GAAG,EAAEJ,OAAO,CAACI,GAAG;MAChBC,MAAM,EAAEL,OAAO,CAACK,MAAM;AACtBC,MAAAA,MAAM,EAAEN,OAAO,CAACO,OAAO,CAACC,IAAI;MAC5BC,EAAE,EAAET,OAAO,CAACO,OAAO,CAAC,iBAAiB,CAAC,IAAIP,OAAO,CAACU,MAAM,CAACC;AAC3D,KAAC,CAAC;AACJ;AACF;;;;"}