@bleedingdev/modern-js-types 3.5.0-ultramodern.7 → 3.5.0-ultramodern.76
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/cli/index.d.ts +3 -2
- package/package.json +4 -5
- package/server/context.d.ts +2 -2
- package/server/devServer.d.ts +1 -1
- package/server/index.d.ts +0 -1
- package/server/rsc.d.ts +0 -8
- package/server/utils.d.ts +6 -4
package/cli/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Config as JestConfigTypes } from '@jest/types';
|
|
2
2
|
|
|
3
|
-
export type JestConfig = JestConfigTypes.
|
|
3
|
+
export type JestConfig = JestConfigTypes.InitialOptions;
|
|
4
4
|
|
|
5
5
|
export interface TestConfig {
|
|
6
6
|
/**
|
|
@@ -82,7 +82,8 @@ export interface Route {
|
|
|
82
82
|
|
|
83
83
|
export type NestedRouteForCli = NestedRoute<string>;
|
|
84
84
|
|
|
85
|
-
export interface NestedRoute<T = string | (() =>
|
|
85
|
+
export interface NestedRoute<T = string | (() => React.ReactElement)>
|
|
86
|
+
extends Route {
|
|
86
87
|
type: 'nested';
|
|
87
88
|
origin: 'file-system' | 'config';
|
|
88
89
|
// Route type to distinguish between page and layout routes
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.5.0-ultramodern.
|
|
20
|
+
"version": "3.5.0-ultramodern.76",
|
|
21
21
|
"types": "./index.d.ts",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
@@ -51,13 +51,12 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/babel__core": "^7.20.5",
|
|
54
|
-
"@types/node": "^26.
|
|
55
|
-
"http-proxy-middleware": "^4.
|
|
56
|
-
"type-fest": "5.
|
|
54
|
+
"@types/node": "^26.1.1",
|
|
55
|
+
"http-proxy-middleware": "^4.2.0",
|
|
56
|
+
"type-fest": "5.8.0"
|
|
57
57
|
},
|
|
58
58
|
"sideEffects": false,
|
|
59
59
|
"publishConfig": {
|
|
60
|
-
"registry": "https://registry.npmjs.org/",
|
|
61
60
|
"access": "public"
|
|
62
61
|
},
|
|
63
62
|
"scripts": {
|
package/server/context.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { SSRMode } from 'common';
|
|
2
1
|
import type {
|
|
3
2
|
Server as HttpServer,
|
|
4
3
|
IncomingHttpHeaders,
|
|
@@ -6,6 +5,7 @@ import type {
|
|
|
6
5
|
ServerResponse,
|
|
7
6
|
} from 'http';
|
|
8
7
|
import type qs from 'querystring';
|
|
8
|
+
import type { SSRMode } from '../common';
|
|
9
9
|
import type { Logger, Metrics, Reporter, ServerTiming } from './utils';
|
|
10
10
|
|
|
11
11
|
export interface RequestPayload {
|
|
@@ -57,7 +57,7 @@ export interface ModernServerContext {
|
|
|
57
57
|
|
|
58
58
|
resHasHandled: () => boolean;
|
|
59
59
|
|
|
60
|
-
error: (dig: string, e
|
|
60
|
+
error: (dig: string, e?: Error | string) => void;
|
|
61
61
|
|
|
62
62
|
setServerData: (key: string, value: any) => void;
|
|
63
63
|
}
|
package/server/devServer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NodeRequest, NodeResponse } from '
|
|
1
|
+
import type { NodeRequest, NodeResponse } from './server';
|
|
2
2
|
import type { DevProxyOptions, NextFunction } from './utils';
|
|
3
3
|
|
|
4
4
|
export type DevServerHttpsOptions = boolean | { key: string; cert: string };
|
package/server/index.d.ts
CHANGED
package/server/rsc.d.ts
CHANGED
package/server/utils.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { Http2ServerRequest } from 'node:http2';
|
|
2
2
|
import type { IncomingMessage, ServerResponse } from 'http';
|
|
3
|
-
import type {
|
|
4
|
-
Filter as ProxyFilter,
|
|
5
|
-
Options as ProxyOptions,
|
|
6
|
-
} from 'http-proxy-middleware';
|
|
7
3
|
import type { NodeRequest } from './server';
|
|
4
|
+
|
|
5
|
+
export type ProxyFilter =
|
|
6
|
+
| string
|
|
7
|
+
| string[]
|
|
8
|
+
| ((pathname: string, req: IncomingMessage) => boolean);
|
|
9
|
+
export type ProxyOptions = Record<string, any>;
|
|
8
10
|
export interface Metrics {
|
|
9
11
|
emitCounter: (
|
|
10
12
|
name: string,
|