@react-router/node 0.0.0-experimental-14b5858e8 → 0.0.0-experimental-1ea0577
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 +0 -7
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +30 -4
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestListener } from 'node:http';
|
|
2
|
-
import { ServerBuild, UNSAFE_MiddlewareEnabled, unstable_InitialContext, AppLoadContext, SessionData,
|
|
2
|
+
import { ServerBuild, UNSAFE_MiddlewareEnabled, unstable_InitialContext, AppLoadContext, SessionData, SessionStorage, SessionIdStorageStrategy } from 'react-router';
|
|
3
3
|
import { ClientAddress } from '@mjackson/node-fetch-server';
|
|
4
|
-
import {
|
|
4
|
+
import { Writable, Readable } from 'node:stream';
|
|
5
5
|
|
|
6
6
|
type MaybePromise<T> = T | Promise<T>;
|
|
7
7
|
interface RequestListenerOptions {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestListener } from 'node:http';
|
|
2
|
-
import { ServerBuild, UNSAFE_MiddlewareEnabled, unstable_InitialContext, AppLoadContext, SessionData,
|
|
2
|
+
import { ServerBuild, UNSAFE_MiddlewareEnabled, unstable_InitialContext, AppLoadContext, SessionData, SessionStorage, SessionIdStorageStrategy } from 'react-router';
|
|
3
3
|
import { ClientAddress } from '@mjackson/node-fetch-server';
|
|
4
|
-
import {
|
|
4
|
+
import { Writable, Readable } from 'node:stream';
|
|
5
5
|
|
|
6
6
|
type MaybePromise<T> = T | Promise<T>;
|
|
7
7
|
interface RequestListenerOptions {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/node v0.0.0-experimental-
|
|
2
|
+
* @react-router/node v0.0.0-experimental-1ea0577
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -38,8 +38,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
38
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
39
39
|
|
|
40
40
|
// index.ts
|
|
41
|
-
var
|
|
42
|
-
__export(
|
|
41
|
+
var react_router_node_exports = {};
|
|
42
|
+
__export(react_router_node_exports, {
|
|
43
43
|
createFileSessionStorage: () => createFileSessionStorage,
|
|
44
44
|
createReadableStreamFromReadable: () => createReadableStreamFromReadable,
|
|
45
45
|
createRequestListener: () => createRequestListener,
|
|
@@ -47,7 +47,7 @@ __export(index_exports, {
|
|
|
47
47
|
writeAsyncIterableToWritable: () => writeAsyncIterableToWritable,
|
|
48
48
|
writeReadableStreamToWritable: () => writeReadableStreamToWritable
|
|
49
49
|
});
|
|
50
|
-
module.exports = __toCommonJS(
|
|
50
|
+
module.exports = __toCommonJS(react_router_node_exports);
|
|
51
51
|
|
|
52
52
|
// server.ts
|
|
53
53
|
var import_react_router = require("react-router");
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/node v0.0.0-experimental-
|
|
2
|
+
* @react-router/node v0.0.0-experimental-1ea0577
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -21,8 +21,8 @@ function createRequestListener(options) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
// sessions/fileStorage.ts
|
|
24
|
-
import { promises as fsp } from "fs";
|
|
25
|
-
import * as path from "path";
|
|
24
|
+
import { promises as fsp } from "node:fs";
|
|
25
|
+
import * as path from "node:path";
|
|
26
26
|
import { createSessionStorage } from "react-router";
|
|
27
27
|
function createFileSessionStorage({
|
|
28
28
|
cookie,
|
|
@@ -84,7 +84,7 @@ function getFile(dir, id) {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
// stream.ts
|
|
87
|
-
import { Stream } from "stream";
|
|
87
|
+
import { Stream } from "node:stream";
|
|
88
88
|
async function writeReadableStreamToWritable(stream, writable) {
|
|
89
89
|
let reader = stream.getReader();
|
|
90
90
|
let flushable = writable;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/node",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-1ea0577",
|
|
4
4
|
"description": "Node.js platform abstractions for React Router",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/remix-run/react-router/issues"
|
|
@@ -29,8 +29,27 @@
|
|
|
29
29
|
"default": "./dist/index.js"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
+
"./install": {
|
|
33
|
+
"node": {
|
|
34
|
+
"types": "./dist/install.d.ts",
|
|
35
|
+
"module-sync": "./dist/install.mjs",
|
|
36
|
+
"default": "./dist/install.js"
|
|
37
|
+
},
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/install.d.mts",
|
|
40
|
+
"default": "./dist/install.mjs"
|
|
41
|
+
},
|
|
42
|
+
"default": {
|
|
43
|
+
"types": "./dist/install.d.ts",
|
|
44
|
+
"default": "./dist/install.js"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
32
47
|
"./package.json": "./package.json"
|
|
33
48
|
},
|
|
49
|
+
"sideEffects": [
|
|
50
|
+
"./dist/install.js",
|
|
51
|
+
"./dist/install.mjs"
|
|
52
|
+
],
|
|
34
53
|
"wireit": {
|
|
35
54
|
"build": {
|
|
36
55
|
"command": "tsup",
|
|
@@ -46,17 +65,21 @@
|
|
|
46
65
|
}
|
|
47
66
|
},
|
|
48
67
|
"dependencies": {
|
|
49
|
-
"@mjackson/node-fetch-server": "^0.2.0"
|
|
68
|
+
"@mjackson/node-fetch-server": "^0.2.0",
|
|
69
|
+
"source-map-support": "^0.5.21",
|
|
70
|
+
"stream-slice": "^0.1.2",
|
|
71
|
+
"undici": "^6.19.2"
|
|
50
72
|
},
|
|
51
73
|
"devDependencies": {
|
|
74
|
+
"@types/source-map-support": "^0.5.4",
|
|
52
75
|
"tsup": "^8.3.0",
|
|
53
76
|
"typescript": "^5.1.6",
|
|
54
77
|
"wireit": "0.14.9",
|
|
55
|
-
"react-router": "0.0.0-experimental-
|
|
78
|
+
"react-router": "0.0.0-experimental-1ea0577"
|
|
56
79
|
},
|
|
57
80
|
"peerDependencies": {
|
|
58
81
|
"typescript": "^5.1.0",
|
|
59
|
-
"react-router": "0.0.0-experimental-
|
|
82
|
+
"react-router": "0.0.0-experimental-1ea0577"
|
|
60
83
|
},
|
|
61
84
|
"peerDependenciesMeta": {
|
|
62
85
|
"typescript": {
|
|
@@ -68,6 +91,9 @@
|
|
|
68
91
|
},
|
|
69
92
|
"files": [
|
|
70
93
|
"dist/",
|
|
94
|
+
"globals.d.ts",
|
|
95
|
+
"install.d.ts",
|
|
96
|
+
"install.js",
|
|
71
97
|
"CHANGELOG.md",
|
|
72
98
|
"LICENSE.md",
|
|
73
99
|
"README.md"
|