@warp-drive/legacy 5.9.0-alpha.0 → 5.9.0-alpha.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/declarations/model-fragments/utilities/with-array-defaults.d.ts +13 -2
- package/dist/model-fragments.js +6 -3
- package/dist/unpkg/dev/model-fragments.js +6 -3
- package/dist/unpkg/dev-deprecated/model-fragments.js +6 -3
- package/dist/unpkg/prod/model-fragments.js +6 -3
- package/dist/unpkg/prod-deprecated/model-fragments.js +6 -3
- package/package.json +11 -11
|
@@ -3,12 +3,23 @@
|
|
|
3
3
|
* schema and add extensions etc.
|
|
4
4
|
*
|
|
5
5
|
* @param arrayName The name of the array
|
|
6
|
+
* @param primitiveType The primitive type of items in the array (optional)
|
|
6
7
|
* @returns The schema for an array
|
|
7
8
|
*/
|
|
8
|
-
export declare function withArrayDefaults<
|
|
9
|
+
export declare function withArrayDefaults<
|
|
10
|
+
ArrayName extends string,
|
|
11
|
+
PrimitiveType extends string
|
|
12
|
+
>(arrayName: ArrayName, primitiveType?: PrimitiveType): PrimitiveType extends undefined ? {
|
|
9
13
|
kind: "array";
|
|
10
14
|
name: ArrayName;
|
|
11
|
-
type:
|
|
15
|
+
type: "array";
|
|
16
|
+
options: {
|
|
17
|
+
arrayExtensions: string[];
|
|
18
|
+
};
|
|
19
|
+
} : {
|
|
20
|
+
kind: "array";
|
|
21
|
+
name: ArrayName;
|
|
22
|
+
type: `array:${PrimitiveType}`;
|
|
12
23
|
options: {
|
|
13
24
|
arrayExtensions: string[];
|
|
14
25
|
};
|
package/dist/model-fragments.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { pluralize, singularize } from '@warp-drive/utilities/string';
|
|
2
2
|
import { withDefaults } from './model/migration-support.js';
|
|
3
3
|
import { F as FragmentExtension, a as FragmentArrayExtension } from "./model-for-CqXsIKws.js";
|
|
4
4
|
export { c as Fragment, b as FragmentArray, m as modelFor } from "./model-for-CqXsIKws.js";
|
|
@@ -8,13 +8,16 @@ export { c as Fragment, b as FragmentArray, m as modelFor } from "./model-for-Cq
|
|
|
8
8
|
* schema and add extensions etc.
|
|
9
9
|
*
|
|
10
10
|
* @param arrayName The name of the array
|
|
11
|
+
* @param primitiveType The primitive type of items in the array (optional)
|
|
11
12
|
* @returns The schema for an array
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
function withArrayDefaults(arrayName, primitiveType) {
|
|
16
|
+
const type = primitiveType ? `array:${primitiveType}` : 'array';
|
|
14
17
|
return {
|
|
15
18
|
kind: 'array',
|
|
16
19
|
name: arrayName,
|
|
17
|
-
type
|
|
20
|
+
type,
|
|
18
21
|
options: {
|
|
19
22
|
arrayExtensions: ['ember-object', 'ember-array-like', 'fragment-array']
|
|
20
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { pluralize, singularize } from '@warp-drive/utilities/string';
|
|
2
2
|
import { withDefaults } from './model/migration-support.js';
|
|
3
3
|
import { F as FragmentExtension, a as FragmentArrayExtension } from "./model-for-CqXsIKws.js";
|
|
4
4
|
export { c as Fragment, b as FragmentArray, m as modelFor } from "./model-for-CqXsIKws.js";
|
|
@@ -8,13 +8,16 @@ export { c as Fragment, b as FragmentArray, m as modelFor } from "./model-for-Cq
|
|
|
8
8
|
* schema and add extensions etc.
|
|
9
9
|
*
|
|
10
10
|
* @param arrayName The name of the array
|
|
11
|
+
* @param primitiveType The primitive type of items in the array (optional)
|
|
11
12
|
* @returns The schema for an array
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
function withArrayDefaults(arrayName, primitiveType) {
|
|
16
|
+
const type = primitiveType ? `array:${primitiveType}` : 'array';
|
|
14
17
|
return {
|
|
15
18
|
kind: 'array',
|
|
16
19
|
name: arrayName,
|
|
17
|
-
type
|
|
20
|
+
type,
|
|
18
21
|
options: {
|
|
19
22
|
arrayExtensions: ['ember-object', 'ember-array-like', 'fragment-array']
|
|
20
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { pluralize, singularize } from '@warp-drive/utilities/string';
|
|
2
2
|
import { withDefaults } from './model/migration-support.js';
|
|
3
3
|
import { F as FragmentExtension, a as FragmentArrayExtension } from "./model-for-CqXsIKws.js";
|
|
4
4
|
export { c as Fragment, b as FragmentArray, m as modelFor } from "./model-for-CqXsIKws.js";
|
|
@@ -8,13 +8,16 @@ export { c as Fragment, b as FragmentArray, m as modelFor } from "./model-for-Cq
|
|
|
8
8
|
* schema and add extensions etc.
|
|
9
9
|
*
|
|
10
10
|
* @param arrayName The name of the array
|
|
11
|
+
* @param primitiveType The primitive type of items in the array (optional)
|
|
11
12
|
* @returns The schema for an array
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
function withArrayDefaults(arrayName, primitiveType) {
|
|
16
|
+
const type = primitiveType ? `array:${primitiveType}` : 'array';
|
|
14
17
|
return {
|
|
15
18
|
kind: 'array',
|
|
16
19
|
name: arrayName,
|
|
17
|
-
type
|
|
20
|
+
type,
|
|
18
21
|
options: {
|
|
19
22
|
arrayExtensions: ['ember-object', 'ember-array-like', 'fragment-array']
|
|
20
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { pluralize, singularize } from '@warp-drive/utilities/string';
|
|
2
2
|
import { withDefaults } from './model/migration-support.js';
|
|
3
3
|
import { F as FragmentExtension, a as FragmentArrayExtension } from "./model-for-CqXsIKws.js";
|
|
4
4
|
export { c as Fragment, b as FragmentArray, m as modelFor } from "./model-for-CqXsIKws.js";
|
|
@@ -8,13 +8,16 @@ export { c as Fragment, b as FragmentArray, m as modelFor } from "./model-for-Cq
|
|
|
8
8
|
* schema and add extensions etc.
|
|
9
9
|
*
|
|
10
10
|
* @param arrayName The name of the array
|
|
11
|
+
* @param primitiveType The primitive type of items in the array (optional)
|
|
11
12
|
* @returns The schema for an array
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
function withArrayDefaults(arrayName, primitiveType) {
|
|
16
|
+
const type = primitiveType ? `array:${primitiveType}` : 'array';
|
|
14
17
|
return {
|
|
15
18
|
kind: 'array',
|
|
16
19
|
name: arrayName,
|
|
17
|
-
type
|
|
20
|
+
type,
|
|
18
21
|
options: {
|
|
19
22
|
arrayExtensions: ['ember-object', 'ember-array-like', 'fragment-array']
|
|
20
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { pluralize, singularize } from '@warp-drive/utilities/string';
|
|
2
2
|
import { withDefaults } from './model/migration-support.js';
|
|
3
3
|
import { F as FragmentExtension, a as FragmentArrayExtension } from "./model-for-CqXsIKws.js";
|
|
4
4
|
export { c as Fragment, b as FragmentArray, m as modelFor } from "./model-for-CqXsIKws.js";
|
|
@@ -8,13 +8,16 @@ export { c as Fragment, b as FragmentArray, m as modelFor } from "./model-for-Cq
|
|
|
8
8
|
* schema and add extensions etc.
|
|
9
9
|
*
|
|
10
10
|
* @param arrayName The name of the array
|
|
11
|
+
* @param primitiveType The primitive type of items in the array (optional)
|
|
11
12
|
* @returns The schema for an array
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
function withArrayDefaults(arrayName, primitiveType) {
|
|
16
|
+
const type = primitiveType ? `array:${primitiveType}` : 'array';
|
|
14
17
|
return {
|
|
15
18
|
kind: 'array',
|
|
16
19
|
name: arrayName,
|
|
17
|
-
type
|
|
20
|
+
type,
|
|
18
21
|
options: {
|
|
19
22
|
arrayExtensions: ['ember-object', 'ember-array-like', 'fragment-array']
|
|
20
23
|
}
|
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.2",
|
|
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,25 +40,25 @@
|
|
|
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.2",
|
|
44
|
+
"@warp-drive/utilities": "5.9.0-alpha.2"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@embroider/macros": "^1.
|
|
47
|
+
"@embroider/macros": "^1.19.6"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@babel/core": "^7.28.3",
|
|
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.
|
|
57
|
-
"ember-source": "~6.
|
|
54
|
+
"@warp-drive/internal-config": "5.9.0-alpha.2",
|
|
55
|
+
"@warp-drive/core": "5.9.0-alpha.2",
|
|
56
|
+
"@warp-drive/utilities": "5.9.0-alpha.2",
|
|
57
|
+
"ember-source": "~6.10.0",
|
|
58
58
|
"decorator-transforms": "^2.3.0",
|
|
59
59
|
"expect-type": "^1.2.2",
|
|
60
|
-
"typescript": "^5.9.
|
|
61
|
-
"vite": "^7.1
|
|
60
|
+
"typescript": "^5.9.3",
|
|
61
|
+
"vite": "^7.3.1"
|
|
62
62
|
},
|
|
63
63
|
"volta": {
|
|
64
64
|
"extends": "../../package.json"
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"edition": "octane"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
|
-
"build:pkg": "vite build
|
|
75
|
+
"build:pkg": "vite build",
|
|
76
76
|
"lint": "eslint . --quiet --cache --cache-strategy=content",
|
|
77
77
|
"sync": "echo \"syncing\"",
|
|
78
78
|
"start": "vite"
|