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

nitropack

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nitropack - npm Package Versions

23
11

2.10.3

Diff

Changelog

Source

v2.10.3

compare changes

🩹 Fixes

  • Allow adding custom Vary to static assets handler (#2835)
  • netlify: Only include env polyfill in netlify-edge (#2851)
  • Scan env specific handlers without method in their name (#2852)
  • config: Add back default storage mounts (#2853)

📖 Documentation

  • cloudflare: Fix typo (#2849)

🌊 Types

  • cache: Resolved value is not nullable (#2848)

❤️ Contributors

pi0
published 2.10.2 •

Changelog

Source

v2.10.2

compare changes

🩹 Fixes

  • rollup: Pass options to resolve (#2842)

📖 Documentation

  • cloudflare: Update cloudflare-module (#2831)
  • Update nightly and experimental banners (9ff37139)

❤️ Contributors

pi0
published 2.10.1 •

Changelog

Source

v2.10.1

compare changes

🩹 Fixes

  • imports: Use explicit import for useDatabase (#2837)
  • rollup: Check raw extensions against resolved id (#2838)
  • imports: Use explicit imports (#2839)
  • Update node_cluster entry name (#2840)

❤️ Contributors

pi0
published 2.10.0 •

Changelog

Source

v2.10.0

compare changes

🚀 Enhancements

  • Generate types for runtime config (#2306)
  • serverAssets: Support ignore option (#2302)
  • Expose getRouteRulesForPath from nitro runtime (#2238)
  • openapi: Support configuration via openapi (#2299)
  • Environment specific event handlers (#2272)
  • Experimental defineRouteMeta (#2102)
  • cloudflare-pages: Generate wrangler.toml (#2353)
  • Allow customizing apiBaseURL, apiDir and routesDir (#1763)
  • aws-lambda: Experimental streaming support (#2412)
  • providers: Add gitlab-pages static provider (#2420)
  • netlify: Experimental support v2 functions ISR via targeted cache-control headers (#2406)
  • Add compatibility date support (#2511)
  • cloudflare-module: Support cloudflare:email and cloudflare:queue hooks (#2487)
  • defineCachedEventHandler: Add event.context.cache (#2519)
  • core: Warn if runtime config is not serializable (#2542)
  • netlify: Use new durable cache-control directive for isr rule (#2571)
  • open-api: Production mode (#2570)
  • deno-server: Use output node_modules for start task (#2687)
  • Add genezio preset (#2637)
  • Add zerops preset (#2698)
  • dev-server: Redirect requsts without base url (#2713)
  • firebase: Upgrade default runtime to node 20 (#2654)
  • Upgrade to jiti v2 (#2742)
  • raw: Add .sql to raw file extensions (#2745)
  • scan: Route groups (#2664)
  • renderer: Add render:before hook (#2770)
  • Add pdf and wasm to compressible mime types (#2766)
  • ws: Upgrade crossws to 0.3.x (#2776)
  • vercel: Allow fine-grained isr config via route rules (#2780)
  • Update db0 to v0.2 (3d5216be)
  • cloudflare-module: Expose all handlers as runtime hooks (#2795)
  • cloudflare-module: Use new workers static assets (#2800)
  • Experimental cloudflare-durable preset (#2801)
  • aws-lambda: Add streaming support to main preset (#2786)
  • Include preset config in .output/nitro.json (#2807)
  • cache: Set ttl for native expiration (with swr disabled) (#2783)

🔥 Performance

  • Limit open files in generateFSTree (#2458)
  • netlify-legacy: Exclude static paths from server handler (#2823)
  • netlify, netlify-edge: Exclude static paths from server handler (#2822)

🩹 Fixes

  • github-pages: Prerender / by default (#2334)
  • deno-server: Always inject process from node:process (#2372)
  • deno-server: Explicitly remove cert/key from options if either is not set (#2373)
  • Deduplicate plugins (#2391)
  • iis: Deep merge configs (#2358)
  • externals: Compare package paths against normalized id (#2371)
  • azure: Correctly handle maxAge cookie option (#2400)
  • Add .tsx and .jsx to node-resolve extensions (#2398)
  • Lower-case accepted handler method (#2382)
  • Set compilerOptions.noEmit to avoid tsconfig.json warning (#2402)
  • prerender: Only try to add / after prerender:routes hook (#2348)
  • azure: Correctly handle maxAge cookie option (#2403)
  • aws-lambda-streaming: Fix global lambda import pointing to wrong (#2422)
  • netlify: Match ISR route rules when path has a query string (#2440)
  • preset-iis: Parse without explicitArray to allow merging web.config (#2457)
  • Pass custom entry filename when resolving prerenderer (#2461)
  • vercel: Support custom baseURL (#2464)
  • Use relative paths in nitro-config.d.ts (#2471)
  • netlify: Added missing quotes in utils (#2472)
  • Avoid named exports from package.json (e6097ed7)
  • cloudflare-pages: Remove .html extension from _routes.json (#2498)
  • More compatibility for import from nitropack/runtime/* (#2501)
  • build: Correctly watch custom apiDir and routesDir (#2502)
  • public-assets: Do not shadow paths that share prefix (#2516)
  • core: Resolve modules with esm compatibility (#2514)
  • prerender: Extract links from explicit html routes (#2517)
  • Upate cli preset with esm module format (#2539)
  • Make sure nitro runtime goes to one chunk (#2547)
  • types: Infer types correctly when method is omitted (#2551)
  • renderer: Check full path for /favicon.ico placeholder (#2553)
  • netlify: Ensure preview command is correct (#2561)
  • Backward compatibility types for v2 (#2563)
  • handler-meta: Check for .name with undefined value in ObjectExpression (#2565)
  • Hide unhandled error messages in prod (#2591)
  • prerender: Allow ignoring errors in prerender:generate hook (#2610)
  • Only hide message of unhandled errors in prod (#2619)
  • prerender: Skip protocol relative links (#2661)
  • Ensure legacy runtime config types are populated (#2724)
  • Ensure legacy hook types are populated (#2725)
  • Do not generate runtime config types with external framework (#2732)
  • prerender: Log error stack traces (#2720)
  • cache: Use top level function to avoid rollup chunk ordering issues (#2741)
  • cli: Respect custom buildDir option for tasks subcommand (#2635)
  • Initialize nitro app before plugins run (#1906)
  • cloudflare-module: Use correct types for email and queue events/hooks (#2711)
  • azure-functions: Follow symlinks in zip bundle (#2769)
  • Use jiti with { default: true } for importing modules (d77288c2)
  • firebase: Validate custom serverFunctionName (#2773)
  • Add db0 and std-env to runtimeDependencies (a399e189)
  • error: Add cache-control: no-cache for 404 responses (#2793)
  • renderer: Check ctx.response (7a97b0a2)
  • cache: Catch error when getting cache entry (#2609, #2820)
  • cache: Try decode path (#2658)
  • cloudflare: Support custom baseURL (#2821)
  • Handle incompatible compatibility date for presets (#2828)

💅 Refactors

  • openapi: Update swagger-ui version to v5 for OpenAPI v3.1 support (#2343)
  • cloudflare-pages: Update root wrangler.toml in CI (#2355)
  • Strict typechecks (#2370)
  • Convert CapturedErrorContext to interface to allow type augmentation (#2393)
  • Overhaul presets structure (#2446)
  • Structure overhaul (#2473)
  • Remove dependency on /runtime/internal/* subpaths (#2524)
  • Migrate to colors from consola/utils (#2574)
  • Remove fs-extra dependency (#2743)
  • cache: Remove unnecessary nullish coalescing operator (#2608)
  • dev: Attach worker reload error as cause (#2651)
  • Improve type definitions for CacheOptions (#2700)
  • cloudflare-module: Extract reusable logic (#2799)

📖 Documentation

  • Remove duplicate option definition (#2339)
  • fetch: Unexpected spaces (#2368)
  • Correct env variable to NITRO_SHUTDOWN_DISABLED (#2377)
  • caching: Fix typos and rephrase for clarity (#2380)
  • Add a usage example for server sent events (#2379)
  • Correct directory name (#2417)
  • Use npx nypm install in instead of npm install (#2421)
  • websocket: Correct nuxt sse url (#2430)
  • node: Fix node-listener example (#2456)
  • Prefix NITRO_ in .env file (#2486)
  • Fix typo autoSubFolderIndex ~> autoSubfolderIndex (#2494)
  • Correct h3 docs link to event-handler (#2500)
  • Move await to explicit line for clarity (#2577)
  • Fix typos (#2578)
  • Fix typos (#2589)
  • storage: Add await before setItem (#2588)
  • Convert to underscore preset names (#2592)
  • Fix title format (#2594)
  • cloudflare: Add missing await (#2601)
  • compressPublicAssets: Adjust formatting (#2603)
  • routing: Add nested example (#2625)
  • Fix mdc component usage and cloudflare preset reference (#2600)
  • Fix grammar (#2669)
  • server routes: Fix typo (#2675)
  • utils: Update github link (#2596)
  • config: Fix url for log level (#2699)
  • Remove old components (fc6c2fae)
  • config: Fix typos (#2728)
  • cache: Fix code format (#2740)
  • config: Fix typo prerender retries -> retry (#2746)
  • /_nitro/scalar general availability (#2754)
  • Notice for OpenAPI paths changing in future versions (#2755)
  • node: Fix typo (#2761)
  • routing: Fix grammer (#2763)
  • routing: Add error handling section (#2733)
  • tasks: Fix grammar (#2768)
  • server-utils: Fix typos (#2790)
  • Update reference to old radix3 link (#2787)
  • typescript: Tiny typos (#2805)
  • server-routes: Typo (#2808)
  • Fix nitro runtime hooks link (#2826)
  • Use nitro.build as canonical (78cd3e7b)

📦 Build

  • Explicitly add nitropack to externals (nightly) (b2831dd5)
  • Load presets from unbundled nitropack/presets (#2459)
  • Update unbuild to 3.x (c95dae55)
  • Introduce nitropack/meta (ca2282bb)
  • Improve chunk names (4106750c)
  • Hotfix unbuild to resolve jiti stub await issue (01128017)
  • Mirror nitro and nitropack npm packages (#2497)

🌊 Types

  • firebase: Support 22 for nodeVersion (#2653)

🏡 Chore

✅ Tests

  • Avoid toMatchInlineSnapshot in shared tests (966b3518)

🎨 Styles

🤖 CI

  • Make nightly versions human readable (37f0d4f4)

❤️ Contributors

pi0
published 2.9.7 •

pi0
published 2.9.6 •

Changelog

Source

v2.9.6

compare changes

🩹 Fixes

  • Generate root/src directory aliases (#2318)
  • externals: Skip resolving virtual ids start with \0 (#2321)
  • types: Account for undefined value for $fetch return type (#2327)
  • cloudflare-pages: Use predefined wildcards in routes.exclude (#2319)

📖 Documentation

  • Remove outdated nightly warning (#2317)

🏡 Chore

❤️ Contributors

pi0
published 2.9.5 •

Changelog

Source

v2.9.5

compare changes

🚀 Enhancements

  • openapi: Add experimental /_nitro/scalar endpoint (#2252)

🩹 Fixes

  • openapi: Use dynamic host + port (#2216)
  • openapi: Add schema to generated parameters (#2235)
  • openapi: Avoid double slash for base (fdf7e70a)
  • options: Set scheduledTasks to an empty object by default (#2285)
  • prerender: Call nitroApp close hook when done prerendering (#2287)
  • types: Return T from Serialize when it extends undefined (#2286)
  • raw: Exclude yaml from raw plugin (#2275)
  • externals: Check explicit inline rules on resolved id (#2288)
  • raw: Allow importing relative paths (#2289)
  • types: Make c12 env types available for NitroConfig (#2292)
  • netlify-edge: Write _headers and _redirects (#2291)
  • cloudflare-pages: Write _headers and _redirects for non static builds (#2290)
  • netlify: Allow writing config.json (#2264)
  • Allow importing utils from nitropack/runtime (#2314)

💅 Refactors

  • openapi: Upgrade to openapi 3.1 (#2297)

📖 Documentation

  • routing: Add note about middleware execution order (#2282)
  • routing: Fx link to h3 object syntax handler (#2281)
  • Update tasks return value (8a62e7db)
  • cache: Add a note for serverless environment (dc83a2e2)
  • Fix typo (#2298)

📦 Build

  • Use .d.ts for runtime generated types (#2313)

🏡 Chore

❤️ Contributors

pi0
published 2.9.4 •

Changelog

Source

v2.9.4

compare changes

🩹 Fixes

  • Handle path negations when scanning public assets (#2250)
  • pkg: Add ioredis as unstorage peer dependency (#2266)

📖 Documentation

  • Fix server assets example path (#2248)
  • Remove duplicate integrity key (#2246)
  • Fix wording (#2261)
  • Remove nightly notice (39bc3f2e)
  • tasks: Update dev server usage (#2240)
  • cache: Add example usage for cache.varies (#2241)

🏡 Chore

✅ Tests

❤️ Contributors

pi0
published 2.9.3 •

Changelog

Source

v2.9.3

compare changes

🩹 Fixes

  • raw: Use mime to check binary types and exclude .json (#2239)

📖 Documentation

❤️ Contributors

pi0
published 2.9.2 •

Changelog

Source

v2.9.2

compare changes

🩹 Fixes

  • database: CamelCase the connector name (#2228)
  • Respect imports.autoImport: false (#2226)
  • server-assets: Mark yaml, json, json5 and csv as text (#2229)
  • import-meta: Import process from node:process for node compatible builds (deno) (#2225)

📖 Documentation

  • deploy: Add link to zero config providers (#2206)
  • fetch: Fix typo (#2209)
  • Fix typo (#2211)
  • Fix typo (#2205)
  • Remove lagon (#2204)
  • Update url for experimental database feature (#2210)
  • providers: Improve formatting & use new undocs components (#2202)
  • Improve cache page (674089b3)

🏡 Chore

❤️ Contributors

23
11
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