ReleaseScalewayScalewaypublished Oct 9, 2026seen 2d

scaleway/scaleway-lib @scaleway/srn@0.0.3

scaleway/scaleway-lib

Open original ↗

Captured source

source ↗
published Oct 9, 2026seen 2dcaptured 2dhttp 200method plain

@scaleway/srn@0.0.3

Repository: scaleway/scaleway-lib

Tag: @scaleway/srn@0.0.3

Published: 2026-10-09T10:59:50Z

Prerelease: no

Release notes:

Patch Changes

  • #3937 `6fde3e8` Thanks @philibea! - Narrow locality.name to the LocalityName union sourced from @scaleway/sdk-client (Zone | Region plus '' for global), and derive LocalityType from its ApiLocality scopes (excluding 'unspecified'). Make SRN, ResourceIdentifierSegment, and Locality generic over P (product name), R (resource-type key), and L (locality name) with string/LocalityName defaults, so consumers can substitute their own unions without the library hardcoding Scaleway's product catalog. Add safeParseSRN returning a zod-style discriminated union { success: true, data: SRN } | { success: false, error: SRNParseError } for ergonomic use in React render code without try/catch.