@ember-data/serializer 4.9.0-alpha.6 → 4.9.0-beta.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.
- package/LICENSE.md +3 -1
- package/blueprints/serializer-test/mocha-files/__root__/__path__/__test__.js +4 -3
- package/blueprints/serializer-test/mocha-rfc-232-files/__root__/__path__/__test__.js +4 -3
- package/blueprints/serializer-test/qunit-files/__root__/__path__/__test__.js +4 -3
- package/blueprints/transform-test/mocha-files/__root__/__path__/__test__.js +3 -2
- package/blueprints/transform-test/mocha-rfc-232-files/__root__/__path__/__test__.js +3 -2
- package/blueprints/transform-test/qunit-files/__root__/__path__/__test__.js +3 -2
- package/package.json +19 -41
- package/config/environment.js +0 -5
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (
|
|
3
|
+
Copyright (C) 2017-2022 Ember.js contributors
|
|
4
|
+
Portions Copyright (C) 2011-2017 Tilde, Inc. and contributors.
|
|
5
|
+
Portions Copyright (C) 2011 LivingSocial Inc.
|
|
4
6
|
|
|
5
7
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
8
|
|
|
@@ -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
|
-
needs: ['serializer:<%= dasherizedModuleName %>']
|
|
9
|
+
needs: ['serializer:<%= dasherizedModuleName %>'],
|
|
9
10
|
});
|
|
10
11
|
|
|
11
12
|
// Replace this with your real tests.
|
|
12
|
-
it('serializes records', function() {
|
|
13
|
+
it('serializes records', function () {
|
|
13
14
|
let record = this.subject();
|
|
14
15
|
|
|
15
16
|
let serializedRecord = record.serialize();
|
|
@@ -1,19 +1,20 @@
|
|
|
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 serializer = store.serializerFor('<%= dasherizedModuleName %>');
|
|
12
13
|
|
|
13
14
|
expect(serializer).to.be.ok;
|
|
14
15
|
});
|
|
15
16
|
|
|
16
|
-
it('serializes records', function() {
|
|
17
|
+
it('serializes records', function () {
|
|
17
18
|
let store = this.owner.lookup('service:store');
|
|
18
19
|
let record = store.createRecord('<%= dasherizedModuleName %>', {});
|
|
19
20
|
|
|
@@ -1,18 +1,19 @@
|
|
|
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 serializer = store.serializerFor('<%= dasherizedModuleName %>');
|
|
11
12
|
|
|
12
13
|
assert.ok(serializer);
|
|
13
14
|
});
|
|
14
15
|
|
|
15
|
-
test('it serializes records', function(assert) {
|
|
16
|
+
test('it serializes records', function (assert) {
|
|
16
17
|
let store = this.owner.lookup('service:store');
|
|
17
18
|
let record = store.createRecord('<%= dasherizedModuleName %>', {});
|
|
18
19
|
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { expect } from 'chai';
|
|
2
2
|
import { describe, it } from 'mocha';
|
|
3
|
+
|
|
3
4
|
import { setupTest } from 'ember-mocha';
|
|
4
5
|
|
|
5
|
-
describe('<%= friendlyTestDescription %>', function() {
|
|
6
|
+
describe('<%= friendlyTestDescription %>', function () {
|
|
6
7
|
setupTest('transform:<%= dasherizedModuleName %>', {
|
|
7
8
|
// Specify the other units that are required for this test.
|
|
8
9
|
// needs: ['transform:foo']
|
|
9
10
|
});
|
|
10
11
|
|
|
11
12
|
// Replace this with your real tests.
|
|
12
|
-
it('exists', function() {
|
|
13
|
+
it('exists', function () {
|
|
13
14
|
let transform = this.subject();
|
|
14
15
|
expect(transform).to.be.ok;
|
|
15
16
|
});
|
|
@@ -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 transform = this.owner.lookup('transform:<%= dasherizedModuleName %>');
|
|
11
12
|
expect(transform).to.be.ok;
|
|
12
13
|
});
|
|
@@ -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 transform = this.owner.lookup('transform:<%= dasherizedModuleName %>');
|
|
10
11
|
assert.ok(transform);
|
|
11
12
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data/serializer",
|
|
3
|
-
"version": "4.9.0-
|
|
3
|
+
"version": "4.9.0-beta.1",
|
|
4
4
|
"description": "Provides reference Serializer implementations for use with @ember-data/store",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -13,55 +13,33 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": "",
|
|
15
15
|
"directories": {},
|
|
16
|
-
"scripts": {
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
16
|
+
"scripts": {},
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"@ember-data/store": "workspace:4.9.0-alpha.6",
|
|
19
|
+
"@ember/string": "^3.0.0",
|
|
20
|
+
"ember-inflector": "^4.0.2"
|
|
21
|
+
},
|
|
22
|
+
"dependenciesMeta": {
|
|
23
|
+
"@ember-data/private-build-infra": {
|
|
24
|
+
"injected": true
|
|
25
|
+
}
|
|
20
26
|
},
|
|
21
27
|
"dependencies": {
|
|
22
|
-
"@ember-data/private-build-infra": "4.9.0-
|
|
23
|
-
"@
|
|
24
|
-
"ember-auto-import": "^2.4.
|
|
28
|
+
"@ember-data/private-build-infra": "workspace:4.9.0-beta.1",
|
|
29
|
+
"@embroider/macros": "^1.9.0",
|
|
30
|
+
"ember-auto-import": "^2.4.3",
|
|
25
31
|
"ember-cli-babel": "^7.26.11",
|
|
26
|
-
"ember-cli-test-info": "^1.0.0"
|
|
27
|
-
"ember-cli-typescript": "^5.1.1"
|
|
32
|
+
"ember-cli-test-info": "^1.0.0"
|
|
28
33
|
},
|
|
29
34
|
"devDependencies": {
|
|
30
|
-
"@ember-data/unpublished-test-infra": "4.9.0-alpha.6",
|
|
31
|
-
"@ember/optional-features": "^2.0.0",
|
|
32
|
-
"@ember/string": "^3.0.0",
|
|
33
|
-
"@ember/test-helpers": "~2.7.0",
|
|
34
|
-
"broccoli-asset-rev": "^3.0.0",
|
|
35
|
-
"ember-cli": "~4.7.0",
|
|
36
|
-
"ember-cli-blueprint-test-helpers": "^0.19.2",
|
|
37
|
-
"ember-cli-dependency-checker": "^3.3.1",
|
|
38
|
-
"ember-cli-htmlbars": "^6.1.1",
|
|
39
|
-
"ember-cli-inject-live-reload": "^2.1.0",
|
|
40
|
-
"ember-cli-sri": "^2.1.1",
|
|
41
|
-
"ember-cli-terser": "~4.0.2",
|
|
42
|
-
"ember-disable-prototype-extensions": "^1.1.3",
|
|
43
|
-
"ember-export-application-global": "^2.0.1",
|
|
44
|
-
"ember-load-initializers": "^2.1.2",
|
|
45
|
-
"ember-maybe-import-regenerator": "^1.0.0",
|
|
46
|
-
"ember-qunit": "^5.1.5",
|
|
47
|
-
"ember-resolver": "^8.0.3",
|
|
48
|
-
"ember-source": "~4.7.0",
|
|
49
|
-
"ember-source-channel-url": "^3.0.0",
|
|
50
|
-
"ember-try": "^2.0.0",
|
|
51
|
-
"loader.js": "^4.7.0",
|
|
52
|
-
"qunit": "^2.19.1",
|
|
53
|
-
"qunit-dom": "^2.0.0",
|
|
54
|
-
"silent-error": "^1.1.1",
|
|
55
35
|
"webpack": "^5.74.0"
|
|
56
36
|
},
|
|
57
37
|
"engines": {
|
|
58
38
|
"node": "^14.8.0 || 16.* || >= 18.*"
|
|
59
39
|
},
|
|
60
|
-
"ember-addon": {
|
|
61
|
-
"configPath": "tests/dummy/config"
|
|
62
|
-
},
|
|
40
|
+
"ember-addon": {},
|
|
63
41
|
"volta": {
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
42
|
+
"extends": "../../package.json"
|
|
43
|
+
},
|
|
44
|
+
"packageManager": "pnpm@7.14.1"
|
|
67
45
|
}
|