![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.
@sswahn/cache
Advanced tools
A robust caching utility that provides easy-to-use methods for interacting with the browser's Cache API.
A robust caching utility that provides easy-to-use methods for interacting with the browser's Cache API.
max-age
parameter, with the ability to specify the time in seconds for fine-grained control.npm install @sswahn/cache
Import library.
import cache from '@sswahn/cache'
Set a response in cache by name, request, and response.
const request = new Request(url)
const response = await fetch(request)
await cache.set('cachName', request, response)
Set a cache with a custom max-age
. The default is 180 seconds.
await cache.set('cachName', request, response, 300)
Retrieve a response from cache by name and request.
const response = await cache.get('cachName', new Request(url))
Delete a specific cache entry by name and request.
await cache.delete('cachName', new Request(url))
Clear all entries from a specific cache by name.
await cache.clear('cachName')
Retrieve all keys from a specific cache by name.
const keys = await cache.keys('cachName')
Cache is MIT Licensed
FAQs
A robust caching utility that provides easy-to-use methods for interacting with the browser's Cache API.
The npm package @sswahn/cache receives a total of 1 weekly downloads. As such, @sswahn/cache popularity was classified as not popular.
We found that @sswahn/cache 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.