Commit Graph
468 Commits
Author SHA1 Message Date
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
Leo Kettmeir 060e2bb50d feat: add status and headers overwrite for HandlerContext.render (#725) 2023-05-31 10:09:53 +02:00
Asher Gomezandhashrock 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
Asher Gomez b5532aeb69 feat: island sub-directories (#1185) 2023-05-31 05:29:56 +10:00
Asher Gomez 8347eadbef refactor: move counter example to top-level (#1219) 2023-05-30 19:51:16 +02:00
Luca Casonato 96ba036c12 fix: better HEAD handling with less special casing (#1206)
We now add a default HEAD handler to the server, rather than special
casing HEAD requests elsewhere. Static files now get their own optimized
HEAD handler that does not read the file contents.
2023-05-30 17:22:18 +10:00
Luca CasonatoandAsher Gomez 87b087e358 fix: __FRSH_BUILD_ID is not defined (#1207)
This could happen if the runtime/utils.ts coe was loaded
prior to server/constants.ts, because they had some shared state on
`globalThis`.

I have mitigated this by not relying on global state anymore.

Fixes #1191

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-05-30 10:46:44 +10:00
Octo8080X 675036b33c feat: add createHandler() (#622)
I cut out the function that gets an hundler from fresh.

The purpose is to prepare you to create tests for your application.
The introduction of this feature does not affect fresh.

Example:

```typescript main_test.ts
/// <reference no-default-lib="true" />
/// <reference lib="dom" />
/// <reference lib="dom.asynciterable" />
/// <reference lib="deno.ns" />
/// <reference lib="deno.unstable" />

import { createHandler } from "$fresh/server.ts";
import manifest from "./fresh.gen.ts";

import { superdeno } from "https://deno.land/x/superdeno/mod.ts";
import { assertEquals } from "https://deno.land/std@0.148.0/testing/asserts.ts";
import {
  type RequestHandlerLike,
} from "https://deno.land/x/superdeno/src/types.ts";
import {
  Document,
  DOMParser,
} from "https://deno.land/x/deno_dom/deno-dom-wasm.ts";


Deno.test("HTTP assert test.", async (t) => {
  await t.step("#1 GET /", async () => {
    const handler = await createHandler(manifest) as RequestHandlerLike;

    await superdeno(handler)
      .get("/")
      .expect(200);
  });
  await t.step("#2 GET /Foo", async () => {
    const server = await createHandler(manifest) as RequestHandlerLike;

    const r = await superdeno(server)
      .get("/Foo")
      .expect(200);

    const document: Document = new DOMParser().parseFromString(
      r.text,
      "text/html",
    )!;

    assertEquals(document.querySelector("div")?.innerText, "Hello Foo");
  });

  await t.step("#3 GET /Foo/Bar", async () => {
    const server = await createHandler(manifest) as RequestHandlerLike;

    await superdeno(server)
      .get("/Foo/Bar")
      .expect(404);
  });
});
```

```sh
$ deno test -A main_test.ts
Check file:///usr/src/app/my-project/main_test.ts
running 1 test from ./main_test.ts
HTTP assert test. ...
  #1 GET / ... ok (53ms)
  #2 GET /Foo ... ok (50ms)
  #3 GET /Foo/Bar ... ok (45ms)
HTTP assert test. ... ok (154ms)

ok | 1 passed (3 steps) | 0 failed (300ms)
```

This was discussed in a separate pull request, but prepared in a
separate branch based on @lucacasonato suggestion.

[Add a function to get a server class
instance.](https://github.com/denoland/fresh/pull/552)

Thenk you.
2023-05-30 10:29:26 +10:00
Geoff FlarityandAsher Gomez 41a75fe1f5 chore: remove stale workaround in collect() (#1078)
The issue in question, https://github.com/denoland/deno_std/issues/1310,
has been marked complete. Looks like the underlying issue has been
fixed. So this just removes the comment/unnecessary code.

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-05-27 17:44:35 +10:00
Asher Gomez e0cb693c0f chore(deps): update to std@0.189.0 (#1201) 2023-05-27 17:36:15 +10:00
7f3fd51cca Optimise images size (#1101)
Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: Jheyson Saavedra <hello@jheysaav.me>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-05-25 19:45:01 +10:00
lionel-roweandAsher 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
Luca CasonatoandAsher Gomez f95f7586f5 fix: don't change scheme on redirect (#1024)
Fixes #1015

This scenario can happen when a user has a proxy sitting in front of
Fresh, that does TLS termination, while Fresh is running on plain text
HTTP.

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-05-25 18:40:40 +10:00
azerum 1a456444e4 add test case covering islands that return null (#1203)
Just a small addition to my previous PR. It wasn't obvious for me that
PR #1172 also fixed #1129. I guess that issue should be covered by a
separate test
2023-05-25 09:40:49 +10:00
Kamil OgórekandAsher Gomez e86a126c0a feat(server): Allow for custom HEAD method implementations (#1175)
Fixes https://github.com/denoland/fresh/issues/1115
Fixes https://github.com/denoland/fresh/issues/1165

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-05-25 08:55:09 +10:00
Asher Gomez 366c8afef1 chore: update versions.json for 1.1.6 (#1200)
I missed this in the 1.1.6 release. My bad - lesson learnt.
2023-05-24 17:40:29 +10:00
Asher Gomez 98636ec8a0 doc: API reference link in README (#1197) 2023-05-23 19:35:17 +10:00
azerumandAsher Gomez 7d23ed5984 fix: conditionally rendered element under fragment in island does not render (#1172)
This might be fixing #502, but I am not sure. All tests pass. I've added
additional test cases for comments from #502

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-05-23 12:24:05 +10:00
David Balan 9c73cea878 Adding learn mandaring project to showcase (#1198)
Hello I want to add my small contribution to the showcase
2023-05-23 10:56:11 +10:00
Oliver Jenny ff3d754fbd fix typo (#1192) 2023-05-19 19:06:20 +10:00
Asher Gomez 24c38e49e8 refactor: simplify www task (#1190) 2023-05-19 14:21:50 +10:00
Asher Gomez 8db73e0485 refactor: disable lock (#1186) 2023-05-18 21:20:48 +10:00
dependabot[bot] b9db46eccb chore(deps): bump actions/cache from 2 to 3 (#1183)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
<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>v3.0.0</h2>
<ul>
<li>
<p>This change adds a minimum runner version(node12 -&gt; node16), which
can break users using an out-of-date/fork of the runner. This would be
most commonly affecting users on GHES 3.3 or before, as those runners do
not support node16 actions and they can use actions from github.com via
<a
href="https://docs.github.com/en/enterprise-server@3.0/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect">github
connect</a> or manually copying the repo to their GHES instance.</p>
</li>
<li>
<p>Few dependencies and cache action usage examples have also been
updated.</p>
</li>
</ul>
<h2>Updating actions/core to version 1.10.0</h2>
<p>The ::save-state and ::set-output are deprecated. The newer version
of actions/core &gt;1.10.0 uses the new syntax for save and set output.
After this change, customers using actions/cache@v2 won't see
deprecation warning message.</p>
<h2>v2.1.7</h2>
<p>Support 10GB cache upload using the latest version <code>1.0.8</code>
of <a
href="https://www.npmjs.com/package/@actions/cache"><code>@actions/cache</code>
</a></p>
<h2>v2.1.6</h2>
<ul>
<li>Catch unhandled &quot;bad file descriptor&quot; errors that
sometimes occurs when the cache server returns non-successful response
(<a
href="https://redirect.github.com/actions/cache/pull/596">actions/cache#596</a>)</li>
</ul>
<h2>v2.1.5</h2>
<ul>
<li>Fix permissions error seen when extracting caches with GNU tar that
were previously created using BSD tar (<a
href="https://redirect.github.com/actions/cache/issues/527">actions/cache#527</a>)</li>
</ul>
<h2>v2.1.4</h2>
<ul>
<li>Make caching more verbose <a
href="https://redirect.github.com/actions/toolkit/pull/650">#650</a></li>
<li>Use GNU tar on macOS if available <a
href="https://redirect.github.com/actions/toolkit/pull/701">#701</a></li>
</ul>
<h2>v2.1.3</h2>
<ul>
<li>Upgrades <code>@actions/core</code> to v1.2.6 for <a
href="https://github.com/advisories/GHSA-mfwh-5m23-j46w">CVE-2020-15228</a>.
This action was not using the affected methods.</li>
<li>Fix error handling in <code>uploadChunk</code> where 400-level
errors were not being detected and handled correctly</li>
</ul>
<h2>v2.1.2</h2>
<ul>
<li>Adds input to limit the chunk upload size, useful for self-hosted
runners with slower upload speeds</li>
<li>No-op when executing on GHES</li>
</ul>
<h2>v2.1.1</h2>
<ul>
<li>Update <code>@actions/cache</code> package to <code>v1.0.2</code>
which allows cache action to use posix format when taring files.</li>
</ul>
<h2>v2.1.0</h2>
<ul>
<li>Replaces the <code>http-client</code> with the Azure Storage SDK for
NodeJS when downloading cache content from Azure. This should help
improve download performance and reliability as the SDK downloads files
in 4 MB chunks, which can be parallelized and retried independently</li>
<li>Display download progress and speed</li>
</ul>
</blockquote>
</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 -&gt; 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 &gt; 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/88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8"><code>88522ab</code></a>
Reduced download segment size to 128 MB and timeout to 10 minutes (<a
href="https://redirect.github.com/actions/cache/issues/1129">#1129</a>)</li>
<li><a
href="https://github.com/actions/cache/commit/940f3d7cf195ba83374c77632d1e2cbb2f24ae68"><code>940f3d7</code></a>
Add <code>lookup-only</code> option (<a
href="https://redirect.github.com/actions/cache/issues/1041">#1041</a>)</li>
<li><a
href="https://github.com/actions/cache/commit/e0d62270e20d6eeecf2fd6397a1b8871b6269e38"><code>e0d6227</code></a>
docs: Add missing permission in cache delete example (<a
href="https://redirect.github.com/actions/cache/issues/1123">#1123</a>)</li>
<li><a
href="https://github.com/actions/cache/commit/69d9d449aced6a2ede0bc19182fadc3a0a42d2b0"><code>69d9d44</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/cache/issues/1118">#1118</a>
from actions/pdotl/zstd-hotfix</li>
<li><a
href="https://github.com/actions/cache/commit/8d3a1e02aa504540dff5000c782b8263e3b411fb"><code>8d3a1e0</code></a>
Fix license</li>
<li><a
href="https://github.com/actions/cache/commit/b1db4b48979ec1f6d6142513d9448c4288d05ec4"><code>b1db4b4</code></a>
Fix zstd breaking after new version release</li>
<li><a
href="https://github.com/actions/cache/commit/7d4d6f7ffd301005e7fac90369bb90ae1d547974"><code>7d4d6f7</code></a>
Update package-lock.json</li>
<li><a
href="https://github.com/actions/cache/commit/8f7fa5d715f6773b40e9fbf9cb77bcb5d914d0dc"><code>8f7fa5d</code></a>
Bump <code>@​actions/cache</code> version</li>
<li><a
href="https://github.com/actions/cache/commit/95b455a0fba5a5e1770cc10ded51e5fe99a6737b"><code>95b455a</code></a>
3.2.6</li>
<li><a
href="https://github.com/actions/cache/commit/81b728193625a15a55fcce4c6eb6187358533785"><code>81b7281</code></a>
Updated branch in Force deletion of caches (<a
href="https://redirect.github.com/actions/cache/issues/1108">#1108</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/cache/compare/v2...v3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/cache&package-manager=github_actions&previous-version=2&new-version=3)](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 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>
2023-05-17 14:58:44 +10:00
dependabot[bot]andAsher Gomez c1c800e362 chore(deps): bump actions/setup-node from 1 to 3 (#1184)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 1
to 3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-node/releases">actions/setup-node's
releases</a>.</em></p>
<blockquote>
<h2>Add support for asdf format and update actions/cache version to
3.0.0</h2>
<p>In scope of this release we updated <code>actions/cache</code>
package as the new version contains fixes for <a
href="https://redirect.github.com/actions/setup-node/pull/526">caching
error handling</a>. Moreover, we added support for asdf format as
Node.js version file <a
href="https://redirect.github.com/actions/setup-node/pull/373">actions/setup-node#373</a>.
Besides, we introduced new output <a
href="https://redirect.github.com/actions/setup-node/pull/534">node-version</a>
and added <code>npm-shrinkwrap.json</code> to dependency file patterns:
<a
href="https://redirect.github.com/actions/setup-node/pull/439">actions/setup-node#439</a></p>
<h2>Update actions/cache version to 2.0.2</h2>
<p>In scope of this release we updated <code>actions/cache</code>
package as the new version contains fixes related to GHES 3.5 (<a
href="https://redirect.github.com/actions/setup-node/pull/460">actions/setup-node#460</a>)</p>
<h2>v3.0.0</h2>
<p>In scope of this release we changed version of the runtime Node.js
for the setup-node action and updated package-lock.json file to v2.</p>
<h3>Breaking Changes</h3>
<ul>
<li>With the update to Node 16 in <a
href="https://redirect.github.com/actions/setup-node/pull/414">actions/setup-node#414</a>,
all scripts will now be run with Node 16 rather than Node 12.</li>
<li>We removed deprecated <code>version</code> input (<a
href="https://redirect.github.com/actions/setup-node/pull/424">actions/setup-node#424</a>).
Please use <code>node-version</code> input instead.</li>
</ul>
<h2>Update <code>@​actions/core</code> for v2</h2>
<p>In scope of this release we updated actions/core to 1.10.0 and
actions/tool-cache to 1.7.2 for v2: <a
href="https://redirect.github.com/actions/setup-node/pull/713">actions/setup-node#713</a></p>
<h2>Fix logic of error handling for npm warning and uncaught
exception</h2>
<p>In scope of this release we fix logic of error handling related to
caching (<a
href="https://redirect.github.com/actions/setup-node/pull/358">actions/setup-node#358</a>)
and (<a
href="https://redirect.github.com/actions/setup-node/pull/359">actions/setup-node#359</a>).</p>
<p>In the previous behaviour we relied on <code>stderr</code> output to
throw error. The warning messages from package managers can be written
to the stderr's output. For now the action will throw an error only if
exit code differs from zero. Besides, we add logic to сatch and log
unhandled exceptions.</p>
<h2>Adding Node.js version file support</h2>
<p>In scope of this release we add the <code>node-version-file</code>
input and update <code>actions/cache</code> dependency to the latest
version.</p>
<h2>Adding Node.js version file support</h2>
<p>The new input (<code>node-version-file</code>) provides functionality
to specify the path to the file containing Node.js's version with such
behaviour:</p>
<ul>
<li>If the file does not exist the action will throw an error.</li>
<li>If you specify both <code>node-version</code> and
<code>node-version-file</code> inputs, the action will use value from
the <code>node-version</code> input and throw the following warning:
<code>Both node-version and node-version-file inputs are specified, only
node-version will be used</code>.</li>
<li>For now the action does not support all of the variety of values for
Node.js version files. The action can handle values according to the <a
href="https://github.com/actions/setup-node#supported-version-syntax">documentation</a>
and values with <code>v</code> prefix (<code>v14</code>)</li>
</ul>
<pre lang="yaml"><code>steps:
  - uses: actions/checkout@v2
  - name: Setup node from node version file
    uses: actions/setup-node@v2
    with:
      node-version-file: '.nvmrc'
  - run: npm install
  - run: npm test
</code></pre>
<h2>Update actions/cache dependency to 1.0.8 version.</h2>
<p>We updated actions/cache dependency to the latest version (1.0.8).
For more information please refer to the <a
href="https://github.com/actions/toolkit/blob/main/packages/cache/RELEASES.md">toolkit/cache</a>.</p>
<h2>Add &quot;cache-hit&quot; output</h2>
<p>This release introduces a new output: <code>cache-hit</code> (<a
href="https://redirect.github.com/actions/setup-node/issues/327">#327</a>).</p>
<p>The <code>cache-hit</code> output contains boolean value indicating
that an exact match was found for the key. It shows that the action uses
already existing cache or not. The output is available only if cache is
enabled.</p>
<h2>Support caching for mono repos and repositories with complex
structure</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-node/commit/64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c"><code>64ed1c7</code></a>
Add support for v8-canary, nightly and rc (<a
href="https://redirect.github.com/actions/setup-node/issues/655">#655</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/92a57f4a935efe978b0a4d8e5b19fb42658c7ef7"><code>92a57f4</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/setup-node/issues/650">#650</a>
from actions/update-code-owners</li>
<li><a
href="https://github.com/actions/setup-node/commit/99e61d697ac985dd26c630fb5e8f9476131abbdb"><code>99e61d6</code></a>
Update CODEOWNERS</li>
<li><a
href="https://github.com/actions/setup-node/commit/3e8819f8f297df8b29fc3e383683a29be2bf129a"><code>3e8819f</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/setup-node/issues/649">#649</a>
from actions/update-codeowners</li>
<li><a
href="https://github.com/actions/setup-node/commit/8cd2fb28b8f13cfe537ae737100b155acc87e562"><code>8cd2fb2</code></a>
Update CODEOWNERS</li>
<li><a
href="https://github.com/actions/setup-node/commit/c406543918243bdbe7b25799f6a378e753fed484"><code>c406543</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/setup-node/issues/647">#647</a>
from akv-platform/apply-reusable-workflows</li>
<li><a
href="https://github.com/actions/setup-node/commit/92a07fe46640c3ab57d394b7b01308a008a3231d"><code>92a07fe</code></a>
Fix review points</li>
<li><a
href="https://github.com/actions/setup-node/commit/217387cf3e2597f3eed81c19f662eeddbdd397de"><code>217387c</code></a>
Update action to use reusable-workflows repo</li>
<li><a
href="https://github.com/actions/setup-node/commit/2db36638708d0ad3215bcdff9f8a61d64021ae68"><code>2db3663</code></a>
Merge branch 'main' of <a
href="https://github.com/akv-platform/setup-node">https://github.com/akv-platform/setup-node</a>
into apply-...</li>
<li><a
href="https://github.com/actions/setup-node/commit/bbe2ac79a1347190c27c8a7ca53301a26c066415"><code>bbe2ac7</code></a>
Fix typo in README (<a
href="https://redirect.github.com/actions/setup-node/issues/646">#646</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/setup-node/compare/v1...v3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/setup-node&package-manager=github_actions&previous-version=1&new-version=3)](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 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>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-05-17 14:57:28 +10:00
dependabot[bot] 0f77a500ef chore(deps): bump actions/checkout from 2 to 3 (#1182) 2023-05-17 14:11:53 +10:00
Asher Gomez 1f04d01297 chore(ci): enable Deno v1.x (#1179) 2023-05-17 14:00:41 +10:00
Asher Gomez 0b8e01e38e chore(ci): disable fail-fast (#1180) 2023-05-17 13:59:59 +10:00
Asher Gomez 87536502d8 chore(ci): dependabot for GitHub actions (#1181) 2023-05-17 13:59:20 +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-NetoandAsher 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
CemandAsher 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
ryuandAsher Gomez 62c1211937 docs: unify space within section (#1164)
Many section tags use `space-y-4` class. Don't have to be `space-y-5`
class on that section.
Also, showcase and components page will be the same design and look
good.

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-05-16 22:23:55 +10:00
Yuki Tanaka 6e2767cfd3 showcase: add Awesome Fresh (#1171) 2023-05-14 14:49:12 +09:00
6feac0d2d8 fix(server): obfuscated deployment id in build id (#1168)
Co-authored-by: John Pope <88814278+innovatedev-john-pope@users.noreply.github.com>

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-05-13 11:09:21 +02:00
Mieszko Kycermann abe12a12f8 showcase: add mieszko.xyz (#1169) 2023-05-13 15:41:46 +09:00
Taylor Young 8f7510fc99 www: allow deeplinking to components (#1134)
Adds an ID to the component titles to allow deep-linking to components.

http://localhost:8000/components#Carousel

http://localhost:8000/components#Icons
2023-05-12 17:40:24 +02:00
Luca CasonatoandJohn Pope 96b89d2a05 fix: cleanup pathname with multiple trailing slashes (#1167)
Co-authored-by: John Pope <88814278+innovatedev-john-pope@users.noreply.github.com>
2023-05-12 17:34:45 +02:00
Kamil Ogórek 4dc6881498 fix(init): update routes/index.tsx to be correctly formatted with deno fmt (#1160) 2023-05-12 13:06:19 +09:00
Ibrahim BIDI 029f8d6bdc showcase: add JPT Deno ChatGPT Rooms (#1149) 2023-05-12 12:56:49 +09:00
Muhammed Nazeem a6a27622d5 showcase: add pollify (#1154) 2023-05-12 12:50:03 +09:00
ryu 9bec837bd6 fix(www): cursor on docs search modal (#1162) 2023-05-12 12:45:41 +09:00
George SpanosandLino 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
ryu 4a7ecb6168 chore: update tabler_icons_tsx version (#1159) 2023-05-12 01:12:18 +09:00
ryu e1b00bfd34 fix(www): docs title align center (#1158) 2023-05-11 13:58:52 +09:00
ryu ed8eb7f226 docs: Carousel Component is island (#1157) 2023-05-10 21:35:48 +09:00
hashrock 2d124aacf4 fix(dev): server stalls when clicking quickly between pages (#1146)
Close #1079
2023-05-03 21:16:50 +02:00
Marvin Hagemeister f481c1a03f fix: superfluous dir message when dir === cwd (#1138) 2023-04-30 10:41:42 +02:00
Marvin HagemeisterandLuca Casonato c224db7cb7 chore: update for deno 1.33.x (#1139)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2023-04-30 10:30:30 +02:00
Taylor Young ab73242933 docs: Carousel Component (#1096) 2023-04-27 04:51:13 +09:00