@ember-data/model 5.4.0-alpha.28 → 5.4.0-alpha.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-data/model",
3
- "version": "5.4.0-alpha.28",
3
+ "version": "5.4.0-alpha.29",
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"
@@ -28,14 +28,14 @@
28
28
  "ember-data-logo-light.svg"
29
29
  ],
30
30
  "peerDependencies": {
31
- "@ember-data/debug": "5.4.0-alpha.28",
32
- "@ember-data/graph": "5.4.0-alpha.28",
33
- "@ember-data/json-api": "5.4.0-alpha.28",
34
- "@ember-data/legacy-compat": "5.4.0-alpha.28",
35
- "@ember-data/store": "5.4.0-alpha.28",
36
- "@ember-data/tracking": "5.4.0-alpha.28",
31
+ "@ember-data/debug": "5.4.0-alpha.29",
32
+ "@ember-data/graph": "5.4.0-alpha.29",
33
+ "@ember-data/json-api": "5.4.0-alpha.29",
34
+ "@ember-data/legacy-compat": "5.4.0-alpha.29",
35
+ "@ember-data/store": "5.4.0-alpha.29",
36
+ "@ember-data/tracking": "5.4.0-alpha.29",
37
37
  "@ember/string": "^3.1.1",
38
- "@warp-drive/core-types": "0.0.0-alpha.14",
38
+ "@warp-drive/core-types": "0.0.0-alpha.15",
39
39
  "ember-inflector": "^4.0.2"
40
40
  },
41
41
  "peerDependenciesMeta": {
@@ -88,7 +88,7 @@
88
88
  }
89
89
  },
