{"id":46369,"library":"simple-cache-provider","title":"simple-cache-provider","description":"An experimental, unstable cache provider for React applications, published at version 0.10.0 alongside early React alpha releases. It is intended only as a reference for advanced caching implementations and explicitly warns against use in production. The API is subject to breaking changes between versions and was deprecated in favor of built-in React cache solutions. No release cadence; this package is part of the React experimental releases.","status":"deprecated","version":"0.10.0","language":"javascript","source_language":"en","source_url":"https://github.com/facebook/react","tags":["javascript"],"install":[{"cmd":"npm install simple-cache-provider","lang":"bash","label":"npm"},{"cmd":"yarn add simple-cache-provider","lang":"bash","label":"yarn"},{"cmd":"pnpm add simple-cache-provider","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency on React ^16.3.0-alpha.1, required for the provider context.","package":"react","optional":false}],"imports":[{"note":"ESM-only; CJS require will fail as the package exports an ES module.","wrong":"const createCache = require('simple-cache-provider')","symbol":"createCache","correct":"import { createCache } from 'simple-cache-provider'"},{"note":"Named export, not default export.","wrong":"import * as CacheProvider from 'simple-cache-provider'","symbol":"CacheProvider","correct":"import { CacheProvider } from 'simple-cache-provider'"},{"note":"Almost never used; default export is an internal object.","wrong":"","symbol":"default import","correct":"import SimpleCache from 'simple-cache-provider'"}],"quickstart":{"code":"import { createCache, CacheProvider } from 'simple-cache-provider';\nimport React from 'react';\n\nconst cache = createCache(/* optional config */);\n\nfunction App() {\n  return (\n    <CacheProvider cache={cache}>\n      <div>Cache example</div>\n    </CacheProvider>\n  );\n}\n\nexport default App;","lang":"typescript","description":"Shows how to create a cache instance and wrap an app with CacheProvider using the named exports."},"warnings":[{"fix":"Use React's built-in cache or a stable caching library like react-cache.","message":"API will change wildly between versions: do not use in production.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Migrate to React's official caching solutions.","message":"This package is deprecated and no longer maintained. It was only for experimental React features.","severity":"deprecated","affected_versions":"all"},{"fix":"Ensure your environment supports ES modules (e.g., use a bundler).","message":"The package exports ES modules only; CommonJS require() will not work.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'0.10.0':16 'advanc':30 'alongsid':17 'alpha':20 'api':41 'applic':12 'break':45 'built':56 'built-in':55 'cach':3,8,31,59 'cadenc':63 'chang':46 'deprec':51 'earli':18 'experiment':6,71 'explicit':34 'favor':53 'implement':32 'intend':24 'javascript':73 'packag':65 'part':67 'product':39 'provid':4,9 'publish':13 'react':11,19,58,70 'refer':28 'releas':21,62,72 'simpl':2 'simple-cache-provid':1 'solut':60 'subject':43 'unstabl':7 'use':37 'version':15,48 'warn':35","created_at":"2026-06-07T12:59:35.321150+00:00","updated_at":"2026-06-07T12:59:35.321150+00:00","problems":[{"fix":"npm install simple-cache-provider@0.10.0","cause":"Package may not be installed or is not in node_modules.","error":"Cannot find module 'simple-cache-provider' or its corresponding type declarations."},{"fix":"Use import statement instead of require.","cause":"Attempting to import the ES module with CommonJS require.","error":"require() of ES Module not supported."}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/facebook/react#readme","github":"https://github.com/facebook/react","docs":null,"changelog":null,"pypi":null,"npm":"simple-cache-provider","openapi_spec":null,"status_page":null,"smithery":null,"categories":["security"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}