@thi.ng/file-io 1.0.5 → 1.1.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-12-11T10:07:09Z
3
+ - **Last updated**: 2023-12-18T13:41:19Z
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
+ ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@1.1.0) (2023-12-18)
13
+
14
+ #### 🚀 Features
15
+
16
+ - add generics for readJSON() ([34bdfc8](https://github.com/thi-ng/umbrella/commit/34bdfc8))
17
+
12
18
  # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@1.0.0) (2023-11-09)
13
19
 
14
20
  #### 🛑 Breaking changes
package/json.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Fn3, NumOrString } from "@thi.ng/api";
2
2
  import type { ILogger } from "@thi.ng/logger";
3
- export declare const readJSON: (path: string, logger?: ILogger) => any;
3
+ export declare const readJSON: <T = any>(path: string, logger?: ILogger) => T;
4
4
  /**
5
5
  * Serializes `obj` to JSON and writes result to UTF-8 file `path`. See
6
6
  * {@link writeText} for more details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/file-io",
3
- "version": "1.0.5",
3
+ "version": "1.1.0",
4
4
  "description": "Assorted file I/O utils (with logging support) for NodeJS",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,11 +35,11 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.12",
39
- "@thi.ng/checks": "^3.4.12",
40
- "@thi.ng/hex": "^2.3.24",
41
- "@thi.ng/logger": "^2.0.2",
42
- "@thi.ng/random": "^3.6.18"
38
+ "@thi.ng/api": "^8.9.13",
39
+ "@thi.ng/checks": "^3.4.13",
40
+ "@thi.ng/hex": "^2.3.25",
41
+ "@thi.ng/logger": "^2.1.0",
42
+ "@thi.ng/random": "^3.6.19"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.38.3",
@@ -66,7 +66,7 @@
66
66
  "setTimeout": false
67
67
  },
68
68
  "engines": {
69
- "node": ">=14"
69
+ "node": ">=18"
70
70
  },
71
71
  "files": [
72
72
  "./*.js",
@@ -117,5 +117,5 @@
117
117
  "status": "stable",
118
118
  "year": 2022
119
119
  },
120
- "gitHead": "5e7bafedfc3d53bc131469a28de31dd8e5b4a3ff\n"
120
+ "gitHead": "25a42a81fac8603a1e440a7aa8bc343276211ff4\n"
121
121
  }