@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ship.zone/runner",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "exports": "./mod.ts",
5
5
  "nodeModulesDir": "none",
6
6
  "tasks": {
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.3",
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ship.zone/runner",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "The isolated OCI job runner for ship.zone CI/CD",
5
5
  "homepage": "https://code.foss.global/ship.zone/runner",
6
6
  "bugs": {
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@ship.zone/runner',
6
- version: '0.2.3',
6
+ version: '0.2.4',
7
7
  description: 'The isolated OCI job runner for ship.zone CI/CD'
8
8
  }
@@ -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',