Commit Graph
256 Commits
Author SHA1 Message Date
Martin Rempel 0a0d86e3a5 fix: remoteAddr hardcoded to localhost:1234 (#1839) 2023-10-02 16:30:13 +00:00
Marvin Hagemeister 4295dbe85d feat: mark active or ancestor links (#1840) 2023-10-02 18:22:44 +02:00
Marvin Hagemeister 1f2c3073df fix: only send revive() script when needed (#1825) 2023-09-28 10:31:39 +02:00
Marvin Hagemeister 665d35bbc2 Add Partials (#1824) 2023-09-27 13:34:30 +02: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
Marvin Hagemeister 3604c224ce fix: code frame not showing up in dev mode (#1814) 2023-09-24 11:26:47 +02:00
Marvin Hagemeister 3db514f869 fix: plugin script error halting JS execution (#1801) 2023-09-20 12:28:32 +02:00
Marvin Hagemeister 0c37b5f9b9 feat: add build.target option (#1798) 2023-09-20 11:05:46 +02:00
Marvin Hagemeister 3fd8fe89d3 feat: add build.outDir option (#1797) 2023-09-20 10:40:09 +02:00
Marvin Hagemeister 567df19f3d feat: de-duplicate <Head> children by key (#1793) 2023-09-18 22:06:56 +02:00
Marvin Hagemeister 3850131063 chore: speed up tests (#1791)
This PR speeds up tests by handling custom created `Requests` object
directly instead of binding a socket and making a real HTTP request. For
most tests this is fine, and for those that aren't the existing testing
methods are all preserved.
2023-09-18 18:44:22 +02:00
Marvin Hagemeister c76f15479f feat: add plugin buildStart and buildEnd hooks (#1770) 2023-09-18 17:46:34 +02:00
Marvin Hagemeister d94d3db4aa feat: improve default error visualization (#1780)
Adds code frame to errors if possible:

<img width="1095" alt="Screenshot 2023-09-15 at 11 33 46"
src="https://github.com/denoland/fresh/assets/1062408/7f4a5378-d00f-4550-b995-37a77f96ce0c">

Default error page in dev mode:

<img width="937" alt="Screenshot 2023-09-15 at 11 30 59"
src="https://github.com/denoland/fresh/assets/1062408/130172f4-beed-4d8c-b2b5-0e23be0b8f84">

Default error page in prod mode:

<img width="939" alt="Screenshot 2023-09-15 at 11 31 23"
src="https://github.com/denoland/fresh/assets/1062408/4ef58b83-b5f4-45cb-bc3f-1c8c4e5b6357">
2023-09-18 17:37:48 +02:00
Marvin Hagemeister f9f3cd82ee feat: error if stateful hook is used outside of islands (#1778) 2023-09-18 16:25:37 +02:00
Marvin Hagemeister 112d701e5c fix: only enable dev things in dev mode (#1789) 2023-09-18 15:07:42 +02:00
Marvin Hagemeister ead634b0cf feat: exclude _fresh dir from everything (#1788) 2023-09-18 15:05:59 +02:00
Marvin Hagemeister 6d9afd62ab feat: add nonce for inline scripts (#1772) 2023-09-14 09:39:53 +02:00
Adam Gregory e67a8dc106 feat: Add NotFoundData generic to HandlerContext (#1747) 2023-09-13 16:11:06 +02:00
Tomofumi ChibaandMarvin Hagemeister ec2f785455 fix: plugins not loaded with legacy dev (#1764)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-09-13 16:09:50 +02:00
jia wei 42dc54500c fix: incorrect snapshot path with non-standard src directory (#1768) 2023-09-13 13:36:05 +02:00
e01ef2d8a0 feat(dev): Ignore common test files in routes and islands (#1039)
Co-authored-by: Marvin Hagemeister <marvinhagemeister50@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-09-11 16:05:55 +02:00
Michael Herzner 8a0d0dc452 feat: add support for optional dynamic route params (#1706) 2023-09-07 14:28:44 +02:00
Marvin Hagemeister 227cefbf50 fix: incorrect island child validation (#1740) 2023-09-06 11:11:52 +02:00
Marvin Hagemeister 7004eae7ba fix: Missing error on invalid island children (#1736) 2023-09-05 15:15:48 +02:00
Marvin Hagemeister b1a02108c5 fix: dev command loading snapshot (#1735) 2023-09-05 12:34:05 +02:00
Marvin Hagemeister ac5e4c5ca1 fix: main index not found in group (#1710) 2023-09-05 12:16:19 +02:00
Marvin Hagemeister c767cc5067 fix: stream static files from disk (#1734) 2023-09-05 12:12:10 +02:00
Reed von Redwitz 3729641449 fix: export DestinationKind (#1721) 2023-09-04 10:28:42 +02:00
Reed von Redwitz 4a4af1f915 fix(server): sanitize brackets from island names (#1723) 2023-09-01 15:58:15 +02:00
Reed von Redwitz 03df5f7306 fix(server): pass context into 500 handlers (#1720) 2023-09-01 15:56:47 +02:00
Marvin Hagemeister efcaa2dee2 fix: build id mismatch between CI + deploy (#1681) 2023-08-28 12:49:49 +02:00
Marvin Hagemeister a4cf4939ee fix: invalid html structure (#1668) 2023-08-17 17:44:26 +02:00
Marvin Hagemeister b2548b24cd fix: refresh not working (#1659) 2023-08-17 11:46:07 +02:00
Marvin Hagemeister ce4df30e92 fix: exclude _fresh dir from lint + fmt (#1656) 2023-08-17 10:48:53 +02:00
Marvin Hagemeister 9f97e3423c fix: attributes on <body> not being rendered (#1648) 2023-08-16 22:26:23 +02:00
Marvin Hagemeister 477364c567 feat: prebundle code + restore from snapshot (#1604) 2023-08-16 16:47:51 +02:00
Marvin Hagemeister f67ec8520f fix: render state not unique per render (#1638) 2023-08-16 16:30:16 +02:00
Marvin HagemeisterandReed von Redwitz b2362da281 www: Various documentation improvements (#1635)
Co-authored-by: Reed von Redwitz <reed+github@vonredwitz.com>
2023-08-16 16:24:53 +02:00
Marvin Hagemeister 726740ed39 feat: add helpers to make Fresh less TypeScripty (#1627) 2023-08-14 22:45:13 +02:00
Marvin Hagemeister 6436a43dce fix: rename layout config options (#1619) 2023-08-14 15:47:36 +02:00
Marvin HagemeisterandAsher Gomez ba67d895ce feat: support async app template (#1626)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-08-14 14:52:48 +02:00
Marvin Hagemeister 86f92114d8 feat: Support setting <html> in _app template (#1617) 2023-08-11 18:40:20 +02:00
Marvin Hagemeister 7ebaf0404d feat: allow layout and _app overrides (#1611) 2023-08-09 16:35:53 +00:00
Christian Svensson 7d4c751105 fix: add missing state property to interface (#1579) 2023-08-08 14:15:53 +02:00
Marvin HagemeisterandAsher Gomez 8325225a0d feat: support async layout functions (#1597)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-08-08 14:15:02 +02:00
Marvin HagemeisterandAsher Gomez 11077227b5 feat: support conditional island JSX children (#1355)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-08-08 11:35:28 +02:00
Marvin Hagemeister 97c6876bf7 feat: co-locate islands + non-route files (#1600) 2023-08-07 20:33:08 +02:00
Reed von Redwitz 5d2c8b6b3c feat(server): support https (#1599) 2023-08-06 11:56:40 +00:00
Reed von Redwitz 1fb7f3bea9 fix(server): make LayoutProps generic (#1592) 2023-08-05 22:27:13 +02:00
Reed von Redwitz cc0e2cb2ec chore(server): simplify plugin route creation (#1594) 2023-08-05 21:58:15 +02:00