fix(core): Refactor and clean up class imports and exports

This commit is contained in:
Philipp Kunz 2025-01-23 20:11:40 +01:00
parent 6332bf671a
commit c829b9c41e
6 changed files with 13 additions and 6 deletions

View File

@ -1,5 +1,12 @@
# Changelog
## 2025-01-23 - 2.1.8 - fix(core)
Refactor and clean up class imports and exports
- Simplified class file structure by unifying imports and exports.
- Removed redundant `logcontext.*` prefixes from filenames.
- Ensured consistent path references in index.ts.
## 2025-01-23 - 2.1.7 - fix(core)
Enhanced debugging and improved dependency tracking

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartcontext',
version: '2.1.7',
version: '2.1.8',
description: 'A module providing advanced asynchronous context management to enrich logs with context and manage scope effectively in Node.js applications.'
}

View File

@ -1,5 +1,5 @@
import * as plugins from './logcontext.plugins.js';
import { AsyncStore } from './logcontext.classes.asyncstore.js';
import * as plugins from './plugins.js';
import { AsyncStore } from './classes.asyncstore.js';
export class AsyncContext {
private _context = new plugins.simpleAsyncContext.AsyncContext.Variable<AsyncStore>();

View File

@ -1,4 +1,4 @@
import * as plugins from './logcontext.plugins.js';
import * as plugins from './plugins.js';
export class AsyncStore {
private static idCounter = 0;

View File

@ -1,2 +1,2 @@
export * from './logcontext.classes.asynccontext.js';
export * from './logcontext.classes.asyncstore.js';
export * from './classes.asynccontext.js';
export * from './classes.asyncstore.js';