Commit Graph
42 Commits
Author SHA1 Message Date
Asher Gomez 0ca7568f54 chore: @std/* dependencies (#2488)
Mainly done to get release candidates in use.
2024-06-04 09:38:24 +02:00
Asher Gomez 425032a6dc chore: minor cleanups (#2393)
These changes occur by just running `deno task ok` on `main`.
2024-04-08 13:08:41 +02:00
Asher Gomez 99eb5435bb refactor: use --env CLI arg (#2204)
This change replaces the use of the Standard Library's `dotenv.load()`
with the native `--env` CLI flag.

The benefits include:
* One less dependency
* More obvious consumption of the `.env` file in the CLI output
2023-12-29 10:47:15 +01:00
Asher Gomez 6ddef91d95 refactor: replace references of options with config (#1903) 2023-10-11 09:25:03 +02:00
Asher Gomez d5659a41ac fix: flaky doesn't leak data across renderers test (#1901)
Using `createHandler()` is simpler than starting a server and fetching a
page. `createHandler()` avoids unnecessary network requests, which can
be flaky when you only need to analyse parts of the returned request. I
think we should push for more use of `createHandler()` and only start a
server as a last resort.

This closes #1896, or rather the particular test mentioned there, but
other tests involving TCP connections can still occur. Again, their
remedy is to use `createHandler()` instead of starting a server.
2023-10-11 10:04:33 +11:00
Asher Gomez 6ce39b8cee refactor: use manifest variable name (#1902)
Previously, the `routes` variable name was used. This change makes more
sense as the variable has the `Manifest` type.
2023-10-11 10:03:08 +11:00
Asher Gomez 500336e97d chore: synchronize CI and local tests (#1894) 2023-10-10 11:35:04 +02:00
Asher Gomez 2bb17981c3 refactor: simplify www test (#1895) 2023-10-10 11:34:21 +02:00
Asher Gomez 88985fe933 chore: update Deno KV OAuth plugin and docs (#1826)
These changes aim to improve the clarity and understandability of the
Deno KV OAuth plugin. It also updates to use the latest version of the
module.
2023-09-28 08:05:53 +00:00
Asher Gomez d9829e25e6 ci: run on latest stable version of Deno (#1820)
This PR changes CI to include the latest stable version of Deno,
alongside canary. This is important for picking up bugs in canary. This
seems like a reasonable thing to have for overall stability.

Possible prerequisite for #1819
2023-09-27 09:34:50 +02:00
Asher Gomez 8ebb94bf59 refactor: simplified Deno KV OAuth plugin (#1808) 2023-09-25 18:35:46 +10:00
Asher Gomez 06fac31e6b docs(www): update hello bar for Fresh 1.4 (#1653) 2023-08-17 05:30:03 +02:00
Asher Gomez 76f0f4a84a chore: deno task ok (#1573) 2023-08-04 12:01:38 +02:00
Asher Gomez 6a9dd4adb7 chore(CI): parallel tests (#1583)
Let's give this a few tries and see if we can weed out the root causes.
2023-08-03 09:46:57 +02:00
Asher Gomez 4849d1abb5 chore: format on save (#1584)
I feel as though this is a reasonable default to have. This eliminates
one more thing that a contributor must remember to do before submitting
a PR.
2023-08-03 07:45:08 +00:00
Asher Gomez 71fc1b8efc chore(CI): combine install Chrome jobs (#1557) 2023-08-02 14:07:02 +02:00
Asher Gomez 62f5d3a492 chore(CI): remove redundant steps (#1569)
`deno task check:types` and `deno test -A` take care of everything.
2023-08-02 17:54:11 +10:00
Asher Gomez 4b28e2e269 chore(CI): rework lighthouse action (#1570) 2023-08-02 09:49:53 +02:00
Asher Gomez 5e78224f49 chore(CI): fix and simplify caching (#1571) 2023-08-02 09:44:42 +02:00
Asher Gomez ecb718b6a7 chore(CI): make formatting same across platforms (#1575) 2023-08-02 09:43:28 +02:00
Asher Gomez 0b96db4bae fix: async route typing (#1510) 2023-07-24 08:22:48 +00:00
Asher Gomez d0b277a135 docs: add "Contributing" section (#1233) 2023-06-18 13:42:23 +02:00
Asher Gomez a4f7172807 docs: fix Signal type typo (#1304) 2023-06-16 10:32:20 +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
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
Asher GomezandLuca 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
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
Asher Gomez 8fc117d000 chore: upgrade to esbuild_deno_loader@0.7.0 (#1228) 2023-05-31 09:04:38 +00: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
Asher Gomez e0cb693c0f chore(deps): update to std@0.189.0 (#1201) 2023-05-27 17:36:15 +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
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
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
Asher Gomez 570da5172f www: add Deno SaaSKit to showcase (#1105) 2023-04-07 17:45:24 +09:00