Reed von Redwitz and Asher 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
kit
0bc769053e
fix(www): incorrect path on examples docs page ( #1299 )
2023-06-15 21:16:13 +02:00
Marvin Hagemeister
710cf56d56
chore: update versions.json for 1.2.0 ( #1297 )
2023-06-15 19:32:06 +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 Redwitz and Asher 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
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
Octo8080X and Asher 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
69f4fecf5a
feat(server): make startup message easier to see ( #1273 )
2023-06-12 10:42:17 +02: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
5724b73e71
fix(ssr): invalid HTML comment tags ( #1260 )
2023-06-09 11:21:36 +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
Savin Angel-Mario and Asher 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
duffn and Asher 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
moonstripe and Asher Gomez
76ff7114cb
docs: fix example folder names to be deno-fresh-demo ( #582 )
...
Figured it'd make sense to be consistent.
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-06-05 14:43:37 +10:00
Luca Casonato
96be590a90
docs: improve examples and fix app wrapper ( #1244 )
2023-06-03 22:20:18 +02:00
Asher Gomez and Luca Casonato
1b6678951a
feat: support embedded import map in deno.json ( #1188 )
...
One can now inline the `imports` and `scopes` from the import map directly into deno.json.
For new projects, `import_map.json` is not generated anymore.
Co-authored-by: Luca Casonato <hello@lcas.dev >
2023-06-03 10:46:40 +02:00
DanielXing1103 and Asher Gomez
009b31f922
docs: add "Modifying the Head Element" example ( #1226 )
...
resolves #1215 by adding example on modifying ``` <Head />``` on
index.md
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-06-03 09:56:00 +10:00
Asher Gomez
02dec2f483
chore: upgrade preact-render-to-string to 6.0.3 ( #1236 )
2023-06-02 16:24:14 +02:00
Asher Gomez
8fa4141e06
refactor: replace useState() with useSignal() ( #1234 )
2023-06-02 06:43:01 +10:00
Luca Casonato
38e67b0a97
feat: support passing Uint8Array as island props ( #1225 )
...
This commit adds support for passing Uint8Array's to islands in
component props.
2023-05-31 08:34:57 +00:00
Luca Casonato
e3f9a0df08
feat: support passing signals as island props ( #757 )
...
This commit adds support for passing signals to islands in component
props. This is useful for passing around mutable state between islands.
The signal's value needs to be serializable for this to work.
2023-05-31 10:29:46 +02:00
Luca Casonato
a6852fa58f
feat: more advanced prop serializer for islands ( #1224 )
...
This commit adds support for an advanced (de)serializer that is used
for page state (island props and plugin state). This new serializer
supports maintaining references (thus supporting circular objects,
and multi-referenced objects).
This is a pre-requisite for allowing to pass signals, JSX, Uint8Arrays,
Date, and many other "advanced" values.
2023-05-31 10:12:07 +02:00
Asher Gomez and hashrock
c172a70181
docs: add new "Examples" section ( #1221 )
...
It's currently empty, but this sets up future Fresh examples.
Closes #1204
Moves towards #1211
---------
Co-authored-by: hashrock <hashrock@users.noreply.github.com >
2023-05-31 09:19:06 +10:00
lionel-rowe and Asher Gomez
3932186993
docs: clarify what props can be passed to islands ( #1131 )
...
I was caught out by trying to pass `Infinity` as a prop to an island,
which is a valid IEEE 754 float, but bizarrely JSON serializes to
`null`.
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-05-25 19:03:01 +10:00
Taylor Young
80b6289d41
docs: Add fresh_marionette to the Integrations section of the docs ( #1055 )
...
I made a fresh module to help people get started with browser testing.
2023-05-17 13:34:51 +10:00
Mike-Neto and Asher Gomez
5e4bd1c9b1
Update dynamic-routes docs test url ( #1127 )
...
the local server uses http, this link as it stands does't work
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-05-17 10:03:32 +10:00
Cem and Asher Gomez
114c4dbfab
dotenv option ( #740 )
...
added dotenv option to read environment variables files
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-05-17 09:48:39 +10:00
Sebastian Zelonka
8ff2831680
Update dynamic-routes.md ( #593 )
...
Update docs to match current file structure.
I'm using `fresh@1.0.2` and the boilerplate created have the dynamic
route directly into the root of `routes` folder.
2023-05-16 23:17:09 +10:00
George Spanos and Lino Le Van
65414ad59c
docs: Bump up deno Dockerfile version ( #1152 )
...
Co-authored-by: Lino Le Van <11367844+lino-levan@users.noreply.github.com >
2023-05-12 03:41:39 +09:00
ff9bb0f132
re-org Form docs ( #1104 )
...
- added `/concepts/forms`
- added 303 redirect in `POST` form submit code example
previous PR: https://github.com/denoland/fresh/pull/1040
---------
Co-authored-by: Matthew Morek <matthew.morek@gmail.com >
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com >
Co-authored-by: Séverin Dupouy <32488190+severindupouy@users.noreply.github.com >
Co-authored-by: hashrock <hashrock@users.noreply.github.com >
2023-04-11 09:56:55 -07:00
Yoshiya Hinosawa
3f50f881bb
1.1.5 ( #1095 )
2023-04-04 15:31:52 +09:00
hashrock
891503e77f
1.1.4 ( #1067 )
2023-03-08 18:46:48 +09:00
harrel56
54259ee9ee
docs: create docs for _app.tsx ( #494 )
2023-03-08 03:24:21 +09:00
Anna Albirena
08d28438e1
Remove duplicate words in deployment.md ( #967 )
2023-02-28 14:12:26 -04:00
Yoshiya Hinosawa
e4396d80a5
1.1.3 ( #1011 )
2023-02-07 16:22:47 +09:00
STARTRACEX and Yoshiya Hinosawa
8802336d09
docs: fix docker command ( #972 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com >
2023-01-07 19:25:24 +09:00
Luca Casonato and hashrock
3355ea9fe5
docs: add page showcasing fresh charts ( #839 )
...
Co-authored-by: hashrock <hashrock@users.noreply.github.com >
2022-11-17 15:13:39 +09:00
Kazuma Ohashi
7e04c69be2
fix: typo ( #397 )
2022-11-09 18:38:58 +09:00
Daniel Flanagan
a1b562c7ad
docs: fix module reference for RouteConfig ( #806 )
2022-10-28 16:09:59 +09:00
Luca Casonato
cdf0c11f65
1.1.2
2022-10-11 09:23:34 +00:00
Luca Casonato
eb712124de
1.1.1
2022-09-12 17:39:12 +02:00
Luca Casonato
b75509526d
docs: add -r to command in concepts>updating ( #763 )
2022-09-12 15:27:47 +02:00
Luca Casonato
7a08b73afe
chore: update preact + preact-render-to-string ( #762 )
...
preact: 10.11.0
preact-render-to-string: 5.2.4
2022-09-12 14:53:32 +02:00
angellk11
e731de54c2
docs: Ffxed grammar/typo in deployment.md ( #758 )
2022-09-12 10:44:57 +02:00
Luca Casonato
a08f12a647
docs: add plugins to TOC ( #723 )
2022-09-08 13:34:05 +00:00
Luca Casonato
4862152936
docs: add stacked middleware docs
2022-09-08 11:53:38 +02:00