nightingale-web-processor 16.0.0 → 17.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,11 @@
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
+ ## [17.0.0](https://github.com/christophehurpeau/nightingale/compare/v16.2.0...v17.0.0) (2025-10-20)
7
+
8
+ Version bump for dependency: nightingale-types
9
+
10
+
6
11
  ## [16.0.0](https://github.com/christophehurpeau/nightingale/compare/v15.0.0...v16.0.0) (2025-03-30)
7
12
 
8
13
  ### ⚠ BREAKING CHANGES
@@ -1 +1 @@
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;;;;"}
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":[],"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;AAEL;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-web-processor",
3
- "version": "16.0.0",
3
+ "version": "17.0.0",
4
4
  "description": "Nightingale web processor",
5
5
  "keywords": [
6
6
  "nightingale",
@@ -16,7 +16,7 @@
16
16
  "homepage": "https://github.com/christophehurpeau/nightingale",
17
17
  "type": "module",
18
18
  "engines": {
19
- "node": ">=20.9.0"
19
+ "node": ">=20.11.0"
20
20
  },
21
21
  "sideEffects": false,
22
22
  "main": "./dist/index-node20.mjs",
@@ -38,13 +38,13 @@
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
  ],
@@ -53,16 +53,16 @@
53
53
  "target": "node",
54
54
  "version": "20"
55
55
  }
56
- ]
56
+ ],
57
+ "typescript": true
57
58
  },
58
59
  "prettier": "@pob/root/prettier-config",
59
60
  "dependencies": {
60
61
  "@types/node": ">=20.0.0",
61
- "nightingale-types": "16.0.0"
62
+ "nightingale-types": "17.0.0"
62
63
  },
63
64
  "devDependencies": {
64
- "@babel/core": "7.26.10",
65
- "pob-babel": "43.4.0",
66
- "typescript": "5.8.2"
65
+ "@pob/rollup-esbuild": "6.7.0",
66
+ "typescript": "5.9.2"
67
67
  }
68
68
  }