@content-collections/core 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import z, { ZodRawShape, z as z$1, ZodObject, ZodTypeAny, ZodString } from 'zod';
1
+ import z__default, { ZodRawShape, z as z$1, ZodObject, ZodTypeAny, ZodString } from 'zod';
2
+ export * from 'zod';
2
3
  import { parse } from 'yaml';
3
4
 
4
5
  type Parsers = typeof parsers;
@@ -23,8 +24,8 @@ declare const parsers: {
23
24
 
24
25
  type CacheFn = <TInput, TOutput>(input: TInput, compute: (input: TInput) => Promise<TOutput> | TOutput) => Promise<TOutput>;
25
26
 
26
- declare const literalSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodUndefined, z.ZodDate, z.ZodMap<z.ZodUnknown, z.ZodUnknown>, z.ZodSet<z.ZodUnknown>, z.ZodBigInt]>;
27
- type Literal = z.infer<typeof literalSchema>;
27
+ declare const literalSchema: z__default.ZodUnion<[z__default.ZodString, z__default.ZodNumber, z__default.ZodBoolean, z__default.ZodNull, z__default.ZodUndefined, z__default.ZodDate, z__default.ZodMap<z__default.ZodUnknown, z__default.ZodUnknown>, z__default.ZodSet<z__default.ZodUnknown>, z__default.ZodBigInt]>;
28
+ type Literal = z__default.infer<typeof literalSchema>;
28
29
  type SchemaType = Literal | {
29
30
  [key: string]: SchemaType;
30
31
  } | SchemaType[];
@@ -32,8 +33,8 @@ type NotSerializableError = `The return type of the transform function must be a
32
33
  See https://www.content-collections.dev/docs/serialization for more information.
33
34
 
34
35
  The following type is not valid:`;
35
- declare const serializableSchema: z.ZodRecord<z.ZodString, z.ZodType<SchemaType, z.ZodTypeDef, SchemaType>>;
36
- type Serializable = z.infer<typeof serializableSchema>;
36
+ declare const serializableSchema: z__default.ZodRecord<z__default.ZodString, z__default.ZodType<SchemaType, z__default.ZodTypeDef, SchemaType>>;
37
+ type Serializable = z__default.infer<typeof serializableSchema>;
37
38
 
38
39
  type Meta = {
39
40
  filePath: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@content-collections/core",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",