@solidjs/vite-plugin 3.0.0-next.29 → 3.0.0-next.30

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.
@@ -4,7 +4,14 @@ import type { IncomingMessage, ServerResponse } from 'node:http';
4
4
  * different URL than the one node saw — the dev middlewares use it to
5
5
  * restore the configured Vite `base` that the dev/preview base middleware
6
6
  * stripped, so the handler always sees production-shaped URLs.
7
+ *
8
+ * Handles plain HTTP/1 *and* the HTTP/2 compat API: Vite's dev server uses
9
+ * `http2.createSecureServer({ allowHTTP1: true })` whenever `server.https`
10
+ * is set without a proxy, so under https the middlewares receive
11
+ * `Http2ServerRequest`s. The h2/protocol/abort techniques here are
12
+ * reimplemented from srvx's Node adapter (github.com/h3js/srvx,
13
+ * src/adapters/_node) — reference, not copied code.
7
14
  */
8
- export declare function webRequestFromNode(req: IncomingMessage, urlPath?: string): Request;
15
+ export declare function webRequestFromNode(req: IncomingMessage, urlPath?: string, res?: ServerResponse): Request;
9
16
  export declare function sendWebResponse(res: ServerResponse, response: Response): Promise<void>;
10
17
  export declare function joinBase(base: string, pathname: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/vite-plugin",
3
- "version": "3.0.0-next.29",
3
+ "version": "3.0.0-next.30",
4
4
  "description": "solid-js integration plugin for vite 6/7/8",
5
5
  "type": "module",
6
6
  "files": [
@@ -50,7 +50,7 @@
50
50
  "dependencies": {
51
51
  "@ampproject/remapping": "^2.3.0",
52
52
  "@babel/core": "^7.23.3",
53
- "@dom-expressions/compiler": "0.50.0-next.40",
53
+ "@dom-expressions/compiler": "^0.50.0-next.43",
54
54
  "@types/babel__core": "^7.20.4",
55
55
  "babel-preset-solid": "^2.0.0-rc.0",
56
56
  "merge-anything": "^5.1.7",