@projectcaluma/ember-core 12.5.0 → 12.6.0
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.
|
@@ -2,10 +2,13 @@ import { assert } from "@ember/debug";
|
|
|
2
2
|
import { once } from "@ember/runloop";
|
|
3
3
|
import Service, { inject as service } from "@ember/service";
|
|
4
4
|
import { camelize } from "@ember/string";
|
|
5
|
+
import { dependencySatisfies } from "@embroider/macros";
|
|
5
6
|
import { tracked } from "@glimmer/tracking";
|
|
6
7
|
import { task } from "ember-concurrency";
|
|
7
8
|
import { pluralize } from "ember-inflector";
|
|
8
9
|
|
|
10
|
+
const toArrayIsDeprecated = dependencySatisfies("ember-data", "^4.7.0");
|
|
11
|
+
|
|
9
12
|
/**
|
|
10
13
|
* Decorator to define a type resolver in the scheduler service.
|
|
11
14
|
*
|
|
@@ -37,7 +40,9 @@ function typeResolver(type) {
|
|
|
37
40
|
? yield this.calumaOptions[methodName]?.(uncachedIdentifiers)
|
|
38
41
|
: [];
|
|
39
42
|
|
|
40
|
-
const allResults =
|
|
43
|
+
const allResults = toArrayIsDeprecated
|
|
44
|
+
? [...cached, ...(result ?? [])]
|
|
45
|
+
: [...cached, ...(result?.toArray?.() ?? result ?? [])];
|
|
41
46
|
|
|
42
47
|
if (result?.length) {
|
|
43
48
|
this[`${type}Cache`] = allResults;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@projectcaluma/ember-core",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.6.0",
|
|
4
4
|
"description": "Ember core addon for working with Caluma.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@apollo/client": "^3.7.17",
|
|
13
13
|
"@ember/string": "^3.1.1",
|
|
14
|
+
"@embroider/macros": "^1.13.0",
|
|
14
15
|
"@glimmer/tracking": "^1.1.2",
|
|
15
16
|
"ember-apollo-client": "~4.0.2",
|
|
16
17
|
"ember-auto-import": "^2.6.3",
|
|
@@ -54,8 +55,8 @@
|
|
|
54
55
|
"qunit": "2.19.4",
|
|
55
56
|
"qunit-dom": "2.0.0",
|
|
56
57
|
"uikit": "3.16.26",
|
|
57
|
-
"webpack": "5.
|
|
58
|
-
"@projectcaluma/ember-testing": "12.
|
|
58
|
+
"webpack": "5.89.0",
|
|
59
|
+
"@projectcaluma/ember-testing": "12.6.0"
|
|
59
60
|
},
|
|
60
61
|
"peerDependencies": {
|
|
61
62
|
"ember-source": "^4.0.0"
|