ember-source 3.24.0 → 3.24.4

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.
@@ -5,5 +5,5 @@
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 3.24.0
8
+ * @version 3.24.4
9
9
  */
@@ -1930,7 +1930,7 @@ const LinkComponent = Component.extend({
1930
1930
  init() {
1931
1931
  this._super(...arguments);
1932
1932
 
1933
- assert('You attempted to use the <LinkTo> component within a routeless engine, this is not supported. ' + 'If you are using the ember-engines addon, use the <LinkToExternal> component instead. ' + 'See https://ember-engines.com/docs/links for more info.', !this._isEngine || this._engineMountPoint !== undefined); // Map desired event name to invoke function
1933
+ this.assertLinkToOrigin(); // Map desired event name to invoke function
1934
1934
 
1935
1935
  let {
1936
1936
  eventName
@@ -1952,7 +1952,7 @@ const LinkComponent = Component.extend({
1952
1952
  let {
1953
1953
  route
1954
1954
  } = this;
1955
- return this._namespaceRoute(route === UNDEFINED ? this._currentRoute : route);
1955
+ return route === UNDEFINED ? this._currentRoute : this._namespaceRoute(route);
1956
1956
  }),
1957
1957
  _models: computed('model', 'models', function computeLinkToComponentModels() {
1958
1958
  let {
@@ -2042,6 +2042,10 @@ const LinkComponent = Component.extend({
2042
2042
  return this._isActive(target);
2043
2043
  }),
2044
2044
 
2045
+ assertLinkToOrigin() {
2046
+ assert('You attempted to use the <LinkTo> component within a routeless engine, this is not supported. ' + 'If you are using the ember-engines addon, use the <LinkToExternal> component instead. ' + 'See https://ember-engines.com/docs/links for more info.', !this._isEngine || this._engineMountPoint !== undefined);
2047
+ },
2048
+
2045
2049
  _isActive(routerState) {
2046
2050
  if (this.loading) {
2047
2051
  return false;
@@ -1,9 +1,12 @@
1
1
  /**
2
2
  @module ember
3
3
  */
4
+ import { getOwner } from '@ember/-internals/owner';
5
+ import { symbol } from '@ember/-internals/utils';
4
6
  import { readOnly } from '@ember/object/computed';
5
7
  import { assign } from '@ember/polyfills';
6
8
  import Service from '@ember/service';
9
+ const ROUTER = symbol('ROUTER');
7
10
  /**
8
11
  The Routing service is used by LinkComponent, and provides facilities for
9
12
  the component/view layer to interact with the router.
@@ -16,6 +19,19 @@ import Service from '@ember/service';
16
19
  */
17
20
 
18
21
  export default class RoutingService extends Service {
22
+ get router() {
23
+ let router = this[ROUTER];
24
+
25
+ if (router !== undefined) {
26
+ return router;
27
+ }
28
+
29
+ const owner = getOwner(this);
30
+ router = owner.lookup('router:main');
31
+ router.setupRouter();
32
+ return this[ROUTER] = router;
33
+ }
34
+
19
35
  hasRoute(routeName) {
20
36
  return this.router.hasRoute(routeName);
21
37
  }
@@ -34,13 +50,7 @@ export default class RoutingService extends Service {
34
50
  this.router._prepareQueryParams(routeName, models, queryParams);
35
51
  }
36
52
 
37
- generateURL(routeName, models, queryParams) {
38
- let router = this.router; // return early when the router microlib is not present, which is the case for {{link-to}} in integration tests
39
-
40
- if (!router._routerMicrolib) {
41
- return;
42
- }
43
-
53
+ _generateURL(routeName, models, queryParams) {
44
54
  let visibleQueryParams = {};
45
55
 
46
56
  if (queryParams) {
@@ -48,11 +58,25 @@ export default class RoutingService extends Service {
48
58
  this.normalizeQueryParams(routeName, models, visibleQueryParams);
49
59
  }
50
60
 
51
- return router.generate(routeName, ...models, {
61
+ return this.router.generate(routeName, ...models, {
52
62
  queryParams: visibleQueryParams
53
63
  });
54
64
  }
55
65
 
66
+ generateURL(routeName, models, queryParams) {
67
+ if (this.router._initialTransitionStarted) {
68
+ return this._generateURL(routeName, models, queryParams);
69
+ } else {
70
+ // Swallow error when transition has not started.
71
+ // When rendering in tests without visit(), we cannot infer the route context which <LinkTo/> needs be aware of
72
+ try {
73
+ return this._generateURL(routeName, models, queryParams);
74
+ } catch (_e) {
75
+ return;
76
+ }
77
+ }
78
+ }
79
+
56
80
  isActiveForRoute(contexts, queryParams, routeName, routerState) {
57
81
  let handlers = this.router._routerMicrolib.recognizer.handlersFor(routeName);
58
82
 
@@ -65,6 +65,7 @@ class EmberRouter extends EmberObject {
65
65
  constructor() {
66
66
  super(...arguments);
67
67
  this._didSetupRouter = false;
68
+ this._initialTransitionStarted = false;
68
69
  this.currentURL = null;
69
70
  this.currentRouteName = null;
70
71
  this.currentPath = null;
@@ -191,7 +192,13 @@ class EmberRouter extends EmberObject {
191
192
  }
192
193
 
193
194
  routeWillChange(transition) {
194
- router.trigger('routeWillChange', transition);
195
+ router.trigger('routeWillChange', transition); // in case of intermediate transition we update the current route
196
+ // to make router.currentRoute.name consistent with router.currentRouteName
197
+ // see https://github.com/emberjs/ember.js/issues/19449
198
+
199
+ if (transition.isIntermediate) {
200
+ router.set('currentRoute', transition.to);
201
+ }
195
202
  }
196
203
 
197
204
  routeDidChange(transition) {
@@ -434,6 +441,8 @@ class EmberRouter extends EmberObject {
434
441
  }
435
442
 
436
443
  _doURLTransition(routerJsMethod, url) {
444
+ this._initialTransitionStarted = true;
445
+
437
446
  let transition = this._routerMicrolib[routerJsMethod](url || '/');
438
447
 
439
448
  didBeginTransition(transition, this);
@@ -549,6 +558,7 @@ class EmberRouter extends EmberObject {
549
558
 
550
559
  reset() {
551
560
  this._didSetupRouter = false;
561
+ this._initialTransitionStarted = false;
552
562
 
553
563
  if (this._routerMicrolib) {
554
564
  this._routerMicrolib.reset();
@@ -758,6 +768,7 @@ class EmberRouter extends EmberObject {
758
768
  let targetRouteName = _targetRouteName || getActiveTargetName(this._routerMicrolib);
759
769
 
760
770
  assert(`The route ${targetRouteName} was not found`, Boolean(targetRouteName) && this._routerMicrolib.hasRoute(targetRouteName));
771
+ this._initialTransitionStarted = true;
761
772
  let queryParams = {};
762
773
 
763
774
  this._processActiveTransitionQueryParams(targetRouteName, models, queryParams, _queryParams);
@@ -436,9 +436,7 @@ function commonSetupRegistry(registry) {
436
436
  registry.injection('route', '_bucketCache', P`-bucket-cache:main`);
437
437
  registry.injection('route', '_router', 'router:main'); // Register the routing service...
438
438
 
439
- registry.register('service:-routing', RoutingService); // Then inject the app router into it
440
-
441
- registry.injection('service:-routing', 'router', 'router:main'); // DEBUGGING
439
+ registry.register('service:-routing', RoutingService); // DEBUGGING
442
440
 
443
441
  registry.register('resolver-for-debugging:main', registry.resolver, {
444
442
  instantiate: false
@@ -1 +1 @@
1
- export default "3.24.0";
1
+ export default "3.24.4";
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": "3.24.0"
6
+ "version": "3.24.4"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
@@ -3065,7 +3065,7 @@
3065
3065
  "module": "ember",
3066
3066
  "namespace": "",
3067
3067
  "file": "packages/@ember/-internals/routing/lib/services/routing.ts",
3068
- "line": 11,
3068
+ "line": 15,
3069
3069
  "description": "The Routing service is used by LinkComponent, and provides facilities for\nthe component/view layer to interact with the router.\n\nThis is a private service for internal usage only. For public usage,\nrefer to the `Router` service.",
3070
3070
  "access": "private",
3071
3071
  "tagname": ""
@@ -6389,7 +6389,7 @@
6389
6389
  },
6390
6390
  {
6391
6391
  "file": "packages/@ember/-internals/glimmer/lib/components/link-to.ts",
6392
- "line": 551,
6392
+ "line": 547,
6393
6393
  "description": "Accessed as a classname binding to apply the component's `disabledClass`\nCSS `class` to the element when the link is disabled.\n\nWhen `true`, interactions with the element will not trigger route changes.",
6394
6394
  "itemtype": "property",
6395
6395
  "name": "disabled",
@@ -6400,7 +6400,7 @@
6400
6400
  },
6401
6401
  {
6402
6402
  "file": "packages/@ember/-internals/glimmer/lib/components/link-to.ts",
6403
- "line": 574,
6403
+ "line": 570,
6404
6404
  "description": "Accessed as a classname binding to apply the component's `activeClass`\nCSS `class` to the element when the link is active.\n\nThis component is considered active when its `currentWhen` property is `true`\nor the application's current route is the route this component would trigger\ntransitions into.\n\nThe `currentWhen` property can match against multiple routes by separating\nroute names using the ` ` (space) character.",
6405
6405
  "itemtype": "property",
6406
6406
  "name": "active",
@@ -6411,7 +6411,7 @@
6411
6411
  },
6412
6412
  {
6413
6413
  "file": "packages/@ember/-internals/glimmer/lib/components/link-to.ts",
6414
- "line": 689,
6414
+ "line": 694,
6415
6415
  "description": "Event handler that invokes the link, activating the associated route.",
6416
6416
  "itemtype": "method",
6417
6417
  "name": "_invoke",
@@ -6429,7 +6429,7 @@
6429
6429
  },
6430
6430
  {
6431
6431
  "file": "packages/@ember/-internals/glimmer/lib/components/link-to.ts",
6432
- "line": 768,
6432
+ "line": 773,
6433
6433
  "description": "Sets the element's `href` attribute to the url for\nthe `LinkComponent`'s targeted route.\n\nIf the `LinkComponent`'s `tagName` is changed to a value other\nthan `a`, this property will be ignored.",
6434
6434
  "itemtype": "property",
6435
6435
  "name": "href",
@@ -6440,7 +6440,7 @@
6440
6440
  },
6441
6441
  {
6442
6442
  "file": "packages/@ember/-internals/glimmer/lib/components/link-to.ts",
6443
- "line": 851,
6443
+ "line": 856,
6444
6444
  "description": "The default href value to use while a link-to is loading.\nOnly applies when tagName is 'a'",
6445
6445
  "itemtype": "property",
6446
6446
  "name": "loadingHref",
@@ -11021,7 +11021,7 @@
11021
11021
  },
11022
11022
  {
11023
11023
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11024
- "line": 390,
11024
+ "line": 397,
11025
11025
  "description": "Initializes the current router instance and sets up the change handling\nevent listeners used by the instances `location` implementation.\n\nA property named `initialURL` will be used to determine the initial URL.\nIf no value is found `/` will be used.",
11026
11026
  "itemtype": "method",
11027
11027
  "name": "startRouting",
@@ -11032,7 +11032,7 @@
11032
11032
  },
11033
11033
  {
11034
11034
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11035
- "line": 508,
11035
+ "line": 516,
11036
11036
  "description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\nSee [transitionTo](/ember/release/classes/Route/methods/transitionTo?anchor=transitionTo) for more info.",
11037
11037
  "itemtype": "method",
11038
11038
  "name": "transitionTo",
@@ -11065,7 +11065,7 @@
11065
11065
  },
11066
11066
  {
11067
11067
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11068
- "line": 563,
11068
+ "line": 571,
11069
11069
  "description": "Determines if the supplied route is currently active.",
11070
11070
  "itemtype": "method",
11071
11071
  "name": "isActive",
@@ -11086,7 +11086,7 @@
11086
11086
  },
11087
11087
  {
11088
11088
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11089
- "line": 575,
11089
+ "line": 583,
11090
11090
  "description": "An alternative form of `isActive` that doesn't require\nmanual concatenation of the arguments into a single\narray.",
11091
11091
  "itemtype": "method",
11092
11092
  "name": "isActiveIntent",
@@ -11116,7 +11116,7 @@
11116
11116
  },
11117
11117
  {
11118
11118
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11119
- "line": 597,
11119
+ "line": 605,
11120
11120
  "description": "Does this router instance have the given route.",
11121
11121
  "itemtype": "method",
11122
11122
  "name": "hasRoute",
@@ -11131,7 +11131,7 @@
11131
11131
  },
11132
11132
  {
11133
11133
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11134
- "line": 608,
11134
+ "line": 616,
11135
11135
  "description": "Resets the state of the router by clearing the current route\nhandlers and deactivating them.",
11136
11136
  "access": "private",
11137
11137
  "tagname": "",
@@ -11142,7 +11142,7 @@
11142
11142
  },
11143
11143
  {
11144
11144
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11145
- "line": 715,
11145
+ "line": 724,
11146
11146
  "description": "Serializes the given query params according to their QP meta information.",
11147
11147
  "access": "private",
11148
11148
  "tagname": "",
@@ -11169,7 +11169,7 @@
11169
11169
  },
11170
11170
  {
11171
11171
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11172
- "line": 742,
11172
+ "line": 751,
11173
11173
  "description": "Serializes the value of a query parameter based on a type",
11174
11174
  "access": "private",
11175
11175
  "tagname": "",
@@ -11192,7 +11192,7 @@
11192
11192
  },
11193
11193
  {
11194
11194
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11195
- "line": 760,
11195
+ "line": 769,
11196
11196
  "description": "Deserializes the given query params according to their QP meta information.",
11197
11197
  "access": "private",
11198
11198
  "tagname": "",
@@ -11219,7 +11219,7 @@
11219
11219
  },
11220
11220
  {
11221
11221
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11222
- "line": 785,
11222
+ "line": 794,
11223
11223
  "description": "Deserializes the value of a query parameter based on a default type",
11224
11224
  "access": "private",
11225
11225
  "tagname": "",
@@ -11242,7 +11242,7 @@
11242
11242
  },
11243
11243
  {
11244
11244
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11245
- "line": 806,
11245
+ "line": 815,
11246
11246
  "description": "Removes (prunes) any query params with default values from the given QP\nobject. Default values are determined from the QP meta information per key.",
11247
11247
  "access": "private",
11248
11248
  "tagname": "",
@@ -11269,7 +11269,7 @@
11269
11269
  },
11270
11270
  {
11271
11271
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11272
- "line": 886,
11272
+ "line": 897,
11273
11273
  "description": "Prepares the query params for a URL or Transition. Restores any undefined QP\nkeys/values, serializes all values, and then prunes any default values.",
11274
11274
  "access": "private",
11275
11275
  "tagname": "",
@@ -11306,7 +11306,7 @@
11306
11306
  },
11307
11307
  {
11308
11308
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11309
- "line": 913,
11309
+ "line": 924,
11310
11310
  "description": "Returns the meta information for the query params of a given route. This\nwill be overridden to allow support for lazy routes.",
11311
11311
  "access": "private",
11312
11312
  "tagname": "",
@@ -11328,7 +11328,7 @@
11328
11328
  },
11329
11329
  {
11330
11330
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11331
- "line": 927,
11331
+ "line": 938,
11332
11332
  "description": "Returns a merged query params meta object for a given set of routeInfos.\nUseful for knowing what query params are available for a given route hierarchy.",
11333
11333
  "access": "private",
11334
11334
  "tagname": "",
@@ -11350,7 +11350,7 @@
11350
11350
  },
11351
11351
  {
11352
11352
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11353
- "line": 992,
11353
+ "line": 1003,
11354
11354
  "description": "Maps all query param keys to their fully scoped property name of the form\n`controllerName:propName`.",
11355
11355
  "access": "private",
11356
11356
  "tagname": "",
@@ -11382,7 +11382,7 @@
11382
11382
  },
11383
11383
  {
11384
11384
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11385
- "line": 1034,
11385
+ "line": 1045,
11386
11386
  "description": "Hydrates (adds/restores) any query params that have pre-existing values into\nthe given queryParams hash. This is what allows query params to be \"sticky\"\nand restore their last known values for their scope.",
11387
11387
  "access": "private",
11388
11388
  "tagname": "",
@@ -11409,7 +11409,7 @@
11409
11409
  },
11410
11410
  {
11411
11411
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11412
- "line": 1337,
11412
+ "line": 1348,
11413
11413
  "description": "Finds the name of the substate route if it exists for the given route. A\nsubstate route is of the form `route_state`, such as `foo_loading`.",
11414
11414
  "access": "private",
11415
11415
  "tagname": "",
@@ -11434,7 +11434,7 @@
11434
11434
  },
11435
11435
  {
11436
11436
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11437
- "line": 1356,
11437
+ "line": 1367,
11438
11438
  "description": "Finds the name of the state route if it exists for the given route. A state\nroute is of the form `route.state`, such as `foo.loading`. Properly Handles\n`application` named routes.",
11439
11439
  "access": "private",
11440
11440
  "tagname": "",
@@ -11459,7 +11459,7 @@
11459
11459
  },
11460
11460
  {
11461
11461
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11462
- "line": 1376,
11462
+ "line": 1387,
11463
11463
  "description": "Determines whether or not a route has been defined by checking that the route\nis in the Router's map and the owner has a registration for that route.",
11464
11464
  "access": "private",
11465
11465
  "tagname": "",
@@ -11494,7 +11494,7 @@
11494
11494
  },
11495
11495
  {
11496
11496
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11497
- "line": 1542,
11497
+ "line": 1553,
11498
11498
  "description": "The `Router.map` function allows you to define mappings from URLs to routes\nin your application. These mappings are defined within the\nsupplied callback function using `this.route`.\n\nThe first parameter is the name of the route which is used by default as the\npath name as well.\n\nThe second parameter is the optional options hash. Available options are:\n\n * `path`: allows you to provide your own path as well as mark dynamic\n segments.\n * `resetNamespace`: false by default; when nesting routes, ember will\n combine the route names to form the fully-qualified route name, which is\n used with `{{link-to}}` or manually transitioning to routes. Setting\n `resetNamespace: true` will cause the route not to inherit from its\n parent route's names. This is handy for preventing extremely long route names.\n Keep in mind that the actual URL path behavior is still retained.\n\nThe third parameter is a function, which can be used to nest routes.\nNested routes, by default, will have the parent route tree's route name and\npath prepended to it's own.\n\n```app/router.js\nRouter.map(function(){\n this.route('post', { path: '/post/:post_id' }, function() {\n this.route('edit');\n this.route('comments', { resetNamespace: true }, function() {\n this.route('new');\n });\n });\n});\n```",
11499
11499
  "itemtype": "method",
11500
11500
  "name": "map",
@@ -11511,7 +11511,7 @@
11511
11511
  },
11512
11512
  {
11513
11513
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11514
- "line": 1738,
11514
+ "line": 1749,
11515
11515
  "description": "Handles updating the paths and notifying any listeners of the URL\nchange.\n\nTriggers the router level `didTransition` hook.\n\nFor example, to notify google analytics when the route changes,\nyou could use this hook. (Note: requires also including GA scripts, etc.)\n\n```javascript\nimport config from './config/environment';\nimport EmberRouter from '@ember/routing/router';\nimport { inject as service } from '@ember/service';\n\nlet Router = EmberRouter.extend({\n location: config.locationType,\n\n router: service(),\n\n didTransition: function() {\n this._super(...arguments);\n\n ga('send', 'pageview', {\n page: this.router.currentURL,\n title: this.router.currentRouteName,\n });\n }\n});\n```",
11516
11516
  "itemtype": "method",
11517
11517
  "name": "didTransition",
@@ -11523,7 +11523,7 @@
11523
11523
  },
11524
11524
  {
11525
11525
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11526
- "line": 1774,
11526
+ "line": 1785,
11527
11527
  "description": "Handles notifying any listeners of an impending URL\nchange.\n\nTriggers the router level `willTransition` hook.",
11528
11528
  "itemtype": "method",
11529
11529
  "name": "willTransition",
@@ -11535,7 +11535,7 @@
11535
11535
  },
11536
11536
  {
11537
11537
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11538
- "line": 1785,
11538
+ "line": 1796,
11539
11539
  "description": "Represents the URL of the root of the application, often '/'. This prefix is\nassumed on all routes defined on this router.",
11540
11540
  "itemtype": "property",
11541
11541
  "name": "rootURL",
@@ -11547,7 +11547,7 @@
11547
11547
  },
11548
11548
  {
11549
11549
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11550
- "line": 1795,
11550
+ "line": 1806,
11551
11551
  "description": "The `location` property determines the type of URL's that your\napplication will use.\n\nThe following location types are currently available:\n\n* `history` - use the browser's history API to make the URLs look just like any standard URL\n* `hash` - use `#` to separate the server part of the URL from the Ember part: `/blog/#/posts/new`\n* `none` - do not store the Ember URL in the actual browser URL (mainly used for testing)\n* `auto` - use the best option based on browser capabilities: `history` if possible, then `hash` if possible, otherwise `none`\n\nThis value is defaulted to `auto` by the `locationType` setting of `/config/environment.js`",
11552
11552
  "itemtype": "property",
11553
11553
  "name": "location",
@@ -11562,7 +11562,7 @@
11562
11562
  },
11563
11563
  {
11564
11564
  "file": "packages/@ember/-internals/routing/lib/system/router.ts",
11565
- "line": 1815,
11565
+ "line": 1826,
11566
11566
  "description": "Represents the current URL.",
11567
11567
  "itemtype": "property",
11568
11568
  "name": "url",
@@ -20172,15 +20172,15 @@
20172
20172
  },
20173
20173
  {
20174
20174
  "message": "Missing item type\nFinds the name of the substate route if it exists for the given route. A\nsubstate route is of the form `route_state`, such as `foo_loading`.",
20175
- "line": " packages/@ember/-internals/routing/lib/system/router.ts:1337"
20175
+ "line": " packages/@ember/-internals/routing/lib/system/router.ts:1348"
20176
20176
  },
20177
20177
  {
20178
20178
  "message": "Missing item type\nFinds the name of the state route if it exists for the given route. A state\nroute is of the form `route.state`, such as `foo.loading`. Properly Handles\n`application` named routes.",
20179
- "line": " packages/@ember/-internals/routing/lib/system/router.ts:1356"
20179
+ "line": " packages/@ember/-internals/routing/lib/system/router.ts:1367"
20180
20180
  },
20181
20181
  {
20182
20182
  "message": "Missing item type\nDetermines whether or not a route has been defined by checking that the route\nis in the Router's map and the owner has a registration for that route.",
20183
- "line": " packages/@ember/-internals/routing/lib/system/router.ts:1376"
20183
+ "line": " packages/@ember/-internals/routing/lib/system/router.ts:1387"
20184
20184
  },
20185
20185
  {
20186
20186
  "message": "Missing item type\nPreviously we used `Ember.$.uuid`, however `$.uuid` has been removed from\njQuery master. We'll just bootstrap our own uuid now.",
package/lib/index.js CHANGED
@@ -245,13 +245,16 @@ module.exports = {
245
245
 
246
246
  let ember;
247
247
  let targets = (this.project && this.project.targets && this.project.targets.browsers) || [];
248
+ let targetNode = (this.project && this.project.targets && this.project.targets.node) || false;
248
249
 
249
250
  const isProduction = process.env.EMBER_ENV === 'production';
250
251
 
251
252
  if (
252
253
  !isProduction &&
253
254
  PRE_BUILT_TARGETS.every((target) => targets.includes(target)) &&
254
- targets.length === PRE_BUILT_TARGETS.length
255
+ targets.length === PRE_BUILT_TARGETS.length &&
256
+ // if node is defined in targets we can't reliably use the prebuilt bundles
257
+ !targetNode
255
258
  ) {
256
259
  ember = new Funnel(tree, {
257
260
  destDir: 'ember',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "3.24.0",
3
+ "version": "3.24.4",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -74,16 +74,16 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@babel/preset-env": "^7.9.5",
77
- "@glimmer/compiler": "0.65.1",
77
+ "@glimmer/compiler": "0.65.3",
78
78
  "@glimmer/env": "^0.1.7",
79
- "@glimmer/global-context": "0.65.1",
80
- "@glimmer/interfaces": "0.65.1",
81
- "@glimmer/node": "0.65.1",
82
- "@glimmer/opcode-compiler": "0.65.1",
83
- "@glimmer/program": "0.65.1",
84
- "@glimmer/reference": "0.65.1",
85
- "@glimmer/runtime": "0.65.1",
86
- "@glimmer/validator": "0.65.1",
79
+ "@glimmer/global-context": "0.65.3",
80
+ "@glimmer/interfaces": "0.65.3",
81
+ "@glimmer/node": "0.65.3",
82
+ "@glimmer/opcode-compiler": "0.65.3",
83
+ "@glimmer/program": "0.65.3",
84
+ "@glimmer/reference": "0.65.3",
85
+ "@glimmer/runtime": "0.65.3",
86
+ "@glimmer/validator": "0.65.3",
87
87
  "@simple-dom/document": "^1.4.0",
88
88
  "@types/qunit": "^2.9.1",
89
89
  "@types/rsvp": "^4.0.3",
@@ -137,7 +137,7 @@
137
137
  "rollup-plugin-commonjs": "^9.3.4",
138
138
  "rollup-plugin-node-resolve": "^4.2.4",
139
139
  "route-recognizer": "^0.3.4",
140
- "router_js": "^7.1.1",
140
+ "router_js": "^7.3.0",
141
141
  "rsvp": "^4.8.5",
142
142
  "serve-static": "^1.14.1",
143
143
  "simple-dom": "^1.4.0",
@@ -151,6 +151,9 @@
151
151
  "ember-addon": {
152
152
  "after": "ember-cli-legacy-blueprints"
153
153
  },
154
- "_originalVersion": "3.24.0",
155
- "_versionPreviouslyCalculated": true
156
- }
154
+ "_originalVersion": "3.24.4",
155
+ "_versionPreviouslyCalculated": true,
156
+ "publishConfig": {
157
+ "tag": "old"
158
+ }
159
+ }