Skip to content

Commit 129dec5

Browse files
authored
Merge pull request #25 from reilem/improve-zod-imports
Use latest import recommendation
2 parents 6dbbef4 + eef692c commit 129dec5

40 files changed

+151
-147
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zod-geojson",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"description": "Zod schemas for GeoJSON",
55
"repository": {
66
"type": "git",

src/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as z from "zod/v4";
1+
import * as z from "zod";
22
import { GeoJSONBBoxGenericSchema, GeoJSONBBoxGenericSchemaType } from "./bbox";
33
import { GeoJSONAnyPosition } from "./geometry/position";
44

src/bbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as z from "zod/v4";
1+
import * as z from "zod";
22
import {
33
GeoJSON2DPosition,
44
GeoJSON2DPositionSchema,

src/feature.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as z from "zod/v4";
1+
import * as z from "zod";
22
import { GeoJSONBaseSchema, GeoJSONBaseSchemaShape } from "./base";
33
import {
44
GeoJSON2DGeometrySchema,

src/feature_collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as z from "zod/v4";
1+
import * as z from "zod";
22
import { GeoJSONBaseSchema, GeoJSONBaseSchemaShape } from "./base";
33
import { GeoJSONFeatureGenericSchema, GeoJSONFeatureGenericSchemaType } from "./feature";
44
import {

src/geojson.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as z from "zod/v4";
1+
import * as z from "zod";
22
import { GeoJSONFeatureGenericSchema, GeoJSONFeatureGenericSchemaType } from "./feature";
33
import { GeoJSONFeatureCollectionGenericSchema, GeoJSONFeatureCollectionGenericSchemaType } from "./feature_collection";
44
import {

src/geometry/geometry.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import * as z from "zod/v4";
2-
import { core as zCore } from "zod/v4";
1+
import * as z from "zod";
32
import {
43
GeoJSONGeometryCollectionGenericSchema,
54
GeoJSONGeometryCollectionGenericSchemaType,
@@ -47,7 +46,7 @@ export type GeoJSONGeometryGeneric<P extends GeoJSONAnyPosition> = z.infer<
4746
export type DiscriminableGeometrySchema<
4847
P extends GeoJSONAnyPosition,
4948
G extends GeoJSONGeometryGeneric<P> | null,
50-
> = z.ZodType<G, unknown, zCore.$ZodTypeInternals<G> & zCore.$ZodTypeDiscriminableInternals>;
49+
> = z.ZodType<G, unknown, z.core.$ZodTypeInternals<G> & z.core.$ZodTypeDiscriminableInternals>;
5150

5251
export const GeoJSONGeometrySchema = GeoJSONGeometryGenericSchema(GeoJSONPositionSchema);
5352
export type GeoJSONGeometry = z.infer<typeof GeoJSONGeometrySchema>;

src/geometry/geometry_collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as z from "zod/v4";
1+
import * as z from "zod";
22
import { GeoJSONBaseSchema, GeoJSONBaseSchemaShape } from "../base";
33
import { GeoJSONGeometryGenericSchema, GeoJSONGeometryGenericSchemaType } from "./geometry";
44
import {

src/geometry/helper/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as z from "zod/v4";
1+
import * as z from "zod";
22
import { GeoJSONBaseSchema, GeoJSONBaseSchemaShape } from "../../base";
33
import { GeoJSONAnyPosition } from "../position";
44

src/geometry/line_string.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as z from "zod/v4";
1+
import * as z from "zod";
22
import { GeoJSONGeometryBaseSchema, GeoJSONGeometryBaseSchemaShape } from "./helper/base";
33
import {
44
GeoJSON2DPositionSchema,

0 commit comments

Comments
 (0)