90
90
  "dependencies": {
91
- "@ember-data/private-build-infra": "5.4.0-alpha.28",
91
+ "@ember-data/private-build-infra": "5.4.0-alpha.29",
92
92
  "@ember/edition-utils": "^1.2.0",
93
93
  "@embroider/macros": "^1.13.5",
94
94
  "ember-cli-babel": "^8.2.0",
@@ -108,21 +108,21 @@
108
108
  "@babel/preset-env": "^7.23.9",
109
109
  "@babel/preset-typescript": "^7.23.3",
110
110
  "@babel/runtime": "^7.23.9",
111
- "@ember-data/debug": "5.4.0-alpha.28",
112
- "@ember-data/graph": "5.4.0-alpha.28",
113
- "@ember-data/json-api": "5.4.0-alpha.28",
114
- "@ember-data/legacy-compat": "5.4.0-alpha.28",
115
- "@ember-data/request": "5.4.0-alpha.28",
116
- "@ember-data/request-utils": "5.4.0-alpha.28",
117
- "@ember-data/store": "5.4.0-alpha.28",
118
- "@ember-data/tracking": "5.4.0-alpha.28",
111
+ "@ember-data/debug": "5.4.0-alpha.29",
112
+ "@ember-data/graph": "5.4.0-alpha.29",
113
+ "@ember-data/json-api": "5.4.0-alpha.29",
114
+ "@ember-data/legacy-compat": "5.4.0-alpha.29",
115
+ "@ember-data/request": "5.4.0-alpha.29",
116
+ "@ember-data/request-utils": "5.4.0-alpha.29",
117
+ "@ember-data/store": "5.4.0-alpha.29",
118
+ "@ember-data/tracking": "5.4.0-alpha.29",
119
119
  "@ember/string": "^3.1.1",
120
120
  "@embroider/addon-dev": "^4.1.2",
121
121
  "@glimmer/component": "^1.1.2",
122
122
  "@rollup/plugin-babel": "^6.0.4",
123
123
  "@rollup/plugin-node-resolve": "^15.2.3",
124
- "@warp-drive/core-types": "0.0.0-alpha.14",
125
- "@warp-drive/internal-config": "5.4.0-alpha.28",
124
+ "@warp-drive/core-types": "0.0.0-alpha.15",
125
+ "@warp-drive/internal-config": "5.4.0-alpha.29",
126
126
  "ember-inflector": "^4.0.2",
127
127
  "ember-source": "~5.6.0",
128
128
  "rollup": "^4.9.6",
@@ -1 +0,0 @@
1
- {"version":3,"file":"hooks-dXmQbIOF.js","sources":["../src/-private/model-for-mixin.ts","../src/-private/schema-provider.ts","../src/-private/hooks.ts"],"sourcesContent":["import { getOwner } from '@ember/application';\n\nimport type Store from '@ember-data/store';\n\nimport Model, { type ModelFactory } from './model';\n\n/*\n In case someone defined a relationship to a mixin, for example:\n ```ts\n class CommentModel extends Model {\n @belongsTo('commentable', { polymorphic: true }) owner;\n }\n\n let Commentable = Mixin.create({\n @hasMany('comment') comments;\n });\n ```\n we want to look up a Commentable class which has all the necessary\n relationship meta data. Thus, we look up the mixin and create a mock\n Model, so we can access the relationship CPs of the mixin (`comments`)\n in this case\n */\nexport default function modelForMixin(store: Store, normalizedModelName: string): ModelFactory | undefined {\n const owner = getOwner(store)!;\n const MaybeMixin = owner.factoryFor(`mixin:${normalizedModelName}`);\n const mixin = MaybeMixin && MaybeMixin.class;\n if (mixin) {\n const ModelForMixin = Model.extend(mixin);\n ModelForMixin.__isMixin = true;\n ModelForMixin.__mixin = mixin;\n //Cache the class as a model\n owner.register(`model:${normalizedModelName}`, ModelForMixin);\n }\n return owner.factoryFor(`model:${normalizedModelName}`) as ModelFactory | undefined;\n}\n","import { getOwner } from '@ember/application';\n\nimport type Store from '@ember-data/store';\nimport type { FieldSchema } from '@ember-data/store/-types/q/schema-service';\nimport type { RecordIdentifier } from '@warp-drive/core-types/identifier';\nimport type { AttributesSchema, RelationshipsSchema } from '@warp-drive/core-types/schema';\n\nimport type { FactoryCache, ModelFactory, ModelStore } from './model';\nimport type Model from './model';\nimport _modelForMixin from './model-for-mixin';\nimport { normalizeModelName } from './util';\n\nexport class ModelSchemaProvider {\n declare store: ModelStore;\n declare _relationshipsDefCache: Record<string, RelationshipsSchema>;\n declare _attributesDefCache: Record<string, AttributesSchema>;\n declare _fieldsDefCache: Record<string, Map<string, FieldSchema>>;\n\n constructor(store: ModelStore) {\n this.store = store;\n this._relationshipsDefCache = Object.create(null) as Record<string, RelationshipsSchema>;\n this._attributesDefCache = Object.create(null) as Record<string, AttributesSchema>;\n this._fieldsDefCache = Object.create(null) as Record<string, Map<string, FieldSchema>>;\n }\n\n fields(identifier: RecordIdentifier | { type: string }): Map<string, FieldSchema> {\n const { type } = identifier;\n let fieldDefs: Map<string, FieldSchema> | undefined = this._fieldsDefCache[type];\n\n if (fieldDefs === undefined) {\n fieldDefs = new Map();\n this._fieldsDefCache[type] = fieldDefs;\n\n const attributes = this.attributesDefinitionFor(identifier);\n const relationships = this.relationshipsDefinitionFor(identifier);\n\n for (const attr of Object.values(attributes)) {\n fieldDefs.set(attr.name, attr);\n }\n\n for (const rel of Object.values(relationships)) {\n fieldDefs.set(rel.name, rel);\n }\n }\n\n return fieldDefs;\n }\n\n // Following the existing RD implementation\n attributesDefinitionFor(identifier: RecordIdentifier | { type: string }): AttributesSchema {\n const { type } = identifier;\n let attributes: AttributesSchema;\n\n attributes = this._attributesDefCache[type];\n\n if (attributes === undefined) {\n const modelClass = this.store.modelFor(type);\n const attributeMap = modelClass.attributes;\n\n attributes = Object.create(null) as AttributesSchema;\n attributeMap.forEach((meta, name) => (attributes[name] = meta));\n this._attributesDefCache[type] = attributes;\n }\n\n return attributes;\n }\n\n // Following the existing RD implementation\n relationshipsDefinitionFor(identifier: RecordIdentifier | { type: string }): RelationshipsSchema {\n const { type } = identifier;\n let relationships: RelationshipsSchema;\n\n relationships = this._relationshipsDefCache[type];\n\n if (relationships === undefined) {\n const modelClass = this.store.modelFor(type) as typeof Model;\n relationships = modelClass.relationshipsObject || null;\n this._relationshipsDefCache[type] = relationships;\n }\n\n return relationships;\n }\n\n doesTypeExist(modelName: string): boolean {\n const type = normalizeModelName(modelName);\n const factory = getModelFactory(this.store, type);\n\n return factory !== null;\n }\n}\n\nexport function buildSchema(store: Store) {\n return new ModelSchemaProvider(store as ModelStore);\n}\n\nexport function getModelFactory(store: ModelStore, type: string): ModelFactory | null {\n if (!store._modelFactoryCache) {\n store._modelFactoryCache = Object.create(null) as FactoryCache;\n }\n const cache = store._modelFactoryCache;\n let factory: ModelFactory | undefined = cache[type];\n\n if (!factory) {\n const owner = getOwner(store)!;\n factory = owner.factoryFor(`model:${type}`) as ModelFactory | undefined;\n\n if (!factory) {\n //Support looking up mixins as base types for polymorphic relationships\n factory = _modelForMixin(store, type);\n }\n\n if (!factory) {\n // we don't cache misses in case someone wants to register a missing model\n return null;\n }\n\n const klass = factory.class;\n\n if (klass.isModel) {\n const hasOwnModelNameSet = klass.modelName && Object.prototype.hasOwnProperty.call(klass, 'modelName');\n if (!hasOwnModelNameSet) {\n Object.defineProperty(klass, 'modelName', { value: type });\n }\n }\n\n cache[type] = factory;\n }\n\n return factory;\n}\n","import { getOwner, setOwner } from '@ember/application';\nimport { assert } from '@ember/debug';\n\nimport { setCacheFor, setRecordIdentifier, type Store, StoreMap } from '@ember-data/store/-private';\nimport type { StableRecordIdentifier } from '@warp-drive/core-types';\nimport type { Cache } from '@warp-drive/core-types/cache';\n\nimport type { ModelStore } from './model';\nimport type Model from './model';\nimport { getModelFactory } from './schema-provider';\nimport { normalizeModelName } from './util';\n\nfunction recast(context: Store): asserts context is ModelStore {}\n\nexport function instantiateRecord(\n this: Store,\n identifier: StableRecordIdentifier,\n createRecordArgs: { [key: string]: unknown }\n): Model {\n const type = identifier.type;\n\n recast(this);\n\n const cache = this.cache;\n // TODO deprecate allowing unknown args setting\n const createOptions = {\n _createProps: createRecordArgs,\n // TODO @deprecate consider deprecating accessing record properties during init which the below is necessary for\n _secretInit: {\n identifier,\n cache,\n store: this,\n cb: secretInit,\n },\n };\n\n // ensure that `getOwner(this)` works inside a model instance\n setOwner(createOptions, getOwner(this)!);\n const factory = getModelFactory(this, type);\n\n assert(`No model was found for '${type}'`, factory);\n return factory.class.create(createOptions);\n}\n\nexport function teardownRecord(record: Model): void {\n assert(\n `expected to receive an instance of Model from @ember-data/model. If using a custom model make sure you implement teardownRecord`,\n 'destroy' in record\n );\n record.destroy();\n}\n\nexport function modelFor(this: Store, modelName: string): typeof Model | void {\n assert(\n `Attempted to call store.modelFor(), but the store instance has already been destroyed.`,\n !this.isDestroyed && !this.isDestroying\n );\n assert(`You need to pass a model name to the store's modelFor method`, modelName);\n assert(\n `Please pass a proper model name to the store's modelFor method`,\n typeof modelName === 'string' && modelName.length\n );\n recast(this);\n\n const type = normalizeModelName(modelName);\n const maybeFactory = getModelFactory(this, type);\n const klass = maybeFactory && maybeFactory.class ? maybeFactory.class : null;\n\n const ignoreType = !klass || !klass.isModel || this._forceShim;\n if (!ignoreType) {\n return klass;\n }\n assert(\n `No model was found for '${type}' and no schema handles the type`,\n this.getSchemaDefinitionService().doesTypeExist(type)\n );\n}\n\nfunction secretInit(record: Model, cache: Cache, identifier: StableRecordIdentifier, store: Store): void {\n setRecordIdentifier(record, identifier);\n StoreMap.set(record, store);\n setCacheFor(record, cache);\n}\n"],"names":["modelForMixin","store","normalizedModelName","owner","getOwner","MaybeMixin","factoryFor","mixin","class","ModelForMixin","Model","extend","__isMixin","__mixin","register","ModelSchemaProvider","constructor","_relationshipsDefCache","Object","create","_attributesDefCache","_fieldsDefCache","fields","identifier","type","fieldDefs","undefined","Map","attributes","attributesDefinitionFor","relationships","relationshipsDefinitionFor","attr","values","set","name","rel","modelClass","modelFor","attributeMap","forEach","meta","relationshipsObject","doesTypeExist","modelName","normalizeModelName","factory","getModelFactory","buildSchema","_modelFactoryCache","cache","_modelForMixin","klass","isModel","hasOwnModelNameSet","prototype","hasOwnProperty","call","defineProperty","value","instantiateRecord","createRecordArgs","createOptions","_createProps","_secretInit","cb","secretInit","setOwner","assert","teardownRecord","record","destroy","isDestroyed","isDestroying","length","maybeFactory","ignoreType","_forceShim","getSchemaDefinitionService","setRecordIdentifier","StoreMap","setCacheFor"],"mappings":";;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASA,aAAaA,CAACC,KAAY,EAAEC,mBAA2B,EAA4B;AACzG,EAAA,MAAMC,KAAK,GAAGC,QAAQ,CAACH,KAAK,CAAE,CAAA;EAC9B,MAAMI,UAAU,GAAGF,KAAK,CAACG,UAAU,CAAE,CAAA,MAAA,EAAQJ,mBAAoB,CAAA,CAAC,CAAC,CAAA;AACnE,EAAA,MAAMK,KAAK,GAAGF,UAAU,IAAIA,UAAU,CAACG,KAAK,CAAA;AAC5C,EAAA,IAAID,KAAK,EAAE;AACT,IAAA,MAAME,aAAa,GAAGC,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