@whatwg-node/server 0.9.28 → 0.9.29

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.
package/cjs/utils.js CHANGED
@@ -164,7 +164,7 @@ function normalizeNodeRequest(nodeRequest, RequestCtor) {
164
164
  if (!bunNodeCompatModeWarned) {
165
165
  bunNodeCompatModeWarned = true;
166
166
  console.warn(`You use Bun Node compatibility mode, which is not recommended!
167
- It will affect your performance. Please check our Bun integration recipe, and avoid using 'node:http' for your server implementation.`);
167
+ It will affect your performance. Please check our Bun integration recipe, and avoid using 'http' for your server implementation.`);
168
168
  }
169
169
  return new RequestCtor(fullUrl, {
170
170
  method: nodeRequest.method,
package/esm/utils.js CHANGED
@@ -159,7 +159,7 @@ export function normalizeNodeRequest(nodeRequest, RequestCtor) {
159
159
  if (!bunNodeCompatModeWarned) {
160
160
  bunNodeCompatModeWarned = true;
161
161
  console.warn(`You use Bun Node compatibility mode, which is not recommended!
162
- It will affect your performance. Please check our Bun integration recipe, and avoid using 'node:http' for your server implementation.`);
162
+ It will affect your performance. Please check our Bun integration recipe, and avoid using 'http' for your server implementation.`);
163
163
  }
164
164
  return new RequestCtor(fullUrl, {
165
165
  method: nodeRequest.method,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whatwg-node/server",
3
- "version": "0.9.28",
3
+ "version": "0.9.29",
4
4
  "description": "Fetch API compliant HTTP Server adapter",
5
5
  "sideEffects": false,
6
6
  "dependencies": {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="@whatwg-node/fetch" />
3
- import type { RequestListener } from 'node:http';
3
+ import type { RequestListener } from 'http';
4
4
  import type { NodeRequest, NodeResponse } from './utils.cjs';
5
5
  import { UWSHandler, UWSRequest, UWSResponse } from './uwebsockets.cjs';
6
6
  export interface FetchEvent extends Event {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="@whatwg-node/fetch" />
3
- import type { RequestListener } from 'node:http';
3
+ import type { RequestListener } from 'http';
4
4
  import type { NodeRequest, NodeResponse } from './utils.js';
5
5
  import { UWSHandler, UWSRequest, UWSResponse } from './uwebsockets.js';
6
6
  export interface FetchEvent extends Event {
@@ -2,10 +2,10 @@
2
2
  /// <reference types="node" />
3
3
  /// <reference types="node" />
4
4
  /// <reference types="node" />
5
- import type { IncomingMessage, ServerResponse } from 'node:http';
6
- import type { Http2ServerRequest, Http2ServerResponse } from 'node:http2';
7
- import type { Socket } from 'node:net';
8
- import type { Readable } from 'node:stream';
5
+ import type { IncomingMessage, ServerResponse } from 'http';
6
+ import type { Http2ServerRequest, Http2ServerResponse } from 'http2';
7
+ import type { Socket } from 'net';
8
+ import type { Readable } from 'stream';
9
9
  import type { FetchEvent } from './types.cjs';
10
10
  export declare function isAsyncIterable(body: any): body is AsyncIterable<any>;
11
11
  export interface NodeRequest {
@@ -2,10 +2,10 @@
2
2
  /// <reference types="node" />
3
3
  /// <reference types="node" />
4
4
  /// <reference types="node" />
5
- import type { IncomingMessage, ServerResponse } from 'node:http';
6
- import type { Http2ServerRequest, Http2ServerResponse } from 'node:http2';
7
- import type { Socket } from 'node:net';
8
- import type { Readable } from 'node:stream';
5
+ import type { IncomingMessage, ServerResponse } from 'http';
6
+ import type { Http2ServerRequest, Http2ServerResponse } from 'http2';
7
+ import type { Socket } from 'net';
8
+ import type { Readable } from 'stream';
9
9
  import type { FetchEvent } from './types.js';
10
10
  export declare function isAsyncIterable(body: any): body is AsyncIterable<any>;
11
11
  export interface NodeRequest {