Bedis Nbiba
1d69f167ee
chore: satisfy use-import-type lint (biomejs) ( #2389 )
...
https://biomejs.dev/linter/rules/use-import-type/
From that page the argument is
>The rule ensures that all imports used only as a type use a type-only
import. It also groups inline type imports into a grouped import type.
2024-03-27 08:00:14 +01:00
Luca Casonato
4ab600e2a2
ci: only run lint and fmt on linux with Deno 1.x ( #2386 )
2024-03-25 16:01:55 +00:00
Octo8080X
5865c8246f
showcase: fix incorrect repository link + screenshot ( #2384 )
...
Hello, Deno team!
The settings were not appropriate and have been corrected.
Best regards.
2024-03-25 15:08:04 +01:00
Stephen Melnicki
2c0a1480d8
showcase: update deno paste ( #2378 )
...
Hello fresh team! 👋 🦕 🍋
I've registered a standalone domain for my showcase application, Deno
Paste, and made a small change to the github repository name.
This pull request updates the `showcase.json` configuration accordingly
and adds some more recent screenshots to boot.
Thanks!
2024-03-25 13:11:53 +01:00
Octo8080X
e60633a062
showcase: add 'Echo-Echo' ( #2383 )
...
Hello, Deno team!
I have created a service using Fresh and would like you to register with
showcase.
[Echo-Echo](https://echo-echo.deno.dev/ )
Best regards.
2024-03-25 13:09:39 +01:00
Marvin Hagemeister
93fb4bd200
chore: release 1.6.8 ( #2382 )
...
🎉
2024-03-22 22:25:00 +01:00
Luca Casonato and Marvin Hagemeister
29d582c987
chore: update ahead-of-time build docs for Deno Deploy ( #2381 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2024-03-22 22:19:17 +01:00
Marvin Hagemeister
13d514dab8
chore: release 1.6.7 ( #2380 )
2024-03-21 22:49:39 +01:00
Adam Gregory
9cf838684e
fix: Add closing quote for nonce in inline partial script ( #2377 )
...
Fixes #2376
2024-03-21 19:32:53 +01:00
Roj
8187189037
showcase: Remove non-Fresh sites + sites returning errors ( #2374 )
...
These items are no longer Fresh.
2024-03-21 11:48:36 +01:00
Marvin Hagemeister
9e5ea1f5e4
chore: release 1.6.6 ( #2373 )
2024-03-21 11:00:19 +01:00
narumincho
407e4379df
doc: Rename _req used to req ( #2349 )
...
Where other documents use req, they use the name req instead of _req
https://github.com/denoland/fresh/blob/b7281792a0a5b2674f659514b1e58116fabd6460/docs/latest/concepts/middleware.md?plain=1#L153
2024-03-21 09:32:59 +00:00
Marvin Hagemeister
240252fdb4
Revert "feat: add ctx.redirect() helper ( #2358 )" ( #2372 )
...
Mostly so that it's easier to cut the next patch release for Fresh.
This reverts commit e3508c3054 .
2024-03-21 10:27:53 +01:00
Luca Casonato
c797716a56
chore: update to esbuild-deno-loader@0.10.2 and esbuild@0.20.2 ( #2366 )
2024-03-21 08:13:01 +00:00
Joe Lutz
0ea8b0dbc6
docs: fix wording related to route groups ( #2368 )
2024-03-18 21:01:58 +00:00
Casey Ydenberg
30a25dd2f3
Docs: Add page about setting raw HTML content ( #2189 ) ( #2295 )
...
Closes #2189
2024-03-18 19:11:34 +01:00
Roj
4f671ec961
docs: remove outdated information ( #2362 )
2024-03-14 15:12:51 +01:00
Marvin Hagemeister
e3508c3054
feat: add ctx.redirect() helper ( #2358 )
...
This PR adds a `ctx.redirect(path, status)` helper that aims to reduce
the verbosity of having to manually create a `Response` obejct for a
mere redirect.
```ts
// Before
new Response(null, {
status: 307,
headers: {
Location: "/foo/bar"
},
})
// After
ctx.redirect("/foo/bar", 307)
```
If the second parameter is not passed, it will default to `302`.
2024-03-12 17:36:34 +01:00
Michael Gearhardt
671751d572
fix: $fresh ref in import sources ( #2340 )
...
There was an issue with the tailwind error page being pulled in by ref
to $fresh, fixed so now it just uses the file
2024-03-12 12:14:23 +01:00
Reed von Redwitz
5ec06350e2
fix: allow multiple set-cookie headers to be set before render ( #2357 )
...
closes #2346
The primary issue was the snippet `headers[key] = value`. This caused
only one `set-cookie` to make it through. Switching to a `Headers`
object allowed me to use `append` when appropriate, allowing for
multiple `set-cookie` entries.
I also cleaned up one of the tests to make use of steps, because I
originally broke it and couldn't immediately tell which part was
failing.
2024-03-12 12:04:42 +01:00
Marvin Hagemeister
b7281792a0
chore: update deno_esbuild_loader to 0.9.0 ( #2337 )
...
Fixes https://github.com/denoland/fresh/issues/2332
2024-02-23 13:31:00 +01:00
Reed von Redwitz
8f3031317b
fix: properly prefix all scripts with base path ( #2334 )
...
closes https://github.com/denoland/fresh/issues/2326
There was a big misunderstanding on my part -- in particular that a
different server might be listening at the root, so the redirect built
into `context.ts` will never happen. The existing test (as mentioned in
the issue) passes, but only because no one else is listening, and fresh
is able to perform the redirect.
I briefly considered writing a docker container to orchestrate this
properly, but then I didn't want to have docker running in order to run
these tests. (My laptop is old and bad.) So instead the two new tests
very thoroughly assert that scripts included in the html are properly
prefixed with the base path. And yes, they fail if the fix is reverted.
As for the fix itself: I just needed to prepend the asset URL with the
base path.
2024-02-23 13:30:42 +01:00
Marvin Hagemeister
a2be1abc6b
chore: update Preact to 10.19.6 ( #2331 )
2024-02-22 10:46:41 +01:00
Marvin Hagemeister
4a175dc680
docs: disable partial nav temporarily ( #2330 )
...
We can re-enable once https://github.com/preactjs/preact/pull/4287 is
fixed.
Fixes https://github.com/denoland/fresh/issues/2322
2024-02-22 08:28:15 +01:00
Marvin Hagemeister
46eaef0181
docs: fix potential null errors ( #2324 )
2024-02-20 01:19:08 +01:00
Marvin Hagemeister
f1c17bc67e
fix: invalid quote around partial script data ( #2323 )
...
This is a little emberassing 👀
2024-02-20 01:07:51 +01:00
William Weiss
0fc83be54b
startServer onListen logs https when key & cert specified ( #2321 )
...
Some team members of mine were confused by the default output
```
🍋 Fresh ready
Local: http://localhost:8000/
```
when the server is actually running HTTPS. This should now print
```
🍋 Fresh ready
Local: https://localhost:8000/
```
when a key and cert are specified.
2024-02-19 15:14:20 +01:00
Reed von Redwitz
82c75f85e9
fix: update dependency recommendations ( #2320 )
...
closes https://github.com/denoland/fresh/issues/2319
The issue is because `imports.ts` wasn't changed before releasing. I
thought I would go through and bump some other versions as well. This
handles everything except the esbuild stuff and `tests/`.
2024-02-19 10:33:04 +01:00
Marvin Hagemeister
bf0e33eda1
fix: update versions ( #2316 )
2024-02-14 22:42:33 +01:00
Marvin Hagemeister
b26a0d6c6e
fix: improve init choice design ( #2314 )
...
Before:
<img width="528" alt="Screenshot 2024-02-14 at 15 33 41"
src="https://github.com/denoland/fresh/assets/1062408/1c7093db-a509-4d42-998c-3b5282cd88d5 ">
After:
<img width="530" alt="Screenshot 2024-02-14 at 15 33 09"
src="https://github.com/denoland/fresh/assets/1062408/99e2bdeb-e0f5-4926-91e1-f972df1149c1 ">
2024-02-14 15:39:47 +01:00
Marvin Hagemeister
aeca15eeb9
fix: open redirect issue with trailing slash detection ( #2313 )
...
Passing a path like `/foo/bar` as the location header is interpreted as
a relative path. But when it contains two leading slashes like
`//evil.com/` it is interpreted as a port relative url. This has the
consequence that the origin of a URL can essentially be replaced:
```ts
new URL("//evil.com", "https://example.com/ ");
// -> 'https://evil.com/ '
```
Our trailing slash detection logic didn't guard against this case. By
normalizing the pathname of the URL and stripping sibling forward
slashes we sidestep this problem.
2024-02-14 15:25:16 +01:00
Roj [roːʒ]
d19c22d592
feat: add back twind in init wizard ( #2290 )
2024-01-30 12:34:38 +01:00
Aarvin R
dfabf5035e
docs: add link to deno ( #2281 )
...
This pull request replaces a code snippet mentioning Deno (`deno`) with
a link to deno.com ([deno](https://deno.com/ )), and will close #2280 .
2024-01-29 13:19:09 +00:00
Benjamin Jesuiter
2652b85532
fix: GH actions warning by upgrading to v4 #2285 ( #2286 )
...
I tested the change in my own repo, the warning on github disapears for
the "actions/checkout" action.
It is still there for the denoland/setup-deno action, but an upgrade PR
is already ongoing for this action, see:
https://github.com/denoland/setup-deno/pull/56
2024-01-29 14:13:32 +01:00
Reed von Redwitz
3f28cc8977
chore: upgrade tailwind to 3.4.1 ( #2287 )
2024-01-29 14:10:28 +01:00
Luca Casonato
34c875c71c
chore: update esbuild_deno_loader to 0.8.5 ( #2273 )
2024-01-23 21:52:30 +01:00
dependabot[bot]
80b4207326
chore(deps): bump actions/cache from 3 to 4 ( #2271 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3 to 4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/cache/releases ">actions/cache's
releases</a>.</em></p>
<blockquote>
<h2>v4.0.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Update action to node20 by <a
href="https://github.com/takost "><code>@takost</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1284 ">actions/cache#1284</a></li>
<li>feat: save-always flag by <a
href="https://github.com/to-s "><code>@to-s</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1242 ">actions/cache#1242</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/takost "><code>@takost</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1284 ">actions/cache#1284</a></li>
<li><a href="https://github.com/to-s "><code>@to-s</code></a> made their
first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1242 ">actions/cache#1242</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/cache/compare/v3...v4.0.0 ">https://github.com/actions/cache/compare/v3...v4.0.0 </a></p>
<h2>v3.3.3</h2>
<h2>What's Changed</h2>
<ul>
<li>Cache v3.3.3 by <a
href="https://github.com/robherley "><code>@robherley</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1302 ">actions/cache#1302</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/robherley "><code>@robherley</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1302 ">actions/cache#1302</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/cache/compare/v3...v3.3.3 ">https://github.com/actions/cache/compare/v3...v3.3.3 </a></p>
<h2>v3.3.2</h2>
<h2>What's Changed</h2>
<ul>
<li>Fixed readme with new segment timeout values by <a
href="https://github.com/kotewar "><code>@kotewar</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1133 ">actions/cache#1133</a></li>
<li>Readme fixes by <a
href="https://github.com/kotewar "><code>@kotewar</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1134 ">actions/cache#1134</a></li>
<li>Updated description of the lookup-only input for main action by <a
href="https://github.com/kotewar "><code>@kotewar</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1130 ">actions/cache#1130</a></li>
<li>Change two new actions mention as quoted text by <a
href="https://github.com/bishal-pdMSFT "><code>@bishal-pdMSFT</code></a>
in <a
href="https://redirect.github.com/actions/cache/pull/1131 ">actions/cache#1131</a></li>
<li>Update Cross-OS Caching tips by <a
href="https://github.com/pdotl "><code>@pdotl</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1122 ">actions/cache#1122</a></li>
<li>Bazel example (Take <a
href="https://redirect.github.com/actions/cache/issues/2 ">#2</a>️⃣) by
<a href="https://github.com/vorburger "><code>@vorburger</code></a> in
<a
href="https://redirect.github.com/actions/cache/pull/1132 ">actions/cache#1132</a></li>
<li>Remove actions to add new PRs and issues to a project board by <a
href="https://github.com/jorendorff "><code>@jorendorff</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1187 ">actions/cache#1187</a></li>
<li>Consume latest toolkit and fix dangling promise bug by <a
href="https://github.com/chkimes "><code>@chkimes</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1217 ">actions/cache#1217</a></li>
<li>Bump action version to 3.3.2 by <a
href="https://github.com/bethanyj28 "><code>@bethanyj28</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1236 ">actions/cache#1236</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/vorburger "><code>@vorburger</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1132 ">actions/cache#1132</a></li>
<li><a
href="https://github.com/jorendorff "><code>@jorendorff</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1187 ">actions/cache#1187</a></li>
<li><a href="https://github.com/chkimes "><code>@chkimes</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1217 ">actions/cache#1217</a></li>
<li><a
href="https://github.com/bethanyj28 "><code>@bethanyj28</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1236 ">actions/cache#1236</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/cache/compare/v3...v3.3.2 ">https://github.com/actions/cache/compare/v3...v3.3.2 </a></p>
<h2>v3.3.1</h2>
<h2>What's Changed</h2>
<ul>
<li>Reduced download segment size to 128 MB and timeout to 10 minutes by
<a href="https://github.com/kotewar "><code>@kotewar</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1129 ">actions/cache#1129</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/cache/compare/v3...v3.3.1 ">https://github.com/actions/cache/compare/v3...v3.3.1 </a></p>
<h2>v3.3.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Bug: Permission is missing in cache delete example by <a
href="https://github.com/kotokaze "><code>@kotokaze</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1123 ">actions/cache#1123</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/cache/blob/main/RELEASES.md ">actions/cache's
changelog</a>.</em></p>
<blockquote>
<h1>Releases</h1>
<h3>3.0.0</h3>
<ul>
<li>Updated minimum runner version support from node 12 -> node
16</li>
</ul>
<h3>3.0.1</h3>
<ul>
<li>Added support for caching from GHES 3.5.</li>
<li>Fixed download issue for files > 2GB during restore.</li>
</ul>
<h3>3.0.2</h3>
<ul>
<li>Added support for dynamic cache size cap on GHES.</li>
</ul>
<h3>3.0.3</h3>
<ul>
<li>Fixed avoiding empty cache save when no files are available for
caching. (<a
href="https://redirect.github.com/actions/cache/issues/624 ">issue</a>)</li>
</ul>
<h3>3.0.4</h3>
<ul>
<li>Fixed tar creation error while trying to create tar with path as
<code>~/</code> home folder on <code>ubuntu-latest</code>. (<a
href="https://redirect.github.com/actions/cache/issues/689 ">issue</a>)</li>
</ul>
<h3>3.0.5</h3>
<ul>
<li>Removed error handling by consuming actions/cache 3.0 toolkit, Now
cache server error handling will be done by toolkit. (<a
href="https://redirect.github.com/actions/cache/pull/834 ">PR</a>)</li>
</ul>
<h3>3.0.6</h3>
<ul>
<li>Fixed <a
href="https://redirect.github.com/actions/cache/issues/809 ">#809</a> -
zstd -d: no such file or directory error</li>
<li>Fixed <a
href="https://redirect.github.com/actions/cache/issues/833 ">#833</a> -
cache doesn't work with github workspace directory</li>
</ul>
<h3>3.0.7</h3>
<ul>
<li>Fixed <a
href="https://redirect.github.com/actions/cache/issues/810 ">#810</a> -
download stuck issue. A new timeout is introduced in the download
process to abort the download if it gets stuck and doesn't finish within
an hour.</li>
</ul>
<h3>3.0.8</h3>
<ul>
<li>Fix zstd not working for windows on gnu tar in issues <a
href="https://redirect.github.com/actions/cache/issues/888 ">#888</a> and
<a
href="https://redirect.github.com/actions/cache/issues/891 ">#891</a>.</li>
<li>Allowing users to provide a custom timeout as input for aborting
download of a cache segment using an environment variable
<code>SEGMENT_DOWNLOAD_TIMEOUT_MINS</code>. Default is 60 minutes.</li>
</ul>
<h3>3.0.9</h3>
<ul>
<li>Enhanced the warning message for cache unavailablity in case of
GHES.</li>
</ul>
<h3>3.0.10</h3>
<ul>
<li>Fix a bug with sorting inputs.</li>
<li>Update definition for restore-keys in README.md</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/cache/commit/13aacd865c20de90d75de3b17ebe84f7a17d57d2 "><code>13aacd8</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/cache/issues/1242 ">#1242</a>
from to-s/main</li>
<li><a
href="https://github.com/actions/cache/commit/53b35c543921fe2e8b288765ff817de9de8d906f "><code>53b35c5</code></a>
Merge branch 'main' into main</li>
<li><a
href="https://github.com/actions/cache/commit/65b8989fab3bb394817bdb845a453dff480c2b51 "><code>65b8989</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/cache/issues/1284 ">#1284</a>
from takost/update-to-node-20</li>
<li><a
href="https://github.com/actions/cache/commit/d0be34d54485f31ca2ccbe66e6ea3d96544a807b "><code>d0be34d</code></a>
Fix dist</li>
<li><a
href="https://github.com/actions/cache/commit/66cf064d47313d2cccf392d01bd10925da2bd072 "><code>66cf064</code></a>
Merge branch 'main' into update-to-node-20</li>
<li><a
href="https://github.com/actions/cache/commit/1326563738ddb735c5f2ce85cba8c79f33b728cd "><code>1326563</code></a>
Merge branch 'main' into main</li>
<li><a
href="https://github.com/actions/cache/commit/e71876755e268d6cc25a5d3e3c46ae447e35290a "><code>e718767</code></a>
Fix format</li>
<li><a
href="https://github.com/actions/cache/commit/01229828ffa049a8dee4db27bcb23ed33f2b451f "><code>0122982</code></a>
Apply workaround for earlyExit</li>
<li><a
href="https://github.com/actions/cache/commit/3185ecfd6135856ca6d904ae032cff4f39b8b365 "><code>3185ecf</code></a>
Update "only-" actions to node20</li>
<li><a
href="https://github.com/actions/cache/commit/25618a0a675e8447e5ffc8ed9b7ddb2aaf927f65 "><code>25618a0</code></a>
Bump version</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/cache/compare/v3...v4 ">compare
view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
</details>
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 21:52:02 +01:00
Reed von Redwitz
a83765efaa
fix: no-window lint error ( #2272 )
...
Latest PR runs are failing with linting errors, e.g.
https://github.com/denoland/fresh/actions/runs/7625625084/job/20770308634?pr=2266
Maybe this shouldn't be happening like this right now, but we'll still
need to clean these up eventually.
2024-01-23 21:51:38 +01:00
Luca Casonato
4bd556970a
chore: update esbuild deno loader ( #2270 )
...
This fixes a bunch of bugs related to `npm:` imports.
2024-01-22 13:01:42 +00:00
Reed von Redwitz
099aa051be
Revert "chore: simplify deno check:types command" ( #2262 )
...
Reverts denoland/fresh#2259
Windows is failing with this change:
* my PR
https://github.com/denoland/fresh/actions/runs/7556810357/job/20574665605?pr=2261
* your PR
https://github.com/denoland/fresh/actions/runs/7543217433/job/20533721591
* the commit from merging your PR
https://github.com/denoland/fresh/actions/runs/7543221780/job/20533736560
```
Run deno task check:types
Task check:types deno check **/*.ts **/*.tsx
Error launching 'deno': The filename or extension is too long. (os error 206)
Error: Process completed with exit code 1.
```
2024-01-17 16:35:12 +01:00
Marvin Hagemeister
5268aaa6a5
chore: simplify deno check:types command ( #2259 )
2024-01-16 15:41:20 +01:00
Marvin Hagemeister
3d30930d73
chore: release 1.6.3 ( #2257 )
2024-01-15 19:43:28 +01:00
Marvin Hagemeister
9f81806c6e
fix: __FRSH_STATE potentially being overwritten by user code ( #2256 )
...
As outlined in https://github.com/denoland/fresh/issues/2254 it was
possible to overwrite the script tag that is used by Fresh to pass
island props from the server to the client. This could be done by
injecting raw HTML via `dangerouslySetInnerHTML` and simply using the
same id that Fresh was using.
With this PR we generate a unique id per render that cannot be guessed
anymore. It's composed of `__FRSH_STATE_<uuid>`
2024-01-15 19:41:12 +01:00
Luca Casonato
8583394481
fix: prototype pollution in deserializer ( #2255 )
...
This is not exploitable in practice unless a user maliciously crafts
serialized values in __FRSH_STATE, because `serializer()` never outputs
serialized representation that would be vulnerable to prototype
pollution. But hey, defense in depth.
2024-01-15 18:03:59 +00:00
Marvin Hagemeister
3bc43a1327
chore: release 1.6.2 ( #2252 )
...
🎉
2024-01-15 12:43:11 +01:00
Greg Zometa
e059a46ea5
docs: getting started - running locally ( #2245 )
...
Removes description of changing the port number with the deprecated
`port` property and updates with `server.port`.

2024-01-13 08:43:33 +01:00
Igor Brasileiro
e7bf6aca62
fix: Prevent update doc title from partial if not present ( #2244 )
...
fixes #2243
2024-01-12 18:47:40 +01:00
Reed von Redwitz
ca8338e04d
chore: bump std to 0.211.0 and loader to 0.8.3 ( #2241 )
2024-01-11 15:54:41 +01:00
Marvin Hagemeister
d2e9ee99a2
fix: browser url not updated with form partials ( #2236 )
...
Fixes https://github.com/denoland/fresh/issues/2173
2024-01-10 15:36:30 +01:00
Marvin Hagemeister
6f6f551248
docs: add hints to AOT page ( #2232 )
2024-01-10 10:50:01 +01:00