New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

citizen

Package Overview
Dependencies
Maintainers
1
Versions
123
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.6.4

Diff

Changelog

Source

0.6.4

  • BREAKING CHANGE: The JSON/JSONP output parameter can now return nodes more than one level deep. See "JSON" in the readme for details. The breakage occurs due to how the JSON is returned; if you specify only the first top-level node, just the value of that node is returned within an envelope. Previously, the envelope contained a single key (the top-level node name) containing the value of the node.
  • JSON/JSONP output is now pretty by default. Remove whitespace by setting "pretty" to false in the config.
  • Fixed PUT/PATCH/DELETE methods to process payloads consisting of JSON or form data
  • Controller includes can now be specified via a "route" option, making it possible to call includes with different parameters than the parent controller. See "Including Controllers" in the readme.
jaysylvester
published 0.6.3 •

Changelog

Source

0.6.3

  • Fixed another bug in controller caching. Dur.
jaysylvester
published 0.6.2 •

Changelog

Source

0.6.2

  • Fixed a bug in controller caching that threw a server error
  • Updated the readme to reflect breaking changes introduced in 0.6.0 that I somehow missed.
jaysylvester
published 0.6.1 •

Changelog

Source

0.6.1

  • Added ETag and Cache-Control headers to cached routes and static files. See "Client-Side Caching" in the readme.
  • Minor breaking change due to a bug fix: the app's urlPath (config.urlPaths.app) is now removed from params.route.filePath for static resources to provide an accurate file path from your public web root. The appropriate replacement is params.route.pathname, which includes the entire path after your site's domain.
jaysylvester
published 0.6.0 •

Changelog

Source

0.6.0

  • BREAKING CHANGE: The nesting syntax for the cache directive has changed slightly, but updating your code will be easy (mostly copy/paste of your existing cache directives). See "Caching Routes and Controllers" in the readme.
  • BREAKING CHANGE: File cache retrieval syntax has changed. You must now specify the file attribute rather than the key attribute: app.exists({ file: '/path/to/file.txt' }); app.retrieve({ file: '/path/to/file.txt' }); app.exists({ file: 'myCustomKey' }); app.retrieve({ file: 'myCustomKey' });
  • gzip support added for both dynamic and static resources. See configuration options in the readme.
  • Static asset caching added. See configuration options in the readme.
jaysylvester
published 0.5.10 •

Changelog

Source

0.5.10

  • You can now specify a node name in the URL to return a specific top-level JSON node (/format/json/output/nodename). Works for JSONP also. See JSON in the readme for instructions.
  • Added Forms section to readme to provide some tips on working with form data and creating progressively enhanced forms
  • citizen's reserved URL parameters no longer need to be added to cache.directives manually
  • Added an option to log a warning about invalid cache URL parameters instead of throwing an error. If citizen encounters a URL parameter not present in cache.urlParams, the route will be processed and displayed, but not cached. This is now the default behavior. Use "cache": { "invalidUrlParams" : "throw" } in your config to throw an error instead.
  • The server now throws an error if you try to assign values to any reserved directive names that will cause problems in your application; scopes include url, session, content, and others. I'd label this a breaking change, but if you're doing this, your application is probably already broken.
jaysylvester
published 0.5.9 •

Changelog

Source

0.5.9

  • app.listen() has been enhanced to perform asynchronous parallel, series, or waterfall processing. This is a non-breaking change because the default behavior (parallel) is the same as the original behavior. See listen() in the readme for details.
  • Replaced POST body parsing with formidable. I hate adding dependencies, but formidable is the standard and it works very well, so it seems silly to write a multipart form parser from scratch.
  • Fixed default debug rendering (defaults to console, view is optional)
  • Errors now have their own views determined by the JS error code or HTTP status code, with a catch-all default error view. These views are optional and have no matching controller or model. See readme for details.
  • Added example error views to scaffold
jaysylvester
published 0.5.8 •

Changelog

Source

0.5.8

  • Small performance tweaks and debug additions in the server and router
  • Readme updates
jaysylvester
published 0.5.7 •

Changelog

Source

0.5.7

  • Fixed a bug in the view directive when used within an include controller. Note that the view directive still can't (and never will) work within a cached include controller. You need to specify the include controller's view in the include directive of the calling controller if you intend to cache the result.
  • Improved error messages by throwing proper Error objects, allowing more useful trace logs
  • Cleaned up server.js and helpers.js a bit
jaysylvester
published 0.5.6 •

Changelog

Source

0.5.6

  • Fixed a bug in view rendering caused by controllers that have includes but no content directive in the emitter
  • Improvements to format parameter handling
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