@remix-run/node 1.6.8 → 1.7.0-pre.0

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # `@remix-run/node`
2
2
 
3
+ ## 1.7.0-pre.0
4
+
5
+ ### Minor Changes
6
+
7
+ - We've added a new type: `SerializeFrom`. This is used to infer the ([#4013](https://github.com/remix-run/remix/pull/4013))
8
+ JSON-serialized return type of loaders and actions.
9
+
10
+ ### Patch Changes
11
+
12
+ - Fixed a bug when destroying `fileStorage` sessions to prevent deleting entire session directories ([#3986](https://github.com/remix-run/remix/pull/3986))
13
+ - Updated dependencies:
14
+ - `@remix-run/server-runtime@1.7.0-pre.0`
15
+
3
16
  ## 1.6.8
4
17
 
5
18
  ### Patch Changes
package/dist/base64.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/node v1.6.8
2
+ * @remix-run/node v1.7.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/dist/crypto.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/node v1.6.8
2
+ * @remix-run/node v1.7.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/dist/fetch.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/node v1.6.8
2
+ * @remix-run/node v1.7.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/dist/globals.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/node v1.6.8
2
+ * @remix-run/node v1.7.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/node v1.6.8
2
+ * @remix-run/node v1.7.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
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, 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";
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, SerializeFrom, ServerBuild, ServerEntryModule, Session, SessionData, SessionIdStorageStrategy, SessionStorage, SignFunction, TypedResponse, UnsignFunction, UploadHandlerPart, UploadHandler, } from "@remix-run/server-runtime";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/node v1.6.8
2
+ * @remix-run/node v1.7.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -56,10 +56,6 @@ 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
- });
63
59
  Object.defineProperty(exports, 'createRequestHandler', {
64
60
  enumerable: true,
65
61
  get: function () { return serverRuntime.createRequestHandler; }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/node v1.6.8
2
+ * @remix-run/node v1.7.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/node v1.6.8
2
+ * @remix-run/node v1.7.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/node v1.6.8
2
+ * @remix-run/node v1.7.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/node v1.6.8
2
+ * @remix-run/node v1.7.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -118,6 +118,12 @@ 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
+
121
127
  try {
122
128
  await fs.promises.unlink(getFile(dir, id));
123
129
  } catch (error) {
package/dist/stream.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/node v1.6.8
2
+ * @remix-run/node v1.7.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/node v1.6.8
2
+ * @remix-run/node v1.7.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remix-run/node",
3
- "version": "1.6.8",
3
+ "version": "1.7.0-pre.0",
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": "1.6.8",
18
+ "@remix-run/server-runtime": "1.7.0-pre.0",
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",