@alwatr/node-fs 1.1.8 → 5.0.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.
- package/CHANGELOG.md +72 -0
- package/dist/main.cjs +2 -2
- package/dist/main.mjs +2 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,78 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 5.0.0 (2024-11-02)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* To simplify version management and ensure consistency, all nanolib packages now use the same version as @alwatr/nanolib. This may require updates to your project's dependencies.
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **node-fs/write-file:** support buffer as content ([3cce9e9](https://github.com/Alwatr/nanolib/commit/3cce9e937209bfb39aee1b981370ca4a76114e62)) by @
|
|
15
|
+
* **node-fs:** Add make-file-bench demo script ([ca3a57a](https://github.com/Alwatr/nanolib/commit/ca3a57a31de5a8b9c76c9d33cb9755809f09a335)) by @
|
|
16
|
+
* **node-fs:** base package ([74cbe48](https://github.com/Alwatr/nanolib/commit/74cbe4821c991d1f6c3d5805b29602b922c3f505)) by @
|
|
17
|
+
* **node-fs:** copy from store ([5c23e01](https://github.com/Alwatr/nanolib/commit/5c23e01e42d438c15dcd272d2cc351527865c86c)) by @
|
|
18
|
+
* **node-fs:** definePackage and logger ([3880703](https://github.com/Alwatr/nanolib/commit/38807039895c784be6168111506b0721980cbb29)) by @
|
|
19
|
+
* **node-fs:** demo ([31f3740](https://github.com/Alwatr/nanolib/commit/31f37405a7bb2b4b02440de7f96f5cc8a474aba9)) by @
|
|
20
|
+
* **node-fs:** enhance json types ([e85d927](https://github.com/Alwatr/nanolib/commit/e85d9276374a8c5171901791a3a43acad64843a6)) by @
|
|
21
|
+
* **node-fs:** enhance type of JSON-related functions ([69751ed](https://github.com/Alwatr/nanolib/commit/69751ed658f76eb439a9834f861c01c06542352b)) by @
|
|
22
|
+
* **node-fs:** enhance writeJson type ([9010c72](https://github.com/Alwatr/nanolib/commit/9010c723b1f34cd647f157466554b312fc84a1d3)) by @
|
|
23
|
+
* **node-fs:** makeFile ([186ba09](https://github.com/Alwatr/nanolib/commit/186ba09822bddfe200a0ac4725063785cadd0999)) by @
|
|
24
|
+
* **node-fs:** readFile under asyncQueue ([ab12153](https://github.com/Alwatr/nanolib/commit/ab12153281600a4ac90ef627811b430a95140ddd)) by @
|
|
25
|
+
* **node-fs:** rewrite new writeFile method ([7534ed1](https://github.com/Alwatr/nanolib/commit/7534ed158cdfe1ee593050255c17449960b13001)) by @
|
|
26
|
+
* **node-fs:** writeFile under asyncQueue ([6d8b3d7](https://github.com/Alwatr/nanolib/commit/6d8b3d7953938fc954e8ce350206555030560978)) by @
|
|
27
|
+
* **node-fs:** writeJson method ([581d4f9](https://github.com/Alwatr/nanolib/commit/581d4f958ccb262c13f23881151616b7ec5e93ee)) by @
|
|
28
|
+
* use `package-tracer` ([cc3c5f9](https://github.com/Alwatr/nanolib/commit/cc3c5f9c1a3d03f0d81b46835665f16a0426fd0d)) by @
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* all dependeny topology ([1c17f34](https://github.com/Alwatr/nanolib/commit/1c17f349adf3e98e2a80ab2da4f0f81028dc9c5f)) by @
|
|
33
|
+
* exported types by add .js extensions to all imports ([fc3d83e](https://github.com/Alwatr/nanolib/commit/fc3d83e8f375da97ba276314b2e6966aa82c9b3f)) by @
|
|
34
|
+
* **node-fs:** Update import statement for make-file module ([7bddaa0](https://github.com/Alwatr/nanolib/commit/7bddaa0d629c304fedd07c4022d7503aa9b974b6)) by @
|
|
35
|
+
|
|
36
|
+
### Code Refactoring
|
|
37
|
+
|
|
38
|
+
* **node-fs:** readJson function ([e9cf12d](https://github.com/Alwatr/nanolib/commit/e9cf12d36924d683f6c4922934c5cb480688de03)) by @
|
|
39
|
+
* **node-fs:** remove unused import from common module ([496a338](https://github.com/Alwatr/nanolib/commit/496a338a6366aa12dc32bbed07a3e14bd5315bd2)) by @
|
|
40
|
+
* **node-fs:** rewrite makeEmptyFile ([a39590b](https://github.com/Alwatr/nanolib/commit/a39590b41f1936ec7a4abad92b7c0fdc95a99e8d)) by @
|
|
41
|
+
* **node-fs:** separate files ([a2b15a4](https://github.com/Alwatr/nanolib/commit/a2b15a4e8077759bc647ca5356aebc48a49e8fd4)) by @
|
|
42
|
+
* **node-fs:** separate read file functions ([de2cf5d](https://github.com/Alwatr/nanolib/commit/de2cf5d7110646230019c53a458092617be71922)) by @
|
|
43
|
+
* **node-fs:** separate readJson ([5616b53](https://github.com/Alwatr/nanolib/commit/5616b5303a9a4d5e35c8e75c09c59a8fbd145030)) by @
|
|
44
|
+
* **node-fs:** Update logger import and initialization ([0f89c0f](https://github.com/Alwatr/nanolib/commit/0f89c0f7bc24e79c20d3d5d3fc3f906f12cf7161)) by @
|
|
45
|
+
* prevent side-effects ([01e00e1](https://github.com/Alwatr/nanolib/commit/01e00e191385cc92b28677df0c01a085916ae677)) by @
|
|
46
|
+
* use new type-helper global types and remove all import types ([08b5d08](https://github.com/Alwatr/nanolib/commit/08b5d08c03c7c315382337239de0426462f384b8)) by @
|
|
47
|
+
* use the same version as @alwatr/nanolib ([60eb860](https://github.com/Alwatr/nanolib/commit/60eb860a0e33dfffe2d1d95e63ce54c60876be06)) by @
|
|
48
|
+
|
|
49
|
+
### Miscellaneous Chores
|
|
50
|
+
|
|
51
|
+
* **deps-dev:** bump the development-dependencies group with 3 updates ([0e0ec0f](https://github.com/Alwatr/nanolib/commit/0e0ec0f7c66c849727563cabe0e88606aee49035)) by @
|
|
52
|
+
* **deps:** update ([1a45030](https://github.com/Alwatr/nanolib/commit/1a450305440b710a300787d4ca24b1ed8c6a39d7)) by @
|
|
53
|
+
* **deps:** update ([8e70dff](https://github.com/Alwatr/nanolib/commit/8e70dffb1e751496ef2e72d6cffd685f1fea44e3)) by @
|
|
54
|
+
* include LICENSE and LEGAL files to publish ([09f366f](https://github.com/Alwatr/nanolib/commit/09f366f680bfa9fb26acb2cd1ccbc68c5a9e9ad8)) by @
|
|
55
|
+
* **node-fs:** beta version ([1b43445](https://github.com/Alwatr/nanolib/commit/1b4344573ad878fefde904958c8366ff5d6166c3)) by @
|
|
56
|
+
* **node-fs:** change the license to AGPL-3.0 ([9728276](https://github.com/Alwatr/nanolib/commit/97282764bfdb15ef1de25704012f1628a5d0c112)) by @
|
|
57
|
+
* **node-fs:** enhance demo test ([b7370d6](https://github.com/Alwatr/nanolib/commit/b7370d6805133df163c281be22b3289bdf3dfb90)) by @
|
|
58
|
+
* **node-fs:** review and test ([69da5b7](https://github.com/Alwatr/nanolib/commit/69da5b7f81cfeee1678d92e97ac3e73009c5fe1f)) by @
|
|
59
|
+
* Update build and lint scripts ([392d0b7](https://github.com/Alwatr/nanolib/commit/392d0b71f446bce336b0256119a80f07aff794ba)) by @
|
|
60
|
+
* Update package.json exports for [@alwatr](https://github.com/alwatr) packages ([dacb362](https://github.com/Alwatr/nanolib/commit/dacb362b145e3c51b4aba00ff643687a3fac11d2)) by @
|
|
61
|
+
|
|
62
|
+
### Dependencies update
|
|
63
|
+
|
|
64
|
+
* bump @types/node ([3d80fed](https://github.com/Alwatr/nanolib/commit/3d80fedaf720af792feb060c2f81c737ebb84e11)) by @
|
|
65
|
+
* bump the development-dependencies group across 1 directory with 10 updates ([9ed98ff](https://github.com/Alwatr/nanolib/commit/9ed98ffd0668d5a36e255c82edab3af53bffda8f)) by @
|
|
66
|
+
* bump the development-dependencies group across 1 directory with 2 updates ([2dfda9e](https://github.com/Alwatr/nanolib/commit/2dfda9ec38a595f1fd961490d1a2fbf060f20a66)) by @
|
|
67
|
+
* bump the development-dependencies group with 10 updates ([fa4aaf0](https://github.com/Alwatr/nanolib/commit/fa4aaf04c907ecae06aa14000ce35216170c15ad)) by @
|
|
68
|
+
* bump the development-dependencies group with 2 updates ([be5d6c2](https://github.com/Alwatr/nanolib/commit/be5d6c2d86b937f32cebc6848aaff85af07055dd)) by @
|
|
69
|
+
* bump the development-dependencies group with 8 updates ([16847ac](https://github.com/Alwatr/nanolib/commit/16847acba91da027c422e3910d0f2dcc1f084e93)) by @
|
|
70
|
+
* upd ([451d025](https://github.com/Alwatr/nanolib/commit/451d0255ba96ed55f897a6f44f62cf4e6d2b12be)) by @
|
|
71
|
+
* update ([4434ba6](https://github.com/Alwatr/nanolib/commit/4434ba67c3f576bb1a0c307fbdb263c43cd9733a)) by @
|
|
72
|
+
* update ([c36ed50](https://github.com/Alwatr/nanolib/commit/c36ed50f68da2f5608ccd96119963a16cfacb4ce)) by @
|
|
73
|
+
* update all ([53342f6](https://github.com/Alwatr/nanolib/commit/53342f67a8a013127f073540bc11929f1813c05c)) by @
|
|
74
|
+
* update all dependencies ([1e0c30e](https://github.com/Alwatr/nanolib/commit/1e0c30e6a3a8e19deb5185814e24ab6c08dca573)) by @
|
|
75
|
+
* update all dependencies ([0e908b4](https://github.com/Alwatr/nanolib/commit/0e908b476a6b976ec2447f864c8cafcbb8a0f099)) by @
|
|
76
|
+
* upgrade ([6dbd300](https://github.com/Alwatr/nanolib/commit/6dbd300642c9bcc9e7d0b281e244bf1b06eb1c38)) by @
|
|
77
|
+
|
|
6
78
|
## [1.1.8](https://github.com/Alwatr/nanolib/compare/@alwatr/node-fs@1.1.7...@alwatr/node-fs@1.1.8) (2024-11-02)
|
|
7
79
|
|
|
8
80
|
### Dependencies update
|
package/dist/main.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @alwatr/node-fs
|
|
1
|
+
/* @alwatr/node-fs v5.0.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -43,7 +43,7 @@ var import_flat_string = require("@alwatr/flat-string");
|
|
|
43
43
|
var import_async_queue = require("@alwatr/async-queue");
|
|
44
44
|
var import_logger = require("@alwatr/logger");
|
|
45
45
|
var import_package_tracer = require("@alwatr/package-tracer");
|
|
46
|
-
__dev_mode__: import_package_tracer.packageTracer.add("@alwatr/node-fs", "
|
|
46
|
+
__dev_mode__: import_package_tracer.packageTracer.add("@alwatr/node-fs", "5.0.0");
|
|
47
47
|
var logger = /* @__PURE__ */ (0, import_logger.createLogger)("@alwatr/node-fs");
|
|
48
48
|
var asyncQueue = /* @__PURE__ */ new import_async_queue.AsyncQueue();
|
|
49
49
|
|
package/dist/main.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @alwatr/node-fs
|
|
1
|
+
/* @alwatr/node-fs v5.0.0 */
|
|
2
2
|
|
|
3
3
|
// src/read-file.ts
|
|
4
4
|
import { readFileSync as readFileSync_ } from "node:fs";
|
|
@@ -9,7 +9,7 @@ import { flatString } from "@alwatr/flat-string";
|
|
|
9
9
|
import { AsyncQueue } from "@alwatr/async-queue";
|
|
10
10
|
import { createLogger } from "@alwatr/logger";
|
|
11
11
|
import { packageTracer } from "@alwatr/package-tracer";
|
|
12
|
-
__dev_mode__: packageTracer.add("@alwatr/node-fs", "
|
|
12
|
+
__dev_mode__: packageTracer.add("@alwatr/node-fs", "5.0.0");
|
|
13
13
|
var logger = /* @__PURE__ */ createLogger("@alwatr/node-fs");
|
|
14
14
|
var asyncQueue = /* @__PURE__ */ new AsyncQueue();
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/node-fs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Enhanced file system operations in Node.js with asynchronous queue to prevent parallel writes.",
|
|
5
5
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
6
|
"keywords": [
|
|
@@ -74,18 +74,18 @@
|
|
|
74
74
|
"clean": "rm -rfv dist *.tsbuildinfo"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@alwatr/async-queue": "^
|
|
78
|
-
"@alwatr/flat-string": "^
|
|
79
|
-
"@alwatr/logger": "^
|
|
80
|
-
"@alwatr/package-tracer": "^
|
|
77
|
+
"@alwatr/async-queue": "^5.0.0",
|
|
78
|
+
"@alwatr/flat-string": "^5.0.0",
|
|
79
|
+
"@alwatr/logger": "^5.0.0",
|
|
80
|
+
"@alwatr/package-tracer": "^5.0.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@alwatr/nano-build": "^
|
|
84
|
-
"@alwatr/prettier-config": "^
|
|
85
|
-
"@alwatr/tsconfig-base": "^
|
|
86
|
-
"@alwatr/type-helper": "^
|
|
83
|
+
"@alwatr/nano-build": "^5.0.0",
|
|
84
|
+
"@alwatr/prettier-config": "^5.0.0",
|
|
85
|
+
"@alwatr/tsconfig-base": "^5.0.0",
|
|
86
|
+
"@alwatr/type-helper": "^5.0.0",
|
|
87
87
|
"@types/node": "^22.8.6",
|
|
88
88
|
"typescript": "^5.6.3"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "7d12943fafa8ef50636346e66ff56c50e2fd0c72"
|
|
91
91
|
}
|