@ember-data-mirror/request 5.8.0-beta.0 → 5.8.0-beta.1
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 +9 -9
- package/package.json +4 -4
- package/unstable-preview-types/index.d.ts +7 -7
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
<p align="center">⚡️ a simple abstraction over fetch to enable easy management of request/response flows</p>
|
|
19
19
|
|
|
20
|
-
This package provides [*Ember***Data**](https://github.com/
|
|
20
|
+
This package provides [*Ember***Data**](https://github.com/warp-drive-data/warp-drive/)'s `RequestManager`, a framework agnostic library that can be integrated with any Javascript application to make [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) happen.
|
|
21
21
|
|
|
22
22
|
- [Installation](#installation)
|
|
23
23
|
- [Basic Usage](#🚀-basic-usage)
|
|
@@ -96,7 +96,7 @@ flowchart LR
|
|
|
96
96
|
F <--> H[(fa:fa-database Source)]
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
The same or a separate instance of a `RequestManager` may also be used to fulfill requests issued by [*Ember***Data**{Store}](https://github.com/
|
|
99
|
+
The same or a separate instance of a `RequestManager` may also be used to fulfill requests issued by [*Ember***Data**{Store}](https://github.com/warp-drive-data/warp-drive/tree/main/packages/store)
|
|
100
100
|
|
|
101
101
|
```mermaid
|
|
102
102
|
flowchart LR
|
|
@@ -104,8 +104,8 @@ flowchart LR
|
|
|
104
104
|
B{{fa:fa-sitemap RequestManager}} <--> C[(fa:fa-database Source)]
|
|
105
105
|
D <--> E[(fa:fa-archive Cache)]
|
|
106
106
|
D <--> B
|
|
107
|
-
click D href "https://github.com/
|
|
108
|
-
click E href "https://github.com/
|
|
107
|
+
click D href "https://github.com/warp-drive-data/warp-drive/tree/main/packages/store" "Go to @ember-data-mirror/store" _blank
|
|
108
|
+
click E href "https://github.com/warp-drive-data/warp-drive/tree/main/packages/json-api" "Go to @ember-data-mirror/json-api" _blank
|
|
109
109
|
style D color:#58a6ff;
|
|
110
110
|
style E color:#58a6ff;
|
|
111
111
|
```
|
|
@@ -121,8 +121,8 @@ flowchart LR
|
|
|
121
121
|
A <--> D{fa:fa-code-fork Store}
|
|
122
122
|
D <--> E[(fa:fa-archive Cache)]
|
|
123
123
|
D <--> B
|
|
124
|
-
click D href "https://github.com/
|
|
125
|
-
click E href "https://github.com/
|
|
124
|
+
click D href "https://github.com/warp-drive-data/warp-drive/tree/main/packages/store" "Go to @ember-data-mirror/store" _blank
|
|
125
|
+
click E href "https://github.com/warp-drive-data/warp-drive/tree/main/packages/json-api" "Go to @ember-data-mirror/json-api" _blank
|
|
126
126
|
style D color:#58a6ff;
|
|
127
127
|
style E color:#58a6ff;
|
|
128
128
|
```
|
|
@@ -453,10 +453,10 @@ export default {
|
|
|
453
453
|
|
|
454
454
|
#### Using with `ember-data`
|
|
455
455
|
|
|
456
|
-
If using the package [ember-data](https://github.com/
|
|
456
|
+
If using the package [ember-data](https://github.com/warp-drive-data/warp-drive/tree/main/packages/-ember-data),
|
|
457
457
|
the following configuration will automatically be done in order to preserve the
|
|
458
|
-
legacy [Adapter](https://github.com/
|
|
459
|
-
[Serializer](https://github.com/
|
|
458
|
+
legacy [Adapter](https://github.com/warp-drive-data/warp-drive/tree/main/packages/adapter) and
|
|
459
|
+
[Serializer](https://github.com/warp-drive-data/warp-drive/tree/main/packages/serializer) behavior.
|
|
460
460
|
Additional handlers or a service injection like the above would need to be done by the
|
|
461
461
|
consuming application in order to make broader use of `RequestManager`.
|
|
462
462
|
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data-mirror/request",
|
|
3
3
|
"description": "⚡️ A simple, small and fast framework-agnostic library to make `fetch` happen",
|
|
4
|
-
"version": "5.8.0-beta.
|
|
4
|
+
"version": "5.8.0-beta.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Chris Thoburn <runspired@users.noreply.github.com>",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+ssh://git@github.com:
|
|
9
|
+
"url": "git+ssh://git@github.com:warp-drive-data/warp-drive.git",
|
|
10
10
|
"directory": "packages/request"
|
|
11
11
|
},
|
|
12
|
-
"homepage": "https://github.com/
|
|
13
|
-
"bugs": "https://github.com/
|
|
12
|
+
"homepage": "https://github.com/warp-drive-data/warp-drive",
|
|
13
|
+
"bugs": "https://github.com/warp-drive-data/warp-drive/issues",
|
|
14
14
|
"keywords": [
|
|
15
15
|
"ember-addon"
|
|
16
16
|
],
|
|
@@ -5,7 +5,7 @@ declare module '@ember-data-mirror/request' {
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<img
|
|
7
7
|
class="project-logo"
|
|
8
|
-
src="https://raw.githubusercontent.com/
|
|
8
|
+
src="https://raw.githubusercontent.com/warp-drive-data/warp-drive/4612c9354e4c54d53327ec2cf21955075ce21294/ember-data-logo-light.svg#gh-light-mode-only"
|
|
9
9
|
alt="EmberData RequestManager"
|
|
10
10
|
width="240px"
|
|
11
11
|
title="EmberData RequestManager"
|
|
@@ -14,7 +14,7 @@ declare module '@ember-data-mirror/request' {
|
|
|
14
14
|
|
|
15
15
|
<p align="center">⚡️ a simple abstraction over fetch to enable easy management of request/response flows</p>
|
|
16
16
|
|
|
17
|
-
This package provides [*Ember***Data**](https://github.com/
|
|
17
|
+
This package provides [*Ember***Data**](https://github.com/warp-drive-data/warp-drive/)'s `RequestManager`, a framework agnostic library that can be integrated with any Javascript application to make [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) happen.
|
|
18
18
|
|
|
19
19
|
- [Installation](#installation)
|
|
20
20
|
- [Basic Usage](#🚀-basic-usage)
|
|
@@ -72,7 +72,7 @@ declare module '@ember-data-mirror/request' {
|
|
|
72
72
|
|
|
73
73
|
Each handler may choose to fulfill the request using some source of data or to pass the request along to other handlers.
|
|
74
74
|
|
|
75
|
-
The same or a separate instance of a `RequestManager` may also be used to fulfill requests issued by [*Ember***Data**{Store}](https://github.com/
|
|
75
|
+
The same or a separate instance of a `RequestManager` may also be used to fulfill requests issued by [*Ember***Data**{Store}](https://github.com/warp-drive-data/warp-drive/tree/main/packages/store)
|
|
76
76
|
|
|
77
77
|
When the same instance is used by both this allows for simple coordination throughout the application. Requests issued by the Store will use the in-memory cache
|
|
78
78
|
and return hydrated responses, requests issued directly to the RequestManager
|
|
@@ -396,10 +396,10 @@ declare module '@ember-data-mirror/request' {
|
|
|
396
396
|
|
|
397
397
|
#### Using with `ember-data`
|
|
398
398
|
|
|
399
|
-
If using the package [ember-data](https://github.com/
|
|
399
|
+
If using the package [ember-data](https://github.com/warp-drive-data/warp-drive/tree/main/packages/-ember-data),
|
|
400
400
|
the following configuration will automatically be done in order to preserve the
|
|
401
|
-
legacy [Adapter](https://github.com/
|
|
402
|
-
[Serializer](https://github.com/
|
|
401
|
+
legacy [Adapter](https://github.com/warp-drive-data/warp-drive/tree/main/packages/adapter) and
|
|
402
|
+
[Serializer](https://github.com/warp-drive-data/warp-drive/tree/main/packages/serializer) behavior.
|
|
403
403
|
Additional handlers or a service injection like the above would need to be done by the
|
|
404
404
|
consuming application in order to make broader use of `RequestManager`.
|
|
405
405
|
|
|
@@ -422,7 +422,7 @@ declare module '@ember-data-mirror/request' {
|
|
|
422
422
|
though the store will still register the CacheHandler.
|
|
423
423
|
|
|
424
424
|
For usage of the store's `requestManager` via `store.request(<req>)` see the
|
|
425
|
-
|
|
425
|
+
{@link Store} documentation.
|
|
426
426
|
|
|
427
427
|
*
|
|
428
428
|
* @module
|