@ember-data/model 5.4.0-alpha.72 → 5.4.0-alpha.73

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/dist/-private.js CHANGED
@@ -1,2 +1,2 @@
1
- export { a as attr, b as belongsTo, h as hasMany } from "./has-many-CR10J-rp";
2
- export { E as Errors, L as LEGACY_SUPPORT, R as ManyArray, M as Model, P as PromiseBelongsTo, a as PromiseManyArray, l as lookupLegacySupport } from "./model-CsbDNxap";
1
+ export { a as attr, b as belongsTo, h as hasMany } from "./has-many-CR10J-rp.js";
2
+ export { E as Errors, L as LEGACY_SUPPORT, R as ManyArray, M as Model, P as PromiseBelongsTo, a as PromiseManyArray, l as lookupLegacySupport } from "./model-CsbDNxap.js";
@@ -1,7 +1,7 @@
1
1
  import { computed } from '@ember/object';
2
2
  import { recordIdentifierFor } from '@ember-data/store';
3
3
  import { peekCache } from '@ember-data/store/-private';
4
- import { k as isElementDescriptor, n as normalizeModelName, l as lookupLegacySupport } from "./model-CsbDNxap";
4
+ import { k as isElementDescriptor, n as normalizeModelName, l as lookupLegacySupport } from "./model-CsbDNxap.js";
5
5
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
6
6
  import { warn, deprecate } from '@ember/debug';
7
7
  import { RecordStore } from '@warp-drive/core-types/symbols';
@@ -1,7 +1,7 @@
1
1
  import { setOwner, getOwner } from '@ember/application';
2
2
  import { setRecordIdentifier, StoreMap, setCacheFor } from '@ember-data/store/-private';
