@arrirpc/schema 0.70.1 → 0.71.0

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('@arrirpc/type-defs');
4
4
  require('scule');
5
- const timestamp = require('./shared/schema.TlNJgMz1.cjs');
5
+ const timestamp = require('./shared/schema.BcsXcrqv.cjs');
6
6
 
7
7
  const User = timestamp.object({
8
8
  id: timestamp.string(),
@@ -127,7 +127,7 @@ world`,
127
127
  },
128
128
  "nullable float64": {
129
129
  schema: timestamp.nullable(timestamp.float64()),
130
- goodInputs: [null, 113511.5, -135135105e-2],
130
+ goodInputs: [null, 113511.5, -1351351.05],
131
131
  badInputs: ["hello world", true]
132
132
  },
133
133
  float32: {
@@ -177,7 +177,7 @@ world`,
177
177
  "nullable int16": {
178
178
  schema: timestamp.nullable(timestamp.int16()),
179
179
  goodInputs: [null, -32768, 32767],
180
- badInputs: [void 0, "hello world", 1.5]
180
+ badInputs: [undefined, "hello world", 1.5]
181
181
  },
182
182
  int8: {
183
183
  schema: timestamp.int8(),
@@ -192,7 +192,7 @@ world`,
192
192
  "nullable uint8": {
193
193
  schema: timestamp.nullable(timestamp.uint8()),
194
194
  goodInputs: [0, 255, null],
195
- badInputs: [void 0, -1, 1.5, "hello world"]
195
+ badInputs: [undefined, -1, 1.5, "hello world"]
196
196
  },
197
197
  enum: {
198
198
  schema: timestamp.stringEnum(["A", "B", "C"]),
@@ -259,7 +259,7 @@ world`,
259
259
  type: "text",
260
260
  title: "Hello World",
261
261
  content: "Hello World",
262
- tags: void 0,
262
+ tags: undefined,
263
263
  createdAt: /* @__PURE__ */ new Date(),
264
264
  updatedAt: /* @__PURE__ */ new Date(),
265
265
  numComments: 134,
@@ -276,7 +276,7 @@ world`,
276
276
  userId: "2",
277
277
  user: {
278
278
  id: "2",
279
- photo: void 0
279
+ photo: undefined
280
280
  },
281
281
  text: "You suck"
282
282
  },
@@ -285,7 +285,7 @@ world`,
285
285
  userId: "3",
286
286
  user: {
287
287
  id: "3",
288
- photo: void 0
288
+ photo: undefined
289
289
  },
290
290
  imageUrl: ""
291
291
  }
@@ -320,7 +320,7 @@ world`,
320
320
  type: "text",
321
321
  title: "Hello World",
322
322
  content: "Hello World",
323
- tags: void 0,
323
+ tags: undefined,
324
324
  createdAt: /* @__PURE__ */ new Date(),
325
325
  updatedAt: /* @__PURE__ */ new Date(),
326
326
  numComments: 134,
@@ -337,7 +337,7 @@ world`,
337
337
  userId: "2",
338
338
  user: {
339
339
  id: "2",
340
- photo: void 0
340
+ photo: undefined
341
341
  },
342
342
  text: "You suck"
343
343
  },
@@ -346,7 +346,7 @@ world`,
346
346
  userId: "3",
347
347
  user: {
348
348
  id: "3",
349
- photo: void 0
349
+ photo: undefined
350
350
  },
351
351
  imageUrl: ""
352
352
  }
@@ -1,17 +1,18 @@
1
- import { d as AObjectSchema, e as ADiscriminatorSchema, A as ASchema } from './shared/schema.C-0ZU_OQ.cjs';
1
+ import { d as AObjectSchema, e as ADiscriminatorSchema, A as ASchema } from './shared/schema.DLX0nTwB.cjs';
2
2
  import '@arrirpc/type-defs';
3
+ import '@standard-schema/spec';
3
4
 
4
5
  type RecursiveUnion = {
5
- type: "CHILD";
6
+ type: 'CHILD';
6
7
  data: RecursiveUnion;
7
8
  } | {
8
- type: "CHILDREN";
9
+ type: 'CHILDREN';
9
10
  data: RecursiveUnion[];
10
11
  } | {
11
- type: "TEXT";
12
+ type: 'TEXT';
12
13
  data: string;
13
14
  } | {
14
- type: "SHAPE";
15
+ type: 'SHAPE';
15
16
  data: {
16
17
  width: number;
17
18
  height: number;
@@ -1,17 +1,18 @@
1
- import { d as AObjectSchema, e as ADiscriminatorSchema, A as ASchema } from './shared/schema.C-0ZU_OQ.mjs';
1
+ import { d as AObjectSchema, e as ADiscriminatorSchema, A as ASchema } from './shared/schema.DLX0nTwB.mjs';
2
2
  import '@arrirpc/type-defs';
3
+ import '@standard-schema/spec';
3
4
 
4
5
  type RecursiveUnion = {
5
- type: "CHILD";
6
+ type: 'CHILD';
6
7
  data: RecursiveUnion;
7
8
  } | {
8
- type: "CHILDREN";
9
+ type: 'CHILDREN';
9
10
  data: RecursiveUnion[];
10
11
  } | {
11
- type: "TEXT";
12
+ type: 'TEXT';
12
13
  data: string;
13
14
  } | {
14
- type: "SHAPE";
15
+ type: 'SHAPE';
15
16
  data: {
16
17
  width: number;
17
18
  height: number;
@@ -1,17 +1,18 @@
1
- import { d as AObjectSchema, e as ADiscriminatorSchema, A as ASchema } from './shared/schema.C-0ZU_OQ.js';
1
+ import { d as AObjectSchema, e as ADiscriminatorSchema, A as ASchema } from './shared/schema.DLX0nTwB.js';
2
2
  import '@arrirpc/type-defs';
3
+ import '@standard-schema/spec';
3
4
 
4
5
  type RecursiveUnion = {
5
- type: "CHILD";
6
+ type: 'CHILD';
6
7
  data: RecursiveUnion;
7
8
  } | {
8
- type: "CHILDREN";
9
+ type: 'CHILDREN';
9
10
  data: RecursiveUnion[];
10
11
  } | {
11
- type: "TEXT";
12
+ type: 'TEXT';
12
13
  data: string;
13
14
  } | {
14
- type: "SHAPE";
15
+ type: 'SHAPE';
15
16
  data: {
16
17
  width: number;
17
18
  height: number;
@@ -1,6 +1,6 @@
1
1
  import '@arrirpc/type-defs';
2
2
  import 'scule';
3
- import { K as object, W as string, M as optional, I as nullable, F as int32, z as discriminator, w as boolean, X as stringEnum, v as array, Y as timestamp, _ as uint32, t as any, J as number, Q as record, R as recursive, D as float64, C as float32, G as int64, E as int16, Z as uint16, H as int8, a0 as uint8, O as partial, $ as uint64, P as pick, A as enumerator } from './shared/schema.lowJcmic.mjs';
3
+ import { L as object, X as string, N as optional, J as nullable, G as int32, A as discriminator, x as boolean, Y as stringEnum, w as array, Z as timestamp, $ as uint32, v as any, K as number, R as record, S as recursive, E as float64, D as float32, H as int64, F as int16, _ as uint16, I as int8, a1 as uint8, P as partial, a0 as uint64, Q as pick, B as enumerator } from './shared/schema.O5uzRO_D.mjs';
4
4
 
5
5
  const User = object({
6
6
  id: string(),
@@ -125,7 +125,7 @@ world`,
125
125
  },
