ember-source 6.2.0-alpha.6 → 6.2.0-alpha.7

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,6 +1,6 @@
1
1
  {
2
- "version": "6.2.0-alpha.6",
2
+ "version": "6.2.0-alpha.7",
3
3
  "buildType": "tag",
4
- "SHA": "cb59342a36b35c0e6a940fb03ea00cbabe396492",
5
- "assetPath": "/tag/shas/cb59342a36b35c0e6a940fb03ea00cbabe396492.tgz"
4
+ "SHA": "d5c2f9303de4804e9e5167e03bfaf0d1dd2d2afb",
5
+ "assetPath": "/tag/shas/d5c2f9303de4804e9e5167e03bfaf0d1dd2d2afb.tgz"
6
6
  }
@@ -5,7 +5,7 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 6.2.0-alpha.6
8
+ * @version 6.2.0-alpha.7
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */
@@ -15651,7 +15651,7 @@ var define, require;
15651
15651
  }, Symbol.toStringTag, { value: 'Module' });
15652
15652
 
15653
15653
  // this file gets replaced with the real value during the build
15654
- const version = '6.2.0-alpha.6';
15654
+ const version = '6.2.0-alpha.7';
15655
15655
 
15656
15656
  const emberVersion = /*#__PURE__*/Object.defineProperty({
15657
15657
  __proto__: null,
@@ -5,7 +5,7 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 6.2.0-alpha.6
8
+ * @version 6.2.0-alpha.7
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */
@@ -5,7 +5,7 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 6.2.0-alpha.6
8
+ * @version 6.2.0-alpha.7
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */
@@ -3379,7 +3379,7 @@ var define, require;
3379
3379
  }, Symbol.toStringTag, { value: 'Module' });
3380
3380
 
3381
3381
  // this file gets replaced with the real value during the build
3382
- const Version = '6.2.0-alpha.6';
3382
+ const Version = '6.2.0-alpha.7';
3383
3383
 
3384
3384
  const emberVersion = /*#__PURE__*/Object.defineProperty({
3385
3385
  __proto__: null,
@@ -3612,6 +3612,15 @@ var define, require;
3612
3612
  available: '5.10.0',
3613
3613
  enabled: '5.10.0'
3614
3614
  }
3615
+ }),
3616
+ DEPRECATE_IMPORT_INJECT: deprecation({
3617
+ for: 'ember-source',
3618
+ id: 'importing-inject-from-ember-service',
3619
+ since: {
3620
+ available: '6.2.0'
3621
+ },
3622
+ until: '7.0.0',
3623
+ url: 'https://deprecations.emberjs.com/id/importing-inject-from-ember-service'
3615
3624
  })
3616
3625
  };
3617
3626
  function deprecateUntil(message, deprecation) {
@@ -24125,9 +24134,11 @@ var define, require;
24125
24134
  the property's name
24126
24135
  @return {ComputedDecorator} injection decorator instance
24127
24136
  @public
24137
+ @deprecated Please import `service` instead.
24128
24138
  */
24129
24139
 
24130
24140
  function inject$1(...args) {
24141
+ deprecateUntil('Importing `inject` from `@ember/service` is deprecated. Please import `service` instead.', DEPRECATIONS.DEPRECATE_IMPORT_INJECT);
24131
24142
  return inject$2('service', ...args);
24132
24143
  }
24133
24144
 
@@ -5,7 +5,7 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 6.2.0-alpha.6
8
+ * @version 6.2.0-alpha.7
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */
@@ -2620,7 +2620,7 @@ var define, require;
2620
2620
  }, Symbol.toStringTag, { value: 'Module' });
2621
2621
 
2622
2622
  // this file gets replaced with the real value during the build
2623
- const Version = '6.2.0-alpha.6';
2623
+ const Version = '6.2.0-alpha.7';
2624
2624
 
2625
2625
  const emberVersion = /*#__PURE__*/Object.defineProperty({
2626
2626
  __proto__: null,
@@ -2853,6 +2853,15 @@ var define, require;
2853
2853
  available: '5.10.0',
2854
2854
  enabled: '5.10.0'
2855
2855
  }
2856
+ }),
2857
+ DEPRECATE_IMPORT_INJECT: deprecation({
2858
+ for: 'ember-source',
2859
+ id: 'importing-inject-from-ember-service',
2860
+ since: {
2861
+ available: '6.2.0'
2862
+ },
2863
+ until: '7.0.0',
2864
+ url: 'https://deprecations.emberjs.com/id/importing-inject-from-ember-service'
2856
2865
  })
2857
2866
  };
2858
2867
  function deprecateUntil(message, deprecation) {
@@ -22443,9 +22452,11 @@ var define, require;
22443
22452
  the property's name
22444
22453
  @return {ComputedDecorator} injection decorator instance
22445
22454
  @public
22455
+ @deprecated Please import `service` instead.
22446
22456
  */
22447
22457
 
22448
22458
  function inject$1(...args) {
22459
+ deprecateUntil('Importing `inject` from `@ember/service` is deprecated. Please import `service` instead.', DEPRECATIONS.DEPRECATE_IMPORT_INJECT);
22449
22460
  return inject$2('service', ...args);
22450
22461
  }
22451
22462
 
@@ -132,6 +132,15 @@ const DEPRECATIONS = {
132
132
  available: '5.10.0',
133
133
  enabled: '5.10.0'
134
134
  }
135
+ }),
136
+ DEPRECATE_IMPORT_INJECT: deprecation({
137
+ for: 'ember-source',
138
+ id: 'importing-inject-from-ember-service',
139
+ since: {
140
+ available: '6.2.0'
141
+ },
142
+ until: '7.0.0',
143
+ url: 'https://deprecations.emberjs.com/id/importing-inject-from-ember-service'
135
144
  })
136
145
  };
137
146
  function deprecateUntil(message, deprecation) {
@@ -1,4 +1,5 @@
1
1
  import { FrameworkObject } from '../object/-internals.js';
2
+ import { deprecateUntil, DEPRECATIONS } from '../-internals/deprecations/index.js';
2
3
  import '../-internals/meta/lib/meta.js';
3
4
  import '../../shared-chunks/mandatory-setter-BiXq-dpN.js';
4
5
  import '@embroider/macros';
@@ -23,9 +24,11 @@ import '../../shared-chunks/env-mInZ1DuF.js';
23
24
  the property's name
24
25
  @return {ComputedDecorator} injection decorator instance
25
26
  @public
27
+ @deprecated Please import `service` instead.
26
28
  */
27
29
 
28
30
  function inject(...args) {
31
+ deprecateUntil('Importing `inject` from `@ember/service` is deprecated. Please import `service` instead.', DEPRECATIONS.DEPRECATE_IMPORT_INJECT);
29
32
  return inject$1('service', ...args);
30
33
  }
31
34
 
@@ -1,4 +1,4 @@
1
1
  // this file gets replaced with the real value during the build
2
- const Version = '6.2.0-alpha.6';
2
+ const Version = '6.2.0-alpha.7';
3
3
 
4
4
  export { Version as default };
package/docs/data.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "The Ember API",
4
4
  "description": "The Ember API: a framework for building ambitious web applications",
5
5
  "url": "https://emberjs.com/",
6
- "version": "6.2.0-alpha.6"
6
+ "version": "6.2.0-alpha.7"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
@@ -2600,7 +2600,7 @@
2600
2600
  "namespaces": {},
2601
2601
  "tag": "module",
2602
2602
  "file": "packages/@ember/service/index.ts",
2603
- "line": 87,
2603
+ "line": 94,
2604
2604
  "access": "public",
2605
2605
  "tagname": ""
2606
2606
  },
@@ -4326,7 +4326,7 @@
4326
4326
  "module": "@ember/service",
4327
4327
  "namespace": "",
4328
4328
  "file": "packages/@ember/service/index.ts",
4329
- "line": 87,
4329
+ "line": 94,
4330
4330
  "extends": "EmberObject",
4331
4331
  "since": "1.10.0",
4332
4332
  "access": "public",
@@ -18628,7 +18628,7 @@
18628
18628
  },
18629
18629
  {
18630
18630
  "file": "packages/@ember/service/index.ts",
18631
- "line": 10,
18631
+ "line": 11,
18632
18632
  "itemtype": "method",
18633
18633
  "name": "inject",
18634
18634
  "static": 1,
@@ -18646,12 +18646,14 @@
18646
18646
  },
18647
18647
  "access": "public",
18648
18648
  "tagname": "",
18649
+ "deprecated": true,
18650
+ "deprecationMessage": "Please import `service` instead.",
18649
18651
  "class": "@ember/service",
18650
18652
  "module": "@ember/service"
18651
18653
  },
18652
18654
  {
18653
18655
  "file": "packages/@ember/service/index.ts",
18654
- "line": 30,
18656
+ "line": 37,
18655
18657
  "description": "Creates a property that lazily looks up a service in the container. There are\nno restrictions as to what objects a service can be injected into.\n\nExample:\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ApplicationRoute extends Route {\n @service('auth') authManager;\n\n model() {\n return this.authManager.findCurrentUser();\n }\n}\n```\n\nClassic Class Example:\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default Route.extend({\n authManager: service('auth'),\n\n model() {\n return this.get('authManager').findCurrentUser();\n }\n});\n```\n\nThis example will create an `authManager` property on the application route\nthat looks up the `auth` service in the container, making it easily accessible\nin the `model` hook.",
18656
18658
  "itemtype": "method",
18657
18659
  "name": "service",
@@ -18675,7 +18677,7 @@
18675
18677
  },
18676
18678
  {
18677
18679
  "file": "packages/@ember/service/index.ts",
18678
- "line": 97,
18680
+ "line": 104,
18679
18681
  "description": "A type registry for Ember `Service`s. Meant to be declaration-merged so string\nlookups resolve to the correct type.\n\nBlueprints should include such a declaration merge for TypeScript:\n\n```ts\nimport Service from '@ember/service';\n\nexport default class ExampleService extends Service {\n // ...\n}\n\ndeclare module '@ember/service' {\n export interface Registry {\n example: ExampleService;\n }\n}\n```\n\nThen `@service` can check that the service is registered correctly, and APIs\nlike `owner.lookup('service:example')` can return `ExampleService`.",
18680
18682
  "class": "Service",
18681
18683
  "module": "@ember/service"
@@ -20104,7 +20106,7 @@
20104
20106
  },
20105
20107
  {
20106
20108
  "message": "Missing item type\nA type registry for Ember `Service`s. Meant to be declaration-merged so string\nlookups resolve to the correct type.\n\nBlueprints should include such a declaration merge for TypeScript:\n\n```ts\nimport Service from '@ember/service';\n\nexport default class ExampleService extends Service {\n // ...\n}\n\ndeclare module '@ember/service' {\n export interface Registry {\n example: ExampleService;\n }\n}\n```\n\nThen `@service` can check that the service is registered correctly, and APIs\nlike `owner.lookup('service:example')` can return `ExampleService`.",
20107
- "line": " packages/@ember/service/index.ts:97"
20109
+ "line": " packages/@ember/service/index.ts:104"
20108
20110
  },
20109
20111
  {
20110
20112
  "message": "Missing item type\nAll possible options passed to `template()` may specify a `moduleName`.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "6.2.0-alpha.6",
3
+ "version": "6.2.0-alpha.7",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -401,7 +401,7 @@
401
401
  "node": "16.20.0",
402
402
  "pnpm": "8.10.0"
403
403
  },
404
- "_originalVersion": "6.2.0-alpha.6",
404
+ "_originalVersion": "6.2.0-alpha.7",
405
405
  "_versionPreviouslyCalculated": true,
406
406
  "publishConfig": {
407
407
  "tag": "alpha"
@@ -39,6 +39,12 @@ declare module '@ember/-internals/deprecations' {
39
39
  isEnabled: boolean;
40
40
  isRemoved: boolean;
41
41
  };
42
+ DEPRECATE_IMPORT_INJECT: {
43
+ options: DeprecationOptions;
44
+ test: boolean;
45
+ isEnabled: boolean;
46
+ isRemoved: boolean;
47
+ };
42
48
  };
43
49
  export function deprecateUntil(message: string, deprecation: DeprecationObject): void;
44
50
  export {};
@@ -14,6 +14,7 @@ declare module '@ember/service' {
14
14
  the property's name
15
15
  @return {ComputedDecorator} injection decorator instance
16
16
  @public
17
+ @deprecated Please import `service` instead.
17
18
  */
18
19
  export function inject(name: string): PropertyDecorator;
19
20
  export function inject(...args: [ElementDescriptor[0], ElementDescriptor[1]]): void;