@whatwg-node/server 0.7.7 → 0.8.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.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@whatwg-node/server",
3
- "version": "0.7.7",
3
+ "version": "0.8.0",
4
4
  "description": "Fetch API compliant HTTP Server adapter",
5
5
  "sideEffects": false,
6
6
  "dependencies": {
7
- "@whatwg-node/fetch": "^0.8.3",
7
+ "@whatwg-node/fetch": "^0.9.0",
8
8
  "tslib": "^2.3.1"
9
9
  },
10
10
  "repository": {
@@ -14,6 +14,9 @@
14
14
  },
15
15
  "author": "Arda TANRIKULU <ardatanrikulu@gmail.com>",
16
16
  "license": "MIT",
17
+ "engines": {
18
+ "node": ">=16.0.0"
19
+ },
17
20
  "main": "cjs/index.js",
18
21
  "module": "esm/index.js",
19
22
  "typings": "typings/index.d.ts",
@@ -1,9 +0,0 @@
1
- import { ServerAdapterPlugin } from './plugins/types';
2
- import { FetchAPI, ServerAdapter, ServerAdapterBaseObject, ServerAdapterRequestHandler } from './types';
3
- export interface ServerAdapterOptions<TServerContext> {
4
- plugins?: ServerAdapterPlugin<TServerContext>[];
5
- fetchAPI?: Partial<FetchAPI>;
6
- }
7
- declare function createServerAdapter<TServerContext = {}, THandleRequest extends ServerAdapterRequestHandler<TServerContext> = ServerAdapterRequestHandler<TServerContext>>(serverAdapterRequestHandler: THandleRequest, options?: ServerAdapterOptions<TServerContext>): ServerAdapter<TServerContext, ServerAdapterBaseObject<TServerContext, THandleRequest>>;
8
- declare function createServerAdapter<TServerContext, TBaseObject extends ServerAdapterBaseObject<TServerContext>>(serverAdapterBaseObject: TBaseObject, options?: ServerAdapterOptions<TServerContext>): ServerAdapter<TServerContext, TBaseObject>;
9
- export { createServerAdapter };
package/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export * from './createServerAdapter';
2
- export * from './types';
3
- export * from './utils';
4
- export * from './plugins/types';
5
- export * from './plugins/useCors';
6
- export * from './plugins/useErrorHandling';
7
- export { Response } from '@whatwg-node/fetch';