3
- import { g as getModelFactory } from "./schema-provider-Blw1xpOH";
4
- import { n as normalizeModelName } from "./model-CsbDNxap";
3
+ import { g as getModelFactory } from "./schema-provider-Blw1xpOH.js";
4
+ import { n as normalizeModelName } from "./model-CsbDNxap.js";
5
5
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
6
6
  function instantiateRecord(identifier, createRecordArgs) {
7
7
  const type = identifier.type;
package/dist/hooks.js CHANGED
@@ -1,2 +1,2 @@
1
- export { i as instantiateRecord, m as modelFor, t as teardownRecord } from "./hooks-BQaMzbZg";
2
- export { b as buildSchema } from "./schema-provider-Blw1xpOH";
1
+ export { i as instantiateRecord, m as modelFor, t as teardownRecord } from "./hooks-BQaMzbZg.js";
2
+ export { b as buildSchema } from "./schema-provider-Blw1xpOH.js";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { a as attr, b as belongsTo, h as hasMany } from "./has-many-CR10J-rp";
2
- export { M as default } from "./model-CsbDNxap";
3
- export { i as instantiateRecord, m as modelFor, t as teardownRecord } from "./hooks-BQaMzbZg";
4
- export { M as ModelSchemaProvider } from "./schema-provider-Blw1xpOH";
1
+ export { a as attr, b as belongsTo, h as hasMany } from "./has-many-CR10J-rp.js";
2
+ export { M as default } from "./model-CsbDNxap.js";
3
+ export { i as instantiateRecord, m as modelFor, t as teardownRecord } from "./hooks-BQaMzbZg.js";
4
+ export { M as ModelSchemaProvider } from "./schema-provider-Blw1xpOH.js";
@@ -6,10 +6,10 @@ import '@ember-data/store/-private';
6
6
  import '@ember/debug';
7
7
  import '@ember/string';
8
8
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
9
- import { u as unloadRecord, s as serialize, b as save, r as rollbackAttributes, c as reload, h as hasMany, E as Errors, d as destroyRecord, e as deleteRecord, f as RecordState, g as changedAttributes, i as belongsTo, j as createSnapshot } from "./model-CsbDNxap";
9
+ import { u as unloadRecord, s as serialize, b as save, r as rollbackAttributes, c as reload, h as hasMany, E as Errors, d as destroyRecord, e as deleteRecord, f as RecordState, g as changedAttributes, i as belongsTo, j as createSnapshot } from "./model-CsbDNxap.js";
10
10
  import 'ember-inflector';
11
11
  import '@ember/application';
12
- import { b as buildSchema } from "./schema-provider-Blw1xpOH";
12
+ import { b as buildSchema } from "./schema-provider-Blw1xpOH.js";
13
13
 
14
14
  // 'isDestroying', 'isDestroyed'
15
15
  const LegacyFields = ['_createSnapshot', 'adapterError', 'belongsTo', 'changedAttributes', 'constructor', 'currentState', 'deleteRecord', 'destroyRecord', 'dirtyType', 'errors', 'hasDirtyAttributes', 'hasMany', 'isDeleted', 'isEmpty', 'isError', 'isLoaded', 'isLoading', 'isNew', 'isSaving', 'isValid', 'reload', 'rollbackAttributes', 'save', 'serialize', 'unloadRecord'];
@@ -1,6 +1,6 @@
1
1
  import { getOwner } from '@ember/application';
2
2
  import { deprecate } from '@ember/debug';
3
- import { M as Model, n as normalizeModelName } from "./model-CsbDNxap";
3
+ import { M as Model, n as normalizeModelName } from "./model-CsbDNxap.js";
4
4
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
5
5
 
6
6
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-data/model",
3
- "version": "5.4.0-alpha.72",
3
+ "version": "5.4.0-alpha.73",
4
4
  "description": "A basic Ember implementation of a resource presentation layer for use with @ember-data/store",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -21,7 +21,7 @@
21
21
  "ember-addon": {
22
22
  "main": "addon-main.cjs",
23
23
  "type": "addon",
24
- "version": 1
24
+ "version": 2
25
25
  },
26
26
  "files": [
27
27
  "unstable-preview-types",
@@ -33,14 +33,22 @@
33
33
  "ember-data-logo-dark.svg",
34
34
  "ember-data-logo-light.svg"
35
35
  ],
36
+ "exports": {
37
+ ".": {
38
+ "default": "./dist/index.js"
39
+ },
40
+ "./*": {
41
+ "default": "./dist/*.js"
42
+ }
43
+ },
36
44
  "peerDependencies": {
37
- "@ember-data/graph": "5.4.0-alpha.72",
38
- "@ember-data/json-api": "5.4.0-alpha.72",
39
- "@ember-data/legacy-compat": "5.4.0-alpha.72",
40
- "@ember-data/store": "5.4.0-alpha.72",
41
- "@ember-data/tracking": "5.4.0-alpha.72",
45
+ "@ember-data/graph": "5.4.0-alpha.73",
46
+ "@ember-data/json-api": "5.4.0-alpha.73",
47
+ "@ember-data/legacy-compat": "5.4.0-alpha.73",
48
+ "@ember-data/store": "5.4.0-alpha.73",
49
+ "@ember-data/tracking": "5.4.0-alpha.73",
42
50
  "@ember/string": "^3.1.1",
43
- "@warp-drive/core-types": "0.0.0-alpha.58",
51
+ "@warp-drive/core-types": "0.0.0-alpha.59",
44
52
  "ember-inflector": "^4.0.2"
45
53
  },
46
54
  "peerDependenciesMeta": {
@@ -92,26 +100,25 @@
92
100
  "ember-cli-string-utils": "^1.1.0",
93
101
  "ember-cli-test-info": "^1.0.0",
94
102
  "inflection": "~3.0.0",
95
- "@warp-drive/build-config": "0.0.0-alpha.9",
96
- "ember-cli-babel": "^8.2.0"
103
+ "@warp-drive/build-config": "0.0.0-alpha.10"
97
104
  },
98
105
  "devDependencies": {
99
106
  "@babel/core": "^7.24.5",
100
107
  "@babel/plugin-transform-typescript": "^7.24.5",
101
108
  "@babel/preset-env": "^7.24.5",
102
109
  "@babel/preset-typescript": "^7.24.1",
103
- "@ember-data/graph": "5.4.0-alpha.72",
104
- "@ember-data/json-api": "5.4.0-alpha.72",
105
- "@ember-data/legacy-compat": "5.4.0-alpha.72",
106
- "@ember-data/request": "5.4.0-alpha.72",
107
- "@ember-data/request-utils": "5.4.0-alpha.72",
108
- "@ember-data/store": "5.4.0-alpha.72",
109
- "@ember-data/tracking": "5.4.0-alpha.72",
110
+ "@ember-data/graph": "5.4.0-alpha.73",
111
+ "@ember-data/json-api": "5.4.0-alpha.73",
112
+ "@ember-data/legacy-compat": "5.4.0-alpha.73",
113
+ "@ember-data/request": "5.4.0-alpha.73",
114
+ "@ember-data/request-utils": "5.4.0-alpha.73",
115
+ "@ember-data/store": "5.4.0-alpha.73",
116
+ "@ember-data/tracking": "5.4.0-alpha.73",
110
117
  "@ember/test-waiters": "^3.1.0",
111
118
  "@ember/string": "^3.1.1",
112
119
  "@glimmer/component": "^1.1.2",
113
- "@warp-drive/core-types": "0.0.0-alpha.58",
114
- "@warp-drive/internal-config": "5.4.0-alpha.72",
120
+ "@warp-drive/core-types": "0.0.0-alpha.59",
121
+ "@warp-drive/internal-config": "5.4.0-alpha.73",
115
122
  "decorator-transforms": "^2.0.0",
116
123
  "ember-inflector": "^4.0.2",
117
124
  "ember-source": "~5.8.0",