Skip to content

Commit ef5ff80

Browse files
authored
Merge branch 'main' into feature/add_ip_restriction_middleware
2 parents 34407e8 + ab14d10 commit ef5ff80

File tree

18 files changed

+75
-67
lines changed

18 files changed

+75
-67
lines changed

deno.lock

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/fresh/src/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class Context<State> {
8383
data: unknown = undefined;
8484
/** Error value if an error was caught (Default: null) */
8585
error: unknown | null = null;
86-
readonly info: Deno.ServeHandlerInfo | Deno.ServeHandlerInfo;
86+
readonly info: Deno.ServeHandlerInfo;
8787
/**
8888
* Whether the current Request is a partial request.
8989
*

packages/fresh/src/fs_routes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import type { AnyComponent } from "preact";
22
import type { MaybeLazy, Route, RouteConfig } from "./types.ts";
33
import type { HandlerByMethod, RouteHandler } from "./handlers.ts";
44
import type { Middleware } from "./middlewares/mod.ts";
5-
import type { AsyncAnyComponent } from "./render.ts";
5+
import type { AsyncAnyComponent, PageProps } from "./render.ts";
66
import { type HandlerFn, isHandlerByMethod } from "./handlers.ts";
7-
import type { PageProps } from "./render.ts";
87
import {
98
type Command,
109
CommandType,

packages/fresh/src/jsonify/stringify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import {
2+
HOLE,
23
INFINITY_NEG,
34
INFINITY_POS,
45
NAN,
56
NULL,
67
UNDEFINED,
78
ZERO_NEG,
89
} from "./constants.ts";
9-
import { HOLE } from "./constants.ts";
1010

1111
export type Stringifiers = Record<
1212
string,

packages/fresh/src/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface RouteResult<T> {
4242

4343
export interface Router<T> {
4444
add(
45-
method: Method | "OPTIONS" | "ALL",
45+
method: Method | "ALL",
4646
pathname: string,
4747
handlers: T[],
4848
): void;

packages/plugin-vite/demo/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ export default defineConfig({
1111
}),
1212
tailwind(),
1313
],
14+
future: "warn",
1415
});

packages/plugin-vite/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@babel/preset-react": "npm:@babel/preset-react@^7.27.1",
2626
"@deno/loader": "jsr:@deno/loader@^0.3.10",
2727
"@marvinh-test/import-json": "jsr:@marvinh-test/import-json@^0.0.1",
28-
"@mjackson/node-fetch-server": "npm:@mjackson/node-fetch-server@^0.7.0",
28+
"@remix-run/node-fetch-server": "npm:@remix-run/node-fetch-server@^0.12.0",
2929
"@prefresh/vite": "npm:@prefresh/vite@^2.4.8",
3030
"@radix-ui/themes": "npm:@radix-ui/themes@^3.2.1",
3131
"@tailwindcss/vite": "npm:@tailwindcss/vite@^4.1.12",

packages/plugin-vite/src/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,6 @@ async function loadEnvFile(envPath: string) {
256256
try {
257257
await stdLoadEnv({ envPath, export: true });
258258
} catch {
259-
// Ignoe
259+
// Ignore
260260
}
261261
}

packages/plugin-vite/src/plugins/client_entry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function clientEntryPlugin(options: ResolvedFreshViteConfig): Plugin {
1515
isDev = env.command === "serve";
1616
},
1717
applyToEnvironment(env) {
18-
return env.name === "client";
18+
return env.config.consumer === "client";
1919
},
2020
configResolved(config) {
2121
clientEntry = pathWithRoot(options.clientEntry, config.root);

packages/plugin-vite/src/plugins/client_snapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function clientSnapshot(options: ResolvedFreshViteConfig): Plugin[] {
1717
name: "fresh:client-snapshot",
1818
sharedDuringBuild: true,
1919
applyToEnvironment(env) {
20-
return env.name === "client";
20+
return env.config.consumer === "client";
2121
},
2222

2323
async config(cfg, env) {

0 commit comments

Comments
 (0)