@alwatr/node-fs
Advanced tools
Comparing version 1.0.0-beta.0 to 1.0.0
@@ -6,2 +6,8 @@ # Change Log | ||
# [1.0.0](https://github.com/Alwatr/nanolib/compare/@alwatr/node-fs@1.0.0-beta.0...@alwatr/node-fs@1.0.0) (2024-01-16) | ||
### Features | ||
* **node-fs:** enhance type of JSON-related functions ([69751ed](https://github.com/Alwatr/nanolib/commit/69751ed658f76eb439a9834f861c01c06542352b)) by @AliMD | ||
# 1.0.0-beta.0 (2024-01-08) | ||
@@ -8,0 +14,0 @@ |
@@ -1,2 +0,2 @@ | ||
import type { Dictionary } from '@alwatr/type-helper'; | ||
import type { JsonValue } from '@alwatr/type-helper'; | ||
/** | ||
@@ -13,3 +13,3 @@ * Parse json string. | ||
*/ | ||
export declare function parseJson<T extends Dictionary>(content: string): T; | ||
export declare function parseJson<T extends JsonValue>(content: string): T; | ||
/** | ||
@@ -26,3 +26,3 @@ * Stringify json object. | ||
*/ | ||
export declare function jsonStringify<T extends Dictionary>(data: T): string; | ||
export declare function jsonStringify<T extends JsonValue>(data: T): string; | ||
//# sourceMappingURL=json.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { Dictionary, MaybePromise } from '@alwatr/type-helper'; | ||
import type { JsonValue, MaybePromise } from '@alwatr/type-helper'; | ||
/** | ||
@@ -12,3 +12,3 @@ * Enhanced read json file (async). | ||
*/ | ||
export declare function readJson<T extends Dictionary>(path: string): Promise<T>; | ||
export declare function readJson<T extends JsonValue>(path: string): Promise<T>; | ||
/** | ||
@@ -25,3 +25,3 @@ * Enhanced read json file (sync). | ||
*/ | ||
export declare function readJson<T extends Dictionary>(path: string, sync: true): T; | ||
export declare function readJson<T extends JsonValue>(path: string, sync: true): T; | ||
/** | ||
@@ -38,3 +38,3 @@ * Enhanced read json file. | ||
*/ | ||
export declare function readJson<T extends Dictionary>(path: string, sync: boolean): MaybePromise<T>; | ||
export declare function readJson<T extends JsonValue>(path: string, sync: boolean): MaybePromise<T>; | ||
//# sourceMappingURL=read-json.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { Dictionary, MaybePromise } from '@alwatr/type-helper'; | ||
import type { JsonValue, MaybePromise } from '@alwatr/type-helper'; | ||
/** | ||
@@ -12,3 +12,3 @@ * Enhanced write json file (Asynchronous). | ||
*/ | ||
export declare function writeJson<T extends Dictionary>(path: string, data: T, sync?: false): Promise<void>; | ||
export declare function writeJson<T extends JsonValue>(path: string, data: T, sync?: false): Promise<void>; | ||
/** | ||
@@ -25,3 +25,3 @@ * Enhanced write json file (Synchronous). | ||
*/ | ||
export declare function writeJson<T extends Dictionary>(path: string, data: T, sync: true): void; | ||
export declare function writeJson<T extends JsonValue>(path: string, data: T, sync: true): void; | ||
/** | ||
@@ -38,3 +38,3 @@ * Enhanced write json file. | ||
*/ | ||
export declare function writeJson<T extends Dictionary>(path: string, data: T, sync: boolean): MaybePromise<void>; | ||
export declare function writeJson<T extends JsonValue>(path: string, data: T, sync: boolean): MaybePromise<void>; | ||
//# sourceMappingURL=write-json.d.ts.map |
{ | ||
"name": "@alwatr/node-fs", | ||
"version": "1.0.0-beta.0", | ||
"version": "1.0.0", | ||
"description": "Enhanced file system operations in Node.js with asynchronous queue to prevent parallel writes.", | ||
@@ -76,15 +76,15 @@ "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>", | ||
"dependencies": { | ||
"@alwatr/async-queue": "^1.1.0", | ||
"@alwatr/flat-string": "^1.0.12", | ||
"@alwatr/logger": "^3.2.1" | ||
"@alwatr/async-queue": "^1.1.1", | ||
"@alwatr/flat-string": "^1.0.13", | ||
"@alwatr/logger": "^3.2.2" | ||
}, | ||
"devDependencies": { | ||
"@alwatr/nano-build": "^1.3.0", | ||
"@alwatr/nano-build": "^1.3.1", | ||
"@alwatr/prettier-config": "^1.0.4", | ||
"@alwatr/tsconfig-base": "^1.1.0", | ||
"@alwatr/type-helper": "^1.0.3", | ||
"@types/node": "^20.10.7", | ||
"@alwatr/tsconfig-base": "^1.1.1", | ||
"@alwatr/type-helper": "^1.1.0", | ||
"@types/node": "^20.11.3", | ||
"typescript": "^5.3.3" | ||
}, | ||
"gitHead": "51edc127640bdfd74834e98d2d09de6f16564a8d" | ||
"gitHead": "369887cfdcbf5c6f3899880a5e217b102b36706c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
49719
1
Updated@alwatr/async-queue@^1.1.1
Updated@alwatr/flat-string@^1.0.13
Updated@alwatr/logger@^3.2.2