@ship.zone/runner 0.2.3 → 0.2.4
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,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-08-30 - 0.2.4
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- generate default registration request IDs safely (registration-state)
|
|
8
|
+
- Wrap crypto.randomUUID in a factory to avoid unbound default request ID generation.
|
|
9
|
+
- Add coverage for creating and persisting a generated UUID request ID.
|
|
10
|
+
|
|
3
11
|
## 2026-08-30 - 0.2.3
|
|
4
12
|
|
|
5
13
|
### Fixes
|
package/deno.json
CHANGED
package/dist_npm/mod.js
CHANGED
|
@@ -4919,7 +4919,7 @@ var init_deno = __esm({
|
|
|
4919
4919
|
"deno.json"() {
|
|
4920
4920
|
deno_default = {
|
|
4921
4921
|
name: "@ship.zone/runner",
|
|
4922
|
-
version: "0.2.
|
|
4922
|
+
version: "0.2.4",
|
|
4923
4923
|
exports: "./mod.ts",
|
|
4924
4924
|
nodeModulesDir: "none",
|
|
4925
4925
|
tasks: {
|
|
@@ -9334,7 +9334,7 @@ var init_registration_state = __esm({
|
|
|
9334
9334
|
this.stateDirectory = stateDirectory;
|
|
9335
9335
|
this.path = join3(stateDirectory, journalName2);
|
|
9336
9336
|
}
|
|
9337
|
-
async loadOrCreate(template, createRequestId = crypto.randomUUID) {
|
|
9337
|
+
async loadOrCreate(template, createRequestId = () => crypto.randomUUID()) {
|
|
9338
9338
|
const candidate = validateRegistrationRequest({
|
|
9339
9339
|
registrationRequestId: "pending-validation",
|
|
9340
9340
|
...template
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/registration-state.ts
CHANGED
|
@@ -88,7 +88,7 @@ export class RegistrationStateStore {
|
|
|
88
88
|
|
|
89
89
|
async loadOrCreate(
|
|
90
90
|
template: TRegistrationRequestTemplate,
|
|
91
|
-
createRequestId: () => string = crypto.randomUUID,
|
|
91
|
+
createRequestId: () => string = () => crypto.randomUUID(),
|
|
92
92
|
): Promise<IRegisterRunnerRequest> {
|
|
93
93
|
const candidate = validateRegistrationRequest({
|
|
94
94
|
registrationRequestId: 'pending-validation',
|