node-redfish 1.0.0 → 1.0.2
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 +3 -29
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
A TypeScript client for querying and managing [Redfish](https://www.dmtf.org/standards/redfish)-compliant BMCs (Dell iDRAC, HPE iLO, Lenovo XCC, Supermicro, and other DMTF Redfish implementations).
|
|
11
11
|
|
|
12
|
-
Ships as dual ESM/CJS with bundled type declarations
|
|
12
|
+
Ships as dual ESM/CJS with bundled type declarations. Full API reference: **https://sourceregistry.github.io/node-redfish/**
|
|
13
13
|
|
|
14
14
|
## Install
|
|
15
15
|
|
|
@@ -103,35 +103,9 @@ client.delete(path);
|
|
|
103
103
|
- `RedfishTimeoutError` — request exceeded `timeoutMs` (default 15s).
|
|
104
104
|
- `RedfishActionNotSupportedError` — requested action isn't present on the resource.
|
|
105
105
|
|
|
106
|
-
##
|
|
106
|
+
## Contributing
|
|
107
107
|
|
|
108
|
-
|
|
109
|
-
npm ci
|
|
110
|
-
npm run lint
|
|
111
|
-
npm run typecheck
|
|
112
|
-
npm test
|
|
113
|
-
npm run build
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
### Integration tests
|
|
117
|
-
|
|
118
|
-
`npm test` only runs against a mocked `fetch`. `src/client.integration.test.ts` additionally exercises the client against a real Redfish HTTP server — [DMTF's own reference emulator](https://github.com/DMTF/Redfish-Interface-Emulator) — and is skipped automatically when nothing answers at `REDFISH_TEST_BASE_URL` (default `http://localhost:5000`):
|
|
119
|
-
|
|
120
|
-
```sh
|
|
121
|
-
docker run --rm -p 5000:5000 dmtf/redfish-interface-emulator:latest
|
|
122
|
-
npm run test:integration
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
It covers the read surface (`getServiceRoot`, `getSystems`, `getSystem`, `getChassisCollection`) and action discovery/invocation (`resetSystem`). The emulator's bundled `SessionService` fixture predates the current spec and doesn't support session creation, so `{ type: 'session' }` auth isn't covered by it.
|
|
126
|
-
|
|
127
|
-
Other DMTF tooling worth knowing about if you're extending this package:
|
|
128
|
-
- [Redfish-Mockup-Server](https://github.com/DMTF/Redfish-Mockup-Server) — serves static JSON mockups (GET-only), useful for read-path fixtures against specific vendor mockup data (DSP2043).
|
|
129
|
-
- [Redfish-Service-Validator](https://github.com/DMTF/Redfish-Service-Validator) / [Redfish-Protocol-Validator](https://github.com/DMTF/Redfish-Protocol-Validator) — conformance checkers for a *service*, not a client, but useful for validating any target BMC before filing a bug against this client.
|
|
130
|
-
- [python-redfish-library](https://github.com/DMTF/python-redfish-library) — DMTF's official Python client; this package's `auth`/`connect`/`disconnect` shape and the `insecure` TLS option mirror its `redfish_client`/`login`/`cafile` design.
|
|
131
|
-
|
|
132
|
-
## Publishing
|
|
133
|
-
|
|
134
|
-
CI (`.github/workflows/ci.yml`) publishes to npm on `v*` tags using the `NPM_TOKEN` repository secret. Once this package is enrolled in [npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers), the publish job should switch to OIDC (`id-token: write` + `npm publish --provenance`, no token secret) — see the `TODO` in the workflow file.
|
|
108
|
+
See [DEVELOPMENT.md](./DEVELOPMENT.md) for local setup, testing (including integration tests against a real Redfish server), and the release process.
|
|
135
109
|
|
|
136
110
|
## License
|
|
137
111
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-redfish",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Client for querying and managing Redfish-compliant BMCs (DMTF Redfish)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"redfish",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"release:dry": "semantic-release --dry-run --no-ci"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"undici": "^
|
|
59
|
+
"undici": "^8.10.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@semantic-release/changelog": "^6.0.3",
|