create-waku
Advanced tools
Comparing version 0.10.7 to 0.10.8
{ | ||
"name": "create-waku", | ||
"version": "0.10.7", | ||
"version": "0.10.8", | ||
"author": "Daishi Kato", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -15,7 +15,7 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"autoprefixer": "10.4.20", | ||
@@ -22,0 +22,0 @@ "tailwindcss": "3.4.16", |
@@ -15,3 +15,3 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
@@ -18,0 +18,0 @@ "devDependencies": { |
@@ -15,7 +15,7 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"autoprefixer": "10.4.20", | ||
@@ -22,0 +22,0 @@ "tailwindcss": "3.4.16", |
@@ -15,9 +15,9 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"typescript": "5.7.2" | ||
} | ||
} |
@@ -15,9 +15,9 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"typescript": "5.7.2" | ||
} | ||
} |
@@ -15,7 +15,7 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"autoprefixer": "10.4.20", | ||
@@ -22,0 +22,0 @@ "tailwindcss": "3.4.16", |
/// <reference types="vite/client" /> | ||
import { unstable_defineEntries as defineEntries } from 'waku/minimal/server'; | ||
import { fsRouter } from 'waku/router/server'; | ||
export default { | ||
...fsRouter(import.meta.url, (file) => | ||
import.meta.glob('./pages/**/*.tsx')[`./pages/${file}`]?.(), | ||
), | ||
getSsrConfig: undefined, | ||
}; | ||
const router = fsRouter(import.meta.url, (file) => | ||
import.meta.glob('./pages/**/*.tsx')[`./pages/${file}`]?.(), | ||
); | ||
export default defineEntries({ | ||
handleRequest: async (input, utils) => { | ||
if (input.type === 'custom') { | ||
return null; // no ssr | ||
} | ||
return router.handleRequest(input, utils); | ||
}, | ||
getBuildConfig: (utils) => { | ||
return router.getBuildConfig(utils); | ||
}, | ||
}); |
@@ -6,5 +6,5 @@ /** @type {import('waku/config').Config} */ | ||
import('waku/middleware/dev-server'), | ||
import('waku/middleware/rsc'), | ||
import('waku/middleware/handler'), | ||
import('waku/middleware/fallback'), | ||
], | ||
}; |
@@ -15,7 +15,7 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"server-only": "0.0.1", | ||
@@ -22,0 +22,0 @@ "typescript": "5.7.2" |
@@ -15,9 +15,9 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"typescript": "5.7.2" | ||
} | ||
} |
@@ -15,9 +15,9 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"typescript": "5.7.2" | ||
} | ||
} |
@@ -15,4 +15,4 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { new_defineEntries } from 'waku/minimal/server'; | ||
import { unstable_defineEntries as defineEntries } from 'waku/minimal/server'; | ||
import { Slot } from 'waku/minimal/client'; | ||
@@ -6,4 +6,4 @@ | ||
export default new_defineEntries({ | ||
unstable_handleRequest: async (input, { renderRsc, renderHtml }) => { | ||
export default defineEntries({ | ||
handleRequest: async (input, { renderRsc, renderHtml }) => { | ||
if (input.type === 'component') { | ||
@@ -16,5 +16,3 @@ return renderRsc({ App: <App name={input.rscPath || 'Waku'} /> }); | ||
}, | ||
unstable_getBuildConfig: async () => [ | ||
{ pathSpec: [], entries: [{ rscPath: '' }] }, | ||
], | ||
getBuildConfig: async () => [{ pathSpec: [], entries: [{ rscPath: '' }] }], | ||
}); |
import { StrictMode } from 'react'; | ||
import { createRoot, hydrateRoot } from 'react-dom/client'; | ||
import { Root, Slot } from 'waku/client'; | ||
import { Root, Slot } from 'waku/minimal/client'; | ||
@@ -5,0 +5,0 @@ const rootElement = ( |
@@ -15,9 +15,9 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"typescript": "5.7.2" | ||
} | ||
} |
@@ -16,9 +16,9 @@ { | ||
"react-wrap-balancer": "1.1.1", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"typescript": "5.7.2" | ||
} | ||
} |
@@ -15,9 +15,9 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"typescript": "5.7.2" | ||
} | ||
} |
@@ -15,9 +15,9 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"typescript": "5.7.2" | ||
} | ||
} |
@@ -18,8 +18,8 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@vanilla-extract/vite-plugin": "4.0.10", | ||
"@types/react-dom": "19.0.2", | ||
"@vanilla-extract/vite-plugin": "4.0.18", | ||
"typescript": "5.7.2", | ||
@@ -26,0 +26,0 @@ "vite": "5.4.10", |
@@ -8,5 +8,5 @@ import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin'; | ||
{ | ||
name: 'hack-css-plugin-why-do-we-need-this-FIXME', | ||
name: 'hack-css-plugin-needed-for-stylex-dev-FIXME', | ||
resolveId(id: string) { | ||
if (id.endsWith('.css')) { | ||
if (id.endsWith('.css') && !id.endsWith('.vanilla.css')) { | ||
return id; | ||
@@ -13,0 +13,0 @@ } |
@@ -13,15 +13,15 @@ { | ||
"cookie": "1.0.2", | ||
"hono": "4.6.13", | ||
"hono": "4.6.14", | ||
"react": "19.0.0", | ||
"react-dom": "19.0.0", | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/cookie": "1.0.0", | ||
"@types/node": "22.10.1", | ||
"@types/node": "22.10.2", | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"typescript": "5.7.2" | ||
} | ||
} |
@@ -15,9 +15,9 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"typescript": "5.7.2" | ||
} | ||
} |
@@ -15,7 +15,7 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"typescript": "5.7.2", | ||
@@ -22,0 +22,0 @@ "vite": "5.4.10", |
@@ -16,7 +16,7 @@ { | ||
"react-tweet": "^3.2.1", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"autoprefixer": "10.4.20", | ||
@@ -23,0 +23,0 @@ "tailwindcss": "3.4.16", |
@@ -15,7 +15,7 @@ { | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8" | ||
"waku": "0.21.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"server-only": "0.0.1", | ||
@@ -22,0 +22,0 @@ "typescript": "5.7.2" |
@@ -13,13 +13,13 @@ { | ||
"dependencies": { | ||
"hono": "4.6.13", | ||
"hono": "4.6.14", | ||
"react": "19.0.0", | ||
"react-dom": "19.0.0", | ||
"react-server-dom-webpack": "19.0.0", | ||
"waku": "0.21.8", | ||
"wrangler": "3.93.0" | ||
"waku": "0.21.9", | ||
"wrangler": "3.95.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "22.10.1", | ||
"@types/node": "22.10.2", | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"@types/react-dom": "19.0.2", | ||
"miniflare": "3.20241205.0", | ||
@@ -26,0 +26,0 @@ "typescript": "5.7.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
628556
263
13411