Closed github-actions[bot] closed 1 week ago
Latest commit: |
79f12d9
|
Status: | ✅ Deploy successful! |
Preview URL: | https://cbda88de.domco.pages.dev |
Branch Preview URL: | https://changeset-release-main.domco.pages.dev |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
domco | ✅ Ready (Inspect) | Visit Preview | Sep 18, 2024 10:53am | |
domco-tester | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 18, 2024 10:53am |
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
create-domco@0.2.0
Minor Changes
domco@0.13.0
Minor Changes
d50685c: Server framework agnostic
This project had a lot of overlap with HonoX, HonoX should be the default if you are wanting all of the features Hono provides like client components. This update removes the dependency on Hono and making the library framework agnostic. Hono can still be easily used with domco (see below).
This makes domco have no dependencies other than Vite. You can now build your app with vanilla JS without any external libraries. You can now use any server framework like Hono that provides a function that handles a web
Request
and returns aResponse
. This update also simplifies domco's API and refactors much of the codebase to make it smaller and builds faster.Overview of Changes
+server
renamed to+app
+client
renamed to+script
app
as the default export, you now must exportapp.fetch
as a namedhandler
export.page
,client
, andserver
context variables.page
is replaced with theclient:page
virtual module.script
is replaced with theclient:script
virtual module.server
context variable is removed. This is better handled by the user - perhaps with libraries likeofetch
.tags
imported fromclient:script
are now just strings, so you'll need to pass them throughhono/html
-raw
function to pass them into a JSX template if you were using them directly in Hono.+server
entry points are removed in favor of just onesrc/server/+app
entry. Note this is located withinsrc/server/
now instead of directly insrc/
.+setup
- since domco no longer mounts routes, user can control the entire lifecycle through thehandler
.handler
fromdist/server/app.js
instead of thecreateApp
export.src/client/
is included in the app if not imported into the server entry.domco/env
.Examples
Vanilla
Hono - Migrate from 0.12