2 Commits

Author SHA1 Message Date
33e2d01aca 2.1.8 2025-01-23 20:11:40 +01:00
c829b9c41e fix(core): Refactor and clean up class imports and exports 2025-01-23 20:11:40 +01:00
7 changed files with 14 additions and 7 deletions

View File

@ -1,5 +1,12 @@
# Changelog # 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) ## 2025-01-23 - 2.1.7 - fix(core)
Enhanced debugging and improved dependency tracking Enhanced debugging and improved dependency tracking

View File

@ -1,6 +1,6 @@
{ {
"name": "@push.rocks/smartcontext", "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.", "description": "A module providing advanced asynchronous context management to enrich logs with context and manage scope effectively in Node.js applications.",
"exports": { "exports": {
".": "./dist_ts/index.js" ".": "./dist_ts/index.js"

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smartcontext', 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.' 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 * as plugins from './plugins.js';
import { AsyncStore } from './logcontext.classes.asyncstore.js'; import { AsyncStore } from './classes.asyncstore.js';
export class AsyncContext { export class AsyncContext {
private _context = new plugins.simpleAsyncContext.AsyncContext.Variable<AsyncStore>(); 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 { export class AsyncStore {
private static idCounter = 0; private static idCounter = 0;

View File

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