From 013b287fc2407aee89972af4d1b9855a539146cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 07:47:29 +0000 Subject: [PATCH 1/2] Bump csv-parse from 5.6.0 to 7.0.1 Bumps [csv-parse](https://github.com/adaltas/node-csv/tree/HEAD/packages/csv-parse) from 5.6.0 to 7.0.1. - [Changelog](https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md) - [Commits](https://github.com/adaltas/node-csv/commits/csv-parse@7.0.1/packages/csv-parse) --- updated-dependencies: - dependency-name: csv-parse dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- packages/signalk-plugin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/signalk-plugin/package.json b/packages/signalk-plugin/package.json index b1c6748..c2f7c0b 100644 --- a/packages/signalk-plugin/package.json +++ b/packages/signalk-plugin/package.json @@ -49,7 +49,7 @@ "@js-temporal/polyfill": "^0.5", "@signalk/server-api": "^2.29.0", "cron": "^4.3.4", - "csv-parse": "^5.6.0", + "csv-parse": "^7.0.1", "debug": "^4.4.3", "geojson": "^0.5.0", "geolib": "^3.3.4", From 82c906250a86ff69cdeed9bb02582215c7dac360 Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Wed, 8 Jul 2026 12:09:38 -0400 Subject: [PATCH 2/2] Adapt fromXyz to csv-parse 7 types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit csv-parse 7 tightened the parser option types: the columns callback is now generic over the record type, so a narrow key-union param no longer matches — widen it to string[] and cast on lookup. Also drop the redundant cast_date option; the custom cast already converts the timestamp column to a Temporal.Instant. Co-Authored-By: Claude Opus 4.8 --- packages/signalk-plugin/src/streams/xyz.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/signalk-plugin/src/streams/xyz.ts b/packages/signalk-plugin/src/streams/xyz.ts index 12b8ed8..54f24fd 100644 --- a/packages/signalk-plugin/src/streams/xyz.ts +++ b/packages/signalk-plugin/src/streams/xyz.ts @@ -51,12 +51,13 @@ const XyzToBathymetry = { export function fromXyz() { return parse({ - cast_date: true, skip_empty_lines: true, skip_records_with_empty_values: true, skip_records_with_error: true, - columns(header: (keyof typeof XyzToBathymetry)[]) { - return header.map((key) => XyzToBathymetry[key] || key); + columns(header: string[]) { + return header.map( + (key) => XyzToBathymetry[key as keyof typeof XyzToBathymetry] || key, + ); }, cast(value, context) { if (context.header) return value;