Commit Graph
537 Commits
Author SHA1 Message Date
kit 4e2abd67dd feat(init): make project name as default header title (#1275)
default header title should be same as project name
2023-06-18 06:39:37 +02:00
Lino Le Van 4d66f95ef6 feat: serialize bigints for islands (#1317) 2023-06-17 20:31:58 +02:00
Marvin Hagemeister ea6a74237d feat: improve starter template design (#1320) 2023-06-17 20:31:08 +02:00
Lino Le VanandLuca Casonato 83925cc1e3 docs(examples): Using twind v1 + fix md code syntax highlighting (#1271)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2023-06-17 19:16:12 +02:00
Kamil Ogórek 219ab574db fix: Exclude Twitter/Slack bots from root page redirects (#1318) 2023-06-17 19:13:04 +02:00
Kamil Ogórek 2b11803528 docs: Export missing Plugin types to fix broken links (#1319) 2023-06-17 19:05:14 +02:00
Luca Casonato 1d606416a8 www: fix copy button (#1312) 2023-06-16 20:54:35 +02:00
Reed von Redwitz 7deda2a7dd docs: add "Using Fresh canary version" example (#1306) 2023-06-16 17:13:16 +02:00
Kamil Ogórek d5a8692b78 feat: Allow passing props to renderNotFound method (#1310) 2023-06-16 17:12:01 +02:00
Reed von RedwitzandAsher Gomez 12fc103daa docs: add "initializing the server" example (#1292)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-06-16 10:33:54 +02:00
Asher Gomez a4f7172807 docs: fix Signal type typo (#1304) 2023-06-16 10:32:20 +02:00
Luca Casonato 1753ee8620 fix: remove duplicated esbuild imports (#1302)
This somehow snuck in during the src/build/ refactor.
2023-06-16 01:06:49 +02:00
Luca Casonato 94f5d38f3b www: actually link to 1.2 (#1301) 2023-06-15 21:35:48 +02:00
kit 0bc769053e fix(www): incorrect path on examples docs page (#1299) 2023-06-15 21:16:13 +02:00
Marvin Hagemeister ec821c9a86 www: update banner for v1.2 (#1298) 2023-06-15 20:55:56 +02:00
Marvin Hagemeister 710cf56d56 chore: update versions.json for 1.2.0 (#1297) 2023-06-15 19:32:06 +02:00
Reed von Redwitz f5f8928c89 feat(server): trailing slash configuration (#1291) 2023-06-15 19:01:07 +02:00
Marvin Hagemeister 80306563d2 fix: rendering islands inside other islands (#1295) 2023-06-15 17:55:17 +02:00
Naju Mancheril a1d266f0d3 Invoke getTime() on the Date value and not on the date signal (#1284) 2023-06-15 15:01:08 +00:00
Reed von RedwitzandAsher Gomez 673ed2d90f docs: add "Changing the source directory" example (#1286)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-06-15 11:37:41 +02:00
Reed von Redwitz f833c7262d docs: add "Server configuration" concept explanation (#1293) 2023-06-15 11:37:23 +02:00
Marvin Hagemeister ce0eda7654 feat: allow passing JSX children to island + nested islands (#1285) 2023-06-15 10:08:48 +02:00
Marvin Hagemeister 372d0dfffb feat(init): add update task (#1290) 2023-06-14 15:48:52 +02:00
Luca Casonato 1faa80db59 fix: update script to work with non-embedded import maps (#1283)
The script now updates non-embedded import maps to embedded ones.
2023-06-14 14:57:49 +02:00
Asher Gomez adc16c5c29 docs: fix "Writing Tests" example title typo (#1288)
To align the casing with the rest of the documentation titles.
2023-06-14 14:57:37 +02:00
Asher Gomez 5ef6fa34d9 fix: use await Deno.serve().finished (#1287)
[A recent change in the
runtime](https://github.com/denoland/deno/pull/19485) has changed the
behaviour of `Deno.serve()` such that it throws when called a promise.
The correct way to do it is instead to call `Deno.serve().finished` as a
promise. This PR does that.

Fixes
https://github.com/denoland/fresh/pull/1286#issuecomment-1589987387
2023-06-14 08:23:51 +10:00
47c7f4ec9a feat: add "openai semantic search showcase. (#1259)
cc @lambtron @iuioiua

Co-authored-by: Andy Jiang <andyjiang@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: hashrock <hashrock@users.noreply.github.com>
2023-06-13 18:35:55 +10:00
Asher Gomez e3defa8e74 chore: remove www workflow (#1282)
This change removes the `www` workflow, simplifying CI to one workflow.
This is made more accessible, thanks to #1281. This also fixes PR
merging nits for when the affected files lie only within the `/www`
folder. E.g.
https://github.com/denoland/fresh/pull/1259#issuecomment-1586050738

The same checks in the `www` workflow are performed in the `ci`
workflow.
2023-06-13 18:30:20 +10:00
Octo8080XandAsher Gomez ac32c2deb6 docs: add "Writing Tests" example (#1223)
Fixes [#1222](https://github.com/denoland/fresh/issues/1222)


Add example implementation and documentation of test code using
`createHandler()` newly added by
[#622](https://github.com/denoland/fresh/pull/622)

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-06-13 07:37:12 +10:00
Marvin Hagemeister 9abd1c2396 chore(ci): run tests in parallel (#1281) 2023-06-12 15:53:13 +02:00
Marvin Hagemeister 45da639aa3 www: add discord icon + blog link (#1276) 2023-06-12 13:26:59 +02:00
Marvin Hagemeister 36d56a9878 feat(server): pick free port if none specified (#1274) 2023-06-12 13:18:52 +02:00
Marvin Hagemeister 69f4fecf5a feat(server): make startup message easier to see (#1273) 2023-06-12 10:42:17 +02:00
Marvin Hagemeister d511283162 fix(www): show missing GA env warning once (#1272) 2023-06-12 09:44:31 +02:00
Tyler Mueller d3a2edc984 fix(init): Typo "Projet" -> "Project" (#1269) 2023-06-11 16:20:57 +00:00
Reed von Redwitz 931031f9ce docs: add "setting the language" example (#1265) 2023-06-11 02:38:25 +09:00
Marvin Hagemeister 503bdc384f feat(init): make directory argument optional (#1263) 2023-06-10 15:48:02 +02:00
Marvin Hagemeister 12bb00eae1 fix(search): work around inline click handler (#1267)
Preact, like most other popular frameworks disallows passing stringified
JavaScript code as event handlers. We have one occurrence of that in our
doc search. The recent addition of including `preact/debug` during
server rendering in #1256 surfaced this problem.

This PR works around that by injecting a tiny script tag that attaches
the event handler. Basically only a slightly different approach than
before.
2023-06-09 18:57:31 +02:00
Marvin Hagemeister 48de711df4 chore(tests): don't cancel child process stream (#1262) 2023-06-09 13:44:11 +02:00
Marvin Hagemeister 894f56b9c9 chore(tests): use to spin up server (#1261) 2023-06-09 11:27:56 +02:00
Marvin Hagemeister 5724b73e71 fix(ssr): invalid HTML comment tags (#1260) 2023-06-09 11:21:36 +02:00
Gabe 347e353357 chore: correct misspelled variable (#1258)
Renames `entires` to `entries`.
2023-06-09 15:26:36 +10:00
Marvin HagemeisterandAsher Gomez be08573a95 feat(debug): show rendering issues during SSR (#1256)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-06-08 08:53:14 +02:00
Igor Brasileiro 273aa2ac5c feat: break island render task into to multiple tasks (#1019)
Each island is now rendered in a separate task. This significantly reduces blocking time.
2023-06-07 12:32:16 +02:00
Luca Casonato bb48f7b8eb feat: limited npm: specifier support (#1245)
This commit adds limited support for `npm:` specifiers. Right now,
`npm:` specifiers are unsupported on Deno Deploy.

Towards #978
2023-06-06 17:41:29 +02:00
Tom dd4e584a3e feat: async plugin rendering (#745)
An async render hook is added to plugins that enables injecting stylesheets and scripts based on the rendered HTML text.
2023-06-06 12:36:04 +02:00
Marvin Hagemeister cd760b90d4 chore(test): extract shared start server code (#1250)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-06-05 18:52:22 +02:00
Luca Casonato da5d507b77 fix: remove top level <script> imports (#1246)
Instead, rely only on modulepreload for script preloading.
2023-06-05 18:21:08 +02:00
Savin Angel-MarioandAsher Gomez 6e1874ccca feat: use PORT environment variable to change port (#468)
This can be useful when deploying to other providers.

Also more convenient for projects with multiple developers with port
preferences

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-06-05 09:08:46 +02:00
duffnandAsher Gomez 65e6385bc4 docs: add _ prefix to unused requests params (#1007)
- add types to handlers in the Getting Started section to align with the
examples in the Concepts section
- prefix unused arguments with `_` as suggested by official VSCode
plugin linting.

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-06-05 15:01:53 +10:00