@eliware/common 1.1.7 → 2.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/README.md +7 -2
- package/RELEASE_NOTES.md +64 -0
- package/index.d.ts +2 -1
- package/package.json +16 -17
package/README.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# @eliware/common
|
|
2
2
|
|
|
3
|
-
A small ESM
|
|
3
|
+
A small native ESM compatibility package that provides one stable import surface for Eliware's shared Node.js utilities.
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
7
7
|
- Node.js 26 or newer
|
|
8
|
+
- Node.js `>=26`
|
|
8
9
|
- Published Eliware dependency packages matching the versions in `package.json`
|
|
9
10
|
|
|
10
11
|
## Installation
|
|
@@ -69,6 +70,10 @@ const options: RegisterSignalsOptions = { exit: false };
|
|
|
69
70
|
const registration = registerSignals(options);
|
|
70
71
|
```
|
|
71
72
|
|
|
73
|
+
## Configuration and operations
|
|
74
|
+
|
|
75
|
+
The package has no global configuration and performs no work at import time. Configure the delegated logger, error handlers, and signal handlers through their options. Applications should validate their own configuration before opening files or external connections and should make shutdown cleanup idempotent.
|
|
76
|
+
|
|
72
77
|
## Errors / Troubleshooting
|
|
73
78
|
|
|
74
79
|
This package is a compatibility layer and delegates behavior to its underlying packages. For logging, path, error-handler, or signal-handler failures, consult the corresponding dependency documentation. Keep dependency versions synchronized with the public exports and declarations.
|
|
@@ -79,9 +84,9 @@ This package is a compatibility layer and delegates behavior to its underlying p
|
|
|
79
84
|
npm install
|
|
80
85
|
npm test
|
|
81
86
|
npm run lint
|
|
82
|
-
npm run test:gaps
|
|
83
87
|
npm run typecheck
|
|
84
88
|
npm run pack
|
|
89
|
+
npm audit --omit=dev --audit-level=moderate
|
|
85
90
|
```
|
|
86
91
|
|
|
87
92
|
This package is a re-export/compatibility layer. Its tests verify the public export contract and representative delegation to the underlying packages; implementation behavior is tested in those dependency packages.
|
package/RELEASE_NOTES.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Release notes
|
|
2
|
+
|
|
3
|
+
## 2.0.0 — 2026-08-25
|
|
4
|
+
|
|
5
|
+
- Modernized the package for the shared Eliware conventions and Node.js `>=26`.
|
|
6
|
+
- Replaced direct Jest tooling with `@eliware/test`, including enforced 100×4 coverage and shared linting.
|
|
7
|
+
- Updated CI for Ubuntu and Windows validation on `main`, pull requests, and `v*` tags, with gated publishing.
|
|
8
|
+
- Updated package metadata, documentation, and dependency auditing.
|
|
9
|
+
- Breaking: Node.js `>=26` is now required.
|
|
10
|
+
- Breaking: direct Jest and Oxlint project tooling was replaced by the shared `@eliware/test` harness.
|
|
11
|
+
|
|
12
|
+
## 1.1.8 — 2026-08-10
|
|
13
|
+
|
|
14
|
+
- Updated `@eliware/errors` to 1.1.9, `@eliware/log` to 1.1.12, and `@eliware/signals` to 1.1.7.
|
|
15
|
+
- Added the `safeSerialize` TypeScript declaration to match the runtime export.
|
|
16
|
+
- Updated signal handler contract coverage for the current upstream listener behavior.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## 1.1.7 — 2026-08-07
|
|
20
|
+
|
|
21
|
+
- Standardized package layout, validation scripts, TypeScript checking, CI, and package contents.
|
|
22
|
+
- Updated internal dependencies to the latest released Eliware versions.
|
|
23
|
+
- Expanded troubleshooting, development, and security documentation.
|
|
24
|
+
|
|
25
|
+
## 1.1.6 — August 7, 2026
|
|
26
|
+
|
|
27
|
+
- Updated `@eliware/errors`, `@eliware/log`, `@eliware/path`, and `@eliware/signals` to current releases.
|
|
28
|
+
- Standardized Jest coverage on the V8 provider for accurate ESM coverage reporting.
|
|
29
|
+
|
|
30
|
+
## 1.1.5 — August 6, 2026
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
- Refactored the package into focused ESM modules under `src/`.
|
|
35
|
+
- Expanded the unified export surface to include the current public APIs from `@eliware/log`, `@eliware/path`, `@eliware/errors`, and `@eliware/signals`.
|
|
36
|
+
- Added logger exports: `createLogger`, `log`, and `safeSerialize`.
|
|
37
|
+
- Added path exports: `resolvePath`, `relativePath`, and `fileUrlToPath`.
|
|
38
|
+
- Updated TypeScript declarations for the expanded API and dependency option types.
|
|
39
|
+
- Replaced CommonJS entry points and tests with ESM-only files.
|
|
40
|
+
- Expanded contract tests for all public exports, path helpers, logger helpers, error handlers, signal handlers, abort cleanup, and shutdown hooks.
|
|
41
|
+
- Updated README, example usage, package files, dependencies, and development guidance in `AGENTS.md`.
|
|
42
|
+
- Standardized linting, coverage scripts, CI configuration, and repository artifact ignores.
|
|
43
|
+
|
|
44
|
+
### Verification
|
|
45
|
+
|
|
46
|
+
- 6 tests passing.
|
|
47
|
+
- Lint passes with zero warnings and errors.
|
|
48
|
+
|
|
49
|
+
## 1.1.4 — July 1, 2026
|
|
50
|
+
|
|
51
|
+
- Updated package metadata and dependencies.
|
|
52
|
+
- Refreshed the lockfile and standardized repository tooling.
|
|
53
|
+
|
|
54
|
+
## 1.1.3 — December 21, 2025
|
|
55
|
+
|
|
56
|
+
- Maintenance release with package and dependency metadata updates.
|
|
57
|
+
|
|
58
|
+
## 1.1.2 — December 21, 2025
|
|
59
|
+
|
|
60
|
+
- Maintenance release with package and dependency metadata updates.
|
|
61
|
+
|
|
62
|
+
## 1.1.1 — December 9, 2025
|
|
63
|
+
|
|
64
|
+
- Initial tagged release of the common ESM utility package.
|
package/index.d.ts
CHANGED
|
@@ -10,7 +10,8 @@ import type {
|
|
|
10
10
|
} from '@eliware/signals';
|
|
11
11
|
|
|
12
12
|
export { fs };
|
|
13
|
-
export { createLogger, default as log
|
|
13
|
+
export { createLogger, default as log } from '@eliware/log';
|
|
14
|
+
export declare function safeSerialize(obj: unknown, redact?: ReadonlySet<string>): unknown;
|
|
14
15
|
export {
|
|
15
16
|
path,
|
|
16
17
|
pathUrl,
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eliware/common",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
5
|
-
"description": "An ESM
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"description": "An ESM and Node.js compatibility layer for shared Eliware filesystem, path, logging, error, and signal APIs.",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"index.mjs",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"index.d.ts",
|
|
11
11
|
"README.md",
|
|
12
12
|
"LICENSE",
|
|
13
|
+
"RELEASE_NOTES.md",
|
|
13
14
|
"examples"
|
|
14
15
|
],
|
|
15
16
|
"exports": {
|
|
@@ -19,9 +20,8 @@
|
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
"scripts": {
|
|
22
|
-
"test": "
|
|
23
|
-
"
|
|
24
|
-
"lint": "npx oxlint .",
|
|
23
|
+
"test": "eliware-test",
|
|
24
|
+
"lint": "eliware-test --lint",
|
|
25
25
|
"typecheck": "tsc --project tsconfig.json",
|
|
26
26
|
"pack": "npm pack --dry-run"
|
|
27
27
|
},
|
|
@@ -46,20 +46,19 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/eliware/common#readme",
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"
|
|
49
|
+
"@eliware/test": "^2.0.0",
|
|
50
50
|
"typescript": "^7.0.2"
|
|
51
51
|
},
|
|
52
|
-
"jest": {
|
|
53
|
-
"testEnvironment": "node",
|
|
54
|
-
"testMatch": [
|
|
55
|
-
"**/?(*.)+(spec|test).[jt]s?(x)",
|
|
56
|
-
"**/?(*.)+(spec|test).mjs"
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
52
|
"dependencies": {
|
|
60
|
-
"@eliware/errors": "^
|
|
61
|
-
"@eliware/log": "^
|
|
62
|
-
"@eliware/path": "^
|
|
63
|
-
"@eliware/signals": "^
|
|
53
|
+
"@eliware/errors": "^2.0.0",
|
|
54
|
+
"@eliware/log": "^2.0.0",
|
|
55
|
+
"@eliware/path": "^2.0.0",
|
|
56
|
+
"@eliware/signals": "^2.0.0"
|
|
57
|
+
},
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">=26"
|
|
60
|
+
},
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
64
63
|
}
|
|
65
64
|
}
|