Luca Casonato and Lino Le Van
0cc3cc7762
docs: add "Deployment" concepts page ( #680 )
...
Add docs for deploying using Docker (in addition to Deno Deploy).
Co-authored-by: Lino Le Van <11367844+lino-levan@users.noreply.github.com >
2022-08-31 13:24:36 +02:00
Luca Casonato
6ec04ea0f2
build: remove canary special case in CI ( #654 )
2022-08-31 12:35:29 +02:00
Luca Casonato
6077bb65b7
chore: correct code comment ( #679 )
2022-08-31 12:25:21 +02:00
Luca Casonato
b12867a582
feat: support JSX automatic mode ( #610 )
...
This commit adds support for JSX automatic mode instead of the default
mode that requires the presence of the JSX pragma in each file.
This commit also adds the config file to the `fresh.gen.ts` manifest,
which is used to determine if the client emit should use automatic mode.
The minimum Deno version has also been bumped to 1.25.0.
2022-08-26 11:03:00 +02:00
Luca Casonato
bbe4277acb
chore: update puppeteer ( #659 )
2022-08-25 15:26:44 +02:00
Luca Casonato
3d682d98cb
chore: update preact & preact-render-to-string ( #651 )
...
preact@10.10 .6 & preact-render-to-string@5.2.2
2022-08-23 22:09:06 +00:00
Luca Casonato
3cc6d6da72
docs: add frontmatter to concepts/static-files.md ( #650 )
2022-08-23 22:05:52 +00:00
Luca Casonato
027f3f8bba
chore: fix ci ( #645 )
2022-08-23 11:25:03 +00:00
Luca Casonato
7b0c190454
docs: export route config in routing chapter ( #604 )
2022-08-09 19:48:23 +00:00
Luca Casonato
660e0f5fef
feat: twind plugin ( #513 )
...
This adds a first-party twind plugin to use twind for styling.
2022-08-09 21:41:11 +02:00
Luca Casonato
fd4e2bbe17
feat: add initial plugin support ( #512 )
...
This commit adds initial support for fresh "plugins". These are bundles
of functionality that can be added to a fresh plugin through a simple
addition in the `main.ts` file.
Right now plugins are only able to hook into the render steps. This
means that they can inject styling and scripts. They can not yet hook
into routing.
Things that I think should be possible now:
- styling integrations for twind, unocss, and probably a few other tools
Things that are not possible yet:
- google analytics middleware
- database connectors
- CMS connectors
The routing additions to plugins can be added in a follow-up though.
2022-08-09 21:27:58 +02:00
Luca Casonato
e1226c54e7
1.0.2
2022-07-31 21:16:42 +00:00
Luca Casonato
ba20756c17
chore: update deps ( #561 )
...
Update std, esbuild, and preact.
2022-07-30 17:29:29 +02:00
Luca Casonato
b39608890e
chore: run deno fmt with new deno version ( #562 )
2022-07-30 14:59:35 +00:00
Luca Casonato
07c0bfa68b
chore: format with stable, not canary ( #510 )
2022-07-15 14:28:08 +00:00
Luca Casonato
03aa58df87
fix: prevent folks messing with the fresh manifest ( #435 )
...
I am looking at you James.
2022-07-05 19:35:03 +00:00
Luca Casonato
ae9b8aa6b3
1.0.1
2022-07-04 17:28:22 +02:00
Luca Casonato
87da68b8a7
chore: update preact + twind ( #410 )
2022-07-04 15:25:32 +00:00
Luca Casonato
e0e669ef3d
tests: fix hanging tests locally ( #408 )
...
Also add a test for --vscode for the init script.
2022-07-04 15:16:49 +00:00
Luca Casonato
aab8ceb78b
fix: layered middleware not working for index page ( #407 )
...
This commit fixes layered middleware not being invoked for the the index
page of the layer.
For example: routes/api/_middleware.ts was not being invoked for /api,
only /api/foobar
2022-07-04 15:13:49 +00:00
Luca Casonato
9871980613
docs: remove handler functions link ( #400 )
2022-07-04 10:52:42 +00:00
Luca Casonato
989e1775a0
docs: fix formatting
2022-06-28 16:15:24 +02:00
Luca Casonato
b69ba3b718
docs: remove styling page
2022-06-28 16:14:10 +02:00
Luca Casonato
8488bf6373
docs: remove route handlers page
2022-06-28 16:06:15 +02:00
Luca Casonato
ba94e8aaec
1.0.0
2022-06-28 15:52:37 +02:00
Luca Casonato
4d5f7a38c0
docs: finish up concepts docs ( #292 )
2022-06-28 15:47:56 +02:00
Luca Casonato
27b67b47e1
docs: remove pre-1.0 warning ( #293 )
2022-06-28 15:38:30 +02:00
Luca Casonato
216f1dc1fb
1.0.0-rc.6
2022-06-27 14:36:12 +02:00
Luca Casonato
34fc5514f9
chore: update twind import map defaults in init.ts ( #291 )
2022-06-27 14:35:34 +02:00
Luca Casonato
a2c97fdeac
1.0.0-rc.5
2022-06-26 13:39:56 +02:00
Luca Casonato
fcd27f5b37
1.0.0-rc.4
2022-06-24 14:50:30 +02:00
Luca Casonato
74387ff92b
fix: don't reload multiple times on restart ( #283 )
2022-06-24 14:50:00 +02:00
Luca Casonato
6cb2ebf7d4
chore: check minimum Deno version for init.ts ( #282 )
2022-06-24 13:55:18 +02:00
Luca Casonato
97238ef5ac
docs: use -r in setup command
2022-06-22 15:23:36 +02:00
Luca Casonato
02988178a1
1.0.0-rc.3
2022-06-22 15:16:26 +02:00
Luca Casonato
1b3d1319bd
chore: update default preact version ( #272 )
2022-06-22 14:40:37 +02:00
Luca Casonato
1339a315e6
fix: types in fresh-init --twind's main.ts ( #269 )
2022-06-22 12:48:27 +02:00
Luca Casonato
b1d4eb3da0
www: redirect init script to deno.land/x/fresh
2022-06-22 12:14:23 +02:00
Luca Casonato
1b9816bda0
1.0.0-rc.2
2022-06-22 12:05:59 +02:00
Luca Casonato
871985a172
www: add redirect for init script ( #266 )
2022-06-21 15:08:41 +00:00
Luca Casonato
1a10cbda3a
www: serve fresh code at /@:version/:path* ( #265 )
2022-06-21 16:52:58 +02:00
Luca Casonato
a645acdd4f
1.0.0-rc.1
2022-06-21 15:29:56 +02:00
Luca Casonato
da340daeb2
BREAKING: move a bunch of types into server/ ( #263 )
...
Moved some server only types like `RouteConfig` into server/. They were
previously in runtime/.
2022-06-21 15:21:07 +02:00
Luca Casonato
3458e35d8e
docs: add more concepts pages ( #262 )
2022-06-21 15:15:40 +02:00
Luca Casonato
ff5684df67
feat: add twind auto-setup to init.ts ( #261 )
...
This adds options to `init.ts` to automatically set up `twind` a new
project.
2022-06-20 17:43:12 +02:00
Luca Casonato
70d1838cad
BREAKING: make render fn an option on start ( #260 )
...
This commit removes the `_render.{tj}s{x}?` file in favor of a `render` option on the `start` call in `main.ts`.
2022-06-20 13:40:23 +02:00
Luca Casonato
de6c3f6ed5
chore: remove --no-check flags ( #259 )
...
Since Deno 1.23.0, `--no-check` has become the default type checking
mode for `deno run`. As such, we don't need to specify this flag
anymore.
2022-06-20 12:45:48 +02:00
Luca Casonato
cbbf616a74
chore: version preact explicitly in import map ( #258 )
...
This allows users to control the `preact` version independently of fresh
itself.
2022-06-20 12:37:24 +02:00
Luca Casonato
84a4305eeb
docs: add link to --watch docs in getting started ( #244 )
2022-06-17 15:49:18 +02:00
Luca Casonato
3be31d5eb0
www: fix minimum Deno version to 1.22.3
2022-06-14 09:57:36 +02:00
Luca Casonato
836cc24bdd
feat: remove fresh cli, do manifest generation in process ( #223 )
...
This commit removes the `fresh` cli, replacing it with a small bootstrap script,
and JIT generation of the manifest that happens in process during development.
2022-06-14 09:39:38 +02:00
Luca Casonato
4bb07f4bce
fix: throw on invalid island components ( #224 )
...
Previously island components that didn't have a default export were
just silently ignored.
2022-06-08 11:51:20 +02:00
Luca Casonato
458fe2ca3c
fix: update browser targets
...
The minimum browser targets are updated to Chrome 99, Firefox 99, and
Safari 15.
2022-06-02 20:24:46 +02:00
Luca Casonato
782f4e5766
www: update eta from May 2022 to "very soon" ( #216 )
2022-05-29 23:45:44 +02:00
Luca Casonato
c299d7b6a4
fix: fresh manifest --watch reliability ( #210 )
...
Cache invalidation in the new `fresh manifest --watch` was not correct, making the command unreliable.
2022-05-23 17:54:53 +00:00
Luca Casonato
80598d07fd
feat: use import maps instead of deps files ( #209 )
...
This commit updates fresh to use import maps instead of deps files in generated projects.
2022-05-23 19:35:15 +02:00
Luca Casonato
fd1346ed6b
fix: ignore .git directory in init empty check ( #208 )
2022-05-23 16:57:09 +02:00
Luca Casonato
dd59a05eca
tests: more robust type checking in CI ( #207 )
2022-05-23 16:05:41 +02:00
Luca Casonato
fd6724c050
chore: rename *_deps.ts -> deps.*.ts ( #206 )
...
As per David's suggestion.
2022-05-23 16:05:33 +02:00
Luca Casonato
f9f0125282
chore: rename PageConfig to RouteConfig ( #202 )
2022-05-23 15:52:29 +02:00
Luca Casonato
0fa001f1b6
fix: directory not empty message
2022-05-23 15:52:05 +02:00
Luca Casonato
b897746b6d
feat: add fresh manifest --watch ( #201 )
2022-05-20 17:37:03 +02:00
Luca Casonato
3ef6504e93
test: make cli test more robust ( #199 )
2022-05-20 16:04:46 +02:00
Luca Casonato
c1a9d53b18
fix: improved etag handling in static files ( #198 )
2022-05-19 19:05:07 +02:00
Luca Casonato
2a2b948a58
docs: add descriptions to all pages ( #195 )
2022-05-17 02:19:32 +02:00
Luca Casonato
637a0463b6
fix: update esbuild-wasm version
2022-05-17 01:48:05 +02:00
Luca Casonato
20ce3c6c2b
chore: update esbuild to v0.14.39 ( #194 )
2022-05-17 01:20:07 +02:00
Luca Casonato
cf438a7879
refactor: asset caching via query param ( #192 )
...
This updates the asset caching to use a cache busting query string,
rather than a totally separate path. This makes it safer to apply
caching automatically to things like `<img>` tags, as the path does not
change anymore.
2022-05-16 17:39:22 +00:00
Luca Casonato
c28d2ff863
ci: speed up by caching chromium ( #193 )
2022-05-16 17:33:16 +00:00
Luca Casonato
59e6398d77
www: more vibrant green + wordmark on docs page ( #176 )
2022-04-24 21:26:35 +00:00
Luca Casonato
ffbe97caca
www: add open graph tags ( #175 )
2022-04-24 22:33:55 +02:00
Luca Casonato
b563646c8f
www: use green as accent color on docs page ( #163 )
2022-04-24 22:33:26 +02:00
Luca Casonato
df8babbf87
www: fix logo height on docs page
2022-04-24 18:12:49 +02:00
Luca Casonato
ed5f7c70ec
chore: add logo to readme ( #171 )
2022-04-24 11:45:21 +00:00
Luca Casonato
36625e3000
www: compress svg fresh logo
2022-04-24 13:41:49 +02:00
Luca Casonato
0e6a24202d
www: use next gen image formats for illustration ( #170 )
2022-04-24 13:40:15 +02:00
Luca Casonato
77bfd4b244
Add code of conduct ( #169 )
2022-04-24 13:12:38 +02:00
Luca Casonato
43524dbcea
www: cache static assets properly ( #166 )
2022-04-24 10:55:27 +02:00
Luca Casonato
98a3658452
chore: update router to 0.0.11 ( #149 )
2022-04-23 23:27:48 +02:00
Luca Casonato
12a9839cf2
docs: add a link explaining pascal case
2022-04-23 20:53:07 +02:00
Luca Casonato
2449ac4024
www: update button color in counter example
2022-04-23 20:44:41 +02:00
Luca Casonato
7d1aec4bce
www: more padding on slogan
2022-04-23 20:40:10 +02:00
Luca Casonato
b4422333d3
www: set intrinsic size for illustration image ( #160 )
2022-04-23 20:15:17 +02:00
Luca Casonato
7f5e2496c9
docs: update March -> May ( #152 )
2022-04-23 15:10:14 +02:00
Luca Casonato
64e6a7b43d
docs: update deno install command to use -r ( #138 )
2022-03-18 10:43:06 +01:00
Luca Casonato
f1e6d6b567
feat: shebang in main.ts generated by fresh init ( #137 )
2022-03-18 10:42:56 +01:00
Luca Casonato
e57e9c48f1
chore: improve manifest generator ( #125 )
...
Make the manifest generator output nicer:
- routes are sorted
- manifest is sent through `deno fmt`
2022-03-08 00:24:10 +01:00
Luca Casonato
73fd41be31
feat: add docs section to website ( #108 )
2022-03-07 21:08:55 +01:00
Luca Casonato
4556d2116d
tests: type check www/ and examples/counter/ in CI ( #116 )
2022-03-06 17:17:53 +01:00
Luca Casonato
72115506b1
refactor: remove marker comments on hydration ( #110 )
2022-03-06 03:44:47 +01:00
Luca Casonato
bb7180328e
tests: run lighthouse against preview deployments in CI ( #107 )
2022-03-05 15:18:17 +01:00
Luca Casonato
09f35796b5
chore: fix fresh init ( #105 )
...
This commit fixes an import in one of the files generated by
`fresh init`.
2022-03-05 14:41:23 +01:00
Luca Casonato
fc25d2dfbf
refactor: don't inline script if there are no islands ( #101 )
2022-03-05 01:44:35 +01:00
Luca Casonato
546223767b
chore: update esbuild ( #99 )
2022-03-05 01:22:18 +01:00
Luca Casonato
4970663721
refactor: improved reviving of islands ( #100 )
2022-03-05 01:20:54 +01:00
Luca Casonato
8daa280862
feat: a new "island" based architechture ( #97 )
2022-03-04 19:49:27 +01:00
Luca Casonato
6abf62c832
feat: stream static files ( #79 )
...
This commit adds support for streaming static files. Instead of them
being fully buffered in memory, they are now streamed directly to the
client.
2022-01-04 17:43:08 +01:00
Luca Casonato
aa1e1bcdb4
feat: add support for middleware ( #74 )
2021-11-01 13:35:41 +01:00
Luca Casonato
6ecd7a680b
fix: clear csp during suspense ( #73 )
2021-11-01 13:06:26 +01:00
Luca Casonato
44a0d490fe
feat: add support for CSP ( #72 )
...
This commit adds support for running with CSP. CSP can be enabled
on a per page basis. If this is done, fresh will set a default CSP that
is very restrictive. Users can modify the CSP with the `useCSP` hook.
Fresh will add its own script resources to the CSP automatically.
2021-11-01 12:58:13 +01:00