@thi.ng/file-io 2.0.2 → 2.0.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-04-11T12:32:44Z
3
+ - **Last updated**: 2024-04-20T14:42:45Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [2.0.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@2.0.3) (2024-04-20)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update type usage ([7dc9551](https://github.com/thi-ng/umbrella/commit/7dc9551))
17
+
12
18
  # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@2.0.0) (2024-03-29)
13
19
 
14
20
  #### 🛑 Breaking changes
package/json.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Fn3, NumOrString } from "@thi.ng/api";
1
+ import type { Fn3, Maybe, Nullable, NumOrString } from "@thi.ng/api";
2
2
  import type { ILogger } from "@thi.ng/logger";
3
3
  export declare const readJSON: <T = any>(path: string, logger?: ILogger) => T;
4
4
  /**
@@ -16,5 +16,5 @@ export declare const readJSON: <T = any>(path: string, logger?: ILogger) => T;
16
16
  * @param logger
17
17
  * @param dryRun
18
18
  */
19
- export declare const writeJSON: (path: string, obj: any, replacer?: Fn3<any, string, any, any> | NumOrString[] | null | undefined, space?: NumOrString | undefined, logger?: ILogger, dryRun?: boolean) => void;
19
+ export declare const writeJSON: (path: string, obj: any, replacer?: Fn3<any, string, any, any> | Nullable<NumOrString[]>, space?: Maybe<NumOrString>, logger?: ILogger, dryRun?: boolean) => void;
20
20
  //# sourceMappingURL=json.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/file-io",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Assorted file I/O utils (with logging support) for NodeJS/Bun",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,11 +36,11 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.10.1",
40
- "@thi.ng/checks": "^3.6.1",
41
- "@thi.ng/hex": "^2.3.43",
42
- "@thi.ng/logger": "^3.0.9",
43
- "@thi.ng/random": "^3.7.3"
39
+ "@thi.ng/api": "^8.11.0",
40
+ "@thi.ng/checks": "^3.6.2",
41
+ "@thi.ng/hex": "^2.3.44",
42
+ "@thi.ng/logger": "^3.0.10",
43
+ "@thi.ng/random": "^3.7.4"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@microsoft/api-extractor": "^7.43.0",
@@ -124,5 +124,5 @@
124
124
  "status": "stable",
125
125
  "year": 2022
126
126
  },
127
- "gitHead": "18a0c063a7b33d790e5bc2486c106f45f663ac28\n"
127
+ "gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
128
128
  }