@sapphire/plugin-logger 4.1.0-next.fe87827 → 4.1.1-next.9983f49

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
@@ -2,6 +2,27 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ # [@sapphire/plugin-logger@4.1.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-logger@4.0.2...@sapphire/plugin-logger@4.1.0) - (2025-06-29)
6
+
7
+ ## 🐛 Bug Fixes
8
+
9
+ - **deps:** Update all non-major dependencies ([d23894e](https://github.com/sapphiredev/plugins/commit/d23894e01c8ca84f8ff06b6921cbdc350b668f21)) ([#752](https://github.com/sapphiredev/plugins/pull/752) by @renovate[bot])
10
+ - **deps:** Update all non-major dependencies ([5106865](https://github.com/sapphiredev/plugins/commit/5106865eadcdece085cc00003100845d1e3a372a)) ([#742](https://github.com/sapphiredev/plugins/pull/742) by @renovate[bot])
11
+ - **deps:** Update all non-major dependencies ([cc47e19](https://github.com/sapphiredev/plugins/commit/cc47e198df63b90ae64fd9d945ba2d521d17a8f2)) ([#705](https://github.com/sapphiredev/plugins/pull/705) by @renovate[bot])
12
+ - **deps:** Update all non-major dependencies ([fb563e8](https://github.com/sapphiredev/plugins/commit/fb563e8d6b9bc7e3594563ab99838a6abea9032c)) ([#704](https://github.com/sapphiredev/plugins/pull/704) by @renovate[bot])
13
+ - **deps:** Update all non-major dependencies ([48a1e26](https://github.com/sapphiredev/plugins/commit/48a1e26ca064fcfe666b6826dacaa2c8bc7714bb)) ([#694](https://github.com/sapphiredev/plugins/pull/694) by @renovate[bot])
14
+ - **deps:** Update all non-major dependencies ([a6eeff6](https://github.com/sapphiredev/plugins/commit/a6eeff668d57c995335e02466eb48fbcb699f3ea))
15
+ - **deps:** Update all non-major dependencies ([c74b327](https://github.com/sapphiredev/plugins/commit/c74b327f7e9beea3d5164f8f5e17fbd8e61f74d7)) ([#678](https://github.com/sapphiredev/plugins/pull/678) by @renovate[bot])
16
+ - Update sapphire dependencies ([a837459](https://github.com/sapphiredev/plugins/commit/a83745920f0b6eb896c7b9b5c9624dad662f5186))
17
+ - **deps:** Update all non-major dependencies ([43df709](https://github.com/sapphiredev/plugins/commit/43df70954d837f7b14d62ea9123aca4b1da9ae36)) ([#574](https://github.com/sapphiredev/plugins/pull/574) by @renovate[bot])
18
+ - **deps:** Update all non-major dependencies ([7909d16](https://github.com/sapphiredev/plugins/commit/7909d16fcec9a8e5e9a3f8816c90a26fbc7d1284)) ([#573](https://github.com/sapphiredev/plugins/pull/573) by @renovate[bot])
19
+ - **deps:** Update all non-major dependencies ([ee64834](https://github.com/sapphiredev/plugins/commit/ee64834c799a5ac28b1ae172cb19f77a1887f3d4)) ([#546](https://github.com/sapphiredev/plugins/pull/546) by @renovate[bot])
20
+
21
+ ## 🚀 Features
22
+
23
+ - Allow passing a custom instance of the logger ([dc7c810](https://github.com/sapphiredev/plugins/commit/dc7c81063efd7f4493d7db49935514bc4b15f4ed)) ([#739](https://github.com/sapphiredev/plugins/pull/739) by @WeslleyNasRocha)
24
+ - **logger:** Add transports ([c2464a5](https://github.com/sapphiredev/plugins/commit/c2464a56313ca6a589fb8925b7efcc1ba2569e0e)) ([#608](https://github.com/sapphiredev/plugins/pull/608) by @UndiedGamer)
25
+
5
26
  # [@sapphire/plugin-logger@4.0.2](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-logger@4.0.2...@sapphire/plugin-logger@4.0.2) - (2024-01-19)
6
27
 
7
28
  ## 🐛 Bug Fixes
@@ -6,7 +6,7 @@ var LoggerStyle_cjs = require('./lib/LoggerStyle.cjs');
6
6
  var LoggerTimestamp_cjs = require('./lib/LoggerTimestamp.cjs');
7
7
 
8
8
  // src/index.ts
9
- var version = "4.1.0-next.fe87827";
9
+ var version = "4.1.1-next.9983f49";
10
10
 
11
11
  exports.version = version;
12
12
  Object.keys(Logger_cjs).forEach(function (k) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;AAkBO,IAAM,OAAkB,GAAA","file":"index.cjs","sourcesContent":["import type { LoggerOptions } from './lib/Logger';\n\nexport * from './lib/Logger';\nexport * from './lib/LoggerLevel';\nexport * from './lib/LoggerStyle';\nexport * from './lib/LoggerTimestamp';\n\ndeclare module '@sapphire/framework' {\n\texport interface ClientLoggerOptions extends LoggerOptions {}\n}\n\n/**\n * The [@sapphire/plugin-logger](https://github.com/sapphiredev/plugins/blob/main/packages/logger) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '4.1.0-next.fe87827';\n"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;AAkBO,IAAM,OAAkB,GAAA","file":"index.cjs","sourcesContent":["import type { LoggerOptions } from './lib/Logger';\n\nexport * from './lib/Logger';\nexport * from './lib/LoggerLevel';\nexport * from './lib/LoggerStyle';\nexport * from './lib/LoggerTimestamp';\n\ndeclare module '@sapphire/framework' {\n\texport interface ClientLoggerOptions extends LoggerOptions {}\n}\n\n/**\n * The [@sapphire/plugin-logger](https://github.com/sapphiredev/plugins/blob/main/packages/logger) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '4.1.1-next.9983f49';\n"]}
@@ -1,4 +1,4 @@
1
- import { Logger as Logger$1, LogLevel } from '@sapphire/framework';
1
+ import { LogLevel, Logger as Logger$1 } from '@sapphire/framework';
2
2
  import * as Colorette from 'colorette';
3
3
  import { Timestamp } from '@sapphire/timestamp';
4
4
 
@@ -11,7 +11,7 @@ var _LoggerPlugin = class _LoggerPlugin extends framework.Plugin {
11
11
  */
12
12
  static [framework.preGenericsInitialization](options) {
13
13
  options.logger ??= {};
14
- options.logger.instance = new index_cjs.Logger(options.logger);
14
+ options.logger.instance ??= new index_cjs.Logger(options.logger);
15
15
  }
16
16
  };
17
17
  __name(_LoggerPlugin, "LoggerPlugin");
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/register.ts"],"names":["Plugin","preGenericsInitialization","Logger","SapphireClient"],"mappings":";;;;;;;AASO,IAAM,aAAA,GAAN,MAAM,aAAA,SAAqBA,gBAAO,CAAA;AAAA;AAAA;AAAA;AAAA,EAIxC,QAAeC,mCAAyB,CAAA,CAAwB,OAA8B,EAAA;AAC7F,IAAA,OAAA,CAAQ,WAAW,EAAC;AACpB,IAAA,OAAA,CAAQ,MAAO,CAAA,QAAA,GAAW,IAAIC,gBAAA,CAAO,QAAQ,MAAM,CAAA;AAAA;AAErD,CAAA;AARyC,MAAA,CAAA,aAAA,EAAA,cAAA,CAAA;AAAlC,IAAM,YAAN,GAAA;AAUPC,wBAAA,CAAe,OAAQ,CAAA,qCAAA,CAAsC,YAAa,CAAAF,mCAAyB,GAAG,kCAAkC,CAAA","file":"register.cjs","sourcesContent":["import './index';\n\nimport { Plugin, preGenericsInitialization, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { Logger } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class LoggerPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\toptions.logger ??= {};\n\t\toptions.logger.instance = new Logger(options.logger);\n\t}\n}\n\nSapphireClient.plugins.registerPreGenericsInitializationHook(LoggerPlugin[preGenericsInitialization], 'Logger-PreGenericsInitialization');\n"]}
1
+ {"version":3,"sources":["../../src/register.ts"],"names":["Plugin","preGenericsInitialization","Logger","SapphireClient"],"mappings":";;;;;;;AASO,IAAM,aAAA,GAAN,MAAM,aAAA,SAAqBA,gBAAO,CAAA;AAAA;AAAA;AAAA;AAAA,EAIxC,QAAeC,mCAAyB,CAAA,CAAwB,OAA8B,EAAA;AAC7F,IAAA,OAAA,CAAQ,WAAW,EAAC;AACpB,IAAA,OAAA,CAAQ,MAAO,CAAA,QAAA,KAAa,IAAIC,gBAAA,CAAO,QAAQ,MAAM,CAAA;AAAA;AAEvD,CAAA;AARyC,MAAA,CAAA,aAAA,EAAA,cAAA,CAAA;AAAlC,IAAM,YAAN,GAAA;AAUPC,wBAAA,CAAe,OAAQ,CAAA,qCAAA,CAAsC,YAAa,CAAAF,mCAAyB,GAAG,kCAAkC,CAAA","file":"register.cjs","sourcesContent":["import './index';\n\nimport { Plugin, preGenericsInitialization, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { Logger } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class LoggerPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\toptions.logger ??= {};\n\t\toptions.logger.instance ??= new Logger(options.logger);\n\t}\n}\n\nSapphireClient.plugins.registerPreGenericsInitializationHook(LoggerPlugin[preGenericsInitialization], 'Logger-PreGenericsInitialization');\n"]}
@@ -1,4 +1,4 @@
1
- import { Logger as Logger$1, LogLevel } from '@sapphire/framework';
1
+ import { LogLevel, Logger as Logger$1 } from '@sapphire/framework';
2
2
  import * as Colorette from 'colorette';
3
3
  import { Timestamp } from '@sapphire/timestamp';
4
4
 
@@ -4,7 +4,7 @@ export * from './lib/LoggerLevel.mjs';
4
4
  export * from './lib/LoggerStyle.mjs';
5
5
  export * from './lib/LoggerTimestamp.mjs';
6
6
 
7
- var version = "4.1.0-next.fe87827";
7
+ var version = "4.1.1-next.9983f49";
8
8
 
9
9
  export { version };
10
10
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAkBO,IAAM,OAAkB,GAAA","file":"index.mjs","sourcesContent":["import type { LoggerOptions } from './lib/Logger';\n\nexport * from './lib/Logger';\nexport * from './lib/LoggerLevel';\nexport * from './lib/LoggerStyle';\nexport * from './lib/LoggerTimestamp';\n\ndeclare module '@sapphire/framework' {\n\texport interface ClientLoggerOptions extends LoggerOptions {}\n}\n\n/**\n * The [@sapphire/plugin-logger](https://github.com/sapphiredev/plugins/blob/main/packages/logger) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '4.1.0-next.fe87827';\n"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAkBO,IAAM,OAAkB,GAAA","file":"index.mjs","sourcesContent":["import type { LoggerOptions } from './lib/Logger';\n\nexport * from './lib/Logger';\nexport * from './lib/LoggerLevel';\nexport * from './lib/LoggerStyle';\nexport * from './lib/LoggerTimestamp';\n\ndeclare module '@sapphire/framework' {\n\texport interface ClientLoggerOptions extends LoggerOptions {}\n}\n\n/**\n * The [@sapphire/plugin-logger](https://github.com/sapphiredev/plugins/blob/main/packages/logger) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '4.1.1-next.9983f49';\n"]}
@@ -8,7 +8,7 @@ var _LoggerPlugin = class _LoggerPlugin extends Plugin {
8
8
  */
9
9
  static [preGenericsInitialization](options) {
10
10
  options.logger ??= {};
11
- options.logger.instance = new Logger(options.logger);
11
+ options.logger.instance ??= new Logger(options.logger);
12
12
  }
13
13
  };
14
14
  __name(_LoggerPlugin, "LoggerPlugin");
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AASO,IAAM,aAAA,GAAN,MAAM,aAAA,SAAqB,MAAO,CAAA;AAAA;AAAA;AAAA;AAAA,EAIxC,QAAe,yBAAyB,CAAA,CAAwB,OAA8B,EAAA;AAC7F,IAAA,OAAA,CAAQ,WAAW,EAAC;AACpB,IAAA,OAAA,CAAQ,MAAO,CAAA,QAAA,GAAW,IAAI,MAAA,CAAO,QAAQ,MAAM,CAAA;AAAA;AAErD,CAAA;AARyC,MAAA,CAAA,aAAA,EAAA,cAAA,CAAA;AAAlC,IAAM,YAAN,GAAA;AAUP,cAAA,CAAe,OAAQ,CAAA,qCAAA,CAAsC,YAAa,CAAA,yBAAyB,GAAG,kCAAkC,CAAA","file":"register.mjs","sourcesContent":["import './index';\n\nimport { Plugin, preGenericsInitialization, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { Logger } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class LoggerPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\toptions.logger ??= {};\n\t\toptions.logger.instance = new Logger(options.logger);\n\t}\n}\n\nSapphireClient.plugins.registerPreGenericsInitializationHook(LoggerPlugin[preGenericsInitialization], 'Logger-PreGenericsInitialization');\n"]}
1
+ {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AASO,IAAM,aAAA,GAAN,MAAM,aAAA,SAAqB,MAAO,CAAA;AAAA;AAAA;AAAA;AAAA,EAIxC,QAAe,yBAAyB,CAAA,CAAwB,OAA8B,EAAA;AAC7F,IAAA,OAAA,CAAQ,WAAW,EAAC;AACpB,IAAA,OAAA,CAAQ,MAAO,CAAA,QAAA,KAAa,IAAI,MAAA,CAAO,QAAQ,MAAM,CAAA;AAAA;AAEvD,CAAA;AARyC,MAAA,CAAA,aAAA,EAAA,cAAA,CAAA;AAAlC,IAAM,YAAN,GAAA;AAUP,cAAA,CAAe,OAAQ,CAAA,qCAAA,CAAsC,YAAa,CAAA,yBAAyB,GAAG,kCAAkC,CAAA","file":"register.mjs","sourcesContent":["import './index';\n\nimport { Plugin, preGenericsInitialization, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { Logger } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class LoggerPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\toptions.logger ??= {};\n\t\toptions.logger.instance ??= new Logger(options.logger);\n\t}\n}\n\nSapphireClient.plugins.registerPreGenericsInitializationHook(LoggerPlugin[preGenericsInitialization], 'Logger-PreGenericsInitialization');\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapphire/plugin-logger",
3
- "version": "4.1.0-next.fe87827",
3
+ "version": "4.1.1-next.9983f49",
4
4
  "description": "Plugin for @sapphire/framework to have pretty console output",
5
5
  "author": "@sapphire",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "lint": "eslint src tests --ext ts --fix",
40
40
  "build": "tsup && yarn build:types && yarn build:rename-cjs-register",
41
41
  "build:types": "concurrently \"yarn:build:types:*\"",
42
- "build:types:cjs": "rollup-type-bundler -d dist/cjs -ot .cts",
42
+ "build:types:cjs": "rollup-type-bundler -d dist/cjs --output-typings-file-extension .cts",
43
43
  "build:types:esm": "rollup-type-bundler -d dist/esm -t .mts",
44
44
  "build:types:cleanup": "tsx ../../scripts/clean-register-imports.mts",
45
45
  "build:rename-cjs-register": "tsx ../../scripts/rename-cjs-register.mts",
@@ -82,11 +82,11 @@
82
82
  "access": "public"
83
83
  },
84
84
  "devDependencies": {
85
- "@favware/cliff-jumper": "^5.0.0",
86
- "@favware/rollup-type-bundler": "^3.3.0",
87
- "concurrently": "^9.1.1",
88
- "tsup": "^8.3.5",
89
- "tsx": "^4.19.2",
85
+ "@favware/cliff-jumper": "^6.0.0",
86
+ "@favware/rollup-type-bundler": "^4.0.0",
87
+ "concurrently": "^9.2.0",
88
+ "tsup": "^8.5.0",
89
+ "tsx": "^4.20.3",
90
90
  "typedoc": "^0.26.11",
91
91
  "typedoc-json-parser": "^10.2.0",
92
92
  "typescript": "~5.4.5"