@remix-run/deno
Advanced tools
Comparing version 0.0.0-nightly-accd20c-20230714 to 0.0.0-nightly-acce72504-20240705
230
CHANGELOG.md
# `@remix-run/deno` | ||
## 2.10.2 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.10.2` | ||
## 2.10.1 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.10.1` | ||
## 2.10.0 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.10.0` | ||
## 2.9.2 | ||
### Patch Changes | ||
- Typesafety for single-fetch: `defineLoader`, `defineClientLoader`, | ||
`defineAction`, `defineClientAction` | ||
([#9372](https://github.com/remix-run/remix/pull/9372), | ||
[#9404](https://github.com/remix-run/remix/pull/9404)) | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.9.2` | ||
## 2.9.1 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.9.1` | ||
## 2.9.0 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.9.0` | ||
## 2.8.1 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.8.1` | ||
## 2.8.0 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.8.0` | ||
## 2.7.2 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.7.2` | ||
## 2.7.1 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.7.1` | ||
## 2.7.0 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.7.0` | ||
## 2.6.0 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.6.0` | ||
## 2.5.1 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.5.1` | ||
## 2.5.0 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.5.0` | ||
## 2.4.1 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.4.1` | ||
## 2.4.0 | ||
### Minor Changes | ||
- Deprecate `DataFunctionArgs` in favor of | ||
`LoaderFunctionArgs`/`ActionFunctionArgs` | ||
([#8173](https://github.com/remix-run/remix/pull/8173)) | ||
- This is aimed at keeping the types aligned across server/client | ||
loaders/actions now that `clientLoader`/`clientActon` functions have | ||
`serverLoader`/`serverAction` parameters which differentiate | ||
`ClientLoaderFunctionArgs`/`ClientActionFunctionArgs` | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.4.0` | ||
## 2.3.1 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.3.1` | ||
## 2.3.0 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.3.0` | ||
## 2.2.0 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.2.0` | ||
## 2.1.0 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.1.0` | ||
## 2.0.1 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.0.1` | ||
## 2.0.0 | ||
### Major Changes | ||
- Removed/adjusted types to prefer `unknown` over `any` and to align with | ||
underlying React Router types | ||
([#7319](https://github.com/remix-run/remix/pull/7319), | ||
[#7354](https://github.com/remix-run/remix/pull/7354)): | ||
- Renamed the `useMatches()` return type from `RouteMatch` to `UIMatch` | ||
- Renamed `LoaderArgs`/`ActionArgs` to | ||
`LoaderFunctionArgs`/`ActionFunctionArgs` | ||
- `AppData` changed from `any` to `unknown` | ||
- `Location["state"]` (`useLocation.state`) changed from `any` to `unknown` | ||
- `UIMatch["data"]` (`useMatches()[i].data`) changed from `any` to `unknown` | ||
- `UIMatch["handle"]` (`useMatches()[i].handle`) changed from | ||
`{ [k: string]: any }` to `unknown` | ||
- `Fetcher["data"]` (`useFetcher().data`) changed from `any` to `unknown` | ||
- `MetaMatch.handle` (used in `meta()`) changed from `any` to `unknown` | ||
- `AppData`/`RouteHandle` are no longer exported as they are just aliases for | ||
`unknown` | ||
- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939)) | ||
- The route `meta` API now defaults to the new "V2 Meta" API | ||
([#6958](https://github.com/remix-run/remix/pull/6958)) | ||
- Please refer to the ([docs](https://remix.run/docs/en/2.0.0/route/meta) and | ||
[Preparing for V2](https://remix.run/docs/en/2.0.0/start/v2#route-meta) | ||
guide for more information. | ||
### Minor Changes | ||
- Re-export the new `redirectDocument` method from React Router | ||
([#7040](https://github.com/remix-run/remix/pull/7040), | ||
[#6842](https://github.com/remix-run/remix/pull/6842)) | ||
([#7040](https://github.com/remix-run/remix/pull/7040)) | ||
### Patch Changes | ||
- Export proper `ErrorResponse` type for usage alongside `isRouteErrorResponse` | ||
([#7244](https://github.com/remix-run/remix/pull/7244)) | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.0.0` | ||
## 1.19.3 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@1.19.3` | ||
## 1.19.2 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@1.19.2` | ||
## 1.19.1 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@1.19.1` | ||
## 1.19.0 | ||
### Patch Changes | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@1.19.0` | ||
## 1.18.1 | ||
@@ -4,0 +234,0 @@ |
@@ -35,3 +35,3 @@ import * as path from "https://deno.land/std@0.128.0/path/mod.ts"; | ||
cookie, | ||
async createData(data, expires) { | ||
createData: async (data, expires) => { | ||
const content = JSON.stringify({ data, expires }); | ||
@@ -69,3 +69,3 @@ | ||
}, | ||
async readData(id) { | ||
readData: async (id) => { | ||
try { | ||
@@ -92,3 +92,3 @@ const file = getFile(dir, id); | ||
}, | ||
async updateData(id, data, expires) { | ||
updateData: async (id, data, expires) => { | ||
const content = JSON.stringify({ data, expires }); | ||
@@ -99,3 +99,3 @@ const file = getFile(dir, id); | ||
}, | ||
async deleteData(id) { | ||
deleteData: async (id) => { | ||
try { | ||
@@ -102,0 +102,0 @@ await Deno.remove(getFile(dir, id)); |
23
index.ts
@@ -26,4 +26,7 @@ import "./globals.ts"; | ||
redirect, | ||
redirectDocument, | ||
unstable_composeUploadHandlers, | ||
unstable_createMemoryUploadHandler, | ||
unstable_defineAction, | ||
unstable_defineLoader, | ||
unstable_parseMultipartFormData, | ||
@@ -33,5 +36,4 @@ } from "@remix-run/server-runtime"; | ||
export type { | ||
ActionArgs, | ||
ActionFunction, | ||
AppData, | ||
ActionFunctionArgs, | ||
AppLoadContext, | ||
@@ -45,3 +47,3 @@ Cookie, | ||
EntryContext, | ||
ErrorBoundaryComponent, | ||
ErrorResponse, | ||
HandleDataRequestFunction, | ||
@@ -53,19 +55,17 @@ HandleDocumentRequestFunction, | ||
HtmlLinkDescriptor, | ||
HtmlMetaDescriptor, | ||
JsonFunction, | ||
LinkDescriptor, | ||
LinksFunction, | ||
LoaderArgs, | ||
LoaderFunction, | ||
LoaderFunctionArgs, | ||
MemoryUploadHandlerFilterArgs, | ||
MemoryUploadHandlerOptions, | ||
MetaDescriptor, | ||
MetaFunction, | ||
PageLinkDescriptor, | ||
RequestHandler, | ||
RouteComponent, | ||
RouteHandle, | ||
SerializeFrom, | ||
ServerBuild, | ||
ServerEntryModule, | ||
ServerRuntimeMetaArgs as MetaArgs, | ||
ServerRuntimeMetaDescriptor as MetaDescriptor, | ||
ServerRuntimeMetaFunction as MetaFunction, | ||
Session, | ||
@@ -81,7 +81,2 @@ SessionData, | ||
UploadHandlerPart, | ||
V2_ServerRuntimeMetaArgs as V2_MetaArgs, | ||
// TODO: Remove in v2 | ||
V2_ServerRuntimeMetaDescriptor as V2_HtmlMetaDescriptor, | ||
V2_ServerRuntimeMetaDescriptor as V2_MetaDescriptor, | ||
V2_ServerRuntimeMetaFunction as V2_MetaFunction, | ||
} from "@remix-run/server-runtime"; |
MIT License | ||
Copyright (c) Remix Software Inc. 2020-2021 | ||
Copyright (c) Shopify Inc. 2022-2023 | ||
Copyright (c) Shopify Inc. 2022-2024 | ||
@@ -6,0 +6,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "@remix-run/deno", | ||
"version": "0.0.0-nightly-accd20c-20230714", | ||
"version": "0.0.0-nightly-acce72504-20240705", | ||
"description": "Deno platform abstractions for Remix", | ||
@@ -18,8 +18,16 @@ "homepage": "https://remix.run", | ||
"dependencies": { | ||
"@remix-run/server-runtime": "0.0.0-nightly-accd20c-20230714", | ||
"@remix-run/server-runtime": "0.0.0-nightly-acce72504-20240705", | ||
"mime": "^3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^5.1.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"typescript": { | ||
"optional": true | ||
} | ||
}, | ||
"engines": { | ||
"node": ">=14.0.0" | ||
"node": ">=18.0.0" | ||
} | ||
} | ||
} |
@@ -35,3 +35,3 @@ import * as path from "https://deno.land/std@0.128.0/path/mod.ts"; | ||
cookie, | ||
async createData(data, expires) { | ||
createData: async (data, expires) => { | ||
const content = JSON.stringify({ data, expires }); | ||
@@ -69,3 +69,3 @@ | ||
}, | ||
async readData(id) { | ||
readData: async (id) => { | ||
try { | ||
@@ -92,3 +92,3 @@ const file = getFile(dir, id); | ||
}, | ||
async updateData(id, data, expires) { | ||
updateData: async (id, data, expires) => { | ||
const content = JSON.stringify({ data, expires }); | ||
@@ -99,3 +99,3 @@ const file = getFile(dir, id); | ||
}, | ||
async deleteData(id) { | ||
deleteData: async (id) => { | ||
try { | ||
@@ -102,0 +102,0 @@ await Deno.remove(getFile(dir, id)); |
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
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
28276
3
11
446
+ Added@remix-run/router@1.17.1(transitive)
+ Added@remix-run/server-runtime@0.0.0-nightly-acce72504-20240705(transitive)
+ Added@types/cookie@0.6.0(transitive)
+ Addedcookie@0.6.0(transitive)
+ Addedturbo-stream@2.2.0(transitive)
+ Addedtypescript@5.7.2(transitive)
- Removed@remix-run/router@1.7.2-pre.0(transitive)
- Removed@remix-run/server-runtime@0.0.0-nightly-accd20c-20230714(transitive)
- Removed@types/cookie@0.4.1(transitive)
- Removedcookie@0.4.2(transitive)
Updated@remix-run/server-runtime@0.0.0-nightly-acce72504-20240705