@remix-run/node 0.0.0-experimental-7c438aeb7 → 0.0.0-experimental-ae033af48
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/dist/base64.js +1 -1
- package/dist/crypto.js +1 -1
- package/dist/fetch.js +1 -1
- package/dist/globals.d.ts +2 -0
- package/dist/globals.js +4 -1
- package/dist/implementations.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -1
- package/dist/magicExports/esm/remix.js +1 -1
- package/dist/magicExports/remix.d.ts +1 -1
- package/dist/magicExports/remix.js +1 -1
- package/dist/sessions/fileStorage.js +1 -7
- package/dist/stream.js +9 -2
- package/dist/upload/fileUploadHandler.js +1 -1
- package/package.json +2 -2
package/dist/base64.js
CHANGED
package/dist/crypto.js
CHANGED
package/dist/fetch.js
CHANGED
package/dist/globals.d.ts
CHANGED
package/dist/globals.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @remix-run/node v0.0.0-experimental-
|
|
2
|
+
* @remix-run/node v0.0.0-experimental-ae033af48
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14
14
|
|
|
15
|
+
var util = require('util');
|
|
15
16
|
var webStream = require('@remix-run/web-stream');
|
|
16
17
|
var base64 = require('./base64.js');
|
|
17
18
|
var fetch = require('./fetch.js');
|
|
@@ -30,6 +31,8 @@ function installGlobals() {
|
|
|
30
31
|
global.FormData = webFetch.FormData;
|
|
31
32
|
global.ReadableStream = webStream.ReadableStream;
|
|
32
33
|
global.WritableStream = webStream.WritableStream;
|
|
34
|
+
global.TextDecoder = util.TextDecoder;
|
|
35
|
+
global.TextEncoder = util.TextEncoder;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
exports.installGlobals = installGlobals;
|
package/dist/implementations.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export { createFileSessionStorage } from "./sessions/fileStorage";
|
|
|
6
6
|
export { createFileUploadHandler as unstable_createFileUploadHandler, NodeOnDiskFile, } from "./upload/fileUploadHandler";
|
|
7
7
|
export { createCookie, createCookieSessionStorage, createMemorySessionStorage, createSessionStorage, } from "./implementations";
|
|
8
8
|
export { createReadableStreamFromReadable, readableStreamToString, writeAsyncIterableToWritable, writeReadableStreamToWritable, } from "./stream";
|
|
9
|
-
export { createRequestHandler, createSession, isCookie, isSession, json, JsonFunction, MaxPartSizeExceededError, redirect, unstable_composeUploadHandlers, unstable_createMemoryUploadHandler, unstable_parseMultipartFormData, } from "@remix-run/server-runtime";
|
|
10
|
-
export type { ActionArgs, ActionFunction, AppData, AppLoadContext, Cookie, CookieOptions, CookieParseOptions, CookieSerializeOptions, CookieSignatureOptions, DataFunctionArgs, EntryContext, ErrorBoundaryComponent, HandleDataRequestFunction, HandleDocumentRequestFunction, HeadersFunction, HtmlLinkDescriptor, HtmlMetaDescriptor, LinkDescriptor, LinksFunction, LoaderArgs, LoaderFunction, MemoryUploadHandlerFilterArgs, MemoryUploadHandlerOptions, MetaDescriptor, MetaFunction, PageLinkDescriptor, RequestHandler, RouteComponent, RouteHandle,
|
|
9
|
+
export { createRequestHandler, createSession, defer, isCookie, isSession, json, JsonFunction, TypedResponse, MaxPartSizeExceededError, redirect, unstable_composeUploadHandlers, unstable_createMemoryUploadHandler, unstable_parseMultipartFormData, } from "@remix-run/server-runtime";
|
|
10
|
+
export type { ActionArgs, ActionFunction, AppData, AppLoadContext, Cookie, CookieOptions, CookieParseOptions, CookieSerializeOptions, CookieSignatureOptions, CreateRequestHandlerFunction, DataFunctionArgs, EntryContext, ErrorBoundaryComponent, HandleDataRequestFunction, HandleDocumentRequestFunction, HeadersFunction, HtmlLinkDescriptor, HtmlMetaDescriptor, LinkDescriptor, LinksFunction, LoaderArgs, LoaderFunction, MemoryUploadHandlerFilterArgs, MemoryUploadHandlerOptions, MetaDescriptor, MetaFunction, PageLinkDescriptor, RequestHandler, RouteComponent, RouteHandle, ServerBuild, ServerEntryModule, Session, SessionData, SessionIdStorageStrategy, SessionStorage, UploadHandler, UploadHandlerPart, } from "@remix-run/server-runtime";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @remix-run/node v0.0.0-experimental-
|
|
2
|
+
* @remix-run/node v0.0.0-experimental-ae033af48
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -56,6 +56,10 @@ Object.defineProperty(exports, 'MaxPartSizeExceededError', {
|
|
|
56
56
|
enumerable: true,
|
|
57
57
|
get: function () { return serverRuntime.MaxPartSizeExceededError; }
|
|
58
58
|
});
|
|
59
|
+
Object.defineProperty(exports, 'TypedResponse', {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () { return serverRuntime.TypedResponse; }
|
|
62
|
+
});
|
|
59
63
|
Object.defineProperty(exports, 'createRequestHandler', {
|
|
60
64
|
enumerable: true,
|
|
61
65
|
get: function () { return serverRuntime.createRequestHandler; }
|
|
@@ -64,6 +68,10 @@ Object.defineProperty(exports, 'createSession', {
|
|
|
64
68
|
enumerable: true,
|
|
65
69
|
get: function () { return serverRuntime.createSession; }
|
|
66
70
|
});
|
|
71
|
+
Object.defineProperty(exports, 'defer', {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () { return serverRuntime.defer; }
|
|
74
|
+
});
|
|
67
75
|
Object.defineProperty(exports, 'isCookie', {
|
|
68
76
|
enumerable: true,
|
|
69
77
|
get: function () { return serverRuntime.isCookie; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @remix-run/node v0.0.0-experimental-
|
|
2
|
+
* @remix-run/node v0.0.0-experimental-ae033af48
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -118,12 +118,6 @@ function createFileSessionStorage({
|
|
|
118
118
|
},
|
|
119
119
|
|
|
120
120
|
async deleteData(id) {
|
|
121
|
-
// Return early if the id is empty, otherwise we'll end up trying to
|
|
122
|
-
// unlink the dir, which will cause the EPERM error.
|
|
123
|
-
if (!id) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
121
|
try {
|
|
128
122
|
await fs.promises.unlink(getFile(dir, id));
|
|
129
123
|
} catch (error) {
|
package/dist/stream.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @remix-run/node v0.0.0-experimental-
|
|
2
|
+
* @remix-run/node v0.0.0-experimental-ae033af48
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -28,7 +28,14 @@ async function writeReadableStreamToWritable(stream, writable) {
|
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
writable.write(value);
|
|
31
|
+
writable.write(value); // If the stream is flushable, flush it to allow streaming to continue.
|
|
32
|
+
|
|
33
|
+
let flushable = writable;
|
|
34
|
+
|
|
35
|
+
if (typeof flushable.flush === "function") {
|
|
36
|
+
flushable.flush();
|
|
37
|
+
}
|
|
38
|
+
|
|
32
39
|
await read();
|
|
33
40
|
}
|
|
34
41
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remix-run/node",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-ae033af48",
|
|
4
4
|
"description": "Node.js platform abstractions for Remix",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/remix-run/remix/issues"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"typings": "dist/index.d.ts",
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@remix-run/server-runtime": "0.0.0-experimental-
|
|
18
|
+
"@remix-run/server-runtime": "0.0.0-experimental-ae033af48",
|
|
19
19
|
"@remix-run/web-fetch": "^4.1.3",
|
|
20
20
|
"@remix-run/web-file": "^3.0.2",
|
|
21
21
|
"@remix-run/web-stream": "^1.0.3",
|