Skip to content

Commit b98d123

Browse files
committed
Update CHANGELOG
1 parent 3ae50c7 commit b98d123

6 files changed

Lines changed: 126 additions & 105 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
### Pending Fixed
1414

15+
### v14.9.3 - 2025-10-03
16+
17+
- :bug: Ensure additional coordinates are removed properly in normalize step
18+
1519
### v14.9.2 - 2025-09-25
1620

1721
- :bug: Relax Creator parsing to allow undefined `time`

lib/cot.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import util2525 from './utils/2525.js'
2121
import JSONCoT, { Detail } from './types/types.js'
2222

2323
export type CoTOptions = {
24+
verbose?: boolean,
2425
creator?: CoT | {
2526
uid: string,
2627
type: string,

lib/parser/from_geojson.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export async function from_geojson(
2828
opts: CoTOptions = {}
2929
): Promise<CoT> {
3030
try {
31-
feature = await TypeValidator.type(InputFeature, feature);
31+
feature = await TypeValidator.type(InputFeature, feature, {
32+
verbose: opts.verbose
33+
});
3234
} catch (err) {
3335
throw new Err(400, null, `Validation Error: ${err}`);
3436
}

lib/parser/normalize_geojson.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export async function normalize_geojson(
9898
feature.properties.archived = true;
9999

100100
coordEach(feature.geometry, (coord) => {
101-
return coord.slice(0, 3);
101+
coord.splice(3);
102102
});
103103

104104
return feature as Static<typeof Feature>;

0 commit comments

Comments
 (0)