nitropack
Advanced tools
Changelog
0.1.0 (2022-04-07)
app.baseURL
runtime config for framework agnostic usagenitroApp
to entriesbaseURL
optionengines.node
field and node.js version check (#1197)@nuxt/meta
module for head rendering (#179) (1a76f60)h3
auto imports preset (0661fa9)nitro.close()
(c1560d0)engines.node
field and node.js version check (#1197) (a0ff933)process.dev
(#16) (68fc5b3)runtime/client
for $fetch polyfill (#11) (e241e3d)NITRO_
or an alternative specified with NITRO_ENV_PREFIX_ALT
(a27d529)useConfig
and useStorage
(5b2c950)nitro.logger
to control verbosity (a91fd52)#storage
and #assets
types (#1377) (cf78609)baseURL
option (913f3d8)defineNuxtConfig
from nuxt3
and @nuxt/bridge
(#669) (8a02ab8)useNitroApp
to access nitroApp (3d82df1).nitro/types/tsconfig.json
(9494520)_vfs
(#362) (edd67c5).output/server/node_modules
(#2382) (acb0033)node_modules
as middleware (#2826) (75d2674)nuxi preview
command for local testing (#2162) (b60a23a)useFetch
(#721) (9b76832)#nitro
index (3dc2ee6)NITRO_APP_BASE_URL
for build-time (42ff5a3)ssr: false
(#351) (ddc045e)@nuxt/design
(#322) (b9a7033)_interopDefault potential cjs files (d873169)
404 handling for static assets (c0cb35d)
add node_modules
from cwd to nodeResolve (035a6e6)
add critical css (37f6d79)
add default route when generating code (df694ea)
add default value for assets.dirs (4d7c6ac)
add default value for buildDir and generateDir (565a27c)
add generate.routes and disable crawler (ec89296)
add hack for encoding (20b8f22)
add missing default for devHandlers
(43b2f41)
add nitro client plugin ($fetch support) (#223) (93213f4), closes #213
add temp fix for browser (d197716)
allow matching dynamic page routes (88d0676)
allow not overriding env, and allow disabling prefix (#40) (1d6a802)
allow numbers in dynamic webpack chunk names (#125) (3bfa916)
allow use of nuxt3 in non-wsl windows environment (#308) (da6da9c)
always mock generic dependencies (f210304)
automock: don't externalize .ts imports (077bf13)
avoid replaceAll
for platform compatibility (3cde549)
avoid closing on dev command (b6cca1a)
avoid overriding hooks (d722e9f)
avoid reloading worker when entry not exists (5d3ca2f)
await for reload process before responding (f441b30)
bring back nuxt3 support (a87c2a5)
browser: 400.html ~> 404.html (7c68add)
clone config and preserve overrides for prerender instance (08c65b8)
cloudflare and polyfill (dc967bc)
cloudflare, lambda: preserve query parameters in url (#155) (b59986d)
compat: add template variables for compat module (#162) (126920a)
compat: cannot read property setLegacyMiddleware of undefined (#82) (29b368e)
compat: enforce nuxt generate for static target (#148) (8e0b095)
components: augment 'vue' module rather than overwriting (#305) (c631f11)
default value for template path (b334942)
dep: pin esbuild to 0.10.x due to module breaking changes (879a5bc)
deps: update h3
to 0.5.2
(ce14f33)
deps: update dependency ohmyfetch to ^0.4.4 (#1705) (27f238f)
dev: add conditional check for removeAllListeners
call (6529f60)
dev: handle unhandledRejection and uncaughtException to avoid failing worker state (4e8a661)
dev: use localhost for emitted host in port mode (eb6ebdb)
disable cleanTargetDir for vercel (9d8a95b)
disable external tracing for local preset (0d7d102)
do not inline whole rootDir
(0929bcd)
don't set _registeredComponents (89b1958)
enable vue-resolution workaround (17c3c60)
ensure builds are relative to buildDir (ba687f8)
exec require before return (a3fb537)
expose types (66b4973)
extend routes from serverless.static (75ae176)
externals: handle non pkg paths (0831bac)
externals: use normalizeid for external files (b9db0e9)
externals: windows compatibility with parseNodeModulePath (935f39a)
fix _interopDefault implementation (faa7245)
fix error template formatting (545ccf6)
fix issues with router.base support (5a7e0fa)
fix mocks and disable buffer since is unnecessary (ecdf2cd)
fix preview and deploy command info (1c1bf04)
fix worker polyfill by adding performance (a30fed4)
handle if serverless is not set in config (f055ddd)
handle undefined error stack in production (39ef2b3)
hide rollup circular and eval (e5f9900)
host ~> hostname (7c663c2)
ignore close listeners (ae22387)
ignore resolving vue alias when not found (5f12eaa)
improve externals handling (a5262e4)
improve prerender logs (32ff5e4)
issues with externals outside of rootDir (a7cbfbe)
lazy is true by default (04d28b9)
less verbose logs when testing (00177d0)
load webpack modules synchronously with require
(#104) (c20e813)
move hrtime polyfill to timing plugin (fe9d073)
netlify: update output templates (4f46310)
nitro, nuxi: add runtimeConfig types (for #config
and useRuntimeConfig()
) (#1783) (486be51)
nitro: add back compat entry (70bf183)
nitro: add body + body prepended scripts to template (#154) (f348588)
nitro: add missing kit dependency (dfa3d8d)
nitro: add temporary workarouind for ufo resolution in nuxt2 (e5ecf6b)
nitro: allow inlining subpath of externals (#2759) (30023f7)
nitro: avoid using fs/promises (bd25e87)
nitro: correct vercel fs api static directory (#488) (cd0616e)
nitro: detect routes and middleware starting with dots (#2771) (9b3d6c2)
nitro: disable moduleSideEffects
by default (#377) (ec207e9)
nitro: do not modify event.request
for worker entries (#1279) (cc9a4cd)
nitro: do not overwrite output files for browser-preset (#516) (69fd546)
nitro: ensure that nitro runtime is not externalized (#121) (d78237d)
nitro: exclude rootDir
from externals and reinstate automock warning (#66) (5d9344f)
nitro: export named function rather than default export (#490) (3ade210)
nitro: firebase package.json is not exported (#809) (31454ea)
nitro: fix externals regex for scoped packages (349c1d0), closes #238
nitro: generate netlify _redirects
in public (#298) (2534dc6)
nitro: handle esm imports from cjs files (8decd90)
nitro: handle static assets and api routes for service-worker
preset (#518) (9808f05)
nitro: handle terminating uninitialized worker (9132a67)
nitro: import rollup as cjs (1d9602c)
nitro: inject entryURL at beginning of entrypoint (#468) (cb3affa)
nitro: modify contents rather than compiled , remove template compiled
(#1154) (5d7740c)
nitro: narrow replace call for template name (#1626) (4e0f597)
nitro: omit /index
from generated api urls (#1371) (f1a17f2)
nitro: only serve placeholders for publicPath
(1cf0844)
nitro: ovrride by user input (306b96f)
nitro: pass query params to localCall in service worker (#530) (2af7359)
nitro: pass req, res to ssr context (resolves #39) (0e651d8)
nitro: pass sourcemap option through to rollup plugins (#2387) (2122f5c)
nitro: read body stream on post requests for service-worker
(#527) (cf19a6a)
nitro: resolve alias for serverMiddleware (79ef2fb)
nitro: resolve default export for assets (60c1b6b)
nitro: resolve firebase package versions with pkg-types
(#1490) (971a9dd)
nitro: respect fs structure for traced files (#2107) (e3faaed)
nitro: revert to main rollup import (closes #1445) (5056059)
nitro: set makeAbsoluteExternalsRelative
to false (resolves #160) (df28558)
nitro: set content-type header before html 404 (#2301) (68ab584)
nitro: show all ERR_MODULE_NOT_FOUND errors (#561) (1a98e26)
nitro: skip copying symlinks and directories (#1510) (5a0d1a1)
nitro: sort middleware from long to short (340bc61)
nitro: support ~/@ aliases and explicitly externalize buildDir (242207a)
nitro: support vue-meta (compat) (f0cd329)
nitro: terminate active worker before replacing (#1302) (1b93a42)
nitro: type inference for api routes returning promise (#1483) (3f5bba1)
nitro: update dot-prop import (81f51d5)
nitro: update firebase preset to handle mjs output (#1360) (7797383)
nitro: use generate:page
hook for browser to inject sw (134431b), closes #522
nitro: use file url for #build
alias in windows dev (#469) (d4a9f23)
nitro: use globalThis (5a0d9e7)
nitro: use nuxt2 compatible template (#268) (48e2dfa), closes #265
nitro: watch .mjs and .cjs extensions (closes #352) (cab8faa)
nitro: workaround for vue2 global style injection (f1b74d0)
nuxt3: provide NuxtWelcome
component from design (#745) (2d13716)
only generate .sls directory when needed (de51381)
pkg: downgrade node version to 14.16.x due to stackblitz issue (18d2a90)
pkg: downgrade node version to 14.17.x due to codesandbox issue (f00f9d4)
pkg: expose defineNitroPreset
(4846247)
pkg: support node 17.x in the engines field (#1443) (3416d8c)
preset types (5574f7e)
promisify: false support (768081b)
properly resolve runtimeDir from chunks (9adfacd)
remove extra console.log
(82c2767)
remove runtime/ prefix (0be4ba1)
remove windows workaround for now (4af4f32)
render: don't override statusCode (f166cfa)
resolve chunksDirName based on outNames dirname (vercel) (e82cfcc)
resolve runtime provided dependencies (3e9e27e)
resolveMiddleware: remove legacy handler and path props (1de3717)
rollup: dirnames not generate a sourcemap for the transformation (#83) (a8c02df)
schema: extend NuxtOptions
for nitro & bridge types (#2131) (4d8e184)
schema: handle null/undefined values in runtimeConfig
(#2456) (7ad2764)
serve public assets in production (2dfad65)
service-worker: check for asset urls (aab6fbf)
silent proxy errors (63a083c)
skip static dir if not exists (3b87c28)
small bug fixes (26046ee)
static asset handling with leading slash (2303c7d)
storage: replace non-word characters with underscore (#542) (01628ae)
support both targets by adding prepare step (36bfc43)
temporary disable auto mock plugin (414dfb6)
timing plugin helper import (d9b28da), closes nuxt/framework#3399
timing: include helpers only in entries (fe5a33e)
update service-worker
preset (ce3aaf6)
update changed mw.path => route (359a959)
update h3 for static asset handling (2861c61)
update node-resolve options (e33b658)
update runtime/config (b979f74)
update service-worker entry (5874d01)
use allowlist approach to chunk name (#101) (42f2269), closes #93
use connect for dev server due to loading-screen issue (67d78c8)
use dist for netlify as default (d4d5285)
use globalThis for client plugin (34dbae8)
use html.contents (97d0ebe)
use native fetch when node is disabled (4271c65)
use nitro plugin with explicit mjs extension (78135ac)
use output/public for prerenderer (70c0866)
use same global to inject process.hrtime (0303912)
vercel: add /index
suffix to dst (601b413)
vercel: add api prefix (1fc0d9a)
vercel: add missing node segment (b68b4c9)
vercel: entry should export handle as default (c8b1346)
vercel: generate to config/routes.json (f9e35f6)
vercel: remove index.js from serverDir (9ba1281)
workaround for vue
3.2.18+ esm bundle issue and revert #566 (#578) (#578) (e60d22a)
worker: smaller and working hrtime polyfill (2f60ea4)
worker: wrap polyfill to iife (3049212)
expose nitroApp
to entries (4aa955f)
simplify storage options (cffb900)
use app.baseURL
runtime config for framework agnostic usage (59196a6)