Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 80,
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"sortPackageJson": false
}
2 changes: 1 addition & 1 deletion e2e/react-router/view-transitions/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const router = createRouter({
defaultPreload: 'intent',
defaultStaleTime: 5000,
scrollRestoration: true,
/*
/*
Using defaultViewTransition would prevent the need to
manually add `viewTransition: true` to every navigation.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "sqlite"
provider = "sqlite"
16,567 changes: 8,910 additions & 7,657 deletions e2e/react-start/basic-cloudflare/worker-configuration.d.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion e2e/solid-router/view-transitions/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const router = createRouter({
defaultPreload: 'intent',
defaultStaleTime: 5000,
scrollRestoration: true,
/*
/*
Using defaultViewTransition would prevent the need to
manually add `viewTransition: true` to every navigation.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "sqlite"
provider = "sqlite"
32 changes: 18 additions & 14 deletions e2e/solid-start/basic-cloudflare/worker-configuration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@
// Generated by Wrangler by running `wrangler types` (hash: b11df627d8b3c51b1bf3230a546b0f20)
// Runtime types generated with [email protected] 2025-09-24 nodejs_compat
declare namespace Cloudflare {
interface Env {
MY_VAR: "Hello from Cloudflare";
}
interface Env {
MY_VAR: 'Hello from Cloudflare'
}
}
interface Env extends Cloudflare.Env {}
type StringifyValues<EnvType extends Record<string, unknown>> = {
[Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string;
};
[Binding in keyof EnvType]: EnvType[Binding] extends string
? EnvType[Binding]
: string
}
declare namespace NodeJS {
interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "MY_VAR">> {}
interface ProcessEnv extends StringifyValues<
Pick<Cloudflare.Env, 'MY_VAR'>
> {}
}

// Begin runtime types
Expand Down Expand Up @@ -2021,8 +2025,10 @@ declare var Request: {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
*/
interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>>
extends Body {
interface Request<
CfHostMetadata = unknown,
Cf = CfProperties<CfHostMetadata>,
> extends Body {
/**
* The **`clone()`** method of the Request interface creates a copy of the current `Request` object.
*
Expand Down Expand Up @@ -3045,9 +3051,7 @@ interface TextDecoderStreamTextDecoderStreamInit {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
*/
declare class ByteLengthQueuingStrategy
implements QueuingStrategy<ArrayBufferView>
{
declare class ByteLengthQueuingStrategy implements QueuingStrategy<ArrayBufferView> {
constructor(init: QueuingStrategyInit)
/**
* The read-only **`ByteLengthQueuingStrategy.highWaterMark`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.
Expand Down Expand Up @@ -8144,8 +8148,7 @@ interface IncomingRequestCfPropertiesBotManagement {
*/
clientTrustScore: number
}
interface IncomingRequestCfPropertiesBotManagementEnterprise
extends IncomingRequestCfPropertiesBotManagement {
interface IncomingRequestCfPropertiesBotManagementEnterprise extends IncomingRequestCfPropertiesBotManagement {
/**
* Results of Cloudflare's Bot Management analysis
*/
Expand Down Expand Up @@ -9617,7 +9620,8 @@ declare namespace CloudflareWorkersModule {
export abstract class WorkflowEntrypoint<
Env = unknown,
T extends Rpc.Serializable<T> | unknown = unknown,
> implements Rpc.WorkflowEntrypointBranded
>
implements Rpc.WorkflowEntrypointBranded
{
[Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never
protected ctx: ExecutionContext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "sqlite"
provider = "sqlite"
32 changes: 18 additions & 14 deletions e2e/vue-start/basic-cloudflare/worker-configuration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@
// Generated by Wrangler by running `wrangler types` (hash: b11df627d8b3c51b1bf3230a546b0f20)
// Runtime types generated with [email protected] 2025-09-24 nodejs_compat
declare namespace Cloudflare {
interface Env {
MY_VAR: "Hello from Cloudflare";
}
interface Env {
MY_VAR: 'Hello from Cloudflare'
}
}
interface Env extends Cloudflare.Env {}
type StringifyValues<EnvType extends Record<string, unknown>> = {
[Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string;
};
[Binding in keyof EnvType]: EnvType[Binding] extends string
? EnvType[Binding]
: string
}
declare namespace NodeJS {
interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "MY_VAR">> {}
interface ProcessEnv extends StringifyValues<
Pick<Cloudflare.Env, 'MY_VAR'>
> {}
}

// Begin runtime types
Expand Down Expand Up @@ -2021,8 +2025,10 @@ declare var Request: {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
*/
interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>>
extends Body {
interface Request<
CfHostMetadata = unknown,
Cf = CfProperties<CfHostMetadata>,
> extends Body {
/**
* The **`clone()`** method of the Request interface creates a copy of the current `Request` object.
*
Expand Down Expand Up @@ -3045,9 +3051,7 @@ interface TextDecoderStreamTextDecoderStreamInit {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
*/
declare class ByteLengthQueuingStrategy
implements QueuingStrategy<ArrayBufferView>
{
declare class ByteLengthQueuingStrategy implements QueuingStrategy<ArrayBufferView> {
constructor(init: QueuingStrategyInit)
/**
* The read-only **`ByteLengthQueuingStrategy.highWaterMark`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.
Expand Down Expand Up @@ -8144,8 +8148,7 @@ interface IncomingRequestCfPropertiesBotManagement {
*/
clientTrustScore: number
}
interface IncomingRequestCfPropertiesBotManagementEnterprise
extends IncomingRequestCfPropertiesBotManagement {
interface IncomingRequestCfPropertiesBotManagementEnterprise extends IncomingRequestCfPropertiesBotManagement {
/**
* Results of Cloudflare's Bot Management analysis
*/
Expand Down Expand Up @@ -9617,7 +9620,8 @@ declare namespace CloudflareWorkersModule {
export abstract class WorkflowEntrypoint<
Env = unknown,
T extends Rpc.Serializable<T> | unknown = unknown,
> implements Rpc.WorkflowEntrypointBranded
>
implements Rpc.WorkflowEntrypointBranded
{
[Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never
protected ctx: ExecutionContext
Expand Down
12 changes: 5 additions & 7 deletions examples/react/kitchen-sink-file-based/src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,11 @@ function RootComponent() {
<div key={to}>
<Link
to={to}
activeOptions={
{
// If the route points to the root of it's parent,
// make sure it's only active if it's exact
// exact: to === '.',
}
}
activeOptions={{
// If the route points to the root of it's parent,
// make sure it's only active if it's exact
// exact: to === '.',
}}
preload="intent"
className={`block py-2 px-3 text-blue-700`}
// Make "active" links bold
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,11 @@ function RootComponent() {
<div key={to}>
<Link
to={to}
activeOptions={
{
// If the route points to the root of it's parent,
// make sure it's only active if it's exact
// exact: to === '.',
}
}
activeOptions={{
// If the route points to the root of it's parent,
// make sure it's only active if it's exact
// exact: to === '.',
}}
preload="intent"
className={`block py-2 px-3 text-blue-700`}
// Make "active" links bold
Expand Down
12 changes: 5 additions & 7 deletions examples/react/kitchen-sink-react-query/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,11 @@ function RootComponent() {
<div key={to}>
<Link
to={to}
activeOptions={
{
// If the route points to the root of it's parent,
// make sure it's only active if it's exact
// exact: to === '.',
}
}
activeOptions={{
// If the route points to the root of it's parent,
// make sure it's only active if it's exact
// exact: to === '.',
}}
preload="intent"
className={`block py-2 px-3 text-blue-700`}
// Make "active" links bold
Expand Down
12 changes: 5 additions & 7 deletions examples/react/kitchen-sink/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,11 @@ function RootComponent() {
<div key={to}>
<Link
to={to}
activeOptions={
{
// If the route points to the root of it's parent,
// make sure it's only active if it's exact
// exact: to === '.',
}
}
activeOptions={{
// If the route points to the root of it's parent,
// make sure it's only active if it's exact
// exact: to === '.',
}}
preload="intent"
className={`block py-2 px-3 text-blue-700`}
// Make "active" links bold
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "sqlite"
provider = "sqlite"
Loading
Loading