@genesislcap/foundation-utils 14.79.2-alpha-9debc2e.0 → 14.81.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.
@@ -1150,6 +1150,7 @@
1150
1150
  }
1151
1151
  ],
1152
1152
  "description": "Creates a logger with the given name and options.",
1153
+ "deprecated": "- Use `createLogger` from `@genesislcap/foundation-logger` instead.",
1153
1154
  "privacy": "public"
1154
1155
  }
1155
1156
  ],
@@ -53,6 +53,8 @@ export declare const defaultLoggerOptions: LoggerOptions;
53
53
  * @param name - The name to give the logger.
54
54
  * @param options - The options to use when creating the logger.
55
55
  * @returns The resulting logger.
56
+ *
57
+ * @deprecated - Use `createLogger` from `@genesislcap/foundation-logger` instead.
56
58
  * @public
57
59
  */
58
60
  export declare function createLogger(name: string, options?: LoggerOptions): Logger;
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/logger/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc;CAAG;AACxD;;;;;;;GAOG;AACH,MAAM,WAAW,MAAO,SAAQ,OAAO;IACrC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvF;AAGD;;;GAGG;AACH,MAAM,WAAW,MAAO,SAAQ,OAAO;CAAG;AAE1C;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAElC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAoC,GAAG,MAAM,CAgBhG"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/logger/logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc;CAAG;AACxD;;;;;;;GAOG;AACH,MAAM,WAAW,MAAO,SAAQ,OAAO;IACrC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvF;AAGD;;;GAGG;AACH,MAAM,WAAW,MAAO,SAAQ,OAAO;CAAG;AAE1C;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAElC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAoC,GAAG,MAAM,CAMhG"}
@@ -1,2 +1,2 @@
1
- export declare const logger: import("../logger").Logger;
1
+ export declare const logger: import("@genesislcap/foundation-logger").Logger;
2
2
  //# sourceMappingURL=logger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,4BAAmC,CAAC"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,iDAAmC,CAAC"}
@@ -1,4 +1,4 @@
1
- import consola from 'consola/src/browser';
1
+ import { createLogger as nextCreateLogger } from '@genesislcap/foundation-logger';
2
2
  export { LogLevel } from 'consola';
3
3
  const logLevelDebug = 4;
4
4
  /**
@@ -13,12 +13,12 @@ export const defaultLoggerOptions = {
13
13
  * @param name - The name to give the logger.
14
14
  * @param options - The options to use when creating the logger.
15
15
  * @returns The resulting logger.
16
+ *
17
+ * @deprecated - Use `createLogger` from `@genesislcap/foundation-logger` instead.
16
18
  * @public
17
19
  */
18
20
  export function createLogger(name, options = defaultLoggerOptions) {
19
- const baseLogger = consola.create(options);
20
- const logger = baseLogger.withTag(name);
21
- return Object.assign(Object.assign({}, logger), { deprecated: (symbol, instruction = 'Consult docs for better alternative.', removalVersionTarget) => {
22
- logger.warn(`Deprecated symbol used '${symbol}'. ${instruction}`, `${removalVersionTarget ? `Will be removed in version ${removalVersionTarget}.` : ''}`);
23
- } });
21
+ const logger = nextCreateLogger(name, options);
22
+ logger.warn(`Deprecated symbol used 'createLogger'. Use 'createLogger' from '@genesislcap/foundation-logger' instead.`);
23
+ return logger;
24
24
  }
@@ -1,2 +1,2 @@
1
- import { createLogger } from '../logger';
1
+ import { createLogger } from '@genesislcap/foundation-logger';
2
2
  export const logger = createLogger('foundation-utils');
