- Server functions can return not_found: true to render the 404 page with status 404. - Page components and window.__PAGE_PROPS__ (and HMR updates) only get props, query, url and error. response_options, redirect, cache settings and res_transform stay on the server, so cookies and private headers no longer end up in the HTML. BunextPageProps is narrowed to match (breaking for code that read server-only fields from component props). - response_options headers go through a Headers object, so repeated headers such as several Set-Cookie survive. - Redirects: status_code wins over permanent; response_options headers and res_transform apply to redirects too. - Gzip for compressible text responses; compress: false to turn it off. - Files the router matches but never bundles (.server.ts, __root, excluded paths and directories) return 404 instead of looping through dev rebuild retries. - Missing public files return 404 rather than 403, so dotted page paths like /users/john.doe fall through to pages again. - importFresh detects rewrites within the filesystem's mtime granularity. - README: self-hosted React (not esm.sh), snake_case option names, static file serving, cache headers, the new options. Co-Authored-By: Claude Opus 5.5 <[email protected]>
67 lines
1.9 KiB
JSON
67 lines
1.9 KiB
JSON
{
|
|
"name": "@moduletrace/bunext",
|
|
"version": "1.4.0",
|
|
"main": "dist/index.js",
|
|
"module": "index.ts",
|
|
"dependencies": {
|
|
"@tailwindcss/postcss": "^4.3.3",
|
|
"@types/bun": "1.3.14",
|
|
"@types/node": "^24.10.0",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"bun-plugin-tailwind": "^0.1.2",
|
|
"chalk": "^5.6.2",
|
|
"chokidar": "^5.0.0",
|
|
"commander": "^14.0.2",
|
|
"esbuild": "^0.28.2",
|
|
"lightningcss-wasm": "^1.32.0",
|
|
"lodash": "^4.18.1",
|
|
"ora": "^9.0.0",
|
|
"postcss": "^8.5.30",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0",
|
|
"tailwindcss": "^4.3.3",
|
|
"typescript": "^5.0.0",
|
|
"uuid": "^14.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/dom": "^10.4.1",
|
|
"@types/chokidar": "^2.1.7",
|
|
"@types/lodash": "^4.17.26",
|
|
"@types/uuid": "^11.0.0",
|
|
"happy-dom": "^20.14.6"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./types": {
|
|
"types": "./dist/types/index.d.ts",
|
|
"import": "./dist/types/index.js",
|
|
"default": "./dist/types/index.js"
|
|
}
|
|
},
|
|
"bin": {
|
|
"bunext": "dist/commands/index.js"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md",
|
|
"package.json"
|
|
],
|
|
"publishConfig": {
|
|
"registry": "https://npm.pkg.github.com"
|
|
},
|
|
"scripts": {
|
|
"dev": "tsc --watch",
|
|
"git:push": "tsc --noEmit && tsc && git add . && git commit -m 'Update init. Remove uneccessary directores creation' && git push",
|
|
"compile": "bun build ./src/commands/index.ts --compile --outfile bin/bunext --minify",
|
|
"build": "tsc",
|
|
"test": "bun test --isolate --max-concurrency=1"
|
|
},
|
|
"type": "module",
|
|
"types": "dist/index.d.ts"
|
|
}
|