nightingale-string 13.0.0 → 14.0.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/CHANGELOG.md CHANGED
@@ -3,6 +3,34 @@
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
+ ## [14.0.1](https://github.com/christophehurpeau/nightingale/compare/v14.0.0...v14.0.1) (2023-06-30)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * add missing type in exports for latest typescript ([8897fd6](https://github.com/christophehurpeau/nightingale/commit/8897fd6fcbd25975482fd1549277b73ed725e53c))
12
+
13
+
14
+
15
+ ## [14.0.0](https://github.com/christophehurpeau/nightingale/compare/v13.0.0...v14.0.0) (2023-06-30)
16
+
17
+
18
+ ### ⚠ BREAKING CHANGES
19
+
20
+ * **deps:** require node 18
21
+ * requires node 18
22
+
23
+ ### Features
24
+
25
+ * requires node 18 ([4452b11](https://github.com/christophehurpeau/nightingale/commit/4452b116188e58c293be85e462e04922f7ad51f0))
26
+
27
+
28
+ ### Miscellaneous Chores
29
+
30
+ * **deps:** update dependency @pob/root to v8 ([#760](https://github.com/christophehurpeau/nightingale/issues/760)) ([22dc3cc](https://github.com/christophehurpeau/nightingale/commit/22dc3cceabdfd465d04ee36fec8fdac31febab69))
31
+
32
+
33
+
6
34
  # [13.0.0](https://github.com/christophehurpeau/nightingale/compare/v12.1.4...v13.0.0) (2022-11-19)
7
35
 
8
36
 
@@ -15,4 +15,4 @@ class StringHandler {
15
15
  }
16
16
 
17
17
  export { StringHandler };
18
- //# sourceMappingURL=index-node16.mjs.map
18
+ //# sourceMappingURL=index-node18.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-node16.mjs","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable prefer-template */\nimport formatterRaw from 'nightingale-raw-formatter';\nimport type { Handler, Level, LogRecord, Metadata } from 'nightingale-types';\n\nexport class StringHandler implements Handler {\n readonly minLevel: Level;\n\n private _buffer = '';\n\n constructor(minLevel: Level) {\n this.minLevel = minLevel;\n }\n\n get string(): string {\n return this._buffer;\n }\n\n handle<T extends Metadata>(record: LogRecord<T>): void {\n this._buffer += formatterRaw(record) + '\\n';\n }\n}\n"],"names":["StringHandler","_buffer","constructor","minLevel","string","handle","record","formatterRaw"],"mappings":";;AAAA;AAIO,MAAMA,aAAa,CAAoB;AAGpCC,EAAAA,OAAO,GAAG,EAAE,CAAA;EAEpBC,WAAW,CAACC,QAAe,EAAE;IAC3B,IAAI,CAACA,QAAQ,GAAGA,QAAQ,CAAA;AAC1B,GAAA;AAEA,EAAA,IAAIC,MAAM,GAAW;IACnB,OAAO,IAAI,CAACH,OAAO,CAAA;AACrB,GAAA;EAEAI,MAAM,CAAqBC,MAAoB,EAAQ;IACrD,IAAI,CAACL,OAAO,IAAIM,YAAY,CAACD,MAAM,CAAC,GAAG,IAAI,CAAA;AAC7C,GAAA;AACF;;;;"}
1
+ {"version":3,"file":"index-node18.mjs","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable prefer-template */\nimport formatterRaw from 'nightingale-raw-formatter';\nimport type { Handler, Level, LogRecord, Metadata } from 'nightingale-types';\n\nexport class StringHandler implements Handler {\n readonly minLevel: Level;\n\n private _buffer = '';\n\n constructor(minLevel: Level) {\n this.minLevel = minLevel;\n }\n\n get string(): string {\n return this._buffer;\n }\n\n handle<T extends Metadata>(record: LogRecord<T>): void {\n this._buffer += formatterRaw(record) + '\\n';\n }\n}\n"],"names":["StringHandler","_buffer","constructor","minLevel","string","handle","record","formatterRaw"],"mappings":";;AAAA;AAIO,MAAMA,aAAa,CAAoB;AAGpCC,EAAAA,OAAO,GAAG,EAAE,CAAA;EAEpBC,WAAWA,CAACC,QAAe,EAAE;IAC3B,IAAI,CAACA,QAAQ,GAAGA,QAAQ,CAAA;AAC1B,GAAA;EAEA,IAAIC,MAAMA,GAAW;IACnB,OAAO,IAAI,CAACH,OAAO,CAAA;AACrB,GAAA;EAEAI,MAAMA,CAAqBC,MAAoB,EAAQ;IACrD,IAAI,CAACL,OAAO,IAAIM,YAAY,CAACD,MAAM,CAAC,GAAG,IAAI,CAAA;AAC7C,GAAA;AACF;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-string",
3
- "version": "13.0.0",
3
+ "version": "14.0.1",
4
4
  "description": "String handler for nightingale",
5
5
  "keywords": [
6
6
  "nightingale",
@@ -16,22 +16,23 @@
16
16
  "homepage": "https://github.com/christophehurpeau/nightingale",
17
17
  "type": "module",
18
18
  "engines": {
19
- "node": ">=16.0.0"
19
+ "node": ">=18.12.0"
20
20
  },
21
- "main": "./dist/index-node16.mjs",
21
+ "main": "./dist/index-node18.mjs",
22
22
  "types": "./dist/definitions/index.d.ts",
23
23
  "exports": {
24
24
  "./package.json": "./package.json",
25
25
  ".": {
26
+ "type": "./dist/definitions/index.d.ts",
26
27
  "node": {
27
- "import": "./dist/index-node16.mjs"
28
+ "import": "./dist/index-node18.mjs"
28
29
  }
29
30
  }
30
31
  },
31
32
  "sideEffects": false,
32
33
  "scripts": {
33
34
  "build": "yarn clean:build && rollup --config rollup.config.mjs && yarn run build:definitions",
34
- "build:definitions": "tsc -p",
35
+ "build:definitions": "tsc -p tsconfig.json",
35
36
  "clean": "yarn clean:build",
36
37
  "clean:build": "pob-babel-clean-out dist",
37
38
  "lint": "yarn run lint:eslint",
@@ -43,7 +44,7 @@
43
44
  "babelEnvs": [
44
45
  {
45
46
  "target": "node",
46
- "version": "16"
47
+ "version": "18"
47
48
  }
48
49
  ],
49
50
  "entries": [
@@ -51,13 +52,13 @@
51
52
  ]
52
53
  },
53
54
  "dependencies": {
54
- "nightingale-raw-formatter": "13.0.0",
55
- "nightingale-types": "13.0.0"
55
+ "nightingale-raw-formatter": "14.0.1",
56
+ "nightingale-types": "14.0.1"
56
57
  },
57
58
  "devDependencies": {
58
- "@babel/core": "7.20.2",
59
- "pob-babel": "35.3.0",
60
- "typescript": "4.9.3"
59
+ "@babel/core": "7.22.5",
60
+ "pob-babel": "36.1.0",
61
+ "typescript": "5.1.6"
61
62
  },
62
- "gitHead": "52cf7e3c8762a07891da9dde497ec03298c15654"
63
+ "gitHead": "e012fc159ceae0db482198c3f0308e0fc6470ae1"
63
64
  }