From ce990a2fedc5545e971c3bb6e58b55bfba8c0bd9 Mon Sep 17 00:00:00 2001 From: Mohammad Honarvar Date: Thu, 10 Oct 2024 18:26:24 +0330 Subject: [PATCH 1/3] refactor: update `import`s & packages based on the latest changes of `nanolib` --- .yarn/sdks/typescript/package.json | 2 +- package.json | 2 +- packages/engine/package.json | 14 ++++++-------- packages/engine/src/alwatr-nitrobase.ts | 10 ++++------ packages/engine/src/logger.ts | 6 ++---- packages/engine/tsconfig.json | 3 ++- packages/helper/package.json | 8 ++++---- packages/nitrobase/package.json | 6 +++--- packages/reference/package.json | 12 +++++------- packages/reference/src/collection-reference.ts | 13 +++++-------- packages/reference/src/document-reference.ts | 13 +++++-------- packages/reference/src/logger.ts | 6 ++---- packages/reference/tsconfig.json | 3 ++- packages/types/package.json | 8 ++++---- packages/types/src/main.ts | 9 +++------ packages/types/tsconfig.json | 3 ++- 16 files changed, 51 insertions(+), 67 deletions(-) diff --git a/.yarn/sdks/typescript/package.json b/.yarn/sdks/typescript/package.json index 31a62a80..a9c9401b 100644 --- a/.yarn/sdks/typescript/package.json +++ b/.yarn/sdks/typescript/package.json @@ -1,6 +1,6 @@ { "name": "typescript", - "version": "5.6.2-sdk", + "version": "5.6.3-sdk", "main": "./lib/typescript.js", "type": "commonjs", "bin": { diff --git a/package.json b/package.json index 0c69a66e..eaea2a42 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "publish": "lerna publish from-package" }, "devDependencies": { - "@alwatr/eslint-config": "^1.2.8", + "@alwatr/eslint-config": "^1.2.9", "@alwatr/prettier-config": "^1.0.5", "@lerna-lite/changed": "^3.9.3", "@lerna-lite/cli": "^3.9.3", diff --git a/packages/engine/package.json b/packages/engine/package.json index 44013056..25d13eaa 100644 --- a/packages/engine/package.json +++ b/packages/engine/package.json @@ -60,20 +60,18 @@ "clean": "rm -rfv dist *.tsbuildinfo" }, "dependencies": { - "@alwatr/exit-hook": "^1.1.1", - "@alwatr/flat-string": "^1.1.1", - "@alwatr/logger": "^4.0.1", + "@alwatr/exit-hook": "^1.1.2", + "@alwatr/nanolib": "^1.0.2", "@alwatr/nitrobase-helper": "workspace:^", "@alwatr/nitrobase-reference": "workspace:^", "@alwatr/nitrobase-types": "workspace:^", - "@alwatr/node-fs": "^1.1.1", - "@alwatr/wait": "^1.1.16" + "@alwatr/node-fs": "^1.1.2" }, "devDependencies": { - "@alwatr/nano-build": "^1.5.0", + "@alwatr/nano-build": "^1.6.0", "@alwatr/prettier-config": "^1.0.5", - "@alwatr/tsconfig-base": "^1.3.0", - "@alwatr/type-helper": "^2.0.0", + "@alwatr/tsconfig-base": "^1.3.1", + "@alwatr/type-helper": "^2.0.1", "@types/node": "^22.7.5", "typescript": "^5.6.3" } diff --git a/packages/engine/src/alwatr-nitrobase.ts b/packages/engine/src/alwatr-nitrobase.ts index 3736aefb..6b2f48c8 100644 --- a/packages/engine/src/alwatr-nitrobase.ts +++ b/packages/engine/src/alwatr-nitrobase.ts @@ -1,4 +1,5 @@ import {exitHook} from '@alwatr/exit-hook'; +import {delay} from '@alwatr/nanolib'; import {getStoreId, getStorePath} from '@alwatr/nitrobase-helper'; import {CollectionReference, DocumentReference} from '@alwatr/nitrobase-reference'; import { @@ -13,13 +14,10 @@ import { type CollectionItem, } from '@alwatr/nitrobase-types'; import {existsSync, readJson, resolve, unlink, writeJson} from '@alwatr/node-fs'; -import {waitForTimeout} from '@alwatr/wait'; import {logger} from './logger.js'; -import type {Dictionary, JsonObject} from '@alwatr/type-helper'; - -logger.logModule?.('alwatr-nitrobase'); +logger.logFileModule?.('alwatr-nitrobase'); /** * AlwatrNitrobase configuration. @@ -79,7 +77,7 @@ export class AlwatrNitrobase { /** * Keep all loaded nitrobase file context loaded in memory. */ - private cacheReferences__: Dictionary = {}; + private cacheReferences__: DictionaryReq = {}; /** * Constructs an AlwatrNitrobase instance with the provided configuration. @@ -377,7 +375,7 @@ export class AlwatrNitrobase { } const path = getStorePath(this.rootDb__.getItemData(id_)); this.rootDb__.removeItem(id_); - await waitForTimeout(0); + await delay.by(0); try { await unlink(resolve(this.config__.rootPath, path)); } diff --git a/packages/engine/src/logger.ts b/packages/engine/src/logger.ts index 10fb0e0f..dff36d9a 100644 --- a/packages/engine/src/logger.ts +++ b/packages/engine/src/logger.ts @@ -1,5 +1,3 @@ -import {definePackage} from '@alwatr/logger'; +import {createLogger} from '@alwatr/nanolib'; -import type {} from '@alwatr/nano-build'; - -export const logger = definePackage('@alwatr/nitrobase-engine', __package_version__); +export const logger = createLogger(__package_name__); diff --git a/packages/engine/tsconfig.json b/packages/engine/tsconfig.json index 33d74856..6b1648c8 100644 --- a/packages/engine/tsconfig.json +++ b/packages/engine/tsconfig.json @@ -4,7 +4,8 @@ "rootDir": "src", "outDir": "dist", "emitDeclarationOnly": true, - "composite": true + "composite": true, + "types": ["@alwatr/nano-build", "@alwatr/type-helper"] }, "include": ["src/**/*.ts"], "references": [{"path": "../types"}, {"path": "../reference"}, {"path": "../helper"}] diff --git a/packages/helper/package.json b/packages/helper/package.json index 1a8339d0..bd70db4b 100644 --- a/packages/helper/package.json +++ b/packages/helper/package.json @@ -60,14 +60,14 @@ "clean": "rm -rfv dist *.tsbuildinfo" }, "dependencies": { - "@alwatr/flat-string": "^1.1.1", + "@alwatr/flat-string": "^1.1.2", "@alwatr/nitrobase-types": "workspace:^" }, "devDependencies": { - "@alwatr/logger": "^4.0.1", - "@alwatr/nano-build": "^1.5.0", + "@alwatr/logger": "^4.0.2", + "@alwatr/nano-build": "^1.6.0", "@alwatr/prettier-config": "^1.0.5", - "@alwatr/tsconfig-base": "^1.3.0", + "@alwatr/tsconfig-base": "^1.3.1", "@alwatr/wait": "^1.1.16", "@types/node": "^22.7.5", "typescript": "^5.6.3" diff --git a/packages/nitrobase/package.json b/packages/nitrobase/package.json index e52ea8a6..11268c89 100644 --- a/packages/nitrobase/package.json +++ b/packages/nitrobase/package.json @@ -66,10 +66,10 @@ "@alwatr/nitrobase-types": "workspace:^" }, "devDependencies": { - "@alwatr/logger": "^4.0.1", - "@alwatr/nano-build": "^1.5.0", + "@alwatr/logger": "^4.0.2", + "@alwatr/nano-build": "^1.6.0", "@alwatr/prettier-config": "^1.0.5", - "@alwatr/tsconfig-base": "^1.3.0", + "@alwatr/tsconfig-base": "^1.3.1", "@alwatr/wait": "^1.1.16", "@types/node": "^22.7.5", "typescript": "^5.6.3" diff --git a/packages/reference/package.json b/packages/reference/package.json index 3ce77e0a..eb8d401f 100644 --- a/packages/reference/package.json +++ b/packages/reference/package.json @@ -60,17 +60,15 @@ "clean": "rm -rfv dist *.tsbuildinfo" }, "dependencies": { - "@alwatr/flat-string": "^1.1.1", - "@alwatr/logger": "^4.0.1", + "@alwatr/nanolib": "^1.0.2", "@alwatr/nitrobase-helper": "workspace:^", - "@alwatr/nitrobase-types": "workspace:^", - "@alwatr/wait": "^1.1.16" + "@alwatr/nitrobase-types": "workspace:^" }, "devDependencies": { - "@alwatr/nano-build": "^1.5.0", + "@alwatr/nano-build": "^1.6.0", "@alwatr/prettier-config": "^1.0.5", - "@alwatr/tsconfig-base": "^1.3.0", - "@alwatr/type-helper": "^2.0.0", + "@alwatr/tsconfig-base": "^1.3.1", + "@alwatr/type-helper": "^2.0.1", "@types/node": "^22.7.5", "typescript": "^5.6.3" } diff --git a/packages/reference/src/collection-reference.ts b/packages/reference/src/collection-reference.ts index 90466717..315e6bf4 100644 --- a/packages/reference/src/collection-reference.ts +++ b/packages/reference/src/collection-reference.ts @@ -1,4 +1,4 @@ -import {createLogger} from '@alwatr/logger'; +import {createLogger, delay} from '@alwatr/nanolib'; import {getStoreId, getStorePath} from '@alwatr/nitrobase-helper'; import { StoreFileType, @@ -9,13 +9,10 @@ import { type CollectionItemMeta, type StoreFileMeta, } from '@alwatr/nitrobase-types'; -import {waitForImmediate, waitForTimeout} from '@alwatr/wait'; import {logger} from './logger.js'; -import type {Dictionary, JsonObject} from '@alwatr/type-helper'; - -logger.logModule?.('collection-reference'); +logger.logFileModule?.('collection-reference'); /** * Represents a reference to a collection of the AlwatrNitrobase. @@ -142,7 +139,7 @@ export class CollectionReference { if (this.context__.meta.schemaVer === undefined || this.context__.meta.schemaVer === 0) { this.context__.meta.schemaVer = 1; } - delete (this.context__.meta as Dictionary)['ver']; + delete (this.context__.meta as DictionaryOpt)['ver']; this.context__.meta.extra ??= {}; this.context__.meta.fv = 3; } @@ -588,10 +585,10 @@ export class CollectionReference { this.updateDelayed_ = true; if (immediate === true || this.context__.meta.changeDebounce === undefined) { - await waitForImmediate(); + await delay.immediate(); } else { - await waitForTimeout(this.context__.meta.changeDebounce); + await delay.by(this.context__.meta.changeDebounce); } if (this.updateDelayed_ !== true) return; // another parallel update finished! diff --git a/packages/reference/src/document-reference.ts b/packages/reference/src/document-reference.ts index 561c0d1b..17f24d77 100644 --- a/packages/reference/src/document-reference.ts +++ b/packages/reference/src/document-reference.ts @@ -1,13 +1,10 @@ -import {createLogger} from '@alwatr/logger'; +import {createLogger, delay} from '@alwatr/nanolib'; import {getStoreId, getStorePath} from '@alwatr/nitrobase-helper'; import {StoreFileType, StoreFileExtension, type StoreFileId, type DocumentContext, type StoreFileMeta} from '@alwatr/nitrobase-types'; -import {waitForImmediate, waitForTimeout} from '@alwatr/wait'; import {logger} from './logger.js'; -import type {Dictionary, JsonObject} from '@alwatr/type-helper'; - -logger.logModule?.('document-reference'); +logger.logFileModule?.('document-reference'); /** * Represents a reference to a document of the AlwatrNitrobase. @@ -131,7 +128,7 @@ export class DocumentReference { if (this.context__.meta.schemaVer === undefined || this.context__.meta.schemaVer === 0) { this.context__.meta.schemaVer = 1; } - delete (this.context__.meta as Dictionary)['ver']; + delete (this.context__.meta as DictionaryOpt)['ver']; this.context__.meta.extra ??= {}; this.context__.meta.fv = 3; } @@ -358,10 +355,10 @@ export class DocumentReference { this.updateDelayed_ = true; if (immediate === true || this.context__.meta.changeDebounce === undefined) { - await waitForImmediate(); + await delay.immediate(); } else { - await waitForTimeout(this.context__.meta.changeDebounce); + await delay.by(this.context__.meta.changeDebounce); } if (this.updateDelayed_ !== true) return; // another parallel update finished! diff --git a/packages/reference/src/logger.ts b/packages/reference/src/logger.ts index 2fde5790..dff36d9a 100644 --- a/packages/reference/src/logger.ts +++ b/packages/reference/src/logger.ts @@ -1,5 +1,3 @@ -import {definePackage} from '@alwatr/logger'; +import {createLogger} from '@alwatr/nanolib'; -import type {} from '@alwatr/nano-build'; - -export const logger = definePackage('@alwatr/nitrobase-reference', __package_version__); +export const logger = createLogger(__package_name__); diff --git a/packages/reference/tsconfig.json b/packages/reference/tsconfig.json index 7367de35..1fc5d404 100644 --- a/packages/reference/tsconfig.json +++ b/packages/reference/tsconfig.json @@ -4,7 +4,8 @@ "rootDir": "src", "outDir": "dist", "emitDeclarationOnly": true, - "composite": true + "composite": true, + "types": ["@alwatr/nano-build", "@alwatr/type-helper"] }, "include": ["src/**/*.ts", "src/util.ts"], "references": [{"path": "../types"}, {"path": "../helper"}] diff --git a/packages/types/package.json b/packages/types/package.json index f803443d..a319a771 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -60,13 +60,13 @@ "clean": "rm -rfv dist *.tsbuildinfo" }, "dependencies": { - "@alwatr/dedupe": "^1.1.1" + "@alwatr/nanolib": "^1.0.2" }, "devDependencies": { - "@alwatr/nano-build": "^1.5.0", + "@alwatr/nano-build": "^1.6.0", "@alwatr/prettier-config": "^1.0.5", - "@alwatr/tsconfig-base": "^1.3.0", - "@alwatr/type-helper": "^2.0.0", + "@alwatr/tsconfig-base": "^1.3.1", + "@alwatr/type-helper": "^2.0.1", "@types/node": "^22.7.5", "typescript": "^5.6.3" } diff --git a/packages/types/src/main.ts b/packages/types/src/main.ts index e1b7aacd..a105ddf9 100644 --- a/packages/types/src/main.ts +++ b/packages/types/src/main.ts @@ -1,9 +1,6 @@ -import {definePackage} from '@alwatr/dedupe'; +import {packageTracer} from '@alwatr/nanolib'; -import type {} from '@alwatr/nano-build'; -import type {Dictionary, JsonObject} from '@alwatr/type-helper'; - -definePackage('@alwatr/nitrobase-types', __package_version__); +packageTracer.add(__package_name__, __package_version__); // *** Nitrobase File *** @@ -265,4 +262,4 @@ export type CollectionItem = { /** * Collection item context type. */ -export type CollectionContext = StoreFileContext>>; +export type CollectionContext = StoreFileContext>>; diff --git a/packages/types/tsconfig.json b/packages/types/tsconfig.json index 44fe3592..156d0231 100644 --- a/packages/types/tsconfig.json +++ b/packages/types/tsconfig.json @@ -4,7 +4,8 @@ "rootDir": "src", "outDir": "dist", "emitDeclarationOnly": true, - "composite": true + "composite": true, + "types": ["@alwatr/nano-build", "@alwatr/type-helper"] }, "include": ["src/**/*.ts"] } From 051a0989762b9c62a43002f99f2962b626ca7de0 Mon Sep 17 00:00:00 2001 From: Mohammad Honarvar Date: Thu, 10 Oct 2024 18:26:41 +0330 Subject: [PATCH 2/3] deps: update --- yarn.lock | 316 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 199 insertions(+), 117 deletions(-) diff --git a/yarn.lock b/yarn.lock index e012ca2d..85c8062a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,30 +5,50 @@ __metadata: version: 8 cacheKey: 10c0 -"@alwatr/async-queue@npm:^1.3.1": - version: 1.3.1 - resolution: "@alwatr/async-queue@npm:1.3.1" +"@alwatr/async-queue@npm:^1.3.2": + version: 1.3.2 + resolution: "@alwatr/async-queue@npm:1.3.2" dependencies: - "@alwatr/flatomise": "npm:^1.2.1" - "@alwatr/package-tracer": "npm:^1.0.1" - checksum: 10c0/0ccca357315c268387a3dd0e698d8b1c7357f3180b8ec1653bcac25c36774d7da14f2cde9c5b66f865756f41180901f270a79e0735231e2019d206c877683cdb + "@alwatr/flatomise": "npm:^1.2.2" + "@alwatr/package-tracer": "npm:^1.0.2" + checksum: 10c0/f8c4e4e317280318c46aada5438975df87b7f62f83d1fa0811f7a1685dd457c8a2d0b2d7ee625bb24f8148e43977855e012c2aa4626b8292636ef00fe9bae4ce languageName: node linkType: hard -"@alwatr/dedupe@npm:^1.1.1": - version: 1.1.1 - resolution: "@alwatr/dedupe@npm:1.1.1" +"@alwatr/dedupe@npm:^1.1.2": + version: 1.1.2 + resolution: "@alwatr/dedupe@npm:1.1.2" dependencies: - "@alwatr/global-scope": "npm:^1.1.23" - "@alwatr/package-tracer": "npm:^1.0.1" - "@alwatr/polyfill-has-own": "npm:^1.1.1" - checksum: 10c0/296f79ba0e3286bd44f0b2d2970c6852845d23e960d06687045ea375779f082c106695fb7c1dc159760a960e49a12e1c7643bb83f461774a264c6e3365256308 + "@alwatr/global-scope": "npm:^1.1.24" + "@alwatr/package-tracer": "npm:^1.0.2" + "@alwatr/polyfill-has-own": "npm:^1.1.2" + checksum: 10c0/2f53bbd475568ad388d8364cd76206c958ee6145a8f817d5c8dc4b8502e9f280e79d9cbf21ee499013a9b4c71c5c3a156305e3d12087288f816cabc17949b5b8 languageName: node linkType: hard -"@alwatr/eslint-config@npm:^1.2.8": - version: 1.2.8 - resolution: "@alwatr/eslint-config@npm:1.2.8" +"@alwatr/deep-clone@npm:^1.1.2": + version: 1.1.2 + resolution: "@alwatr/deep-clone@npm:1.1.2" + dependencies: + "@alwatr/package-tracer": "npm:^1.0.2" + checksum: 10c0/679373e380742c151f3615128c849349850ff5681be27f392baa89b2b7810bd10937cc8dd556f277bb925b3a671362a30c840668e380463617d38633d1a94c88 + languageName: node + linkType: hard + +"@alwatr/delay@npm:^1.0.2": + version: 1.0.2 + resolution: "@alwatr/delay@npm:1.0.2" + dependencies: + "@alwatr/global-scope": "npm:^1.1.24" + "@alwatr/package-tracer": "npm:^1.0.2" + "@alwatr/parse-duration": "npm:^1.1.2" + checksum: 10c0/e8e69a757919b9679d3642004f6cfd43ff116716b9205bcdc4681e5ec7432017a97d63065145230e34be6b04be8aad4ea1d5531f45840317ba6edf8b82a30795 + languageName: node + linkType: hard + +"@alwatr/eslint-config@npm:^1.2.9": + version: 1.2.9 + resolution: "@alwatr/eslint-config@npm:1.2.9" dependencies: esbuild: "npm:^0.24.0" peerDependencies: @@ -38,72 +58,118 @@ __metadata: eslint-import-resolver-typescript: ">3.0.0" eslint-plugin-import: ">2.0.0" eslint-plugin-require-extensions: ">0.1.0" - checksum: 10c0/9092726e1fba26527311060cac644d8041cb207fdd9a0dbc9edfa22aa68be7e9beac05fd30d86521d9d5bb6db0e928db203791294aa359d6dcdc945891c61d4c + checksum: 10c0/d36f6d39eb6b25a889c889e594b8b042c4b065d105d06ef4c62a9607267cb0090de5fa9a95ae7ad0c163899672808e3b5b6d703201d37e191f36c4151a29088d languageName: node linkType: hard -"@alwatr/exit-hook@npm:^1.1.1": - version: 1.1.1 - resolution: "@alwatr/exit-hook@npm:1.1.1" +"@alwatr/exit-hook@npm:^1.1.2": + version: 1.1.2 + resolution: "@alwatr/exit-hook@npm:1.1.2" dependencies: - "@alwatr/dedupe": "npm:^1.1.1" - "@alwatr/package-tracer": "npm:^1.0.1" - checksum: 10c0/d5f443013b86da1553984688d8b1f7156052df1bd0a541d17a6605b3e5381be99073e2db3de27907a329508657cd0b343eaf68334941c478e2028a30db9899c6 + "@alwatr/dedupe": "npm:^1.1.2" + "@alwatr/package-tracer": "npm:^1.0.2" + checksum: 10c0/655c57ded7acc5e21de295ff67e38fae7212a2cf19f0e6152f34d90debe8e66e12b7831dd867f917a6435df31810971afa0db370205cf554b0e2f8008514e04c languageName: node linkType: hard -"@alwatr/flat-string@npm:^1.1.1": - version: 1.1.1 - resolution: "@alwatr/flat-string@npm:1.1.1" +"@alwatr/fetch@npm:^4.1.2": + version: 4.1.2 + resolution: "@alwatr/fetch@npm:4.1.2" dependencies: - "@alwatr/package-tracer": "npm:^1.0.1" - checksum: 10c0/6e2113b6d3ebcd8d51a436e08fdf570fd008f61f56fcb66163275f48e1fe0aa4631a985097cf31c36ec4a9b4fda2dbf0aa63ae89b9b9f5bf2f68534db81982f8 + "@alwatr/delay": "npm:^1.0.2" + "@alwatr/global-scope": "npm:^1.1.24" + "@alwatr/logger": "npm:^4.0.2" + "@alwatr/package-tracer": "npm:^1.0.2" + "@alwatr/parse-duration": "npm:^1.1.2" + checksum: 10c0/f5f3c8839e878ad947810c6ce9516faf28a531279f89544ab9b06a3da7313ebabb8f0c9584c4c0f5ae0fb1828e1b6c1739f56cbbb020763b3213cba085f9c56d languageName: node linkType: hard -"@alwatr/flatomise@npm:^1.2.1": - version: 1.2.1 - resolution: "@alwatr/flatomise@npm:1.2.1" +"@alwatr/flat-string@npm:^1.1.2": + version: 1.1.2 + resolution: "@alwatr/flat-string@npm:1.1.2" dependencies: - "@alwatr/package-tracer": "npm:^1.0.1" - checksum: 10c0/dfa822ff2b008de8043ce6bd565a02e342da2ab2c50b72dd23a87b05eab24be0cd49663d5785e865c944ac4dc204515fbf76fcf49f337e5109079250c08238f4 + "@alwatr/package-tracer": "npm:^1.0.2" + checksum: 10c0/f5f47224eb587e1b8174026eb20d2ff9d8f4e7069f896aecd86752f81ff01463195e2cb35dd7102e37bfe391ea87ba930bab1799479c1eaaa8800171a665c5df languageName: node linkType: hard -"@alwatr/global-scope@npm:^1.1.21": - version: 1.1.21 - resolution: "@alwatr/global-scope@npm:1.1.21" - checksum: 10c0/49324e9c26d0f1aee140b45ac3497e183023070a60acc4439ccecaa7dcf94d0ad94200c223f292be8f6e763c8147da7be7a59b8ecab51d426a01a9f451a75957 +"@alwatr/flatomise@npm:^1.2.2": + version: 1.2.2 + resolution: "@alwatr/flatomise@npm:1.2.2" + dependencies: + "@alwatr/package-tracer": "npm:^1.0.2" + checksum: 10c0/a97acb58023ad57c27619dbc65fc24e70c2b790fc05dfa03d46874ec51b0de3d9080dd2a7aee13548819461d4b919595bb5b60a41110fab19d6290da1308c9b4 languageName: node linkType: hard -"@alwatr/global-scope@npm:^1.1.23": - version: 1.1.23 - resolution: "@alwatr/global-scope@npm:1.1.23" +"@alwatr/global-scope@npm:^1.1.21, @alwatr/global-scope@npm:^1.1.24": + version: 1.1.24 + resolution: "@alwatr/global-scope@npm:1.1.24" dependencies: - "@alwatr/package-tracer": "npm:^1.0.1" - checksum: 10c0/2624f9fc3068f9bf7661609ef9f339cead224cbe830e0a912aee0261b5e7f4a884fac69b278169da367587a865c9fedbb5ac52706babec1dfe7c4c02131c3990 + "@alwatr/package-tracer": "npm:^1.0.2" + checksum: 10c0/37e6864e9077ae8b5419e8a8126c2c7f280011c71c7a9fbb7d2f1e54e72925ec1a4852fd5d166c42138e82bc017abdcfb6c952703232d8bfb48adf7f049f5926 languageName: node linkType: hard -"@alwatr/logger@npm:^4.0.1": - version: 4.0.1 - resolution: "@alwatr/logger@npm:4.0.1" +"@alwatr/is-number@npm:^1.1.2": + version: 1.1.2 + resolution: "@alwatr/is-number@npm:1.1.2" dependencies: - "@alwatr/package-tracer": "npm:^1.0.1" - "@alwatr/platform-info": "npm:^1.2.1" - checksum: 10c0/39ad405e03d57cbab4c28008ca03809af8a9f09695631c480918635a63caf159d359310af04f9c3e48637013998e8c96d2010d8828eefd7f96459cbac8171bbf + "@alwatr/package-tracer": "npm:^1.0.2" + checksum: 10c0/a48c2f2fe17712c9a26ba37ab1b36266beee00d154089dd254ac3783da3e321a272e441403f192df38bb58aa728388b14d37f1ccb94dee48c8bcfedaba7e41ea languageName: node linkType: hard -"@alwatr/nano-build@npm:^1.5.0": - version: 1.5.0 - resolution: "@alwatr/nano-build@npm:1.5.0" +"@alwatr/local-storage@npm:^1.1.2": + version: 1.1.2 + resolution: "@alwatr/local-storage@npm:1.1.2" + dependencies: + "@alwatr/package-tracer": "npm:^1.0.2" + checksum: 10c0/24a7210ef7d14f81710735fd1f8d77a11805bc181e5405b597bc1d584f73821c4293c64c0d1791db0f495944c51832b77808dcaa1e41021b0c6532314725e106 + languageName: node + linkType: hard + +"@alwatr/logger@npm:^4.0.2": + version: 4.0.2 + resolution: "@alwatr/logger@npm:4.0.2" + dependencies: + "@alwatr/package-tracer": "npm:^1.0.2" + "@alwatr/platform-info": "npm:^1.2.2" + checksum: 10c0/aa1b9a6cce2d7d48d2b4a444e5e2b3a3c87d49303c2ce3540032ed9f4c0bb6c5ed2f57b5b7648f7ee8e87e0dd5dffe0ee830eea18cc3be71b2f73f6bda287b8c + languageName: node + linkType: hard + +"@alwatr/nano-build@npm:^1.6.0": + version: 1.6.0 + resolution: "@alwatr/nano-build@npm:1.6.0" dependencies: esbuild: "npm:^0.24.0" bin: nano-build: ./nano-build.cjs - checksum: 10c0/c7a1ebe4a71c5268a81a1e514145a1152f359ecddb1cd050cfdb995a8f67c83ef50038c34b8ed935e92986978a98ca4bc3357b4b99e040d0ed46edb62f873b64 + checksum: 10c0/ce2bc135bf7e1d54d4a7d3115c4cfb2b3802b06e6b11479f9dede4ca913945dd3cea1e039ff650af93c90df2551a502b8feb2bda4a251ae726fc78d41428cfac + languageName: node + linkType: hard + +"@alwatr/nanolib@npm:^1.0.2": + version: 1.0.2 + resolution: "@alwatr/nanolib@npm:1.0.2" + dependencies: + "@alwatr/async-queue": "npm:^1.3.2" + "@alwatr/dedupe": "npm:^1.1.2" + "@alwatr/deep-clone": "npm:^1.1.2" + "@alwatr/delay": "npm:^1.0.2" + "@alwatr/fetch": "npm:^4.1.2" + "@alwatr/flat-string": "npm:^1.1.2" + "@alwatr/flatomise": "npm:^1.2.2" + "@alwatr/is-number": "npm:^1.1.2" + "@alwatr/local-storage": "npm:^1.1.2" + "@alwatr/logger": "npm:^4.0.2" + "@alwatr/package-tracer": "npm:^1.0.2" + "@alwatr/parse-duration": "npm:^1.1.2" + "@alwatr/platform-info": "npm:^1.2.2" + "@alwatr/render-state": "npm:^1.0.2" + checksum: 10c0/5cbc89cdaa1aeea9aa5528917bd6963eca0b7cdfd89cef3b3f7d92ed0ca49a48c6cff8e0ad59ef9504c15ade0b562c7e2b5eb59f228b09439ec61ce9d73525bb languageName: node linkType: hard @@ -111,18 +177,16 @@ __metadata: version: 0.0.0-use.local resolution: "@alwatr/nitrobase-engine@workspace:packages/engine" dependencies: - "@alwatr/exit-hook": "npm:^1.1.1" - "@alwatr/flat-string": "npm:^1.1.1" - "@alwatr/logger": "npm:^4.0.1" - "@alwatr/nano-build": "npm:^1.5.0" + "@alwatr/exit-hook": "npm:^1.1.2" + "@alwatr/nano-build": "npm:^1.6.0" + "@alwatr/nanolib": "npm:^1.0.2" "@alwatr/nitrobase-helper": "workspace:^" "@alwatr/nitrobase-reference": "workspace:^" "@alwatr/nitrobase-types": "workspace:^" - "@alwatr/node-fs": "npm:^1.1.1" + "@alwatr/node-fs": "npm:^1.1.2" "@alwatr/prettier-config": "npm:^1.0.5" - "@alwatr/tsconfig-base": "npm:^1.3.0" - "@alwatr/type-helper": "npm:^2.0.0" - "@alwatr/wait": "npm:^1.1.16" + "@alwatr/tsconfig-base": "npm:^1.3.1" + "@alwatr/type-helper": "npm:^2.0.1" "@types/node": "npm:^22.7.5" typescript: "npm:^5.6.3" languageName: unknown @@ -132,12 +196,12 @@ __metadata: version: 0.0.0-use.local resolution: "@alwatr/nitrobase-helper@workspace:packages/helper" dependencies: - "@alwatr/flat-string": "npm:^1.1.1" - "@alwatr/logger": "npm:^4.0.1" - "@alwatr/nano-build": "npm:^1.5.0" + "@alwatr/flat-string": "npm:^1.1.2" + "@alwatr/logger": "npm:^4.0.2" + "@alwatr/nano-build": "npm:^1.6.0" "@alwatr/nitrobase-types": "workspace:^" "@alwatr/prettier-config": "npm:^1.0.5" - "@alwatr/tsconfig-base": "npm:^1.3.0" + "@alwatr/tsconfig-base": "npm:^1.3.1" "@alwatr/wait": "npm:^1.1.16" "@types/node": "npm:^22.7.5" typescript: "npm:^5.6.3" @@ -154,15 +218,13 @@ __metadata: version: 0.0.0-use.local resolution: "@alwatr/nitrobase-reference@workspace:packages/reference" dependencies: - "@alwatr/flat-string": "npm:^1.1.1" - "@alwatr/logger": "npm:^4.0.1" - "@alwatr/nano-build": "npm:^1.5.0" + "@alwatr/nano-build": "npm:^1.6.0" + "@alwatr/nanolib": "npm:^1.0.2" "@alwatr/nitrobase-helper": "workspace:^" "@alwatr/nitrobase-types": "workspace:^" "@alwatr/prettier-config": "npm:^1.0.5" - "@alwatr/tsconfig-base": "npm:^1.3.0" - "@alwatr/type-helper": "npm:^2.0.0" - "@alwatr/wait": "npm:^1.1.16" + "@alwatr/tsconfig-base": "npm:^1.3.1" + "@alwatr/type-helper": "npm:^2.0.1" "@types/node": "npm:^22.7.5" typescript: "npm:^5.6.3" languageName: unknown @@ -172,11 +234,11 @@ __metadata: version: 0.0.0-use.local resolution: "@alwatr/nitrobase-types@workspace:packages/types" dependencies: - "@alwatr/dedupe": "npm:^1.1.1" - "@alwatr/nano-build": "npm:^1.5.0" + "@alwatr/nano-build": "npm:^1.6.0" + "@alwatr/nanolib": "npm:^1.0.2" "@alwatr/prettier-config": "npm:^1.0.5" - "@alwatr/tsconfig-base": "npm:^1.3.0" - "@alwatr/type-helper": "npm:^2.0.0" + "@alwatr/tsconfig-base": "npm:^1.3.1" + "@alwatr/type-helper": "npm:^2.0.1" "@types/node": "npm:^22.7.5" typescript: "npm:^5.6.3" languageName: unknown @@ -186,54 +248,64 @@ __metadata: version: 0.0.0-use.local resolution: "@alwatr/nitrobase@workspace:packages/nitrobase" dependencies: - "@alwatr/logger": "npm:^4.0.1" - "@alwatr/nano-build": "npm:^1.5.0" + "@alwatr/logger": "npm:^4.0.2" + "@alwatr/nano-build": "npm:^1.6.0" "@alwatr/nitrobase-engine": "workspace:^" "@alwatr/nitrobase-helper": "workspace:^" "@alwatr/nitrobase-reference": "workspace:^" "@alwatr/nitrobase-types": "workspace:^" "@alwatr/prettier-config": "npm:^1.0.5" - "@alwatr/tsconfig-base": "npm:^1.3.0" + "@alwatr/tsconfig-base": "npm:^1.3.1" "@alwatr/wait": "npm:^1.1.16" "@types/node": "npm:^22.7.5" typescript: "npm:^5.6.3" languageName: unknown linkType: soft -"@alwatr/node-fs@npm:^1.1.1": - version: 1.1.1 - resolution: "@alwatr/node-fs@npm:1.1.1" +"@alwatr/node-fs@npm:^1.1.2": + version: 1.1.2 + resolution: "@alwatr/node-fs@npm:1.1.2" dependencies: - "@alwatr/async-queue": "npm:^1.3.1" - "@alwatr/flat-string": "npm:^1.1.1" - "@alwatr/logger": "npm:^4.0.1" - "@alwatr/package-tracer": "npm:^1.0.1" - checksum: 10c0/dd42c7f4185be7ee011c270bcd537f6defebbed4f50242c6c80e440c069be76bd3823a794fbad897cc07e80e889f4448cfeb122590b3ec31e3c8072ad2b89f6c + "@alwatr/async-queue": "npm:^1.3.2" + "@alwatr/flat-string": "npm:^1.1.2" + "@alwatr/logger": "npm:^4.0.2" + "@alwatr/package-tracer": "npm:^1.0.2" + checksum: 10c0/e009f5f916f71ba8e69dddf87e737484aca7d148fd708ed4e546241416b38293b2af40d10b4bb140e690273b8eb05bc4ecb53c772b1a548e6c546598959d48b9 languageName: node linkType: hard -"@alwatr/package-tracer@npm:^1.0.1": - version: 1.0.1 - resolution: "@alwatr/package-tracer@npm:1.0.1" - checksum: 10c0/5ce25e5d442ffe45177492f22bdaa573beeefa98f97f81dcb7b9186bfd65062942e9b9c0bcada83529ffdb7bb1afcb3255ac1102a1ef4dbec3c8cf51a24b9b4e +"@alwatr/package-tracer@npm:^1.0.2": + version: 1.0.2 + resolution: "@alwatr/package-tracer@npm:1.0.2" + checksum: 10c0/72700e5fd4e38356c4b87f13f98b815e457babea957616a5df69d97b46f1834f81753869250fe744ac7bc1c2a7d66366799d22c3db3e77e3f1ccbc925dfddbc5 languageName: node linkType: hard -"@alwatr/platform-info@npm:^1.2.1": - version: 1.2.1 - resolution: "@alwatr/platform-info@npm:1.2.1" +"@alwatr/parse-duration@npm:^1.1.2": + version: 1.1.2 + resolution: "@alwatr/parse-duration@npm:1.1.2" dependencies: - "@alwatr/package-tracer": "npm:^1.0.1" - checksum: 10c0/b003d7161e9d29d4ae085c9e40704d7d035e27c12db11e18a6cf1b5e5c4317e7c077da71b5f6698eb66555d4fbd0d7c061fc970786046a5a61315dfa245e2a77 + "@alwatr/is-number": "npm:^1.1.2" + "@alwatr/package-tracer": "npm:^1.0.2" + checksum: 10c0/6a33369e8e5590966f87e7c587daec846683debfc6d6778568df09d057ecc1060af3a36601d74e3e5123d991e7d211ccea6fb469a3f26e96bed5fb229076ca2e languageName: node linkType: hard -"@alwatr/polyfill-has-own@npm:^1.1.1": - version: 1.1.1 - resolution: "@alwatr/polyfill-has-own@npm:1.1.1" +"@alwatr/platform-info@npm:^1.2.2": + version: 1.2.2 + resolution: "@alwatr/platform-info@npm:1.2.2" + dependencies: + "@alwatr/package-tracer": "npm:^1.0.2" + checksum: 10c0/a0180d5a1681f0e2b947ae43b7c190b079a7661ef3ad0321d24acae055ba38c6df0845472f2007454b16178e369d5dbc88ffb7afeaeb1bbd04a93c4bcedc5101 + languageName: node + linkType: hard + +"@alwatr/polyfill-has-own@npm:^1.1.2": + version: 1.1.2 + resolution: "@alwatr/polyfill-has-own@npm:1.1.2" dependencies: - "@alwatr/package-tracer": "npm:^1.0.1" - checksum: 10c0/bbdadda9af1ad45da1608609b3b2adba72ca80038cd4a59d7abc61bb5a9575f4bef62774cd6b73caaa5af7d8a590bf9c35dfe20fd82c74f8c65b16db0607fe63 + "@alwatr/package-tracer": "npm:^1.0.2" + checksum: 10c0/e5d3f854470927e783f232f9397e083dddad49e9ab5740e6fc03c523ed489b7b373c81bf6374e127222233ce2dd0018a8731c7a2364c1b0b7d2b3ed87bf53db1 languageName: node linkType: hard @@ -244,17 +316,27 @@ __metadata: languageName: node linkType: hard -"@alwatr/tsconfig-base@npm:^1.3.0": - version: 1.3.0 - resolution: "@alwatr/tsconfig-base@npm:1.3.0" - checksum: 10c0/1754fcb8f4a62aa4d78d4c82228b24cd10265aad9138696c2849923b0ef3ac3d3b911bd60ffb582e8564728fd8f52bfbe2a4ef5a8ebe90f47c7c3741c4368d2e +"@alwatr/render-state@npm:^1.0.2": + version: 1.0.2 + resolution: "@alwatr/render-state@npm:1.0.2" + dependencies: + "@alwatr/logger": "npm:^4.0.2" + "@alwatr/package-tracer": "npm:^1.0.2" + checksum: 10c0/4d3d352b786ebc4dd3e5d117db2c83398212ccc95722deeb8ad636a49ff173bb08abbe58360fd89e2bd2ed3190bfe61489429c8f012404d537c73a7b9daeed94 languageName: node linkType: hard -"@alwatr/type-helper@npm:^2.0.0": - version: 2.0.0 - resolution: "@alwatr/type-helper@npm:2.0.0" - checksum: 10c0/f51c21393180aab8ce585b0463203a1de6f0880e9e7d312dc442f784e4743c6d998a2b8e0bbea2a381b9042a659fadac6803835e69756600e55b4cd2467692ce +"@alwatr/tsconfig-base@npm:^1.3.1": + version: 1.3.1 + resolution: "@alwatr/tsconfig-base@npm:1.3.1" + checksum: 10c0/72be717fe0697e607d2175e590b01fe5e0b4d8b90d4896c63e09394132b3f57a4c0393d511533ee293ce9e0f1b292a93e9fa03c3c1683fcc2c156b0b6a421d58 + languageName: node + linkType: hard + +"@alwatr/type-helper@npm:^2.0.1": + version: 2.0.1 + resolution: "@alwatr/type-helper@npm:2.0.1" + checksum: 10c0/a7cefd250cd0c3a0e1e1b9033d2fbd30708673db8155386c8aea10953054d2ad168efd9e799ee201ebdf3be86352ac898904f7687d8375c9ce8d073e18c78990 languageName: node linkType: hard @@ -1571,7 +1653,7 @@ __metadata: version: 0.0.0-use.local resolution: "alwatr-nitrobase@workspace:." dependencies: - "@alwatr/eslint-config": "npm:^1.2.8" + "@alwatr/eslint-config": "npm:^1.2.9" "@alwatr/prettier-config": "npm:^1.0.5" "@lerna-lite/changed": "npm:^3.9.3" "@lerna-lite/cli": "npm:^3.9.3" @@ -2275,9 +2357,9 @@ __metadata: linkType: hard "deepmerge-ts@npm:^7.1.0": - version: 7.1.0 - resolution: "deepmerge-ts@npm:7.1.0" - checksum: 10c0/50e98ca9995e721b2d85b8984a175322369f56fd68b1d915873816e672105d2a22b3be42acc7832954a0ea07c2b0762ecca40eb7886369af33cce8f799baf39e + version: 7.1.3 + resolution: "deepmerge-ts@npm:7.1.3" + checksum: 10c0/c9cfe7742a2c8f785302378b004381e1b831e3307ffe0c17be4b98fd87f347cb52a550aa9ff9ee0608b97f25400972ab79484f3836d77ec733828b10c8dcc522 languageName: node linkType: hard @@ -5065,14 +5147,14 @@ __metadata: linkType: hard "regexp.prototype.flags@npm:^1.5.2": - version: 1.5.2 - resolution: "regexp.prototype.flags@npm:1.5.2" + version: 1.5.3 + resolution: "regexp.prototype.flags@npm:1.5.3" dependencies: - call-bind: "npm:^1.0.6" + call-bind: "npm:^1.0.7" define-properties: "npm:^1.2.1" es-errors: "npm:^1.3.0" - set-function-name: "npm:^2.0.1" - checksum: 10c0/0f3fc4f580d9c349f8b560b012725eb9c002f36daa0041b3fbf6f4238cb05932191a4d7d5db3b5e2caa336d5150ad0402ed2be81f711f9308fe7e1a9bf9bd552 + set-function-name: "npm:^2.0.2" + checksum: 10c0/e1a7c7dc42cc91abf73e47a269c4b3a8f225321b7f617baa25821f6a123a91d23a73b5152f21872c566e699207e1135d075d2251cd3e84cc96d82a910adf6020 languageName: node linkType: hard @@ -5242,7 +5324,7 @@ __metadata: languageName: node linkType: hard -"set-function-name@npm:^2.0.1": +"set-function-name@npm:^2.0.2": version: 2.0.2 resolution: "set-function-name@npm:2.0.2" dependencies: From 0d66f894dc4ff615ab73ebd27c275f98dc384fbe Mon Sep 17 00:00:00 2001 From: Mohammad Honarvar Date: Fri, 11 Oct 2024 21:38:58 +0330 Subject: [PATCH 3/3] feat: update `import`s & packages based on the latest changes of `nanolib` & prevent side-effects --- package.json | 4 +- packages/engine/package.json | 14 +- packages/engine/src/alwatr-nitrobase.ts | 6 +- packages/engine/src/logger.ts | 6 +- packages/engine/tsconfig.json | 2 +- packages/helper/package.json | 10 +- packages/helper/src/main.ts | 4 +- packages/nitrobase/package.json | 9 +- packages/nitrobase/src/main.ts | 4 + packages/reference/package.json | 10 +- .../reference/src/collection-reference.ts | 2 +- packages/reference/src/document-reference.ts | 2 +- packages/reference/src/logger.ts | 6 +- packages/reference/tsconfig.json | 2 +- packages/types/package.json | 10 +- packages/types/src/main.ts | 2 +- packages/types/tsconfig.json | 2 +- yarn.lock | 362 +++++++++--------- 18 files changed, 243 insertions(+), 214 deletions(-) diff --git a/package.json b/package.json index eaea2a42..ec1b9000 100644 --- a/package.json +++ b/package.json @@ -37,8 +37,8 @@ "publish": "lerna publish from-package" }, "devDependencies": { - "@alwatr/eslint-config": "^1.2.9", - "@alwatr/prettier-config": "^1.0.5", + "@alwatr/eslint-config": "^1.2.11", + "@alwatr/prettier-config": "^1.0.6", "@lerna-lite/changed": "^3.9.3", "@lerna-lite/cli": "^3.9.3", "@lerna-lite/diff": "^3.9.3", diff --git a/packages/engine/package.json b/packages/engine/package.json index 25d13eaa..ce07a843 100644 --- a/packages/engine/package.json +++ b/packages/engine/package.json @@ -60,18 +60,16 @@ "clean": "rm -rfv dist *.tsbuildinfo" }, "dependencies": { - "@alwatr/exit-hook": "^1.1.2", - "@alwatr/nanolib": "^1.0.2", + "@alwatr/nanolib": "^1.2.0", "@alwatr/nitrobase-helper": "workspace:^", "@alwatr/nitrobase-reference": "workspace:^", - "@alwatr/nitrobase-types": "workspace:^", - "@alwatr/node-fs": "^1.1.2" + "@alwatr/nitrobase-types": "workspace:^" }, "devDependencies": { - "@alwatr/nano-build": "^1.6.0", - "@alwatr/prettier-config": "^1.0.5", - "@alwatr/tsconfig-base": "^1.3.1", - "@alwatr/type-helper": "^2.0.1", + "@alwatr/nano-build": "^2.0.1", + "@alwatr/prettier-config": "^1.0.6", + "@alwatr/tsconfig-base": "^1.3.2", + "@alwatr/type-helper": "^2.0.2", "@types/node": "^22.7.5", "typescript": "^5.6.3" } diff --git a/packages/engine/src/alwatr-nitrobase.ts b/packages/engine/src/alwatr-nitrobase.ts index 6b2f48c8..b0de8f1c 100644 --- a/packages/engine/src/alwatr-nitrobase.ts +++ b/packages/engine/src/alwatr-nitrobase.ts @@ -1,5 +1,6 @@ -import {exitHook} from '@alwatr/exit-hook'; import {delay} from '@alwatr/nanolib'; +import {exitHook} from '@alwatr/nanolib/exit-hook'; +import {existsSync, readJson, resolve, unlink, writeJson} from '@alwatr/nanolib/node-fs'; import {getStoreId, getStorePath} from '@alwatr/nitrobase-helper'; import {CollectionReference, DocumentReference} from '@alwatr/nitrobase-reference'; import { @@ -13,11 +14,10 @@ import { type StoreFileId, type CollectionItem, } from '@alwatr/nitrobase-types'; -import {existsSync, readJson, resolve, unlink, writeJson} from '@alwatr/node-fs'; import {logger} from './logger.js'; -logger.logFileModule?.('alwatr-nitrobase'); +__dev_mode__: logger.logFileModule?.('alwatr-nitrobase'); /** * AlwatrNitrobase configuration. diff --git a/packages/engine/src/logger.ts b/packages/engine/src/logger.ts index dff36d9a..538142be 100644 --- a/packages/engine/src/logger.ts +++ b/packages/engine/src/logger.ts @@ -1,3 +1,5 @@ -import {createLogger} from '@alwatr/nanolib'; +import {createLogger, packageTracer} from '@alwatr/nanolib'; -export const logger = createLogger(__package_name__); +__dev_mode__: packageTracer.add(__package_name__, __package_version__); + +export const logger = /* #__PURE__ */ createLogger(__package_name__); diff --git a/packages/engine/tsconfig.json b/packages/engine/tsconfig.json index 6b1648c8..539dd575 100644 --- a/packages/engine/tsconfig.json +++ b/packages/engine/tsconfig.json @@ -5,7 +5,7 @@ "outDir": "dist", "emitDeclarationOnly": true, "composite": true, - "types": ["@alwatr/nano-build", "@alwatr/type-helper"] + "types": ["node", "@alwatr/nano-build", "@alwatr/type-helper"] }, "include": ["src/**/*.ts"], "references": [{"path": "../types"}, {"path": "../reference"}, {"path": "../helper"}] diff --git a/packages/helper/package.json b/packages/helper/package.json index bd70db4b..ad01df3d 100644 --- a/packages/helper/package.json +++ b/packages/helper/package.json @@ -60,14 +60,14 @@ "clean": "rm -rfv dist *.tsbuildinfo" }, "dependencies": { - "@alwatr/flat-string": "^1.1.2", + "@alwatr/nanolib": "^1.2.0", "@alwatr/nitrobase-types": "workspace:^" }, "devDependencies": { - "@alwatr/logger": "^4.0.2", - "@alwatr/nano-build": "^1.6.0", - "@alwatr/prettier-config": "^1.0.5", - "@alwatr/tsconfig-base": "^1.3.1", + "@alwatr/logger": "^4.0.5", + "@alwatr/nano-build": "^2.0.1", + "@alwatr/prettier-config": "^1.0.6", + "@alwatr/tsconfig-base": "^1.3.2", "@alwatr/wait": "^1.1.16", "@types/node": "^22.7.5", "typescript": "^5.6.3" diff --git a/packages/helper/src/main.ts b/packages/helper/src/main.ts index 2cf5dd2f..f5d033fb 100644 --- a/packages/helper/src/main.ts +++ b/packages/helper/src/main.ts @@ -1,6 +1,8 @@ -import {flatString} from '@alwatr/flat-string'; +import {flatString, packageTracer} from '@alwatr/nanolib'; import {StoreFileExtension, type StoreFileId, type StoreFileStat} from '@alwatr/nitrobase-types'; +__dev_mode__: packageTracer.add(__package_name__, __package_version__); + /** * Convert StoreFileId to a string ID. * diff --git a/packages/nitrobase/package.json b/packages/nitrobase/package.json index 11268c89..5fde189a 100644 --- a/packages/nitrobase/package.json +++ b/packages/nitrobase/package.json @@ -60,16 +60,17 @@ "clean": "rm -rfv dist *.tsbuildinfo" }, "dependencies": { + "@alwatr/nanolib": "^1.2.0", "@alwatr/nitrobase-engine": "workspace:^", "@alwatr/nitrobase-helper": "workspace:^", "@alwatr/nitrobase-reference": "workspace:^", "@alwatr/nitrobase-types": "workspace:^" }, "devDependencies": { - "@alwatr/logger": "^4.0.2", - "@alwatr/nano-build": "^1.6.0", - "@alwatr/prettier-config": "^1.0.5", - "@alwatr/tsconfig-base": "^1.3.1", + "@alwatr/logger": "^4.0.5", + "@alwatr/nano-build": "^2.0.1", + "@alwatr/prettier-config": "^1.0.6", + "@alwatr/tsconfig-base": "^1.3.2", "@alwatr/wait": "^1.1.16", "@types/node": "^22.7.5", "typescript": "^5.6.3" diff --git a/packages/nitrobase/src/main.ts b/packages/nitrobase/src/main.ts index 8feda939..edc0e63e 100644 --- a/packages/nitrobase/src/main.ts +++ b/packages/nitrobase/src/main.ts @@ -1,4 +1,8 @@ +import {packageTracer} from '@alwatr/nanolib'; + export * from '@alwatr/nitrobase-engine'; export * from '@alwatr/nitrobase-reference'; export * from '@alwatr/nitrobase-helper'; export * from '@alwatr/nitrobase-types'; + +__dev_mode__: packageTracer.add(__package_name__, __package_version__); diff --git a/packages/reference/package.json b/packages/reference/package.json index eb8d401f..0a6b7e8c 100644 --- a/packages/reference/package.json +++ b/packages/reference/package.json @@ -60,15 +60,15 @@ "clean": "rm -rfv dist *.tsbuildinfo" }, "dependencies": { - "@alwatr/nanolib": "^1.0.2", + "@alwatr/nanolib": "^1.2.0", "@alwatr/nitrobase-helper": "workspace:^", "@alwatr/nitrobase-types": "workspace:^" }, "devDependencies": { - "@alwatr/nano-build": "^1.6.0", - "@alwatr/prettier-config": "^1.0.5", - "@alwatr/tsconfig-base": "^1.3.1", - "@alwatr/type-helper": "^2.0.1", + "@alwatr/nano-build": "^2.0.1", + "@alwatr/prettier-config": "^1.0.6", + "@alwatr/tsconfig-base": "^1.3.2", + "@alwatr/type-helper": "^2.0.2", "@types/node": "^22.7.5", "typescript": "^5.6.3" } diff --git a/packages/reference/src/collection-reference.ts b/packages/reference/src/collection-reference.ts index 315e6bf4..53a9e40a 100644 --- a/packages/reference/src/collection-reference.ts +++ b/packages/reference/src/collection-reference.ts @@ -12,7 +12,7 @@ import { import {logger} from './logger.js'; -logger.logFileModule?.('collection-reference'); +__dev_mode__: logger.logFileModule?.('collection-reference'); /** * Represents a reference to a collection of the AlwatrNitrobase. diff --git a/packages/reference/src/document-reference.ts b/packages/reference/src/document-reference.ts index 17f24d77..d687d074 100644 --- a/packages/reference/src/document-reference.ts +++ b/packages/reference/src/document-reference.ts @@ -4,7 +4,7 @@ import {StoreFileType, StoreFileExtension, type StoreFileId, type DocumentContex import {logger} from './logger.js'; -logger.logFileModule?.('document-reference'); +__dev_mode__: logger.logFileModule?.('document-reference'); /** * Represents a reference to a document of the AlwatrNitrobase. diff --git a/packages/reference/src/logger.ts b/packages/reference/src/logger.ts index dff36d9a..538142be 100644 --- a/packages/reference/src/logger.ts +++ b/packages/reference/src/logger.ts @@ -1,3 +1,5 @@ -import {createLogger} from '@alwatr/nanolib'; +import {createLogger, packageTracer} from '@alwatr/nanolib'; -export const logger = createLogger(__package_name__); +__dev_mode__: packageTracer.add(__package_name__, __package_version__); + +export const logger = /* #__PURE__ */ createLogger(__package_name__); diff --git a/packages/reference/tsconfig.json b/packages/reference/tsconfig.json index 1fc5d404..a378aef7 100644 --- a/packages/reference/tsconfig.json +++ b/packages/reference/tsconfig.json @@ -5,7 +5,7 @@ "outDir": "dist", "emitDeclarationOnly": true, "composite": true, - "types": ["@alwatr/nano-build", "@alwatr/type-helper"] + "types": ["node", "@alwatr/nano-build", "@alwatr/type-helper"] }, "include": ["src/**/*.ts", "src/util.ts"], "references": [{"path": "../types"}, {"path": "../helper"}] diff --git a/packages/types/package.json b/packages/types/package.json index a319a771..3d86bac3 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -60,13 +60,13 @@ "clean": "rm -rfv dist *.tsbuildinfo" }, "dependencies": { - "@alwatr/nanolib": "^1.0.2" + "@alwatr/nanolib": "^1.2.0" }, "devDependencies": { - "@alwatr/nano-build": "^1.6.0", - "@alwatr/prettier-config": "^1.0.5", - "@alwatr/tsconfig-base": "^1.3.1", - "@alwatr/type-helper": "^2.0.1", + "@alwatr/nano-build": "^2.0.1", + "@alwatr/prettier-config": "^1.0.6", + "@alwatr/tsconfig-base": "^1.3.2", + "@alwatr/type-helper": "^2.0.2", "@types/node": "^22.7.5", "typescript": "^5.6.3" } diff --git a/packages/types/src/main.ts b/packages/types/src/main.ts index a105ddf9..40bae95a 100644 --- a/packages/types/src/main.ts +++ b/packages/types/src/main.ts @@ -1,6 +1,6 @@ import {packageTracer} from '@alwatr/nanolib'; -packageTracer.add(__package_name__, __package_version__); +__dev_mode__: packageTracer.add(__package_name__, __package_version__); // *** Nitrobase File *** diff --git a/packages/types/tsconfig.json b/packages/types/tsconfig.json index 156d0231..9d62d2b3 100644 --- a/packages/types/tsconfig.json +++ b/packages/types/tsconfig.json @@ -5,7 +5,7 @@ "outDir": "dist", "emitDeclarationOnly": true, "composite": true, - "types": ["@alwatr/nano-build", "@alwatr/type-helper"] + "types": ["node", "@alwatr/nano-build", "@alwatr/type-helper"] }, "include": ["src/**/*.ts"] } diff --git a/yarn.lock b/yarn.lock index 85c8062a..82d16971 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,105 +5,104 @@ __metadata: version: 8 cacheKey: 10c0 -"@alwatr/async-queue@npm:^1.3.2": - version: 1.3.2 - resolution: "@alwatr/async-queue@npm:1.3.2" +"@alwatr/async-queue@npm:^1.3.5": + version: 1.3.5 + resolution: "@alwatr/async-queue@npm:1.3.5" dependencies: - "@alwatr/flatomise": "npm:^1.2.2" - "@alwatr/package-tracer": "npm:^1.0.2" - checksum: 10c0/f8c4e4e317280318c46aada5438975df87b7f62f83d1fa0811f7a1685dd457c8a2d0b2d7ee625bb24f8148e43977855e012c2aa4626b8292636ef00fe9bae4ce + "@alwatr/flatomise": "npm:^1.2.5" + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/0ed46f3ff07c54a8a67d1824a994436148ff88c53f90a3392ef55ef76434b658da7aedf094d65ef08511fd4fdad06121470dff0e7d0b87bfd81a820bea451f53 languageName: node linkType: hard -"@alwatr/dedupe@npm:^1.1.2": - version: 1.1.2 - resolution: "@alwatr/dedupe@npm:1.1.2" +"@alwatr/dedupe@npm:^1.1.5": + version: 1.1.5 + resolution: "@alwatr/dedupe@npm:1.1.5" dependencies: - "@alwatr/global-scope": "npm:^1.1.24" - "@alwatr/package-tracer": "npm:^1.0.2" - "@alwatr/polyfill-has-own": "npm:^1.1.2" - checksum: 10c0/2f53bbd475568ad388d8364cd76206c958ee6145a8f817d5c8dc4b8502e9f280e79d9cbf21ee499013a9b4c71c5c3a156305e3d12087288f816cabc17949b5b8 + "@alwatr/global-this": "npm:^1.0.0" + "@alwatr/package-tracer": "npm:^1.0.5" + "@alwatr/polyfill-has-own": "npm:^1.1.5" + checksum: 10c0/c4e07e978e66a0f013a76336f370d753d716707e738dc6ac4230e18fcd18333eb93ca8bb78ab80f29266ae0c27cd5b053bff4b8d600bf74933917c2654afde2d languageName: node linkType: hard -"@alwatr/deep-clone@npm:^1.1.2": - version: 1.1.2 - resolution: "@alwatr/deep-clone@npm:1.1.2" +"@alwatr/deep-clone@npm:^1.1.5": + version: 1.1.5 + resolution: "@alwatr/deep-clone@npm:1.1.5" dependencies: - "@alwatr/package-tracer": "npm:^1.0.2" - checksum: 10c0/679373e380742c151f3615128c849349850ff5681be27f392baa89b2b7810bd10937cc8dd556f277bb925b3a671362a30c840668e380463617d38633d1a94c88 + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/fac2afae0c53f25d1807ffabf94795e923ffd6f4078a3f5b856aab35858f4c46829d5c2d634402f4339b932413700411c63155a5b520b78aa74f502c3fb8e996 languageName: node linkType: hard -"@alwatr/delay@npm:^1.0.2": - version: 1.0.2 - resolution: "@alwatr/delay@npm:1.0.2" +"@alwatr/delay@npm:^1.0.5": + version: 1.0.5 + resolution: "@alwatr/delay@npm:1.0.5" dependencies: - "@alwatr/global-scope": "npm:^1.1.24" - "@alwatr/package-tracer": "npm:^1.0.2" - "@alwatr/parse-duration": "npm:^1.1.2" - checksum: 10c0/e8e69a757919b9679d3642004f6cfd43ff116716b9205bcdc4681e5ec7432017a97d63065145230e34be6b04be8aad4ea1d5531f45840317ba6edf8b82a30795 + "@alwatr/global-this": "npm:^1.0.0" + "@alwatr/package-tracer": "npm:^1.0.5" + "@alwatr/parse-duration": "npm:^1.1.5" + checksum: 10c0/e0cea457818eca33bbb8fbc7cfa63d8f19b5dacf730db07599c3f157eba911375bcdcf2cfcaf2a57db516c6a3607f8286bdd6dba8769eb81ef1dfac91d0c010d languageName: node linkType: hard -"@alwatr/eslint-config@npm:^1.2.9": - version: 1.2.9 - resolution: "@alwatr/eslint-config@npm:1.2.9" +"@alwatr/eslint-config@npm:^1.2.11": + version: 1.2.11 + resolution: "@alwatr/eslint-config@npm:1.2.11" dependencies: esbuild: "npm:^0.24.0" peerDependencies: - "@typescript-eslint/eslint-plugin": ">7.0.0" - "@typescript-eslint/parser": ">7.0.0" - eslint: ">8.0.0" + "@typescript-eslint/eslint-plugin": ">7.0.0 <8.0.0" + "@typescript-eslint/parser": ">7.0.0 <8.0.0" + eslint: ">8.0.0 <9.0.0" eslint-import-resolver-typescript: ">3.0.0" eslint-plugin-import: ">2.0.0" eslint-plugin-require-extensions: ">0.1.0" - checksum: 10c0/d36f6d39eb6b25a889c889e594b8b042c4b065d105d06ef4c62a9607267cb0090de5fa9a95ae7ad0c163899672808e3b5b6d703201d37e191f36c4151a29088d + checksum: 10c0/2b6374bc0b653c08ccdcf825924400d4794fc487840adbced2c829196b739063ffc2de9f64ba2edb1f6001fcd70aaac8c55473b916b75179c44fc0140cdb5511 languageName: node linkType: hard -"@alwatr/exit-hook@npm:^1.1.2": - version: 1.1.2 - resolution: "@alwatr/exit-hook@npm:1.1.2" +"@alwatr/exit-hook@npm:^1.1.5": + version: 1.1.5 + resolution: "@alwatr/exit-hook@npm:1.1.5" dependencies: - "@alwatr/dedupe": "npm:^1.1.2" - "@alwatr/package-tracer": "npm:^1.0.2" - checksum: 10c0/655c57ded7acc5e21de295ff67e38fae7212a2cf19f0e6152f34d90debe8e66e12b7831dd867f917a6435df31810971afa0db370205cf554b0e2f8008514e04c + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/15394623348558f568b02b6e1af58c375c10c3f551808272b201da63d54639e0e7fb69debeb8771b45322d5a3ea3a5091fe3083a557695a75d5fb7eccbab7b59 languageName: node linkType: hard -"@alwatr/fetch@npm:^4.1.2": - version: 4.1.2 - resolution: "@alwatr/fetch@npm:4.1.2" +"@alwatr/fetch@npm:^4.1.5": + version: 4.1.5 + resolution: "@alwatr/fetch@npm:4.1.5" dependencies: - "@alwatr/delay": "npm:^1.0.2" - "@alwatr/global-scope": "npm:^1.1.24" - "@alwatr/logger": "npm:^4.0.2" - "@alwatr/package-tracer": "npm:^1.0.2" - "@alwatr/parse-duration": "npm:^1.1.2" - checksum: 10c0/f5f3c8839e878ad947810c6ce9516faf28a531279f89544ab9b06a3da7313ebabb8f0c9584c4c0f5ae0fb1828e1b6c1739f56cbbb020763b3213cba085f9c56d + "@alwatr/delay": "npm:^1.0.5" + "@alwatr/global-this": "npm:^1.0.0" + "@alwatr/logger": "npm:^4.0.5" + "@alwatr/package-tracer": "npm:^1.0.5" + "@alwatr/parse-duration": "npm:^1.1.5" + checksum: 10c0/d265ccd8ecca0c712defc25ad33a2d363fb2ac8b4e8a0778d756b9a6d8ab1bb3f558dba698c219c5a2ee0e899be5dc6512382321ab1dbed38ffccf77a6842bc2 languageName: node linkType: hard -"@alwatr/flat-string@npm:^1.1.2": - version: 1.1.2 - resolution: "@alwatr/flat-string@npm:1.1.2" +"@alwatr/flat-string@npm:^1.1.5": + version: 1.1.5 + resolution: "@alwatr/flat-string@npm:1.1.5" dependencies: - "@alwatr/package-tracer": "npm:^1.0.2" - checksum: 10c0/f5f47224eb587e1b8174026eb20d2ff9d8f4e7069f896aecd86752f81ff01463195e2cb35dd7102e37bfe391ea87ba930bab1799479c1eaaa8800171a665c5df + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/184e7ff1dd23ca4894b4a4f640ad33d05db38b26b3995ee31b22353677cf878b0d55861d4913e80b2ce7cd2d118f5241c338596ec7681fbaf8fa278907529b00 languageName: node linkType: hard -"@alwatr/flatomise@npm:^1.2.2": - version: 1.2.2 - resolution: "@alwatr/flatomise@npm:1.2.2" +"@alwatr/flatomise@npm:^1.2.5": + version: 1.2.5 + resolution: "@alwatr/flatomise@npm:1.2.5" dependencies: - "@alwatr/package-tracer": "npm:^1.0.2" - checksum: 10c0/a97acb58023ad57c27619dbc65fc24e70c2b790fc05dfa03d46874ec51b0de3d9080dd2a7aee13548819461d4b919595bb5b60a41110fab19d6290da1308c9b4 + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/3beea11b243b9b14e005648472773f042a9463931b0c0fddb3da6ff9e1abb28d3d992c81d992bccd3b7441d9aa76204780180aee0c083e5da31284dc0f0411e5 languageName: node linkType: hard -"@alwatr/global-scope@npm:^1.1.21, @alwatr/global-scope@npm:^1.1.24": +"@alwatr/global-scope@npm:^1.1.21": version: 1.1.24 resolution: "@alwatr/global-scope@npm:1.1.24" dependencies: @@ -112,64 +111,76 @@ __metadata: languageName: node linkType: hard -"@alwatr/is-number@npm:^1.1.2": - version: 1.1.2 - resolution: "@alwatr/is-number@npm:1.1.2" +"@alwatr/global-this@npm:^1.0.0": + version: 1.0.0 + resolution: "@alwatr/global-this@npm:1.0.0" dependencies: - "@alwatr/package-tracer": "npm:^1.0.2" - checksum: 10c0/a48c2f2fe17712c9a26ba37ab1b36266beee00d154089dd254ac3783da3e321a272e441403f192df38bb58aa728388b14d37f1ccb94dee48c8bcfedaba7e41ea + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/9972f49c5aea76dd1b79171e3c3f8d2c2176e9c6d5e3ed3838fce27aa18b8542b20749d1ab2b7eeae2a9d00d7893559313281a609eb94db69c061f1f3d6b714d languageName: node linkType: hard -"@alwatr/local-storage@npm:^1.1.2": - version: 1.1.2 - resolution: "@alwatr/local-storage@npm:1.1.2" +"@alwatr/is-number@npm:^1.1.5": + version: 1.1.5 + resolution: "@alwatr/is-number@npm:1.1.5" dependencies: - "@alwatr/package-tracer": "npm:^1.0.2" - checksum: 10c0/24a7210ef7d14f81710735fd1f8d77a11805bc181e5405b597bc1d584f73821c4293c64c0d1791db0f495944c51832b77808dcaa1e41021b0c6532314725e106 + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/3ddee47146963487ecd03da929f7c5dff396182070c6b09d4586f067842e2483583f51e34dc110dff5882ac4d0a528ff8bfd690ccba9004e815f491cc9bfb715 languageName: node linkType: hard -"@alwatr/logger@npm:^4.0.2": - version: 4.0.2 - resolution: "@alwatr/logger@npm:4.0.2" +"@alwatr/local-storage@npm:^1.1.5": + version: 1.1.5 + resolution: "@alwatr/local-storage@npm:1.1.5" dependencies: - "@alwatr/package-tracer": "npm:^1.0.2" - "@alwatr/platform-info": "npm:^1.2.2" - checksum: 10c0/aa1b9a6cce2d7d48d2b4a444e5e2b3a3c87d49303c2ce3540032ed9f4c0bb6c5ed2f57b5b7648f7ee8e87e0dd5dffe0ee830eea18cc3be71b2f73f6bda287b8c + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/7e0d089ea5fd8e2b506f751e05f0a8de78dd3438300aa59996bde58c868b13c06fa8f4ba61820ed5612eee87ee3179f9b847cbe75f97c6cb79fbaced09f8c0be languageName: node linkType: hard -"@alwatr/nano-build@npm:^1.6.0": - version: 1.6.0 - resolution: "@alwatr/nano-build@npm:1.6.0" +"@alwatr/logger@npm:^4.0.5": + version: 4.0.5 + resolution: "@alwatr/logger@npm:4.0.5" + dependencies: + "@alwatr/package-tracer": "npm:^1.0.5" + "@alwatr/platform-info": "npm:^1.2.5" + checksum: 10c0/028fdc67a6b02cdb8c50693337dccaf405314dc7c619cc2b99faf1c275e22d905c95e3d9860966435f9b33f7bfe221d824a11419e1f83c3cec1daf83179a8a86 + languageName: node + linkType: hard + +"@alwatr/nano-build@npm:^2.0.1": + version: 2.0.1 + resolution: "@alwatr/nano-build@npm:2.0.1" dependencies: esbuild: "npm:^0.24.0" bin: nano-build: ./nano-build.cjs - checksum: 10c0/ce2bc135bf7e1d54d4a7d3115c4cfb2b3802b06e6b11479f9dede4ca913945dd3cea1e039ff650af93c90df2551a502b8feb2bda4a251ae726fc78d41428cfac + checksum: 10c0/9fdf1e89431fcb5623e561475293f54485fdb6daa855dae28e934af4dcd59efbb2b1abcce6e805cc9999be12f5685fbfb9b32cc7c8c207a4f64ea1e2b0dd1c9c languageName: node linkType: hard -"@alwatr/nanolib@npm:^1.0.2": - version: 1.0.2 - resolution: "@alwatr/nanolib@npm:1.0.2" - dependencies: - "@alwatr/async-queue": "npm:^1.3.2" - "@alwatr/dedupe": "npm:^1.1.2" - "@alwatr/deep-clone": "npm:^1.1.2" - "@alwatr/delay": "npm:^1.0.2" - "@alwatr/fetch": "npm:^4.1.2" - "@alwatr/flat-string": "npm:^1.1.2" - "@alwatr/flatomise": "npm:^1.2.2" - "@alwatr/is-number": "npm:^1.1.2" - "@alwatr/local-storage": "npm:^1.1.2" - "@alwatr/logger": "npm:^4.0.2" - "@alwatr/package-tracer": "npm:^1.0.2" - "@alwatr/parse-duration": "npm:^1.1.2" - "@alwatr/platform-info": "npm:^1.2.2" - "@alwatr/render-state": "npm:^1.0.2" - checksum: 10c0/5cbc89cdaa1aeea9aa5528917bd6963eca0b7cdfd89cef3b3f7d92ed0ca49a48c6cff8e0ad59ef9504c15ade0b562c7e2b5eb59f228b09439ec61ce9d73525bb +"@alwatr/nanolib@npm:^1.2.0": + version: 1.2.0 + resolution: "@alwatr/nanolib@npm:1.2.0" + dependencies: + "@alwatr/async-queue": "npm:^1.3.5" + "@alwatr/dedupe": "npm:^1.1.5" + "@alwatr/deep-clone": "npm:^1.1.5" + "@alwatr/delay": "npm:^1.0.5" + "@alwatr/exit-hook": "npm:^1.1.5" + "@alwatr/fetch": "npm:^4.1.5" + "@alwatr/flat-string": "npm:^1.1.5" + "@alwatr/flatomise": "npm:^1.2.5" + "@alwatr/is-number": "npm:^1.1.5" + "@alwatr/local-storage": "npm:^1.1.5" + "@alwatr/logger": "npm:^4.0.5" + "@alwatr/node-fs": "npm:^1.1.5" + "@alwatr/package-tracer": "npm:^1.0.5" + "@alwatr/parse-duration": "npm:^1.1.5" + "@alwatr/platform-info": "npm:^1.2.5" + "@alwatr/render-state": "npm:^1.0.5" + "@alwatr/unicode-digits": "npm:^1.1.0" + checksum: 10c0/0784418c4414f03d3d2f58ec5eb981b53e9d75a7977096a3d70222cf7327c28e54f8f6b1e431092f6e87c1cfae84609d5ed405d7161ab4e5838bc510f1714e14 languageName: node linkType: hard @@ -177,16 +188,16 @@ __metadata: version: 0.0.0-use.local resolution: "@alwatr/nitrobase-engine@workspace:packages/engine" dependencies: - "@alwatr/exit-hook": "npm:^1.1.2" - "@alwatr/nano-build": "npm:^1.6.0" - "@alwatr/nanolib": "npm:^1.0.2" + "@alwatr/exit-hook": "npm:^1.1.5" + "@alwatr/nano-build": "npm:^2.0.1" + "@alwatr/nanolib": "npm:^1.2.0" "@alwatr/nitrobase-helper": "workspace:^" "@alwatr/nitrobase-reference": "workspace:^" "@alwatr/nitrobase-types": "workspace:^" - "@alwatr/node-fs": "npm:^1.1.2" - "@alwatr/prettier-config": "npm:^1.0.5" - "@alwatr/tsconfig-base": "npm:^1.3.1" - "@alwatr/type-helper": "npm:^2.0.1" + "@alwatr/node-fs": "npm:^1.1.5" + "@alwatr/prettier-config": "npm:^1.0.6" + "@alwatr/tsconfig-base": "npm:^1.3.2" + "@alwatr/type-helper": "npm:^2.0.2" "@types/node": "npm:^22.7.5" typescript: "npm:^5.6.3" languageName: unknown @@ -196,12 +207,12 @@ __metadata: version: 0.0.0-use.local resolution: "@alwatr/nitrobase-helper@workspace:packages/helper" dependencies: - "@alwatr/flat-string": "npm:^1.1.2" - "@alwatr/logger": "npm:^4.0.2" - "@alwatr/nano-build": "npm:^1.6.0" + "@alwatr/flat-string": "npm:^1.1.5" + "@alwatr/logger": "npm:^4.0.5" + "@alwatr/nano-build": "npm:^2.0.1" "@alwatr/nitrobase-types": "workspace:^" - "@alwatr/prettier-config": "npm:^1.0.5" - "@alwatr/tsconfig-base": "npm:^1.3.1" + "@alwatr/prettier-config": "npm:^1.0.6" + "@alwatr/tsconfig-base": "npm:^1.3.2" "@alwatr/wait": "npm:^1.1.16" "@types/node": "npm:^22.7.5" typescript: "npm:^5.6.3" @@ -218,13 +229,13 @@ __metadata: version: 0.0.0-use.local resolution: "@alwatr/nitrobase-reference@workspace:packages/reference" dependencies: - "@alwatr/nano-build": "npm:^1.6.0" - "@alwatr/nanolib": "npm:^1.0.2" + "@alwatr/nano-build": "npm:^2.0.1" + "@alwatr/nanolib": "npm:^1.2.0" "@alwatr/nitrobase-helper": "workspace:^" "@alwatr/nitrobase-types": "workspace:^" - "@alwatr/prettier-config": "npm:^1.0.5" - "@alwatr/tsconfig-base": "npm:^1.3.1" - "@alwatr/type-helper": "npm:^2.0.1" + "@alwatr/prettier-config": "npm:^1.0.6" + "@alwatr/tsconfig-base": "npm:^1.3.2" + "@alwatr/type-helper": "npm:^2.0.2" "@types/node": "npm:^22.7.5" typescript: "npm:^5.6.3" languageName: unknown @@ -234,11 +245,11 @@ __metadata: version: 0.0.0-use.local resolution: "@alwatr/nitrobase-types@workspace:packages/types" dependencies: - "@alwatr/nano-build": "npm:^1.6.0" - "@alwatr/nanolib": "npm:^1.0.2" - "@alwatr/prettier-config": "npm:^1.0.5" - "@alwatr/tsconfig-base": "npm:^1.3.1" - "@alwatr/type-helper": "npm:^2.0.1" + "@alwatr/nano-build": "npm:^2.0.1" + "@alwatr/nanolib": "npm:^1.2.0" + "@alwatr/prettier-config": "npm:^1.0.6" + "@alwatr/tsconfig-base": "npm:^1.3.2" + "@alwatr/type-helper": "npm:^2.0.2" "@types/node": "npm:^22.7.5" typescript: "npm:^5.6.3" languageName: unknown @@ -248,95 +259,104 @@ __metadata: version: 0.0.0-use.local resolution: "@alwatr/nitrobase@workspace:packages/nitrobase" dependencies: - "@alwatr/logger": "npm:^4.0.2" - "@alwatr/nano-build": "npm:^1.6.0" + "@alwatr/logger": "npm:^4.0.5" + "@alwatr/nano-build": "npm:^2.0.1" "@alwatr/nitrobase-engine": "workspace:^" "@alwatr/nitrobase-helper": "workspace:^" "@alwatr/nitrobase-reference": "workspace:^" "@alwatr/nitrobase-types": "workspace:^" - "@alwatr/prettier-config": "npm:^1.0.5" - "@alwatr/tsconfig-base": "npm:^1.3.1" + "@alwatr/prettier-config": "npm:^1.0.6" + "@alwatr/tsconfig-base": "npm:^1.3.2" "@alwatr/wait": "npm:^1.1.16" "@types/node": "npm:^22.7.5" typescript: "npm:^5.6.3" languageName: unknown linkType: soft -"@alwatr/node-fs@npm:^1.1.2": - version: 1.1.2 - resolution: "@alwatr/node-fs@npm:1.1.2" +"@alwatr/node-fs@npm:^1.1.5": + version: 1.1.5 + resolution: "@alwatr/node-fs@npm:1.1.5" dependencies: - "@alwatr/async-queue": "npm:^1.3.2" - "@alwatr/flat-string": "npm:^1.1.2" - "@alwatr/logger": "npm:^4.0.2" - "@alwatr/package-tracer": "npm:^1.0.2" - checksum: 10c0/e009f5f916f71ba8e69dddf87e737484aca7d148fd708ed4e546241416b38293b2af40d10b4bb140e690273b8eb05bc4ecb53c772b1a548e6c546598959d48b9 + "@alwatr/async-queue": "npm:^1.3.5" + "@alwatr/flat-string": "npm:^1.1.5" + "@alwatr/logger": "npm:^4.0.5" + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/0dfa6ee3cd67ef786cdfb9c3ab48a4748899db50abde1a10d322eade196e100e1b39ed355724474e49b8f3da3d5062f3f22a68ff4f27591d3da0df776655e797 languageName: node linkType: hard -"@alwatr/package-tracer@npm:^1.0.2": - version: 1.0.2 - resolution: "@alwatr/package-tracer@npm:1.0.2" - checksum: 10c0/72700e5fd4e38356c4b87f13f98b815e457babea957616a5df69d97b46f1834f81753869250fe744ac7bc1c2a7d66366799d22c3db3e77e3f1ccbc925dfddbc5 +"@alwatr/package-tracer@npm:^1.0.2, @alwatr/package-tracer@npm:^1.0.5": + version: 1.0.5 + resolution: "@alwatr/package-tracer@npm:1.0.5" + checksum: 10c0/4ade05b1e46046eec097e79d896bdd59f0ae9014be8ef16a888b9f94ef4138621bc80ebcd7a8cdaee7ce5591fbc1a452f8876459bd7c2ab4c622c84715551e9a languageName: node linkType: hard -"@alwatr/parse-duration@npm:^1.1.2": - version: 1.1.2 - resolution: "@alwatr/parse-duration@npm:1.1.2" +"@alwatr/parse-duration@npm:^1.1.5": + version: 1.1.5 + resolution: "@alwatr/parse-duration@npm:1.1.5" dependencies: - "@alwatr/is-number": "npm:^1.1.2" - "@alwatr/package-tracer": "npm:^1.0.2" - checksum: 10c0/6a33369e8e5590966f87e7c587daec846683debfc6d6778568df09d057ecc1060af3a36601d74e3e5123d991e7d211ccea6fb469a3f26e96bed5fb229076ca2e + "@alwatr/is-number": "npm:^1.1.5" + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/d95343483db43e9ef00885a4cfc2bec03374b4e16ff26e360cd7df6a8193d14508dc1fc8a055906a6a5a7d7b2b35ec5096da67bd5878721993fe5d14fb243c3d languageName: node linkType: hard -"@alwatr/platform-info@npm:^1.2.2": - version: 1.2.2 - resolution: "@alwatr/platform-info@npm:1.2.2" +"@alwatr/platform-info@npm:^1.2.5": + version: 1.2.5 + resolution: "@alwatr/platform-info@npm:1.2.5" dependencies: - "@alwatr/package-tracer": "npm:^1.0.2" - checksum: 10c0/a0180d5a1681f0e2b947ae43b7c190b079a7661ef3ad0321d24acae055ba38c6df0845472f2007454b16178e369d5dbc88ffb7afeaeb1bbd04a93c4bcedc5101 + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/a9d0cfff43d00d1a6d349c96b70297907111c5d305e5c0936e58e28b1f7f6ba28d4de4ca21c6d2e5f73dc3c2836e3b69633bc20e57d26095018b17f41a374711 languageName: node linkType: hard -"@alwatr/polyfill-has-own@npm:^1.1.2": - version: 1.1.2 - resolution: "@alwatr/polyfill-has-own@npm:1.1.2" +"@alwatr/polyfill-has-own@npm:^1.1.5": + version: 1.1.5 + resolution: "@alwatr/polyfill-has-own@npm:1.1.5" dependencies: - "@alwatr/package-tracer": "npm:^1.0.2" - checksum: 10c0/e5d3f854470927e783f232f9397e083dddad49e9ab5740e6fc03c523ed489b7b373c81bf6374e127222233ce2dd0018a8731c7a2364c1b0b7d2b3ed87bf53db1 + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/943d9d1a3c20d50cfdf3fc08dd4186ae31b364fea270a755a29852452d6400f8ee0ef6bc5217a0d5d9e1072d38e3cbfc3762b8db04ef39285f916bdce2fc96fb languageName: node linkType: hard -"@alwatr/prettier-config@npm:^1.0.5": - version: 1.0.5 - resolution: "@alwatr/prettier-config@npm:1.0.5" - checksum: 10c0/577b5aa9cfb23137e870eaea7aec6b1409dedac5bbba37f771bfedecbb0dae497f83e59bd0b6146db9868b38f8d54643aeee3917fd6dd9ce83a64aa9b2155ff3 +"@alwatr/prettier-config@npm:^1.0.6": + version: 1.0.6 + resolution: "@alwatr/prettier-config@npm:1.0.6" + checksum: 10c0/f1e04e2414dafe8c6dc3576c5f709d81eca57a4fe7b35518da08376dfe5e045061bc4e5cfeba16f6063ace45f177b23fb3063a337c8e263b1e79da682d49aa87 languageName: node linkType: hard -"@alwatr/render-state@npm:^1.0.2": - version: 1.0.2 - resolution: "@alwatr/render-state@npm:1.0.2" +"@alwatr/render-state@npm:^1.0.5": + version: 1.0.5 + resolution: "@alwatr/render-state@npm:1.0.5" dependencies: - "@alwatr/logger": "npm:^4.0.2" - "@alwatr/package-tracer": "npm:^1.0.2" - checksum: 10c0/4d3d352b786ebc4dd3e5d117db2c83398212ccc95722deeb8ad636a49ff173bb08abbe58360fd89e2bd2ed3190bfe61489429c8f012404d537c73a7b9daeed94 + "@alwatr/logger": "npm:^4.0.5" + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/7e6dee8e98baac15549e7d1708016590784011cdcb224676ec4189d65b4d904b58912c1c476942f189f2181f781e87c697d4699373aa19d978de45e168de88d9 languageName: node linkType: hard -"@alwatr/tsconfig-base@npm:^1.3.1": - version: 1.3.1 - resolution: "@alwatr/tsconfig-base@npm:1.3.1" - checksum: 10c0/72be717fe0697e607d2175e590b01fe5e0b4d8b90d4896c63e09394132b3f57a4c0393d511533ee293ce9e0f1b292a93e9fa03c3c1683fcc2c156b0b6a421d58 +"@alwatr/tsconfig-base@npm:^1.3.2": + version: 1.3.2 + resolution: "@alwatr/tsconfig-base@npm:1.3.2" + checksum: 10c0/d92d80881d380502249a4febfd78dc8051f0b77ce92069f7f31e091cfbb504e58dce1c456ce2a3b069d5773238dcfe1ee912623a954c48a6d6df0385d4048cd2 languageName: node linkType: hard -"@alwatr/type-helper@npm:^2.0.1": - version: 2.0.1 - resolution: "@alwatr/type-helper@npm:2.0.1" - checksum: 10c0/a7cefd250cd0c3a0e1e1b9033d2fbd30708673db8155386c8aea10953054d2ad168efd9e799ee201ebdf3be86352ac898904f7687d8375c9ce8d073e18c78990 +"@alwatr/type-helper@npm:^2.0.2": + version: 2.0.2 + resolution: "@alwatr/type-helper@npm:2.0.2" + checksum: 10c0/0ea8ac7b531737d3e832c447dc62e2ff74f79e856f8d98790ee34a57fcd88db81a05eb1306a54a9a4f805eee9059a7721a3b543ea10fc27f7ee29b5c732ec207 + languageName: node + linkType: hard + +"@alwatr/unicode-digits@npm:^1.1.0": + version: 1.1.0 + resolution: "@alwatr/unicode-digits@npm:1.1.0" + dependencies: + "@alwatr/package-tracer": "npm:^1.0.5" + checksum: 10c0/f4eba6fecd4cc83a938e9be37caf2395cedd66229d8992985e6fccfef186e8e6d7ca5420bd5dd2c6c7848303027557cb0a9b2927daa1535fe15b06a02ede47a5 languageName: node linkType: hard @@ -1653,8 +1673,8 @@ __metadata: version: 0.0.0-use.local resolution: "alwatr-nitrobase@workspace:." dependencies: - "@alwatr/eslint-config": "npm:^1.2.9" - "@alwatr/prettier-config": "npm:^1.0.5" + "@alwatr/eslint-config": "npm:^1.2.11" + "@alwatr/prettier-config": "npm:^1.0.6" "@lerna-lite/changed": "npm:^3.9.3" "@lerna-lite/cli": "npm:^3.9.3" "@lerna-lite/diff": "npm:^3.9.3"