@quilted/quilt 0.5.65 → 0.5.66
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/CHANGELOG.md +8 -0
- package/build/cjs/server/http-handler.cjs +1 -4
- package/build/esm/server/http-handler.mjs +1 -4
- package/build/esnext/server/http-handler.esnext +1 -4
- package/build/tsconfig.tsbuildinfo +1 -7512
- package/build/typescript/polyfills/crypto.d.ts +2 -0
- package/build/typescript/polyfills/crypto.d.ts.map +1 -0
- package/build/typescript/server/http-handler.d.ts +3 -3
- package/build/typescript/server/http-handler.d.ts.map +1 -1
- package/package.json +10 -1
- package/src/polyfills/crypto.ts +1 -0
- package/src/server/http-handler.tsx +2 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../../src/polyfills/crypto.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
2
|
import type { AssetLoader } from '@quilted/async/server';
|
|
3
|
-
import type { Request, HttpHandler, RequestHandler
|
|
4
|
-
export interface Options<Props = Record<string, never>>
|
|
3
|
+
import type { Request, HttpHandler, RequestHandler } from '@quilted/http-handlers';
|
|
4
|
+
export interface Options<Props = Record<string, never>> {
|
|
5
5
|
assets: AssetLoader<unknown>;
|
|
6
6
|
handler?: HttpHandler;
|
|
7
7
|
renderProps?(options: {
|
|
@@ -9,5 +9,5 @@ export interface Options<Props = Record<string, never>> extends Pick<HttpHandler
|
|
|
9
9
|
}): Props;
|
|
10
10
|
}
|
|
11
11
|
export declare function createServerRenderingRequestHandler<Props>(App: ComponentType<Props>, { assets, renderProps, }: Pick<Options<Props>, 'assets' | 'renderProps'>): RequestHandler;
|
|
12
|
-
export declare function createServerRenderingHttpHandler<Props>(App: ComponentType<Props>, { assets,
|
|
12
|
+
export declare function createServerRenderingHttpHandler<Props>(App: ComponentType<Props>, { assets, renderProps, handler }: Options<Props>): HttpHandler;
|
|
13
13
|
//# sourceMappingURL=http-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-handler.d.ts","sourceRoot":"","sources":["../../../src/server/http-handler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAIvD,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EACX,cAAc,
|
|
1
|
+
{"version":3,"file":"http-handler.d.ts","sourceRoot":"","sources":["../../../src/server/http-handler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAIvD,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EACX,cAAc,EACf,MAAM,wBAAwB,CAAC;AAIhC,MAAM,WAAW,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IACpD,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,WAAW,CAAC,CAAC,OAAO,EAAE;QAAC,OAAO,EAAE,OAAO,CAAA;KAAC,GAAG,KAAK,CAAC;CAClD;AAED,wBAAgB,mCAAmC,CAAC,KAAK,EACvD,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,EACzB,EACE,MAAM,EACN,WAA+B,GAChC,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC,GAChD,cAAc,CAqDhB;AAED,wBAAgB,gCAAgC,CAAC,KAAK,EACpD,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,EACzB,EAAC,MAAM,EAAE,WAAW,EAAE,OAA6B,EAAC,EAAE,OAAO,CAAC,KAAK,CAAC,eAIrE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quilted/quilt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.66",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/lemonmade/quilt.git",
|
|
@@ -103,6 +103,12 @@
|
|
|
103
103
|
"import": "./build/esm/polyfills/base.mjs",
|
|
104
104
|
"require": "./build/cjs/polyfills/base.cjs"
|
|
105
105
|
},
|
|
106
|
+
"./polyfills/crypto": {
|
|
107
|
+
"quilt:from-source": "./src/polyfills/crypto.ts",
|
|
108
|
+
"quilt:esnext": "./build/esnext/polyfills/crypto.esnext",
|
|
109
|
+
"import": "./build/esm/polyfills/crypto.mjs",
|
|
110
|
+
"require": "./build/cjs/polyfills/crypto.cjs"
|
|
111
|
+
},
|
|
106
112
|
"./polyfills/fetch": {
|
|
107
113
|
"quilt:from-source": "./src/polyfills/fetch.ts",
|
|
108
114
|
"quilt:esnext": "./build/esnext/polyfills/fetch.esnext",
|
|
@@ -167,6 +173,9 @@
|
|
|
167
173
|
"polyfills/fetch": [
|
|
168
174
|
"./build/typescript/polyfills/fetch.d.ts"
|
|
169
175
|
],
|
|
176
|
+
"polyfills/crypto": [
|
|
177
|
+
"./build/typescript/polyfills/crypto.d.ts"
|
|
178
|
+
],
|
|
170
179
|
"polyfills/noop": [
|
|
171
180
|
"./build/typescript/polyfills/noop.d.ts"
|
|
172
181
|
],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@quilted/polyfills/crypto';
|
|
@@ -8,13 +8,11 @@ import type {
|
|
|
8
8
|
Request,
|
|
9
9
|
HttpHandler,
|
|
10
10
|
RequestHandler,
|
|
11
|
-
HttpHandlerOptions,
|
|
12
11
|
} from '@quilted/http-handlers';
|
|
13
12
|
|
|
14
13
|
import {renderApp} from './render';
|
|
15
14
|
|
|
16
|
-
export interface Options<Props = Record<string, never>>
|
|
17
|
-
extends Pick<HttpHandlerOptions, 'before'> {
|
|
15
|
+
export interface Options<Props = Record<string, never>> {
|
|
18
16
|
assets: AssetLoader<unknown>;
|
|
19
17
|
handler?: HttpHandler;
|
|
20
18
|
renderProps?(options: {request: Request}): Props;
|
|
@@ -83,12 +81,7 @@ export function createServerRenderingRequestHandler<Props>(
|
|
|
83
81
|
|
|
84
82
|
export function createServerRenderingHttpHandler<Props>(
|
|
85
83
|
App: ComponentType<Props>,
|
|
86
|
-
{
|
|
87
|
-
assets,
|
|
88
|
-
before,
|
|
89
|
-
renderProps,
|
|
90
|
-
handler = createHttpHandler({before}),
|
|
91
|
-
}: Options<Props>,
|
|
84
|
+
{assets, renderProps, handler = createHttpHandler()}: Options<Props>,
|
|
92
85
|
) {
|
|
93
86
|
handler.get(createServerRenderingRequestHandler(App, {assets, renderProps}));
|
|
94
87
|
return handler;
|