126
126
  "nullable float64": {
127
127
  schema: nullable(float64()),
128
- goodInputs: [null, 113511.5, -135135105e-2],
128
+ goodInputs: [null, 113511.5, -1351351.05],
129
129
  badInputs: ["hello world", true]
130
130
  },
131
131
  float32: {
@@ -175,7 +175,7 @@ world`,
175
175
  "nullable int16": {
176
176
  schema: nullable(int16()),
177
177
  goodInputs: [null, -32768, 32767],
178
- badInputs: [void 0, "hello world", 1.5]
178
+ badInputs: [undefined, "hello world", 1.5]
179
179
  },
180
180
  int8: {
181
181
  schema: int8(),
@@ -190,7 +190,7 @@ world`,
190
190
  "nullable uint8": {
191
191
  schema: nullable(uint8()),
192
192
  goodInputs: [0, 255, null],
193
- badInputs: [void 0, -1, 1.5, "hello world"]
193
+ badInputs: [undefined, -1, 1.5, "hello world"]
194
194
  },
195
195
  enum: {
196
196
  schema: stringEnum(["A", "B", "C"]),
@@ -257,7 +257,7 @@ world`,
257
257
  type: "text",
258
258
  title: "Hello World",
259
259
  content: "Hello World",
260
- tags: void 0,
260
+ tags: undefined,
261
261
  createdAt: /* @__PURE__ */ new Date(),
262
262
  updatedAt: /* @__PURE__ */ new Date(),
263
263
  numComments: 134,
@@ -274,7 +274,7 @@ world`,
274
274
  userId: "2",
275
275
  user: {
276
276
  id: "2",
277
- photo: void 0
277
+ photo: undefined
278
278
  },
279
279
  text: "You suck"
280
280
  },
@@ -283,7 +283,7 @@ world`,
283
283
  userId: "3",
284
284
  user: {
285
285
  id: "3",
286
- photo: void 0
286
+ photo: undefined
287
287
  },
288
288
  imageUrl: ""
289
289
  }
@@ -318,7 +318,7 @@ world`,
318
318
  type: "text",
319
319
  title: "Hello World",
320
320
  content: "Hello World",
321
- tags: void 0,
321
+ tags: undefined,
322
322
  createdAt: /* @__PURE__ */ new Date(),
323
323
  updatedAt: /* @__PURE__ */ new Date(),
324
324
  numComments: 134,
@@ -335,7 +335,7 @@ world`,
335
335
  userId: "2",
336
336
  user: {
337
337
  id: "2",
338
- photo: void 0
338
+ photo: undefined
339
339
  },
340
340
  text: "You suck"
341
341
  },
@@ -344,7 +344,7 @@ world`,
344
344
  userId: "3",
345
345
  user: {
346
346
  id: "3",
347
- photo: void 0
347
+ photo: undefined
348
348
  },
349
349
  imageUrl: ""
350
350
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrirpc/schema",
3
- "version": "0.70.1",
3
+ "version": "0.71.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -24,7 +24,8 @@
24
24
  "dependencies": {
25
25
  "scule": "^1.3.0",
26
26
  "uncrypto": "^0.1.3",
27
- "@arrirpc/type-defs": "0.70.1"
27
+ "@standard-schema/spec": "1.0.0-rc.0",
28
+ "@arrirpc/type-defs": "0.71.0"
28
29
  },
29
30
  "devDependencies": {
30
31
  "ajv": "^8.17.1",