Commit Graph
284 Commits
Author SHA1 Message Date
Tiago Gimenes 84ff79beca feat: Nested partials support (#1955) 2023-10-18 18:26:46 +02:00
Marvin Hagemeister b984da9113 fix: browser not reloaded when no island present (#1956) 2023-10-18 11:16:51 +02:00
Marvin Hagemeister bfabb2ec98 feat: add support for partials on forms (#1930) 2023-10-16 22:45:11 +02:00
Christian Svensson 206d5002d6 fix: add error-handler type to manifest (#1933) 2023-10-16 07:45:34 +02:00
Marvin Hagemeister 86a96eeee4 fix: switch to websockets for development server (#1943) 2023-10-16 07:44:27 +02:00
Marvin Hagemeister 0192316785 fix: unable to opt out of nested client nav (#1940) 2023-10-15 08:41:13 +02:00
Marvin Hagemeister bb8921ac85 fix: ctx.render headers not working (#1927) 2023-10-12 23:30:18 +02:00
Marvin Hagemeister 7d954584a6 fix: island marker parsed as key marker (#1922) 2023-10-12 13:40:23 +02:00
Marvin Hagemeister 78b0b05fc3 fix: make active + ancestor links accessible (#1915) 2023-10-11 17:29:07 +02:00
Marvin Hagemeister a1f0d4a5bd fix: don't scroll on fragment links in partials (#1906) 2023-10-11 10:30:31 +02: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
Marvin Hagemeister 32eb61c95d fix: allow setting server config from fresh config (#1889) 2023-10-09 13:59:30 +02:00
Tiago Gimenes 15f869715c fix: Partial state deserialization on simple islands (#1873) 2023-10-07 23:08:04 +02:00
Tiago Gimenes 2df5921b59 feat: Use href instead of origin on Partial (#1870) 2023-10-07 23:07:42 +02:00
Marvin Hagemeister e9717ed911 fix: meta charSet -> charset (#1875) 2023-10-06 15:59:13 +02:00
Marvin Hagemeister 77ed10078c fix: remove another bare type import (#1872) 2023-10-05 21:39:42 +02:00
Marvin Hagemeister 4044b5be78 fix: codeframe not visible with custom _500.tsx (#1869) 2023-10-05 16:29:22 +02:00
Marvin Hagemeister 6598eb39a0 feat: support f-partial on buttons (#1867) 2023-10-05 13:53:51 +02:00
Marvin Hagemeister 51d00d20e0 fix: duplicate partial head tags (#1864) 2023-10-05 12:23:44 +02:00
Marvin Hagemeister b3a3bd1069 feat: add support for partial <head> merging (#1863) 2023-10-05 12:04:38 +02:00
Marvin Hagemeister fd4a2b99ef feat: Add types for partial attributes (#1862) 2023-10-05 11:02:47 +02:00
Marvin Hagemeister fd235e877c feat: only enable partials when attribute is set (#1861) 2023-10-05 10:47:37 +02:00
Marvin Hagemeister add696faeb feat: support scroll restoration for partials (#1858) 2023-10-05 10:00:56 +02:00
Marvin Hagemeister 9018024b7e feat: collect partials deeply from response (#1860) 2023-10-04 22:33:27 +02:00
Marvin Hagemeister 3b73449a93 fix: only render keyed comments when needed (#1859) 2023-10-04 22:07:06 +02:00
Marvin Hagemeister be1c15f8f3 fix: throw error when no partials found (#1853) 2023-10-04 15:38:43 +02:00
Marvin Hagemeister ea91687ea3 fix: active links outside partials not updated (#1852) 2023-10-04 15:07:27 +02:00
Marvin Hagemeister 3e1b78736d chore: potential race conditions in e2e tests (#1851) 2023-10-04 14:30:59 +02:00
Marvin Hagemeister f7000c3f53 fix: missing Component with async app + layout (#1848) 2023-10-04 14:10:11 +02:00
Marvin Hagemeister f2467229cc fix: use consistent partial attribute naming (#1847) 2023-10-04 12:35:29 +02:00
Marvin Hagemeister 5e7a7a6a8c fix: scoped npm: packages not working (#1841) 2023-10-02 20:50:03 +02:00
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 d638c526f5 fix: partial hash navigation causing loop (#1838) 2023-10-02 16:24:09 +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
Marvin Hagemeister 78606477ec fix: show marker confusion (#1823) 2023-09-26 11:54:36 +02:00
Marvin Hagemeister 5a47ffaf59 fix: conditional island children not rendered (#1822) 2023-09-26 08:48:26 +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