@warp-drive/legacy 5.9.0-alpha.7 → 5.9.0-alpha.9
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 +6 -0
- package/declarations/adapter/json-api.d.ts +1 -1
- package/declarations/serializer/json-api.d.ts +1 -1
- package/dist/unpkg/dev/adapter/json-api.js +1 -1
- package/dist/unpkg/dev/serializer/json-api.js +1 -1
- package/dist/unpkg/dev-deprecated/adapter/json-api.js +1 -1
- package/dist/unpkg/dev-deprecated/serializer/json-api.js +1 -1
- package/dist/unpkg/prod/adapter/json-api.js +1 -1
- package/dist/unpkg/prod/serializer/json-api.js +1 -1
- package/dist/unpkg/prod-deprecated/adapter/json-api.js +1 -1
- package/dist/unpkg/prod-deprecated/serializer/json-api.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -26,6 +26,12 @@ Decommissioned Features from <em>Warp</em><strong>Drive</strong> that your App m
|
|
|
26
26
|
|
|
27
27
|
<br>
|
|
28
28
|
|
|
29
|
+
> [!WARNING]
|
|
30
|
+
> This package provides support for older ***Warp*Drive** features that have been
|
|
31
|
+
> deprecated and removed from [@warp-drive/core](https://canary.warp-drive.io/api/@warp-drive/core/).
|
|
32
|
+
>
|
|
33
|
+
> **Projects using these features should refactor away from them with urgency**
|
|
34
|
+
|
|
29
35
|
## Documentation
|
|
30
36
|
|
|
31
37
|
*Get Started* → [Guides](https://docs.warp-drive.io)
|
|
@@ -118,7 +118,7 @@ Endpoint paths can be prefixed with a `namespace` by setting the
|
|
|
118
118
|
namespace property on the adapter:
|
|
119
119
|
|
|
120
120
|
```js [app/adapters/application.js]
|
|
121
|
-
import JSONAPIAdapter from '@warp-drive/legacy/adapter/json-api';
|
|
121
|
+
import { JSONAPIAdapter } from '@warp-drive/legacy/adapter/json-api';
|
|
122
122
|
|
|
123
123
|
export default class ApplicationAdapter extends JSONAPIAdapter {
|
|
124
124
|
namespace = 'api/1';
|
|
@@ -93,7 +93,7 @@ below shows how this could be done using `normalizeArrayResponse` and
|
|
|
93
93
|
`extractRelationship`.
|
|
94
94
|
|
|
95
95
|
```js [app/serializers/application.js]
|
|
96
|
-
import JSONAPISerializer from '@warp-drive/legacy/serializer/json-api';
|
|
96
|
+
import { JSONAPISerializer } from '@warp-drive/legacy/serializer/json-api';
|
|
97
97
|
|
|
98
98
|
export default class ApplicationSerializer extends JSONAPISerializer {
|
|
99
99
|
normalizeArrayResponse(store, primaryModelClass, payload, id, requestType) {
|
|
@@ -117,7 +117,7 @@ import { RESTAdapter } from './rest.js';
|
|
|
117
117
|
namespace property on the adapter:
|
|
118
118
|
|
|
119
119
|
```js [app/adapters/application.js]
|
|
120
|
-
import JSONAPIAdapter from '@warp-drive/legacy/adapter/json-api';
|
|
120
|
+
import { JSONAPIAdapter } from '@warp-drive/legacy/adapter/json-api';
|
|
121
121
|
|
|
122
122
|
export default class ApplicationAdapter extends JSONAPIAdapter {
|
|
123
123
|
namespace = 'api/1';
|
|
@@ -102,7 +102,7 @@ import { J as JSONSerializer } from "../json-Cu1LNgmQ.js";
|
|
|
102
102
|
`extractRelationship`.
|
|
103
103
|
|
|
104
104
|
```js [app/serializers/application.js]
|
|
105
|
-
import JSONAPISerializer from '@warp-drive/legacy/serializer/json-api';
|
|
105
|
+
import { JSONAPISerializer } from '@warp-drive/legacy/serializer/json-api';
|
|
106
106
|
|
|
107
107
|
export default class ApplicationSerializer extends JSONAPISerializer {
|
|
108
108
|
normalizeArrayResponse(store, primaryModelClass, payload, id, requestType) {
|
|
@@ -117,7 +117,7 @@ import { RESTAdapter } from './rest.js';
|
|
|
117
117
|
namespace property on the adapter:
|
|
118
118
|
|
|
119
119
|
```js [app/adapters/application.js]
|
|
120
|
-
import JSONAPIAdapter from '@warp-drive/legacy/adapter/json-api';
|
|
120
|
+
import { JSONAPIAdapter } from '@warp-drive/legacy/adapter/json-api';
|
|
121
121
|
|
|
122
122
|
export default class ApplicationAdapter extends JSONAPIAdapter {
|
|
123
123
|
namespace = 'api/1';
|
|
@@ -102,7 +102,7 @@ import { J as JSONSerializer } from "../json-Cu1LNgmQ.js";
|
|
|
102
102
|
`extractRelationship`.
|
|
103
103
|
|
|
104
104
|
```js [app/serializers/application.js]
|
|
105
|
-
import JSONAPISerializer from '@warp-drive/legacy/serializer/json-api';
|
|
105
|
+
import { JSONAPISerializer } from '@warp-drive/legacy/serializer/json-api';
|
|
106
106
|
|
|
107
107
|
export default class ApplicationSerializer extends JSONAPISerializer {
|
|
108
108
|
normalizeArrayResponse(store, primaryModelClass, payload, id, requestType) {
|
|
@@ -117,7 +117,7 @@ import { RESTAdapter } from './rest.js';
|
|
|
117
117
|
namespace property on the adapter:
|
|
118
118
|
|
|
119
119
|
```js [app/adapters/application.js]
|
|
120
|
-
import JSONAPIAdapter from '@warp-drive/legacy/adapter/json-api';
|
|
120
|
+
import { JSONAPIAdapter } from '@warp-drive/legacy/adapter/json-api';
|
|
121
121
|
|
|
122
122
|
export default class ApplicationAdapter extends JSONAPIAdapter {
|
|
123
123
|
namespace = 'api/1';
|
|
@@ -102,7 +102,7 @@ import { J as JSONSerializer } from "../json-BWrZ5546.js";
|
|
|
102
102
|
`extractRelationship`.
|
|
103
103
|
|
|
104
104
|
```js [app/serializers/application.js]
|
|
105
|
-
import JSONAPISerializer from '@warp-drive/legacy/serializer/json-api';
|
|
105
|
+
import { JSONAPISerializer } from '@warp-drive/legacy/serializer/json-api';
|
|
106
106
|
|
|
107
107
|
export default class ApplicationSerializer extends JSONAPISerializer {
|
|
108
108
|
normalizeArrayResponse(store, primaryModelClass, payload, id, requestType) {
|
|
@@ -117,7 +117,7 @@ import { RESTAdapter } from './rest.js';
|
|
|
117
117
|
namespace property on the adapter:
|
|
118
118
|
|
|
119
119
|
```js [app/adapters/application.js]
|
|
120
|
-
import JSONAPIAdapter from '@warp-drive/legacy/adapter/json-api';
|
|
120
|
+
import { JSONAPIAdapter } from '@warp-drive/legacy/adapter/json-api';
|
|
121
121
|
|
|
122
122
|
export default class ApplicationAdapter extends JSONAPIAdapter {
|
|
123
123
|
namespace = 'api/1';
|
|
@@ -102,7 +102,7 @@ import { J as JSONSerializer } from "../json-BWrZ5546.js";
|
|
|
102
102
|
`extractRelationship`.
|
|
103
103
|
|
|
104
104
|
```js [app/serializers/application.js]
|
|
105
|
-
import JSONAPISerializer from '@warp-drive/legacy/serializer/json-api';
|
|
105
|
+
import { JSONAPISerializer } from '@warp-drive/legacy/serializer/json-api';
|
|
106
106
|
|
|
107
107
|
export default class ApplicationSerializer extends JSONAPISerializer {
|
|
108
108
|
normalizeArrayResponse(store, primaryModelClass, payload, id, requestType) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-drive/legacy",
|
|
3
|
-
"version": "5.9.0-alpha.
|
|
3
|
+
"version": "5.9.0-alpha.9",
|
|
4
4
|
"description": "Decommissioned Packages for WarpDrive | Things your app might still want to maintain use of for a little longer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@warp-drive/core": "5.9.0-alpha.
|
|
44
|
-
"@warp-drive/utilities": "5.9.0-alpha.
|
|
43
|
+
"@warp-drive/core": "5.9.0-alpha.9",
|
|
44
|
+
"@warp-drive/utilities": "5.9.0-alpha.9"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@embroider/macros": "^1.19.6"
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@babel/plugin-transform-typescript": "^7.28.0",
|
|
52
52
|
"@babel/preset-typescript": "^7.27.1",
|
|
53
53
|
"@types/jquery": "^3.5.33",
|
|
54
|
-
"@warp-drive/internal-config": "5.9.0-alpha.
|
|
55
|
-
"@warp-drive/core": "5.9.0-alpha.
|
|
56
|
-
"@warp-drive/utilities": "5.9.0-alpha.
|
|
54
|
+
"@warp-drive/internal-config": "5.9.0-alpha.9",
|
|
55
|
+
"@warp-drive/core": "5.9.0-alpha.9",
|
|
56
|
+
"@warp-drive/utilities": "5.9.0-alpha.9",
|
|
57
57
|
"ember-source": "~6.10.0",
|
|
58
58
|
"decorator-transforms": "^2.3.0",
|
|
59
59
|
"expect-type": "^1.2.2",
|