Skip to content

Commit 4d888e6

Browse files
authored
Merge branch 'main' into fix-3483
2 parents 8743af2 + ab14d10 commit 4d888e6

File tree

20 files changed

+79
-71
lines changed

20 files changed

+79
-71
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.

docs/latest/examples/daisyui.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ To get started with daisyUI, make sure you have Tailwind CSS enabled in your
1414
Fresh project, then install daisyUI and update your configuration.
1515

1616
1. Run `deno i -D npm:daisyui@latest` to install daisyUI
17-
2. Add daisyUI configuration in `./static/styles.css`:
17+
2. Add daisyUI configuration in `./assets/styles.css`:
1818

19-
```diff static/styles.css
19+
```diff assets/styles.css
2020
@import "tailwindcss";
2121
+ @plugin "daisyui";
2222
```

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"imports": {
2424
"@babel/core": "npm:@babel/core@^7.28.0",
2525
"@babel/preset-react": "npm:@babel/preset-react@^7.27.1",
26-
"@deno/loader": "jsr:@deno/loader@^0.3.2",
26+
"@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);

0 commit comments

Comments
 (0)