@remix-run/node
Advanced tools
Comparing version 2.11.2 to 2.12.0-pre.0
# `@remix-run/node` | ||
## 2.12.0-pre.0 | ||
### Patch Changes | ||
- Single Fetch: Improved typesafety ([#9893](https://github.com/remix-run/remix/pull/9893)) | ||
If you were already using single-fetch types: | ||
- Remove `"@remix-run/react/future/single-fetch.d.ts"` override from `tsconfig.json` > `compilerOptions` > `types` | ||
- Remove `defineLoader`, `defineAction`, `defineClientLoader`, `defineClientAction` helpers from your route modules | ||
- Replace `UIMatch_SingleFetch` type helper with `UIMatch` | ||
- Replace `MetaArgs_SingleFetch` type helper with `MetaArgs` | ||
Then you are ready for the new typesafety setup: | ||
```ts | ||
// vite.config.ts | ||
declare module "@remix-run/server-runtime" { | ||
interface Future { | ||
unstable_singleFetch: true; // 👈 enable _types_ for single-fetch | ||
} | ||
} | ||
export default defineConfig({ | ||
plugins: [ | ||
remix({ | ||
future: { | ||
unstable_singleFetch: true, // 👈 enable single-fetch | ||
}, | ||
}), | ||
], | ||
}); | ||
``` | ||
For more information, see [Guides > Single Fetch](https://remix.run/docs/en/dev/guides/single-fetch) in our docs. | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.12.0-pre.0` | ||
## 2.11.2 | ||
@@ -4,0 +44,0 @@ |
/** | ||
* @remix-run/node v2.11.2 | ||
* @remix-run/node v2.12.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v2.11.2 | ||
* @remix-run/node v2.12.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v2.11.2 | ||
* @remix-run/node v2.12.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
@@ -6,3 +6,3 @@ export { installGlobals } from "./globals"; | ||
export { createReadableStreamFromReadable, readableStreamToString, writeAsyncIterableToWritable, writeReadableStreamToWritable, } from "./stream"; | ||
export { createRequestHandler, createSession, unstable_data, unstable_defineLoader, unstable_defineAction, defer, broadcastDevReady, logDevReady, isCookie, isSession, json, MaxPartSizeExceededError, redirect, redirectDocument, replace, unstable_composeUploadHandlers, unstable_createMemoryUploadHandler, unstable_parseMultipartFormData, } from "@remix-run/server-runtime"; | ||
export { createRequestHandler, createSession, unstable_data, defer, broadcastDevReady, logDevReady, isCookie, isSession, json, MaxPartSizeExceededError, redirect, redirectDocument, replace, unstable_composeUploadHandlers, unstable_createMemoryUploadHandler, unstable_parseMultipartFormData, } from "@remix-run/server-runtime"; | ||
export type { ActionFunction, ActionFunctionArgs, AppLoadContext, Cookie, CookieOptions, CookieParseOptions, CookieSerializeOptions, CookieSignatureOptions, DataFunctionArgs, EntryContext, ErrorResponse, HandleDataRequestFunction, HandleDocumentRequestFunction, HeadersArgs, HeadersFunction, HtmlLinkDescriptor, JsonFunction, LinkDescriptor, LinksFunction, LoaderFunction, LoaderFunctionArgs, MemoryUploadHandlerFilterArgs, MemoryUploadHandlerOptions, HandleErrorFunction, PageLinkDescriptor, RequestHandler, SerializeFrom, ServerBuild, ServerEntryModule, ServerRuntimeMetaArgs as MetaArgs, ServerRuntimeMetaDescriptor as MetaDescriptor, ServerRuntimeMetaFunction as MetaFunction, Session, SessionData, SessionIdStorageStrategy, SessionStorage, SignFunction, TypedDeferredData, TypedResponse, UnsignFunction, UploadHandler, UploadHandlerPart, } from "@remix-run/server-runtime"; |
/** | ||
* @remix-run/node v2.11.2 | ||
* @remix-run/node v2.12.0-pre.0 | ||
* | ||
@@ -96,10 +96,2 @@ * Copyright (c) Remix Software Inc. | ||
}); | ||
Object.defineProperty(exports, 'unstable_defineAction', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.unstable_defineAction; } | ||
}); | ||
Object.defineProperty(exports, 'unstable_defineLoader', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.unstable_defineLoader; } | ||
}); | ||
Object.defineProperty(exports, 'unstable_parseMultipartFormData', { | ||
@@ -106,0 +98,0 @@ enumerable: true, |
/** | ||
* @remix-run/node v2.11.2 | ||
* @remix-run/node v2.12.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v2.11.2 | ||
* @remix-run/node v2.12.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v2.11.2 | ||
* @remix-run/node v2.12.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/node", | ||
"version": "2.11.2", | ||
"version": "2.12.0-pre.0", | ||
"description": "Node.js platform abstractions for Remix", | ||
@@ -26,3 +26,3 @@ "bugs": { | ||
"undici": "^6.11.1", | ||
"@remix-run/server-runtime": "2.11.2" | ||
"@remix-run/server-runtime": "2.12.0-pre.0" | ||
}, | ||
@@ -29,0 +29,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50488
805
2
+ Added@remix-run/router@1.19.2-pre.0(transitive)
+ Added@remix-run/server-runtime@2.12.0-pre.0(transitive)
+ Addedturbo-stream@2.4.0(transitive)
- Removed@remix-run/router@1.19.1(transitive)
- Removed@remix-run/server-runtime@2.11.2(transitive)
- Removedturbo-stream@2.3.0(transitive)