@@ -451,7 +451,7 @@
451
451
  {
452
452
  "kind": "Function",
453
453
  "canonicalReference": "@genesislcap/foundation-utils!createLogger:function(1)",
454
- "docComment": "/**\n * Creates a logger with the given name and options.\n *\n * @param name - The name to give the logger.\n *\n * @param options - The options to use when creating the logger.\n *\n * @returns The resulting logger.\n *\n * @public\n */\n",
454
+ "docComment": "/**\n * Creates a logger with the given name and options.\n *\n * @deprecated\n *\n * - Use `createLogger` from `@genesislcap/foundation-logger` instead.\n *\n * @param name - The name to give the logger.\n *\n * @param options - The options to use when creating the logger.\n *\n * @returns The resulting logger.\n *\n * @public\n */\n",
455
455
  "excerptTokens": [
456
456
  {
457
457
  "kind": "Content",
@@ -65,6 +65,8 @@ export declare const createErrorMap: <TErrorDetailMap extends ErrorDetailMap>(lo
65
65
  * @param name - The name to give the logger.
66
66
  * @param options - The options to use when creating the logger.
67
67
  * @returns The resulting logger.
68
+ *
69
+ * @deprecated - Use `createLogger` from `@genesislcap/foundation-logger` instead.
68
70
  * @public
69
71
  */
70
72
  export declare function createLogger(name: string, options?: LoggerOptions): Logger;
@@ -4,6 +4,11 @@
4
4
 
5
5
  ## createLogger() function
6
6
 
7
+ > Warning: This API is now obsolete.
8
+ >
9
+ > - Use `createLogger` from `@genesislcap/foundation-logger` instead.
10
+ >
11
+
7
12
  Creates a logger with the given name and options.
8
13
 
9
14
  **Signature:**
@@ -39,7 +39,7 @@ export type ConversionType = 'string' | 'number' | 'time' | 'boolean';
39
39
  // @public
40
40
  export const createErrorMap: <TErrorDetailMap extends ErrorDetailMap>(logger: ErrorMapLogger) => ErrorMap<TErrorDetailMap>;
41
41
 
42
- // @public
42
+ // @public @deprecated
43
43
  export function createLogger(name: string, options?: LoggerOptions): Logger;
44
44
 
45
45
  // @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.79.2-alpha-9debc2e.0",
4
+ "version": "14.81.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -10,21 +10,18 @@
10
10
  "PORT": 3040
11
11
  },
12
12
  "scripts": {
13
- "api:extract": "api-extractor run",
14
- "api:custom-elements": "custom-elements-manifest analyze --config custom-elements-manifest.config.js",
15
- "api:document": "api-documenter markdown -i dist -o docs/api",
16
- "build": "npm run clean && tsc -b ./tsconfig.json && npm run api:extract && npm run api:document && npm run api:custom-elements",
13
+ "build": "genx build -b ts",
17
14
  "clean": "rimraf dist tsconfig.tsbuildinfo",
18
- "dev": "tsc -b ./tsconfig.json -w"
15
+ "dev": "genx dev -b ts",
16
+ "test": "genx test"
19
17
  },
20
18
  "devDependencies": {
21
- "@custom-elements-manifest/analyzer": "^0.8.2",
22
- "@microsoft/api-documenter": "^7.19.13",
23
- "@microsoft/api-extractor": "7.34.9",
24
- "rimraf": "^3.0.2",
25
- "typescript": "^4.5.5"
19
+ "@genesislcap/foundation-testing": "14.81.0",
20
+ "@genesislcap/genx": "14.81.0",
21
+ "rimraf": "^3.0.2"
26
22
  },
27
23
  "dependencies": {
24
+ "@genesislcap/foundation-logger": "14.81.0",
28
25
  "@microsoft/fast-components": "^2.21.3",
29
26
  "@microsoft/fast-element": "^1.7.0",
30
27
  "@microsoft/fast-foundation": "^2.33.2",
@@ -41,5 +38,5 @@
41
38
  "access": "public"
42
39
  },
43
40
  "customElements": "dist/custom-elements.json",
44
- "gitHead": "ec3885e8c184ec6ff0234a716ddece0ee6e066e1"
41
+ "gitHead": "6f2d59820f20c84c0910281cc172931db6ce7543"
45
42
  }