![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
ah-tdp-js-connector-plugin
Advanced tools
An actionhero plugin provides an actionhero(/primus) javascript client instance with local caching and server-side configuration
#ah-tdp-js-connector-plugin
##Semver This project aims to maintain the semver version numbering scheme.
##Changelog See the changelog file
##Overview An actionhero plugin provides an actionhero(/primus) javascript client instance with local caching (using localStorage) of action responses.
This plugin is a simplified/contextualised adaptation of RFC2616. The adaptations are intended to be pertinent to websockets and javascript:
##Request/response format As shown above, the Cache-Control header structure is ported into a more javascript-friendly object (default values shown):
// Requests
cacheControl:
{
noCache:false // Boolean. Should a response be served from cache (if possible)
}
// Responses
cacheControl:
{
// All server/connection types ("web", "websockets" and "TCP")
maxAge:60, // Integer. Number of seconds for which the cached response will be valid
noCache:false, // Boolean. Should the response be cached?
// "Web" connections only (see below - "Real" HTTP headers)
private:false, // Boolean. If true, the "private" (rather than "public") cacheability status will be set in the HTTP response header
mustRevalidate:false // Boolean. If true, "must-revalidate" will be included in the HTTP response header
}
Note that the remaining RFC2616 elements are not implemented (yet).
##Features ###Actionhero client Uses the standard actionhero client library to establish a connection to the remote (server-side) actionhero instance.
###Server-side configuration An initiailiser pulls relevant/appropriate elements of the configuration file and presents them via a public, static JSON file
###Caching of action responses Response caching is configurable (server-side) via several methods which are evaluated in the following order:
connection.cacheControl
parameters. These are likely to be set by either pre/post processors or actionsactionTemplate.cacheControl
parameters. These are set directly in the action meta data (in the same way that inputs
etc. are set in the actions file)cacheControlMap
)cacheControlDefaults
)Default values will be used for any parameters which are not set by 1-3 in the above list.
###"Real" HTTP headers
If the server/connection type is "web" (i.e. not "TCP", "websocket" or a custom server) and createRealHTTPHeaders
is true
in the config file, this plugin will create a Cache-Control
HTTP response header (overwriting any existing header if overwriteExistingHTTPCacheControlHeader
is true
). This is intended to level the playing field for non-websocket connections.
##Requirements Requirements are few:
localstorage
backend (which falls back to JSON
storage if localStorage
is not supported)###Production requirements
###Development/test requirements
##Installation
npm install ah-tdp-js-connector-plugin
##Usage
##Configuration
##Credits
##To do/roadmap
vary
HTTP header and websockets
equivalent##Tests
Tests currently run in a raw mode (simply running scripts which use process.exit()
and the relevant exit code) and are run via Travis CI.
##License ah-tdp-js-connector-plugin is issued under a Creative Commons attribution share-alike license. This means you can share and adapt the code provided you attribute the original author(s) and you share your resulting source code. If, for some specific reason you need to use this library under a different license then please contact me and i'll see what I can do - though I should mention that I am committed to all my code being open-source so closed licenses will almost certainly not be possible.
FAQs
An actionhero plugin provides an actionhero(/primus) javascript client instance with local caching and server-side configuration
We found that ah-tdp-js-connector-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.