nightingale-levels 17.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,16 @@
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
+
6
16
  ## [17.0.0](https://github.com/christophehurpeau/nightingale/compare/v16.2.0...v17.0.0) (2025-10-20)
7
17
 
8
18
  ### 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 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;;;;"}
@@ -0,0 +1,18 @@
1
+ var Level = /* @__PURE__ */ ((Level2) => {
2
+ Level2[Level2["ALL"] = 0] = "ALL";
3
+ Level2[Level2["TRACE"] = 10] = "TRACE";
4
+ Level2[Level2["DEBUG"] = 100] = "DEBUG";
5
+ Level2[Level2["INFO"] = 200] = "INFO";
6
+ Level2[Level2["NOTICE"] = 250] = "NOTICE";
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,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-levels",
3
- "version": "17.0.0",
3
+ "version": "18.0.0",
4
4
  "description": "Nightingale levels",
5
5
  "keywords": [
6
6
  "logger"
@@ -15,10 +15,10 @@
15
15
  "homepage": "https://github.com/christophehurpeau/nightingale",
16
16
  "type": "module",
17
17
  "engines": {
18
- "node": ">=20.11.0"
18
+ "node": ">=22.18.0"
19
19
  },
20
20
  "sideEffects": false,
21
- "main": "./dist/index-node20.mjs",
21
+ "main": "./dist/index-node22.mjs",
22
22
  "types": "./dist/definitions/index.d.ts",
23
23
  "module": "./dist/index-browser.es.js",
24
24
  "browser": "./dist/index-browser.es.js",
@@ -27,10 +27,10 @@
27
27
  ".": {
28
28
  "types": "./dist/definitions/index.d.ts",
29
29
  "node": {
30
- "import": "./dist/index-node20.mjs"
30
+ "import": "./dist/index-node22.mjs"
31
31
  },
32
32
  "react-native": {
33
- "import": "./dist/index-browser.es.js"
33
+ "import": "./dist/index-react-native.es.js"
34
34
  },
35
35
  "browser": {
36
36
  "import": "./dist/index-browser.es.js"
@@ -67,7 +67,10 @@
67
67
  "envs": [
68
68
  {
69
69
  "target": "node",
70
- "version": "20"
70
+ "version": "22"
71
+ },
72
+ {
73
+ "target": "react-native"
71
74
  },
72
75
  {
73
76
  "target": "browser"
@@ -77,7 +80,7 @@
77
80
  },
78
81
  "prettier": "@pob/root/prettier-config",
79
82
  "devDependencies": {
80
- "@pob/rollup-esbuild": "6.7.0",
81
- "typescript": "5.9.2"
83
+ "@pob/rollup-esbuild": "7.3.2",
84
+ "typescript": "5.9.3"
82
85
  }
83
86
  }