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

citizen

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

citizen - npm Package Versions

1
13

0.7.13

Diff

Changelog

Source

0.7.13

  • Added the session scope to the beginning of the request chain, making it available within the application request event
jaysylvester
published 0.7.12 •

Changelog

Source

0.7.12

  • Fixed a bug masked by the previous cache bug, which caused a timer to be set even if lifespan was set to "application"
jaysylvester
published 0.7.11 •

Changelog

Source

0.7.11

  • Fixed a bug that caused a cache error when lifespan is set to "application" and tweaked the readme to reflect new cache defaults
jaysylvester
published 0.7.10 •

Changelog

Source

0.7.10

  • Fixed a bug in the previous update that caused it not to work at all :)
jaysylvester
published 0.7.9 •

Changelog

Source

0.7.9

  • The server requestStart event now fires before the sessionStart event, which is a more logical execution order. A 404 (missing controller and/or action) initiated by a third party referrer will no longer create an orphaned session, for example. This also allows custom handling of missing controllers and actions in the request.js start() action (like issuing a permanent redirect to a different controller or action, for example).
jaysylvester
published 0.7.8 •

Changelog

Source

0.7.8

  • Cache-Control headers specified in the config (cache.control) now support regular expressions. You can provide either an exact match to the resource's pathname (the previous functionality) or a regex that matches many assets. You can mix the two. Also corrected the readme, which had an incorrect example for route Cache-Control.
  • Server errors now include the remote host
jaysylvester
published 0.7.7 •

Changelog

Source

0.7.7

  • The server now throws an error if the view specified in a controller handoff doesn't exist. Previously, it failed silently and rendered the final view without the handoff view contents.
jaysylvester
published 0.7.6 •

Changelog

Source

0.7.6

  • Fixed a bug that always enabled the static cache (introduced in 0.7.4 with the new cache config defaults)
jaysylvester
published 0.7.5 •

Changelog

Source

0.7.5

  • Improved cache and session performance by getting rid of the creation of new timers with every request or cache hit and using a lastAccessed attribute for the existing timer to validate against (see https://github.com/jaysylvester/citizen/issues/31)
jaysylvester
published 0.7.4 •

Changelog

Source

0.7.4

  • BREAKING CHANGE: Added default cache config options for both application and static asset caches, breaking previous config settings. The new defaults enable a reasonable cache lifespan (15 minutes), preventing issues like cached static assets from growing over time and taking up memory even if they're not being accessed regularly. Previously, enabling the static cache kept all static assets in memory for the life of the application. Consult the readme for details.
  • Improved server error handling, making apps more resilient to fatal errors and avoiding app crashes
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