@ember-data/store 5.4.0-beta.1 → 5.4.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -60,7 +60,8 @@ After installing you will want to configure your first `Store`. Read more below
60
60
 
61
61
  To use a `Store` we will need to do few things: add a [Cache](https://api.emberjs.com/ember-data/release/classes/%3CInterface%3E%20Cache) to store data **in-memory**, add a [Handler](https://github.com/emberjs/data/tree/main/packages/request#handling-requests) to fetch data from a source, and implement `instantiateRecord` to tell the store how to display the data for individual resources.
62
62
 
63
- > **Note** If you are using the package `ember-data` then a `JSON:API` cache and `instantiateRecord` are configured for you by default.
63
+ > **Note**
64
+ > If you are using the package `ember-data` then a `JSON:API` cache and `instantiateRecord` are configured for you by default.
64
65
 
65
66
  ### Configuring A Cache
66
67
 
@@ -81,7 +82,8 @@ class extends Store {
81
82
 
82
83
  Now that we have a `cache` let's setup something to handle fetching and saving data via our API.
83
84
 
84
- > **Note** The `ember-data` package automatically includes and configures the `@ember-data/json-api` cache for you.
85
+ > **Note**
86
+ > The `ember-data` package automatically includes and configures the `@ember-data/json-api` cache for you.
85
87
 
86
88
  ### Handling Requests
87
89
 
@@ -89,7 +91,8 @@ When *Ember***Data** needs to fetch or save data it will pass that request to yo
89
91
 
90
92
  To start, let's install the `RequestManager` from `@ember-data/request` and the basic `Fetch` handler from ``@ember-data/request/fetch`.
91
93
 
92
- > **Note** If your app uses `GraphQL`, `REST` or different conventions for `JSON:API` than your cache expects, other handlers may better fit your data. You can author your own handler by creating one that conforms to the [handler interface](https://github.com/emberjs/data/tree/main/packages/request#handling-requests).
94
+ > **Note**
95
+ > If your app uses `GraphQL`, `REST` or different conventions for `JSON:API` than your cache expects, other handlers may better fit your data. You can author your own handler by creating one that conforms to the [handler interface](https://github.com/emberjs/data/tree/main/packages/request#handling-requests).
93
96
 
94
97
  ```ts
95
98
  import Store, { CacheHandler } from '@ember-data/store';
@@ -185,5 +188,6 @@ Typically you will choose an existing record implementation such as `@ember-data
185
188
 
186
189
  Because of the boundaries around instantiation and the cache, record implementations should be capable of interop both with each other and with any `Cache`. Due to this, if needed an application can utilize multiple record implementations and multiple cache implementations either to support enhanced features for only a subset of records or to be able to incrementally migrate from one record/cache to another record or cache.
187
190
 
188
- > **Note:** The `ember-data` package automatically includes the `@ember-data/model`
191
+ > **Note**
192
+ > The `ember-data` package automatically includes the `@ember-data/model`
189
193
  > package and configures it for you.
package/addon/-private.js CHANGED
@@ -1 +1 @@
1
- export { f as AdapterPopulatedRecordArray, C as CacheHandler, h as IDENTIFIER_ARRAY_TAG, I as IdentifierArray, M as MUTATE, I as RecordArray, R as RecordArrayManager, g as SOURCE, S as Store, m as StoreMap, _ as _clearCaches, e as coerceId, j as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, k as removeRecordDataFor, o as setCacheFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, l as setRecordIdentifier, s as storeFor } from "./store-service-f6cb9898";
1
+ export { A as ARRAY_SIGNAL, f as AdapterPopulatedRecordArray, C as CacheHandler, I as IdentifierArray, M as MUTATE, I as RecordArray, R as RecordArrayManager, g as SOURCE, S as Store, l as StoreMap, _ as _clearCaches, o as _deprecatingNormalize, e as coerceId, h as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, j as removeRecordDataFor, m as setCacheFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, k as setRecordIdentifier, s as storeFor } from "./cache-handler-XLbbNJdo";