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.2.3

Diff

Changelog

Source

v2.2.3

compare changes

🚀 Enhancements

  • Add lagon preset (#964)

🩹 Fixes

  • node-cluster: Default number of workers (#963)
  • cloudflare-pages: Exclude assets from function call (#965)
  • cloudflare-pages: Handle assets only for get requests (#968)
  • Render json errors for cors requests (#969)
  • Use json response for errors in /api/ routes (#971)

💅 Refactors

  • externals: Sort bundledDependencies keys in output package.json (#967)

📖 Documentation

  • cloudflare: Add info regarding runtimeConfig and environment variables (#958)
  • Prevent ellipsis overflow on small screens (#956)
  • deploy: Add workers page for edge limitations (#953)

🏡 Chore

  • cli: Mention prepare command in usage (#959)
  • Update dependencies (2658072)

❤️ Contributors

pi0
published 2.2.2 •

Changelog

Source

v2.2.2

compare changes

🩹 Fixes

  • Correct access-control-allow-methods cors header name (#944)
  • Allow overriding assets maxAge using route rules (db6e6c2)
  • rollup: Use mlly as fallback resolver when externals disabled (#948)
  • Don't render json response if url contains /api/ (#951)

🏡 Chore

✅ Tests

  • vercel: Move custom test to additional tests (fb361f8)

❤️ Contributors

pi0
published 2.2.1 •

Changelog

Source

v2.2.1

compare changes

🩹 Fixes

  • static: Remove cache-control headers when asset is not found (e3d57fc)
  • Avoid circular imports (#936)

🏡 Chore

❤️ Contributors

pi0
published 2.2.0 •

Changelog

Source

v2.2.0

compare changes

⭐ What is new?

  • Runtime proxy support using route rules (learn more)
  • Nested fetch calls with incoming headers and context in event context (learn more)
  • Binary and Raw storage operations support (learn more)
  • [Cloudflare] Exposed event.context.cf (learn more)
  • Built-in session support (learn more)

🚀 Enhancements

  • Support runtime proxy using route rules (#926)
  • cloudflare: cacheControl support for public assets with with maxAge (#922)
  • cloudflare: Expose event.context.cf (#927)
  • firebase: Use nodejs 18 as default runtime (#925)
  • Support event.fetch and event.$fetch (#930)
  • vercel: Auto-detect runtime version (#879)

🩹 Fixes

  • Apply cached rules to overlapping wildcard patterns (#906)
  • cloudflare: Use full mime db (#933)

❤️ Contributors

pi0
published 2.1.2 •

Changelog

Source

v2.1.2

compare changes

🩹 Fixes

  • types: Allow narrowing of the method option in NitroFetchOptions (#883)
  • vercel-edge: Add temporary workaround for ‍process.cwd‍ usage (#898)
  • dev: Don't overwrite proxy headers if already set (#896)
  • Provide fallback string values for undefined runtimeConfig (#907)
  • vercel: Allow non-glob cache rules to apply to / (#908)
  • externals: Use stable dependency tree (#909)
  • dev: Mount src and root as read-only by default (#920)

📖 Documentation

  • Fix heroku typo (#900)
  • Fix stormkit images path (#903)
  • Fix path for server assets (#917)

🏡 Chore

✅ Tests

❤️ Contributors

pi0
published 2.1.1 •

Changelog

Source

v2.1.1

compare changes

🩹 Fixes

  • Resolve server assets dir relative to srcDir (#893)
  • prerender: Encode urls passed to local fetch (#891)

🏡 Chore

❤️ Contributors

pi0
published 2.1.0 •

Changelog

Source

v2.1.0

compare changes

🚀 Enhancements

  • Add shouldBypassCache option to cache utils (#874)
  • cache: Allow async getKey option (#878)

🩹 Fixes

  • scan: Do not dedup middleware handlers (#880)
  • externals: Use portable symlinks (#882)

📖 Documentation

  • deployment: Heroku with nginx (#873)
  • netlify: Clarify placement of _redirects file (#870)
  • digitalocean: Update deployment guide (#862)

🏡 Chore

❤️ Contributors

pi0
published 2.0.0 •

Changelog

Source

v2.0.0

compare changes

🩹 Fixes

  • Add node16 compatible type declaration (#868)
  • externals: Improve multi version handling (#871)

❤️ Contributors

pi0
published 2.0.0-rc.1 •

Changelog

Source

v2.0.0-rc.1

compare changes

🚀 Enhancements

  • externals: Apply production condition to package.exports (#867)
  • Enable auto imports from utils dir (#866)

🩹 Fixes

  • prerender: Update preview command to serve matching routes (#864)
  • externals: Support orphan files in node_modules (#865)
  • Avoid hiding original rollup error message (a5586f8)
  • cache: Only update cache in storage once per pending request (#861)

🏡 Chore

  • Lint with eslint --cache and improve types in .eslintrc (#863)
  • Update dependencies (c52d256)
  • Remove random import (246b726)

❤️ Contributors

pi0
published 2.0.0-rc.0 •

Changelog

Source

v2.0.0-rc.0

compare changes

🚀 Enhancements

  • ⚠️ Upgrade rollup to 3.x (#580)
  • types: Correctly type $fetch based on the method (#686)
  • cli: prepare command (#774)
  • cache: Allow setting custom getKey for defineCachedEventHandler (#744)
  • dev: Support for /_vfs.json (#809)
  • netlify: Use esm entrypoint (#833)
  • ⚠️ Rewrite external copy with multi version hoisting support (#782)
  • Add shouldInvalidateCache option to cache utils (#746)
  • edgio preset (replacing layer0) (#858)
  • Support maxAge for public assets (#860)
  • Support staleMaxAge: -1 to always respond stale value (#857)

🩹 Fixes

  • GitHub template (#712)
  • deno: Implement readAsset (#694)
  • Normalize nitro plugin paths to url in development (#732)
  • Use file urls for auto-imports in development (#733)
  • Initialise imports.imports (#737)
  • Allow optional output property in user rollup config (#751)
  • Accept both upper/lower-case methods (#752)
  • prerender: Check each segment length is less than 255 chars and whole path 1024 (#757)
  • Include only compressible mime types (#761)
  • Remove base url before calculating route rules (#767)
  • netlify, vercel: Order route rules from most specific + avoid double-rendering root (#768)
  • build: Correctly formatted fs tree (#778)
  • prerender: Decode urls to allow comma in the x-nitro-prerender header (#799)
  • build: Do not override publicAssets (#817)
  • dev: Improve vfs ui (#802)
  • Resolve and include scanDirs within node_modules for auto import (#812)
  • netlify, vercel: Explicit server rendering with disabled cache/swr (#829)
  • prerender: Check link's pathname only for extensions (#791)
  • runtime: Disable server-timing header via options.timing (#823)
  • Avoid using file urls for normalized paths in options (7517293)
  • Rollup treeshake is dump (2ce4edb)
  • externals: Normalize inline and external windows paths (0638f64)
  • netlify, aws: Omit cookies from v1 response (#834)
  • Filter unique scanned handlers (#807)
  • nitro: Resolve server asset dirs relative to srcDir (#825)
  • public-assets: Mock readAsset promise properly (#851)
  • externals: Avoid recursive package links (b77735e)

💅 Refactors

  • Upgrade and reduce usage of fs-extra (cfbd029)
  • Update event. to event.node. (#828)

📖 Documentation

  • Fix url in auto-imports guide (#683)
  • Fix spelling of cluster (#720)
  • Wording change (#724)
  • Fix readme grammar (#813)
  • Fix deprecated function in routing example (#816)
  • Add new render deployment example & steps (#811)
  • Fix typo in code block (#830)
  • Add cache base option example & description (#781)

🏡 Chore

  • Lint repository with eslint config and format with prettier (#739)
  • Limit prettier lint to src (6a735b1)
  • Fix type issue (a60e4bd)
  • Fix lint issues (7ee8e7f)
  • Disable failing api type tests (1d9102a)
  • Fix lint issue (30e4d32)
  • Add missing parenthesis in header (#801)
  • Add lint fix command shortcut (#835)
  • Update lockfile (bb9ac5b)

✅ Tests

  • Add tests for dev server and proxy (#644)
  • Re-enable api type tests and fix type assertion (#772)
  • Update fixtures (a52c832)

🎨 Styles

🤖 CI

  • Run tests against windows as well (#837)
⚠️ Breaking Changes
  • ⚠️ Upgrade rollup to 3.x (#580)
  • ⚠️ Rewrite external copy with multi version hoisting support (#782)

❤️ 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