Skip to content

Commit bd60323

Browse files
authored
Merge pull request #652 from 2chanhaeng/main
Add SolidStart integration and refactor `fedify init` internals
2 parents ece5910 + 1b475b7 commit bd60323

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+7102
-1086
lines changed

.hongdown.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ proper_nouns = [
3030
"@fedify/nestjs",
3131
"@fedify/postgres",
3232
"@fedify/redis",
33+
"@fedify/solidstart",
3334
"@fedify/sqlite",
3435
"@fedify/sveltekit",
3536
"@fedify/webfinger",
@@ -74,6 +75,7 @@ proper_nouns = [
7475
"RabbitMQ",
7576
"Redis",
7677
"Scoop",
78+
"SolidStart",
7779
"SvelteKit",
7880
"Typo Blue",
7981
"URI Template",

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ To be released.
2020
- Added `DocumentLoaderFactoryOptions.maxRedirection` to configure the
2121
maximum number of redirects followed by `getDocumentLoader()`.
2222

23+
### @fedify/solidstart
24+
25+
- Added `@fedify/solidstart` package for integrating Fedify with
26+
[SolidStart]. It provides `fedifyMiddleware()` for request handling
27+
with SolidStart's middleware system.
28+
[[#476], [#601] by Hyeonseo Kim and [#652] by ChanHaeng Lee]
29+
30+
[SolidStart]: https://start.solidjs.com/
31+
[#476]: https://github.com/fedify-dev/fedify/issues/476
32+
[#601]: https://github.com/fedify-dev/fedify/pull/601
33+
[#652]: https://github.com/fedify-dev/fedify/pull/652
34+
2335

2436
Version 2.1.3
2537
-------------

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,32 @@ name (e.g., `import { Hono } from "hono"`).
263263
Forgetting to add a dependency to *package.json* will cause Node.js and Bun
264264
tests to fail with `ERR_MODULE_NOT_FOUND`, even if Deno tests pass.
265265

266+
#### Updating `fedify init` template dependencies
267+
268+
The `fedify init` command generates projects with third-party dependencies
269+
whose versions are defined in *packages/init/src/json/*. Most web-framework
270+
and common tool versions live in *deps.json*, while KV store and message queue
271+
versions are in *kv.json* and *mq.json* respectively.
272+
273+
To update all of these to the latest releases automatically, run:
274+
275+
~~~~ bash
276+
mise run update-init-deps
277+
~~~~
278+
279+
The script queries the npm and JSR registries for the latest version of each
280+
package, respecting the current major version (caret range). After running
281+
it, verify the init package still works:
282+
283+
~~~~ bash
284+
mise run test:init
285+
~~~~
286+
287+
When adding a new third-party dependency to a web-framework template, add it to
288+
*deps.json* and reference it from the TypeScript file via the `deps` import.
289+
Dependencies that are specific to KV stores or message queues should be added
290+
directly to *kv.json* or *mq.json* instead.
291+
266292
### Commit messages
267293

268294
- Do not use Conventional Commits (no `fix:`, `feat:`, etc. prefixes).

cspell.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
"runtimes",
9595
"setext",
9696
"shiki",
97+
"solidjs",
98+
"solidstart",
9799
"spki",
98100
"SSRF",
99101
"subproperty",

deno.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"./packages/postgres",
2121
"./packages/redis",
2222
"./packages/relay",
23+
"./packages/solidstart",
2324
"./packages/sqlite",
2425
"./packages/sveltekit",
2526
"./packages/testing",
@@ -59,6 +60,8 @@
5960
"@std/yaml": "jsr:@std/yaml@^1.0.8",
6061
"@types/node": "npm:@types/node@^22.16.0",
6162
"amqplib": "npm:amqplib@^0.10.9",
63+
"@solidjs/start/middleware": "npm:@solidjs/start@^1.3.0/middleware",
64+
"@solidjs/start/server": "npm:@solidjs/start@^1.3.0/server",
6265
"astro": "npm:astro@^5.17.3",
6366
"byte-encodings": "npm:byte-encodings@^1.0.11",
6467
"chalk": "npm:chalk@^5.6.2",

0 commit comments

Comments
 (0)