@remix-run/cloudflare
Advanced tools
Comparing version 0.0.0-nightly-929d847-20221114 to 0.0.0-nightly-93d1c9dec-20240829
/** | ||
* @remix-run/cloudflare v0.0.0-nightly-929d847-20221114 | ||
* @remix-run/cloudflare v0.0.0-nightly-93d1c9dec-20240829 | ||
* | ||
@@ -33,3 +33,2 @@ * Copyright (c) Remix Software Inc. | ||
}; | ||
async function createKey(secret, usages) { | ||
@@ -42,10 +41,7 @@ let key = await crypto.subtle.importKey("raw", encoder.encode(secret), { | ||
} | ||
function byteStringToUint8Array(byteString) { | ||
let array = new Uint8Array(byteString.length); | ||
for (let i = 0; i < byteString.length; i++) { | ||
array[i] = byteString.charCodeAt(i); | ||
} | ||
return array; | ||
@@ -52,0 +48,0 @@ } |
/** | ||
* @remix-run/cloudflare v0.0.0-nightly-929d847-20221114 | ||
* @remix-run/cloudflare v0.0.0-nightly-93d1c9dec-20240829 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
import "./globals"; | ||
export { createCloudflareKVSessionStorage } from "./sessions/cloudflareKVSessionStorage"; | ||
export { createWorkersKVSessionStorage } from "./sessions/workersKVStorage"; | ||
export { createCookie, createCookieSessionStorage, createMemorySessionStorage, createSessionStorage, } from "./implementations"; | ||
export { createRequestHandler, createSession, isCookie, isSession, json, MaxPartSizeExceededError, redirect, unstable_composeUploadHandlers, unstable_createMemoryUploadHandler, unstable_parseMultipartFormData, } from "@remix-run/server-runtime"; | ||
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"; | ||
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/cloudflare v0.0.0-nightly-929d847-20221114 | ||
* @remix-run/cloudflare v0.0.0-nightly-93d1c9dec-20240829 | ||
* | ||
@@ -15,3 +15,3 @@ * Copyright (c) Remix Software Inc. | ||
var cloudflareKVSessionStorage = require('./sessions/cloudflareKVSessionStorage.js'); | ||
var workersKVStorage = require('./sessions/workersKVStorage.js'); | ||
var implementations = require('./implementations.js'); | ||
@@ -22,3 +22,3 @@ var serverRuntime = require('@remix-run/server-runtime'); | ||
exports.createCloudflareKVSessionStorage = cloudflareKVSessionStorage.createCloudflareKVSessionStorage; | ||
exports.createWorkersKVSessionStorage = workersKVStorage.createWorkersKVSessionStorage; | ||
exports.createCookie = implementations.createCookie; | ||
@@ -32,2 +32,6 @@ exports.createCookieSessionStorage = implementations.createCookieSessionStorage; | ||
}); | ||
Object.defineProperty(exports, 'broadcastDevReady', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.broadcastDevReady; } | ||
}); | ||
Object.defineProperty(exports, 'createRequestHandler', { | ||
@@ -41,2 +45,6 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, 'defer', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.defer; } | ||
}); | ||
Object.defineProperty(exports, 'isCookie', { | ||
@@ -54,2 +62,6 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, 'logDevReady', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.logDevReady; } | ||
}); | ||
Object.defineProperty(exports, 'redirect', { | ||
@@ -59,2 +71,10 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, 'redirectDocument', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.redirectDocument; } | ||
}); | ||
Object.defineProperty(exports, 'replace', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.replace; } | ||
}); | ||
Object.defineProperty(exports, 'unstable_composeUploadHandlers', { | ||
@@ -68,2 +88,6 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, 'unstable_data', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.unstable_data; } | ||
}); | ||
Object.defineProperty(exports, 'unstable_parseMultipartFormData', { | ||
@@ -70,0 +94,0 @@ enumerable: true, |
@@ -1,7 +0,22 @@ | ||
Copyright 2021 Remix Software Inc. | ||
MIT License | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
Copyright (c) Remix Software Inc. 2020-2021 | ||
Copyright (c) Shopify Inc. 2022-2024 | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
{ | ||
"name": "@remix-run/cloudflare", | ||
"version": "0.0.0-nightly-929d847-20221114", | ||
"version": "0.0.0-nightly-93d1c9dec-20240829", | ||
"description": "Cloudflare platform abstractions for Remix", | ||
@@ -18,12 +18,19 @@ "bugs": { | ||
"@cloudflare/kv-asset-handler": "^0.1.3", | ||
"@remix-run/server-runtime": "0.0.0-nightly-929d847-20221114" | ||
"@remix-run/server-runtime": "0.0.0-nightly-93d1c9dec-20240829" | ||
}, | ||
"devDependencies": { | ||
"@cloudflare/workers-types": "^3.4.0" | ||
"@cloudflare/workers-types": "^4.20230518.0", | ||
"typescript": "^5.1.0" | ||
}, | ||
"peerDependencies": { | ||
"@cloudflare/workers-types": "^2.0.0 || ^3.0.0" | ||
"@cloudflare/workers-types": "^4.0.0", | ||
"typescript": "^5.1.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"typescript": { | ||
"optional": true | ||
} | ||
}, | ||
"engines": { | ||
"node": ">=14" | ||
"node": ">=18.0.0" | ||
}, | ||
@@ -35,3 +42,6 @@ "files": [ | ||
"README.md" | ||
] | ||
} | ||
], | ||
"scripts": { | ||
"tsc": "tsc" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
12971
4
2
11
264
1
+ Added@cloudflare/workers-types@4.20241205.0(transitive)
+ Added@remix-run/router@0.0.0-experimental-7d87ffb8c(transitive)
+ Added@remix-run/server-runtime@0.0.0-nightly-93d1c9dec-20240829(transitive)
+ Added@types/cookie@0.6.0(transitive)
+ Addedcookie@0.6.0(transitive)
+ Addedturbo-stream@2.4.0(transitive)
+ Addedtypescript@5.7.2(transitive)
- Removed@babel/runtime@7.26.0(transitive)
- Removed@cloudflare/workers-types@3.19.0(transitive)
- Removed@remix-run/server-runtime@0.0.0-nightly-929d847-20221114(transitive)
- Removed@types/cookie@0.4.1(transitive)
- Removedcookie@0.4.2(transitive)
- Removedhistory@5.3.0(transitive)
- Removedreact@19.0.0(transitive)
- Removedreact-dom@19.0.0(transitive)
- Removedreact-router@6.3.0(transitive)
- Removedreact-router-dom@6.3.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedscheduler@0.25.0(transitive)
Updated@remix-run/server-runtime@0.0.0-nightly-93d1c9dec-20240829