Polyfills the tracked storage primitive from Ember/Glimmer, enabling use of createStorage, getValue, and setValue in Ember.js apps before the native API is available. Latest version: 1.0.1. Released as an ember-addon, it avoids the complexity of polyfilling exact Ember import paths, ensuring compatibility with Embroider. Supports Ember.js v3.15+, Ember CLI v3.20+, Node.js 12 or 14+. Ships TypeScript types. Once Ember supports the primitive natively, this polyfill will re-export from @glimmer/tracking, making migration seamless.
npm install ember-tracked-storage-polyfillNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a tracked storage cell, getting and setting its value.
Import from 'ember-tracked-storage-polyfill' instead.
Upgrade Ember.js to v3.15+ or do not use this polyfill.
Use Node 14 or later.
When Ember 4.x ships tracked storage, switch imports to '@glimmer/tracking/primitives/storage'.
Use `import { createStorage } from 'ember-tracked-storage-polyfill'` instead.Use `getValue(storage)` and `setValue(storage, value)` to access or mutate the storage cell.
Ensure you pass a storage cell created by `createStorage`.
No dependency data recorded yet.