Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Jan 18, 2024
1 parent fa0821a commit 0c2717c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

## Version History

### v15.1.0

- Add `toDriver` for postgis integration

### v15.0.5

- Add npm ignore
Expand Down
3 changes: 3 additions & 0 deletions lib/postgis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ export const geometry = customType<{
geom.bbox = bbox(geom);
return geom;
},
toDriver(value: Geometry): string {
return wkx.Geometry.parseGeoJSON(value).toWkt();
}
});

0 comments on commit 0c2717c

Please sign in to comment.