nightingale-levels 17.0.0 → 18.2.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,21 @@
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.2.0](https://github.com/christophehurpeau/nightingale/compare/v18.1.0...v18.2.0) (2026-06-12)
7
+
8
+ Note: no notable changes
9
+
10
+
11
+ ## [18.0.0](https://github.com/christophehurpeau/nightingale/compare/v17.0.1...v18.0.0) (2025-11-15)
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * drop node 20
16
+
17
+ ### Features
18
+
19
+ * update dependencies
20
+
6
21
  ## [17.0.0](https://github.com/christophehurpeau/nightingale/compare/v16.2.0...v17.0.0) (2025-10-20)
7
22
 
8
23
  ### Features
@@ -15,4 +15,4 @@ var Level = /* @__PURE__ */ ((Level2) => {
15
15
  })(Level || {});
16
16
 
17
17
  export { Level };
18
- //# sourceMappingURL=index-node20.mjs.map
18
+ //# sourceMappingURL=index-node22.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-node20.mjs","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-duplicate-enum-values */\n\n/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n"],"names":["Level"],"mappings":"AAqBO,IAAK,KAAA,qBAAAA,MAAAA,KAAL;AAEL,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,SAAM,CAAA,CAAA,GAAN,KAAA;AAGA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,WAAQ,EAAA,CAAA,GAAR,OAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,WAAQ,GAAA,CAAA,GAAR,OAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,UAAO,GAAA,CAAA,GAAP,MAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,YAAS,GAAA,CAAA,GAAT,QAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,UAAO,GAAA,CAAA,GAAP,MAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,aAAU,GAAA,CAAA,GAAV,SAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,WAAQ,GAAA,CAAA,GAAR,OAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,cAAW,GAAA,CAAA,GAAX,UAAA;AAGA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,WAAQ,GAAA,CAAA,GAAR,OAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,WAAQ,GAAA,CAAA,GAAR,OAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,eAAY,GAAA,CAAA,GAAZ,WAAA;AA1BU,EAAA,OAAAA,MAAAA;AAAA,CAAA,EAAA,KAAA,IAAA,EAAA;;;;"}
1
+ {"version":3,"file":"index-node22.mjs","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-duplicate-enum-values */\n\n/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENC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E";
7
+ Level2[Level2["WARN"] = 300] = "WARN";
8
+ Level2[Level2["WARNING"] = 300] = "WARNING";
9
+ Level2[Level2["ERROR"] = 400] = "ERROR";
10
+ Level2[Level2["CRITICAL"] = 500] = "CRITICAL";
11
+ Level2[Level2["FATAL"] = 550] = "FATAL";
12
+ Level2[Level2["ALERT"] = 550] = "ALERT";
13
+ Level2[Level2["EMERGENCY"] = 600] = "EMERGENCY";
14
+ return Level2;
15
+ })(Level || {});
16
+
17
+ export { Level };
18
+ //# sourceMappingURL=index-react-native.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-react-native.es.js","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-duplicate-enum-values */\n\n/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n"],"names":["Level"],"mappings":"AAqBO,IAAK,KAAA,qBAAAA,MAAAA,KAAL;AAEL,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,SAAM,CAAA,CAAA,GAAN,KAAA;AAGA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,WAAQ,EAAA,CAAA,GAAR,OAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,WAAQ,GAAA,CAAA,GAAR,OAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,UAAO,GAAA,CAAA,GAAP,MAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,YAAS,GAAA,CAAA,GAAT,QAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,UAAO,GAAA,CAAA,GAAP,MAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,aAAU,GAAA,CAAA,GAAV,SAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,WAAQ,GAAA,CAAA,GAAR,OAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,cAAW,GAAA,CAAA,GAAX,UAAA;AAGA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,WAAQ,GAAA,CAAA,GAAR,OAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,WAAQ,GAAA,CAAA,GAAR,OAAA;AAEA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,eAAY,GAAA,CAAA,GAAZ,WAAA;AA1BU,EAAA,OAAAA,MAAAA;AAAA,CAAA,EAAA,KAAA,IAAA,EAAA;;;;"}
package/package.json CHANGED
@@ -1,55 +1,60 @@
1
1
  {
2
2
  "name": "nightingale-levels",
3
- "version": "17.0.0",
3
+ "version": "18.2.0",
4
4
  "description": "Nightingale levels",
5
5
  "keywords": [
6
6
  "logger"
7
7
  ],
8
- "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
8
+ "homepage": "https://github.com/christophehurpeau/nightingale",
9
+ "bugs": {
10
+ "url": "https://github.com/christophehurpeau/nightingale/issues"
11
+ },
9
12
  "license": "ISC",
13
+ "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
10
14
  "repository": {
11
15
  "type": "git",
12
16
  "url": "https://github.com/christophehurpeau/nightingale.git",
13
17
  "directory": "packages/nightingale-levels"
14
18
  },
15
- "homepage": "https://github.com/christophehurpeau/nightingale",
19
+ "files": [
20
+ "src",
21
+ "dist"
22
+ ],
16
23
  "type": "module",
17
- "engines": {
18
- "node": ">=20.11.0"
19
- },
20
24
  "sideEffects": false,
21
- "main": "./dist/index-node20.mjs",
22
- "types": "./dist/definitions/index.d.ts",
25
+ "main": "./dist/index-node22.mjs",
23
26
  "module": "./dist/index-browser.es.js",
24
27
  "browser": "./dist/index-browser.es.js",
28
+ "types": "./dist/definitions/index.d.ts",
25
29
  "exports": {
26
30
  "./package.json": "./package.json",
27
31
  ".": {
28
32
  "types": "./dist/definitions/index.d.ts",
29
33
  "node": {
30
- "import": "./dist/index-node20.mjs"
34
+ "import": "./dist/index-node22.mjs"
31
35
  },
32
36
  "react-native": {
33
- "import": "./dist/index-browser.es.js"
37
+ "import": "./dist/index-react-native.es.js"
34
38
  },
35
39
  "browser": {
36
40
  "import": "./dist/index-browser.es.js"
37
41
  }
38
42
  }
39
43
  },
40
- "files": [
41
- "src",
42
- "dist"
43
- ],
44
44
  "scripts": {
45
- "build": "yarn clean:build && rollup --config rollup.config.mjs && yarn run build:definitions",
45
+ "build": "yarn run clean:build && rollup --config rollup.config.mjs && yarn run build:definitions",
46
46
  "build:definitions": "tsc -p tsconfig.json",
47
47
  "clean": "yarn clean:build",
48
48
  "clean:build": "pob-esbuild-clean-out dist",
49
49
  "lint": "yarn run lint:eslint",
50
- "lint:eslint": "yarn ../.. run eslint --quiet packages/nightingale-levels",
50
+ "lint:eslint": "yarn '../..' run eslint --quiet 'packages/nightingale-levels'",
51
+ "tsc": "tsc",
51
52
  "watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
52
53
  },
54
+ "devDependencies": {
55
+ "@pob/rollup-esbuild": "9.1.1",
56
+ "typescript": "6.0.3"
57
+ },
53
58
  "browserslist": {
54
59
  "production": [
55
60
  "defaults",
@@ -59,6 +64,9 @@
59
64
  "not ios_saf < 10"
60
65
  ]
61
66
  },
67
+ "engines": {
68
+ "node": ">=22.18.0"
69
+ },
62
70
  "pob": {
63
71
  "bundler": "rollup-esbuild",
64
72
  "entries": [
@@ -67,17 +75,15 @@
67
75
  "envs": [
68
76
  {
69
77
  "target": "node",
70
- "version": "20"
78
+ "version": "22"
79
+ },
80
+ {
81
+ "target": "react-native"
71
82
  },
72
83
  {
73
84
  "target": "browser"
74
85
  }
75
86
  ],
76
87
  "typescript": true
77
- },
78
- "prettier": "@pob/root/prettier-config",
79
- "devDependencies": {
80
- "@pob/rollup-esbuild": "6.7.0",
81
- "typescript": "5.9.2"
82
88
  }
83
89
  }