Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nitropack

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nitropack - npm Package Versions

1
11

2.6.0

Diff

Changelog

Source

v2.6.0

compare changes

🚀 Enhancements

  • storage: Default data storage for node and dev presets (#1352)
  • Support regexps in external options (#1388)
  • Support exportConditions and add worker default conditions (#1401)
  • event.waitUntil with cloudflare integration (#1421)
  • experimental.typescriptBundlerResolution flag (#1384)
  • Support ignore to ignore scanned files (#1430)
  • Allow ignoring public assets with ignore options (#945)
  • Add iis server preset (#1436)
  • Auto capture errors with nitroApp.captureError (#1463)
  • vercel: Enable streaming support out of the box (#1514)
  • Fully resolve type paths for auto-import declarations (#1528)
  • Add prerender:config, prerender:init and prerender:done hooks (#1519)
  • cache: Support cached event handlers with varies (#1184)
  • app: Support request, beforeResponse and afterResponse hooks (#1545)
  • Experimental composition api via useEvent() ans async context support (#1546)
  • prerenderer: Support for query links exploration (#1474)
  • cloudflare-pages: Add config to customize generated _routes.json (#1312)
  • firebase: Add support for 2nd generation functions (#1500)
  • externals: Resolve actual subpaths before guessing (#527)
  • externals: Support aliasing traced packages (#1553)
  • wasm: Support output esm imports (#1565)
  • Enable timing in debug mode (#1577)
  • prerender: Preserve prerendered asset content-type header (#1587)
  • externals: Improved output package.json (#1607)
  • firebase: Support renaming exported server function (#1377)
  • azure: Support custom configuration (#1344)
  • node-server: Support listening to unix sockets using NITRO_UNIX_SOCKET (#1201)
  • cloudflare-module, cloudflare-pages: Experimental dynamic imports (#1172)
  • cli: Support --preset and --minify/--no-minify args for build (#1621)
  • cli: Add listhen options for dev command (#1622)
  • Handle stream and Uint8Array for lambda presets (#1624)

🔥 Performance

  • Use fsLite driver for production data: storage (dd290763)
  • Use inline http-graceful-shoutdown to reduce externals (8053cca0)
  • Remove source-map-support as node supports --enable-source-maps (9ba8fe98)
  • Bundle runtime dependencies (#1554)
  • Use local fetch for proxy route rules (#1609)

🩹 Fixes

  • rollup: Replace globalThis.process. with process. (#1360)
  • types: Enable allowSyntheticDefaultImports option by default (#1383)
  • cache: Try to call event.waitUntil (#1422)
  • defineCachedFunction: Properly infer function type (#1423)
  • static: Safe decode path (#1459)
  • Split cookie headers (#1452)
  • deno-deploy: Treat all https:// modules as external (#1438)
  • cache: Call event.waitUntil on main resolver when expired (421d6255)
  • prerender: Skip redirects (#1448)
  • aws-lambda,netlify: Base64 encode binary responses (#1274)
  • app: Enable router preemptive mode (#1504)
  • vercel: Allow arbitrary function configuration (#1508)
  • Use relative paths in tsconfig.json (#1518)
  • prerender: Free up memory after each route is written to the disk (#1536)
  • prerender: Call prerender:route before freeing up memory (#1537)
  • prerender: Only match href attribute after whitespace (#1530)
  • externals: Absolute paths are inlined (#1429)
  • openapi: Merge handlers with same route and different method (#1497)
  • prerender: Exclude encoded href attributes from link extraction (#1485)
  • externals: Increase score for npm package name patterns to avoid breaking changes (#1548)
  • deno-deploy: Decode static asset path before reading from filesystem (#1494)
  • Remove non-standard module export condition (#1559)
  • externals: Trace externals with their commonjs / esm status (#1562)
  • Use relative paths in generated tsconfig (#1572)
  • app: Use event.path instead of event.url (41a76c0f)
  • cache: Don't use _originalPath (#1576)
  • types: Use relative type path to nitro #internal/nitro (#1584)
  • Disable sourcemap minify for dev (e38f3586)
  • Use relative source map paths and add test (#1582)
  • pkg: Remove node 14 from supported engines (#1585)
  • prerender: Use decoded asset id to access prerendered asset header overrides (#1588)
  • Add consola/core alias (#1591)
  • vercel,netlify: Don't deprecate swr when cache: false (#1603)
  • build: Workaround bun's difference in function.toString() (#1606)
  • firebase: Ignore fsevent dependency (#1610)
  • Directly pass localFetch to route rules handler (#1611)
  • stormkit: Properly send buffer responses (#1616)
  • Add parent node_modules of nitro to modules dir for pnpm compat (#1618)
  • deno-server: Fix injections and enable back tests (#1625)

💅 Refactors

  • cloudflare: Use wrangler deploy instead of publish (#1372)
  • cloudflare: Use wrangler deploy in more places (#1393)
  • Add internal types for public assets (#1460)
  • prerender: Improve console formatting for failed routes (#1471)
  • Reduce usage of event.node.req (#1511)
  • Reduce usage of event.node.res (#1513)
  • timing: Hide debug logs with 0ms (8a44d19c)
  • firebase: Update generated package.json (#1608)
  • Migrate from http-proxy to unjs/httpxy (#1623)
  • Simplify normalizeLambdaOutgoingBody (58b4853b)
  • Expose body type for lambda presets (e5f095d6)

📖 Documentation

  • vercel: Add note about top level api/ directory (#1386)
  • Upgrade Docus (26dd16a0)
  • Update nitro (1a14a312)
  • Fix crawler error (c5e53cc8)
  • Update (03540d98)
  • Add nitro plugins examples (#1403)
  • Add custom preset instructions (#1409)
  • aws: Add note about inlining dynamic chunks (#650)
  • Fixed typo of the word discussions (#1433)
  • Fix typo (#1446)
  • Use defineEventHandler instead of eventHandler (#1442)
  • Remove auto-imported defineNitroConfig (#1441)
  • Add utils directory (#1451)
  • storage: Add runtime storage configuration examples (#1456)
  • Prefer snake_case for preset names (#1499)
  • routing: Add middleware section (#1307)
  • plugins: Add runtime hooks section (#1521)
  • config: Add runtime config and environment variables section (#1550)
  • firebase: Improve docs (#1556)
  • cloudflare: Add environment variables instructions (#1547)

📦 Build

🏡 Chore

✅ Tests

  • Improve external modules test (#1428)
  • Run tests even if not serveStatic (#1590)
  • Add tests for environment variables and runtime config overrides (#1549)
  • Fix netlify tests (880c20e4)
  • netlify: Run after (8a6ed77b)
  • Fix netlify dirs (8c7ca39d)

🤖 CI

  • Use conventional commit message for autofix (#1501)
  • Use h3-nightly@latest for edge releases (#1563)
  • Avoid installing with edge dependency changes (c431b719)

❤️ Contributors

pi0
published 2.5.2 •

Changelog

Source

v2.5.2

compare changes

🩹 Fixes

  • Add envPrefix to runtimeConfig.nitro types (#1336)
  • prerender: Allow to fetch static files (#1340)
  • options: Default target to static when static override is set (#1342)
  • Correct default node-server target (7976318)
  • vercel, netlify: Always check nativeSWR future flag (ccebe4e)
  • vercel, netlify: Handle boolean values for route rule deprecation (dfd8bbd)
  • Dedup unstorage dependency and use subpath alias (#1164)
  • dev: Ensure socket path is accessible (#1115)
  • Type event.$fetch and event.fetch (#1343)
  • Allow configuring esbuild transform plugin (#1347)

📖 Documentation

  • Add reference to install azure functions core tools to the swa section (#1339)

🏡 Chore

❤️ Contributors

pi0
published 2.5.1 •

Changelog

Source

v2.5.1

compare changes

📖 Documentation

  • Fix typo in Flightcontrol deployment option (#1332)

📦 Build

  • Avoid doubly-bundling runtime types (#1334)

🌊 Types

  • Avoid overriding app runtime config namespace (#1333)

❤️ Contributors

pi0
published 2.5.0 •

Changelog

Source

v2.5.0

compare changes

🚀 Enhancements

  • Allow customising generated tsConfig (#1266)
  • Type useRuntimeConfig with NitroRuntimeConfig (#1311)
  • Type nitro app runtime hooks (#1316)
  • Add cloudflare-pages-static preset (#1310)
  • Add experimental deno-server preset (#592)
  • Add flightcontrol preset (#970, #1250)
  • Support jsx and tsx out of the box (#1303)
  • Add support for failOnError (#1294)
  • UseStorage generic support (#1279)
  • Provide static process.* and import.meta.* build flags (#1331)

🩹 Fixes

  • bun: Resolve internal dependencies with bun export condition (#1313)
  • deno: Support environment variables (88b4e11)
  • Respect static flag when auto detecting preset (#1321)
  • prerenderer: Don't inherit static config (#1324)
  • vercel: Add check for index route rule (#1290)
  • Use event.handled guard before sending direct responses (#1326)
  • Import NitroRuntimeHooks from runtime dir (#1328)
  • Generate types for #imports (#1329)

📖 Documentation

  • Update docus version (848c86a)
  • Update cloudflare-pages preset (#1304)
  • Add an example for devHandlers config (#1295)

🏡 Chore

❤️ Contributors

pi0
published 2.4.1 •

pi0
published 2.4.0 •

Changelog

Source

v2.4.0

compare changes

🚀 Enhancements

  • Add cloudflare module worker support (#681)
  • vercel, netlify: Introduce isr route rule (#1124)
  • Add static preset (#1127)
  • Add vercel-static and netlify-static presets (#1073)
  • Add github-pages preset (#1133)
  • Pass resolved config to rollup:before hook (#1160)
  • Config reload support for nitro dev (#1173)
  • Config hmr support for routeRules and rutimeConfig (#1175)
  • Support dynamic app config and runtime config (#1154)
  • Experimental /_nitro/openapi.json and /_nitro/swagger for dev mode (#1162)
  • vercel: Add support for specifying edge regions (#1192)
  • future.nativeSWR (#1212)

🔥 Performance

  • Export defineNitroConfig from nitro/config (#1174)

🩹 Fixes

  • Separate typesDir from tsConfigDir (#1146)
  • cloudflare: Expose env from module context (#1147)
  • proxy: Append request query params for single proxy route rules (#1163)
  • vercel, netlify: Keep default behavior for static and swr to isr mapping (#1155)
  • Apply chunkFileNames on windows (#1189)
  • pkg: Allow installing on node v20 and above (#1204)

💅 Refactors

  • Rename build option to static (#1144)
  • cli: Migrate to citty (#1157)
  • Move swagger/openapi behind experimental flag (2079cab)

📖 Documentation

  • Fix typo (#1131)
  • Update serverAssets example (#1156)
  • Add edge releases channel (2793f51)
  • get-started: H2 instead of h3 (ff3964e)
  • routing: Add route rules (46740e6)
  • routing: Add missing import (30675d4)
  • Fix syntax issue in guide > storage (#1180)
  • Update (1e5bb86)
  • Fix typo (#1185)
  • Fix typo (#1190)
  • vercel: Add vercel kv storage section (#1210)
  • Update branding (#1188)
  • Update vercel-storage (ffff9db)

🏡 Chore

✅ Tests

❤️ Contributors

pi0
published 2.3.3 •

Changelog

Source

v2.3.3

compare changes

🚀 Enhancements

  • Upgrade to consola v3 (prerelease) (50e9f8e)

🩹 Fixes

  • prerender: Show generated routes with error in logs (8e06f2e)
  • prerender: Respect output path from main preset (#1114)

📖 Documentation

  • Fix typos in storage and cache guides (#1086)
  • Use unjs logo (#1104)
  • Fix typo in cachedEventHandler options (#1110)
  • Use consistent quotes in the routeRules example (#1108)
  • Fix typo in server assets mount point (#1119)
  • Improve publicAssets config details (#1102)

🏡 Chore

  • doc: Fix small typo in plugin filename (#1081)
  • Update unenv and semver (363e2ea)
  • Update consola (5d77615)
  • Bump to consola v3 stable (ea5ea88)
  • Update dependencies (39d1f27)

❤️ Contributors

pi0
published 2.3.2 •

Changelog

Source

v2.3.2

compare changes

🩹 Fixes

  • Sanitize statusMessage of disallowed chars (#1057)
  • types: Sync vercel build config types (#1056)
  • azure: Support custom baseURL (#1062)
  • vercel-edge: Fix route generation (#1071)
  • Mark options.renderer as optional (#1069)
  • types: Make $Fetch types less complex (#1059)

💅 Refactors

  • Add type safety to auto-detected providers (#1072)

📖 Documentation

  • Fixed link path (#1053)
  • Fix typo (#1068)
  • routing: Add $fetch usage note (#1070)

❤️ Contributors

pi0
published 2.3.1 •

Changelog

Source

v2.3.1

compare changes

🩹 Fixes

  • types: Don't simplify type of serialized return (#1050)

🏡 Chore

❤️ Contributors

pi0
published 2.3.0 •

Changelog

Source

v2.3.0

compare changes

🚀 Enhancements

  • vercel: Add functions config (#976)
  • Add support for sourceMap values hidden and inline (#998)
  • lagon: Write .lagon/config.json on build (#996)
  • types: Type $fetch to match json serialization output (#1002)
  • Support base in useStorage(base?: string) and improve docs (#1012)
  • cloudflare-pages: Rewrite with module syntax (#1004)
  • Allow customising generated tsconfig path (#1021)
  • Support app config (#1022)

🩹 Fixes

  • cloudflare-pages: Only allow 100 rules combined (#973)
  • Only mock debug in production (#990)
  • Scan middleware and print tree list in ascending alphabetical order (#981)
  • externals: Correctly specify multiple external dependencies in package.json (#1013)
  • static: Use correct format for last modified (#1017)
  • cache: Remove rejected cache promise from pending list. (#995)
  • Expose useStorage with types (#1026)
  • prerender: Allow spaces in href value regex (#1030)
  • cache: Use stale value by default when swr is enabled (#1038)
  • Resolve types relative to custom tsconfig path (#1041)
  • Remove duplicate import in generated code (#1043)
  • types: Exclude non serializable options from route rules (#1047)

💅 Refactors

  • Use unimport built-in type gen for dirs (#994)
  • Split out api types (#1027)

📖 Documentation

  • Update to latest docus and various improvements (#975)
  • Up docus and add back ellipsis (38b1f34)
  • Remove tailwind module (b3b7e87)
  • lock: Update (7efa31f)
  • More improvements (#985)
  • Remove fluid layout (d83f2b6)
  • Update color (18674c5)
  • Add unjs icon in footer (6d36ceb)
  • Update docus (5fcc127)
  • Add button to open on CodeSandBox (ad120ac)
  • Update deployment example for configuration (#972)
  • Update dependencies (c923fed)
  • cache: Improve documentation and cachedFunction default options (#1011)
  • Improve readme and getting started (94d95fa)
  • Fix on mobile long path (1d2f57e)
  • Improvements (f78619f)
  • Add prerender.ignore description (#1032)
  • Improve configuration page (554b358)
  • Improve plugins section (f36a6e0)
  • Update readme (c58a764)
  • Update homepage hero (b848e5a)
  • Update meta tags (70f00e5)
  • More improvements (#1039)
  • Update docus version (f31240b)
  • Upgrade docus (a6ce587)
  • deploy/workers: Fix typo of bundle (#1046)

🏡 Chore

❤️ Contributors

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc