@ember-data/model 4.12.0-alpha.11 → 4.12.0-alpha.13
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/addon/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as attr, b as belongsTo, M as default, h as hasMany } from "./has-many-
|
|
1
|
+
export { a as attr, b as belongsTo, M as default, h as hasMany } from "./has-many-f4cb2303";
|
package/addon-main.js
CHANGED
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
const requireModule = require('@ember-data/private-build-infra/src/utilities/require-module');
|
|
2
|
+
const getEnv = require('@ember-data/private-build-infra/src/utilities/get-env');
|
|
3
|
+
const detectModule = require('@ember-data/private-build-infra/src/utilities/detect-module');
|
|
2
4
|
|
|
3
5
|
const pkg = require('./package.json');
|
|
4
6
|
|
|
5
|
-
// do our best to detect being present
|
|
6
|
-
// Note: when this is not enough, consuming apps may need
|
|
7
|
-
// to "hoist" peer-deps or specify us as a direct dependency
|
|
8
|
-
// in order to deal with peer-dep bugs in package managers
|
|
9
|
-
function detectModule(moduleName) {
|
|
10
|
-
try {
|
|
11
|
-
// package managers have peer-deps bugs where another library
|
|
12
|
-
// bringing a peer-dependency doesn't necessarily result in all
|
|
13
|
-
// versions of the dependent getting the peer-dependency
|
|
14
|
-
//
|
|
15
|
-
// so we resolve from project as well as from our own location
|
|
16
|
-
//
|
|
17
|
-
// eslint-disable-next-line node/no-missing-require
|
|
18
|
-
require.resolve(moduleName, { paths: [process.cwd(), __dirname] });
|
|
19
|
-
return true;
|
|
20
|
-
} catch {
|
|
21
|
-
try {
|
|
22
|
-
// ember-data brings all packages so if present we are present
|
|
23
|
-
//
|
|
24
|
-
// eslint-disable-next-line node/no-missing-require
|
|
25
|
-
require.resolve('ember-data', { paths: [process.cwd(), __dirname] });
|
|
26
|
-
return true;
|
|
27
|
-
} catch {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
7
|
module.exports = {
|
|
34
8
|
name: pkg.name,
|
|
35
9
|
|
|
@@ -53,6 +27,7 @@ module.exports = {
|
|
|
53
27
|
LOG_OPERATIONS: false,
|
|
54
28
|
LOG_MUTATIONS: false,
|
|
55
29
|
LOG_NOTIFICATIONS: false,
|
|
30
|
+
LOG_REQUESTS: false,
|
|
56
31
|
LOG_REQUEST_STATUS: false,
|
|
57
32
|
LOG_IDENTIFIERS: false,
|
|
58
33
|
LOG_GRAPH: false,
|
|
@@ -61,8 +36,8 @@ module.exports = {
|
|
|
61
36
|
hostOptions.debug || {}
|
|
62
37
|
);
|
|
63
38
|
|
|
64
|
-
const HAS_DEBUG_PACKAGE = detectModule('@ember-data/debug');
|
|
65
|
-
const HAS_META_PACKAGE = detectModule('ember-data');
|
|
39
|
+
const HAS_DEBUG_PACKAGE = detectModule(require, '@ember-data/debug', __dirname, pkg);
|
|
40
|
+
const HAS_META_PACKAGE = detectModule(require, 'ember-data', __dirname, pkg);
|
|
66
41
|
|
|
67
42
|
const includeDataAdapterInProduction =
|
|
68
43
|
typeof hostOptions.includeDataAdapterInProduction === 'boolean'
|
|
@@ -78,7 +53,7 @@ module.exports = {
|
|
|
78
53
|
delete MACRO_PACKAGE_FLAGS['HAS_DEBUG_PACKAGE'];
|
|
79
54
|
|
|
80
55
|
Object.keys(MACRO_PACKAGE_FLAGS).forEach((key) => {
|
|
81
|
-
MACRO_PACKAGE_FLAGS[key] = detectModule(MACRO_PACKAGE_FLAGS[key]);
|
|
56
|
+
MACRO_PACKAGE_FLAGS[key] = detectModule(require, MACRO_PACKAGE_FLAGS[key], __dirname, pkg);
|
|
82
57
|
});
|
|
83
58
|
|
|
84
59
|
// copy configs forward
|
|
@@ -89,6 +64,7 @@ module.exports = {
|
|
|
89
64
|
ownConfig.features = Object.assign({}, FEATURES);
|
|
90
65
|
ownConfig.includeDataAdapter = includeDataAdapter;
|
|
91
66
|
ownConfig.packages = MACRO_PACKAGE_FLAGS;
|
|
67
|
+
ownConfig.env = getEnv(ownConfig);
|
|
92
68
|
|
|
93
69
|
this._emberDataConfig = ownConfig;
|
|
94
70
|
return ownConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data/model",
|
|
3
|
-
"version": "4.12.0-alpha.
|
|
3
|
+
"version": "4.12.0-alpha.13",
|
|
4
4
|
"description": "A presentation layer for apps built with @ember-data/store",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -23,11 +23,12 @@
|
|
|
23
23
|
"addon"
|
|
24
24
|
],
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@ember-data/
|
|
27
|
-
"@ember-data/
|
|
28
|
-
"@ember-data/
|
|
29
|
-
"@ember-data/
|
|
30
|
-
"@ember-data/
|
|
26
|
+
"@ember-data/debug": "4.12.0-alpha.13",
|
|
27
|
+
"@ember-data/json-api": "4.12.0-alpha.13",
|
|
28
|
+
"@ember-data/legacy-compat": "4.12.0-alpha.13",
|
|
29
|
+
"@ember-data/graph": "4.12.0-alpha.13",
|
|
30
|
+
"@ember-data/store": "4.12.0-alpha.13",
|
|
31
|
+
"@ember-data/tracking": "4.12.0-alpha.13",
|
|
31
32
|
"@ember/string": "^3.0.1",
|
|
32
33
|
"ember-inflector": "^4.0.2"
|
|
33
34
|
},
|
|
@@ -37,19 +38,18 @@
|
|
|
37
38
|
},
|
|
38
39
|
"@ember-data/graph": {
|
|
39
40
|
"optional": true
|
|
41
|
+
},
|
|
42
|
+
"@ember-data/debug": {
|
|
43
|
+
"optional": true
|
|
40
44
|
}
|
|
41
45
|
},
|
|
42
46
|
"dependenciesMeta": {
|
|
43
|
-
"@ember-data/canary-features": {
|
|
44
|
-
"injected": true
|
|
45
|
-
},
|
|
46
47
|
"@ember-data/private-build-infra": {
|
|
47
48
|
"injected": true
|
|
48
49
|
}
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
|
-
"@ember-data/
|
|
52
|
-
"@ember-data/private-build-infra": "4.12.0-alpha.11",
|
|
52
|
+
"@ember-data/private-build-infra": "4.12.0-alpha.13",
|
|
53
53
|
"@ember/edition-utils": "^1.2.0",
|
|
54
54
|
"@embroider/macros": "^1.10.0",
|
|
55
55
|
"ember-cached-decorator-polyfill": "^1.0.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@glimmer/component": "^1.1.2",
|
|
65
65
|
"ember-source": "~4.11.0",
|
|
66
66
|
"@embroider/addon-dev": "^3.0.0",
|
|
67
|
-
"rollup": "^3.20.
|
|
67
|
+
"rollup": "^3.20.2",
|
|
68
68
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
69
69
|
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
70
70
|
"@babel/plugin-proposal-decorators": "^7.21.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"volta": {
|
|
86
86
|
"extends": "../../package.json"
|
|
87
87
|
},
|
|
88
|
-
"packageManager": "pnpm@7.30.
|
|
88
|
+
"packageManager": "pnpm@7.30.3",
|
|
89
89
|
"scripts": {
|
|
90
90
|
"build": "rollup --config && babel ./addon --out-dir addon --plugins=../private-build-infra/src/transforms/babel-plugin-transform-ext.js",
|
|
91
91
|
"start": "rollup --config --watch"
|