{"id":44835,"library":"ember-intl-format-cache","title":"ember-intl-format-cache","description":"Ember addon that provides a wrapper around intl-format-cache for use in Ember applications. Current stable version 2.6.0. Release cadence is low (last release likely older). It allows importing intl-format-cache within Ember's module system, but is largely deprecated in favor of using intl-format-cache directly or newer Ember Intl patterns. Key differentiator: specifically for Ember apps; otherwise superseded by native imports.","status":"deprecated","version":"2.6.0","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/ember-intl/ember-intl-format-cache","tags":["javascript","ember-addon"],"install":[{"cmd":"npm install ember-intl-format-cache","lang":"bash","label":"npm"},{"cmd":"yarn add ember-intl-format-cache","lang":"bash","label":"yarn"},{"cmd":"pnpm add ember-intl-format-cache","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core functionality: caching Intl format objects.","package":"intl-format-cache","optional":false}],"imports":[{"note":"ESM default import is standard. CJS require may not work with Ember's resolver.","wrong":"const intlFormatCache = require('ember-intl-format-cache');","symbol":"default","correct":"import intlFormatCache from 'ember-intl-format-cache';"},{"note":"This package exports a default, not a named export.","wrong":"import { intlFormatCache } from 'ember-intl-format-cache';","symbol":"default","correct":"import intlFormatCache from 'ember-intl-format-cache';"},{"note":"Direct import from intl-format-cache may not resolve in Ember's addon system; use this wrapper.","wrong":"import intlFormatCache from 'intl-format-cache';","symbol":"default","correct":"import intlFormatCache from 'ember-intl-format-cache';"}],"quickstart":{"code":"import intlFormatCache from 'ember-intl-format-cache';\n\nconst getDateTimeFormat = intlFormatCache(Intl.DateTimeFormat);\nconst formatter = getDateTimeFormat('en-US', { year: 'numeric', month: 'long', day: 'numeric' });\nconsole.log(formatter.format(new Date()));\n// Outputs: June 15, 2023\n\n// With caching: same arguments return cached formatter\nconst formatter2 = getDateTimeFormat('en-US', { year: 'numeric', month: 'long', day: 'numeric' });\nconsole.log(formatter === formatter2); // true","lang":"javascript","description":"Shows how to import default export and use intlFormatCache to create cached formatters."},"warnings":[{"fix":"Replace with npm package 'intl-format-cache' or migrate to @ember-intl/format-cache.","message":"Package is deprecated: use intl-format-cache directly or Ember Intl's built-in caching.","severity":"deprecated","affected_versions":">=2.6.0"},{"fix":"Use intl-format-cache directly outside Ember.","message":"This addon is only useful within an Ember application; standalone Node.js usage is unsupported.","severity":"gotcha","affected_versions":"all"},{"fix":"Check compatibility with your Ember version; consider alternatives.","message":"Requires Ember CLI and may not work with modern Ember Octane or Embroider builds.","severity":"gotcha","affected_versions":"<3.0?"}],"env_vars":null,"search_vec":"'2.6.0':25 'addon':7,78 'allow':35 'app':69 'applic':21 'around':12 'cach':5,16,40,57 'cadenc':27 'current':22 'deprec':49 'differenti':65 'direct':58 'ember':2,6,20,42,61,68,77 'ember-addon':76 'ember-intl-format-cach':1 'favor':51 'format':4,15,39,56 'import':36,74 'intl':3,14,38,55,62 'intl-format-cach':13,37,54 'javascript':75 'key':64 'larg':48 'last':30 'like':32 'low':29 'modul':44 'nativ':73 'newer':60 'older':33 'otherwis':70 'pattern':63 'provid':9 'releas':26,31 'specif':66 'stabl':23 'supersed':71 'system':45 'use':18,53 'version':24 'within':41 'wrapper':11","created_at":"2026-06-07T12:52:04.253904+00:00","updated_at":"2026-06-07T12:52:04.253904+00:00","problems":[{"fix":"npm install ember-intl-format-cache --save-dev","cause":"Package not installed or not properly resolved in Ember addon context.","error":"Cannot find module 'ember-intl-format-cache'"},{"fix":"Use: import intlFormatCache from 'ember-intl-format-cache'; then invoke as function: intlFormatCache(Intl.DateTimeFormat)","cause":"Incorrect import (named instead of default) or the cache function not called correctly.","error":"TypeError: intlFormatCache is not a function"},{"fix":"Ensure ember-intl-format-cache is in devDependencies (not dependencies) and run ember install ember-intl-format-cache","cause":"Addon not installed or incorrectly listed in package.json dependencies.","error":"EmberError: The addon ember-intl-format-cache was not found in the resolver"}],"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/ember-intl/ember-intl-format-cache","github":"ssh://git@github.com/ember-intl/ember-intl-format-cache","docs":null,"changelog":null,"pypi":null,"npm":"ember-intl-format-cache","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"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}}