@ember-data/model 4.8.0-beta.0 → 4.8.1

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.
@@ -1,15 +1,16 @@
1
1
  import { expect } from 'chai';
2
2
  import { describe, it } from 'mocha';
3
+
3
4
  import { setupModelTest } from 'ember-mocha';
4
5
 
5
- describe('<%= friendlyTestDescription %>', function() {
6
+ describe('<%= friendlyTestDescription %>', function () {
6
7
  setupModelTest('<%= dasherizedModuleName %>', {
7
8
  // Specify the other units that are required for this test.
8
- <%= typeof needs !== 'undefined' ? needs : '' %>
9
+ <%= typeof needs !== 'undefined' ? needs : '' %>,
9
10
  });
10
11
 
11
12
  // Replace this with your real tests.
12
- it('exists', function() {
13
+ it('exists', function () {
13
14
  let model = this.subject();
14
15
  // var store = this.store();
15
16
  expect(model).to.be.ok;
@@ -1,12 +1,13 @@
1
1
  import { expect } from 'chai';
2
2
  import { describe, it } from 'mocha';
3
+
3
4
  import { setupTest } from '<%= modulePrefix %>/tests/helpers';
4
5
 
5
- describe('<%= friendlyTestDescription %>', function() {
6
+ describe('<%= friendlyTestDescription %>', function () {
6
7
  setupTest();
7
8
 
8
9
  // Replace this with your real tests.
9
- it('exists', function() {
10
+ it('exists', function () {
10
11
  let store = this.owner.lookup('service:store');
11
12
  let model = store.createRecord('<%= dasherizedModuleName %>', {});
12
13
  expect(model).to.be.ok;
@@ -1,11 +1,12 @@
1
1
  import { module, test } from 'qunit';
2
+
2
3
  import { setupTest } from '<%= modulePrefix %>/tests/helpers';
3
4
 
4
- module('<%= friendlyTestDescription %>', function(hooks) {
5
+ module('<%= friendlyTestDescription %>', function (hooks) {
5
6
  setupTest(hooks);
6
7
 
7
8
  // Replace this with your real tests.
8
- test('it exists', function(assert) {
9
+ test('it exists', function (assert) {
9
10
  let store = this.owner.lookup('service:store');
10
11
  let model = store.createRecord('<%= dasherizedModuleName %>', {});
11
12
  assert.ok(model);
package/index.js CHANGED
@@ -15,10 +15,10 @@ module.exports = Object.assign({}, addonBaseConfig, {
15
15
  '@ember-data/canary-features',
16
16
  '@ember-data/store',
17
17
  '@ember-data/store/-private',
18
- '@ember-data/store/-debug',
19
18
  '@embroider/macros',
20
19
  '@ember/string',
21
20
  '@embroider/macros/es-compat',
21
+ '@ember-data/tracking/-private',
22
22
 
23
23
  '@ember/object/proxy',
24
24
  '@ember/object/promise-proxy-mixin',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-data/model",
3
- "version": "4.8.0-beta.0",
3
+ "version": "4.8.1",
4
4
  "description": "A presentation layer for apps built with @ember-data/store",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -12,66 +12,53 @@
12
12
  },
13
13
  "license": "MIT",
14
14
  "author": "",
15
- "directories": {
16
- "doc": "doc",
17
- "test": "tests"
15
+ "directories": {},
16
+ "scripts": {},
17
+ "peerDependencies": {
18
+ "@ember-data/record-data": "workspace:4.9.0-alpha.6",
19
+ "@ember-data/store": "workspace:4.9.0-alpha.6",
20
+ "@ember-data/tracking": "workspace:4.9.0-alpha.6",
21
+ "@ember/string": "^3.0.0",
22
+ "ember-inflector": "^4.0.2"
23
+ },
24
+ "peerDependenciesMeta": {
25
+ "@ember-data/record-data": {
26
+ "optional": true
27
+ }
18
28
  },
19
- "scripts": {
20
- "build": "ember build",
21
- "start": "ember serve",
22
- "test:node": "mocha"
29
+ "dependenciesMeta": {
30
+ "@ember-data/canary-features": {
31
+ "injected": true
32
+ },
33
+ "@ember-data/private-build-infra": {
34
+ "injected": true
35
+ }
23
36
  },
24
37
  "dependencies": {
25
- "@ember-data/canary-features": "4.8.0-beta.0",
26
- "@ember-data/private-build-infra": "4.8.0-beta.0",
27
- "@ember-data/store": "4.8.0-beta.0",
38
+ "@ember-data/canary-features": "workspace:4.8.1",
39
+ "@ember-data/private-build-infra": "workspace:4.8.1",
28
40
  "@ember/edition-utils": "^1.2.0",
29
- "@ember/string": "^3.0.0",
30
- "@embroider/macros": "^1.8.3",
31
- "ember-auto-import": "^2.4.2",
32
- "ember-cached-decorator-polyfill": "^0.1.4",
41
+ "@embroider/macros": "^1.9.0",
42
+ "ember-auto-import": "^2.4.3",
43
+ "ember-cached-decorator-polyfill": "^1.0.1",
33
44
  "ember-cli-babel": "^7.26.11",
34
45
  "ember-cli-string-utils": "^1.1.0",
35
46
  "ember-cli-test-info": "^1.0.0",
36
- "ember-cli-typescript": "^5.1.0",
37
47
  "ember-compatibility-helpers": "^1.2.6",
38
- "inflection": "~1.13.2"
48
+ "inflection": "~1.13.4"
39
49
  },
40
50
  "devDependencies": {
41
- "@ember-data/unpublished-test-infra": "4.8.0-beta.0",
42
- "@ember/optional-features": "^2.0.0",
43
- "@ember/test-helpers": "~2.7.0",
44
- "broccoli-asset-rev": "^3.0.0",
45
- "ember-cli": "~4.6.0",
46
- "ember-cli-blueprint-test-helpers": "^0.19.2",
47
- "ember-cli-dependency-checker": "^3.3.1",
48
- "ember-cli-htmlbars": "^6.1.0",
49
- "ember-cli-inject-live-reload": "^2.1.0",
50
- "ember-cli-sri": "^2.1.1",
51
- "ember-cli-terser": "~4.0.2",
52
- "ember-disable-prototype-extensions": "^1.1.3",
53
- "ember-export-application-global": "^2.0.1",
54
- "ember-load-initializers": "^2.1.2",
55
- "ember-maybe-import-regenerator": "^1.0.0",
56
- "ember-qunit": "^5.1.5",
57
- "ember-resolver": "^8.0.3",
58
- "ember-source": "~4.6.0",
59
- "ember-source-channel-url": "^3.0.0",
60
- "ember-try": "^2.0.0",
61
- "loader.js": "^4.7.0",
62
- "qunit": "^2.19.1",
63
- "qunit-dom": "^2.0.0",
64
- "silent-error": "^1.1.1",
51
+ "@babel/core": "^7.19.6",
52
+ "@glimmer/component": "^1.1.2",
53
+ "ember-source": "~4.8.0",
65
54
  "webpack": "^5.74.0"
66
55
  },
67
56
  "engines": {
68
57
  "node": "^14.8.0 || 16.* || >= 18.*"
69
58
  },
70
- "ember-addon": {
71
- "configPath": "tests/dummy/config"
72
- },
59
+ "ember-addon": {},
73
60
  "volta": {
74
- "node": "16.17.0",
75
- "yarn": "1.22.19"
76
- }
61
+ "extends": "../../package.json"
62
+ },
63
+ "packageManager": "pnpm@7.14.1"
77
64
  }
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = function (/* environment, appConfig */) {
4
- return {};
5
- };