yedra 0.17.4 → 0.17.6

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.
@@ -1,2 +1,2 @@
1
1
  import type { Readable } from 'node:stream';
2
- export declare const readableToBuffer: (stream: Readable) => Promise<Buffer>;
2
+ export declare const readableToBuffer: (stream: Readable) => Promise<Buffer<ArrayBuffer>>;
@@ -35,7 +35,7 @@ class OptionalSchema extends Schema {
35
35
  return new ArraySchema(this);
36
36
  }
37
37
  parse(obj) {
38
- if (obj === undefined || obj === null) {
38
+ if (obj === undefined) {
39
39
  return undefined;
40
40
  }
41
41
  return this.schema.parse(obj);
@@ -1,9 +1,9 @@
1
1
  import type { Readable } from 'node:stream';
2
2
  import { BodyType } from './body.js';
3
- declare class RawBody extends BodyType<Buffer> {
3
+ declare class RawBody extends BodyType<Buffer<ArrayBuffer>> {
4
4
  private contentType;
5
5
  constructor(contentType: string);
6
- deserialize(stream: Readable, _contentType: string): Promise<Buffer>;
6
+ deserialize(stream: Readable, _contentType: string): Promise<Buffer<ArrayBuffer>>;
7
7
  bodyDocs(): object;
8
8
  }
9
9
  /**
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "yedra",
3
- "version": "0.17.4",
3
+ "version": "0.17.6",
4
4
  "repository": "github:0codekit/yedra",
5
5
  "main": "dist/index.js",
6
6
  "devDependencies": {
7
- "@biomejs/biome": "^2.1.3",
8
- "@types/bun": "^1.2.19",
9
- "@types/node": "^24.2.0",
7
+ "@biomejs/biome": "^2.2.2",
8
+ "@types/bun": "^1.2.21",
9
+ "@types/node": "^24.3.0",
10
10
  "@types/uuid": "^10.0.0",
11
11
  "@types/ws": "^8.18.1",
12
12
  "typescript": "^5.9.2"