ember-source 4.3.0-beta.1 → 4.4.0-alpha.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.
@@ -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 4.3.0-beta.1
8
+ * @version 4.4.0-alpha.1
9
9
  */
@@ -836,8 +836,7 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
836
836
  } else {
837
837
  if (transition.resolveIndex < 1) {
838
838
  return;
839
- } // SAFETY: These return types should be equivalent but router.js doesn't have enough
840
- // generics to infer it.
839
+ } // SAFETY: This should be correct, but TS is unable to infer this.
841
840
 
842
841
 
843
842
  return transition[STATE_SYMBOL].routeInfos[transition.resolveIndex - 1].context;
@@ -11,8 +11,8 @@ import { ENV } from '@ember/-internals/environment';
11
11
  */
12
12
 
13
13
  export const DEFAULT_FEATURES = {
14
- EMBER_LIBRARIES_ISREGISTERED: false,
15
- EMBER_IMPROVED_INSTRUMENTATION: false,
14
+ EMBER_LIBRARIES_ISREGISTERED: null,
15
+ EMBER_IMPROVED_INSTRUMENTATION: null,
16
16
  EMBER_NAMED_BLOCKS: true,
17
17
  EMBER_GLIMMER_HELPER_MANAGER: true,
18
18
  EMBER_GLIMMER_INVOKE_HELPER: true,
@@ -1 +1 @@
1
- export default "4.3.0-beta.1";
1
+ export default "4.4.0-alpha.1";
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": "4.3.0-beta.1"
6
+ "version": "4.4.0-alpha.1"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
@@ -9843,7 +9843,7 @@
9843
9843
  },
9844
9844
  {
9845
9845
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
9846
- "line": 1462,
9846
+ "line": 1461,
9847
9847
  "access": "private",
9848
9848
  "tagname": "",
9849
9849
  "itemtype": "method",
@@ -9869,7 +9869,7 @@
9869
9869
  },
9870
9870
  {
9871
9871
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
9872
- "line": 1475,
9872
+ "line": 1474,
9873
9873
  "itemtype": "method",
9874
9874
  "name": "findModel",
9875
9875
  "params": [
@@ -9891,7 +9891,7 @@
9891
9891
  },
9892
9892
  {
9893
9893
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
9894
- "line": 1486,
9894
+ "line": 1485,
9895
9895
  "description": "A hook you can use to setup the controller for the current route.\n\nThis method is called with the controller for the current route and the\nmodel supplied by the `model` hook.\n\nBy default, the `setupController` hook sets the `model` property of\nthe controller to the specified `model` when it is not `undefined`.\n\nIf you implement the `setupController` hook in your Route, it will\nprevent this default behavior. If you want to preserve that behavior\nwhen implementing your `setupController` function, make sure to call\n`super`:\n\n```app/routes/photos.js\nimport Route from '@ember/routing/route';\n\nexport default class PhotosRoute extends Route {\n model() {\n return this.store.findAll('photo');\n }\n\n setupController(controller, model) {\n super.setupController(controller, model);\n\n this.controllerFor('application').set('showingPhotos', true);\n }\n}\n```\n\nThe provided controller will be one resolved based on the name\nof this route.\n\nIf no explicit controller is defined, Ember will automatically create one.\n\nAs an example, consider the router:\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' });\n});\n\nexport default Router;\n```\n\nIf you have defined a file for the post controller,\nthe framework will use it.\nIf it is not defined, a basic `Controller` instance would be used.",
9896
9896
  "example": [
9897
9897
  " Behavior of a basic Controller\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class PostRoute extends Route {\n setupController(controller, model) {\n controller.set('model', model);\n }\n});\n```"
@@ -9924,7 +9924,7 @@
9924
9924
  },
9925
9925
  {
9926
9926
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
9927
- "line": 1562,
9927
+ "line": 1561,
9928
9928
  "description": "Returns the controller of the current route, or a parent (or any ancestor)\nroute in a route hierarchy.\n\nThe controller instance must already have been created, either through entering the\nassociated route or using `generateController`.\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class PostRoute extends Route {\n setupController(controller, post) {\n super.setupController(controller, post);\n\n this.controllerFor('posts').set('currentPost', post);\n }\n}\n```",
9929
9929
  "itemtype": "method",
9930
9930
  "name": "controllerFor",
@@ -9947,7 +9947,7 @@
9947
9947
  },
9948
9948
  {
9949
9949
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
9950
- "line": 1611,
9950
+ "line": 1610,
9951
9951
  "description": "Generates a controller for a route.\n\nExample\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class Post extends Route {\n setupController(controller, post) {\n super.setupController(controller, post);\n\n this.generateController('posts');\n }\n}\n```",
9952
9952
  "itemtype": "method",
9953
9953
  "name": "generateController",
@@ -9965,7 +9965,7 @@
9965
9965
  },
9966
9966
  {
9967
9967
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
9968
- "line": 1639,
9968
+ "line": 1638,
9969
9969
  "description": "Returns the resolved model of a parent (or any ancestor) route\nin a route hierarchy. During a transition, all routes\nmust resolve a model object, and if a route\nneeds access to a parent route's model in order to\nresolve a model (or just reuse the model from a parent),\nit can call `this.modelFor(theNameOfParentRoute)` to\nretrieve it. If the ancestor route's model was a promise,\nits resolved result is returned.\n\nExample\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' }, function() {\n this.route('comments');\n });\n});\n\nexport default Router;\n```\n\n```app/routes/post/comments.js\nimport Route from '@ember/routing/route';\n\nexport default class PostCommentsRoute extends Route {\n model() {\n let post = this.modelFor('post');\n\n return post.comments;\n }\n}\n```",
9970
9970
  "itemtype": "method",
9971
9971
  "name": "modelFor",
@@ -9988,7 +9988,7 @@
9988
9988
  },
9989
9989
  {
9990
9990
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
9991
- "line": 1711,
9991
+ "line": 1710,
9992
9992
  "description": "`this[RENDER]` is used to render a template into a region of another template\n(indicated by an `{{outlet}}`).",
9993
9993
  "itemtype": "method",
9994
9994
  "name": "this[RENDER]",
@@ -10038,7 +10038,7 @@
10038
10038
  },
10039
10039
  {
10040
10040
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
10041
- "line": 1738,
10041
+ "line": 1737,
10042
10042
  "access": "private",
10043
10043
  "tagname": "",
10044
10044
  "itemtype": "method",
@@ -10048,7 +10048,7 @@
10048
10048
  },
10049
10049
  {
10050
10050
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
10051
- "line": 1751,
10051
+ "line": 1750,
10052
10052
  "description": "Allows you to produce custom metadata for the route.\nThe return value of this method will be attached to\nits corresponding RouteInfoWithAttributes object.\n\nExample\n\n```app/routes/posts/index.js\nimport Route from '@ember/routing/route';\n\nexport default class PostsIndexRoute extends Route {\n buildRouteInfoMetadata() {\n return { title: 'Posts Page' }\n }\n}\n```\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 router\n\n constructor() {\n super(...arguments);\n\n this.router.on('routeDidChange', transition => {\n document.title = transition.to.metadata.title;\n // would update document's title to \"Posts Page\"\n });\n }\n}\n```",
10053
10053
  "itemtype": "method",
10054
10054
  "name": "buildRouteInfoMetadata",
@@ -10063,7 +10063,7 @@
10063
10063
  },
10064
10064
  {
10065
10065
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
10066
- "line": 1802,
10066
+ "line": 1801,
10067
10067
  "description": "Store property provides a hook for data persistence libraries to inject themselves.\n\nBy default, this store property provides the exact same functionality previously\nin the model hook.\n\nCurrently, the required interface is:\n\n`store.find(modelName, findArguments)`",
10068
10068
  "itemtype": "property",
10069
10069
  "name": "store",
@@ -10075,7 +10075,7 @@
10075
10075
  },
10076
10076
  {
10077
10077
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
10078
- "line": 1868,
10078
+ "line": 1867,
10079
10079
  "access": "private",
10080
10080
  "tagname": "",
10081
10081
  "itemtype": "property",
@@ -10085,7 +10085,7 @@
10085
10085
  },
10086
10086
  {
10087
10087
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
10088
- "line": 2003,
10088
+ "line": 2002,
10089
10089
  "description": "Sends an action to the router, which will delegate it to the currently\nactive route hierarchy per the bubbling rules explained under `actions`.\n\nExample\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('index');\n});\n\nexport default Router;\n```\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ApplicationRoute extends Route {\n @action\n track(arg) {\n console.log(arg, 'was clicked');\n }\n}\n```\n\n```app/routes/index.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class IndexRoute extends Route {\n @action\n trackIfDebug(arg) {\n if (debug) {\n this.send('track', arg);\n }\n }\n}\n```",
10090
10090
  "itemtype": "method",
10091
10091
  "name": "send",
@@ -10109,7 +10109,7 @@
10109
10109
  },
10110
10110
  {
10111
10111
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
10112
- "line": 2380,
10112
+ "line": 2379,
10113
10113
  "description": "The controller associated with this route.\n\nExample\n\n```app/routes/form.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class FormRoute extends Route {\n @action\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData') &&\n !confirm('Are you sure you want to abandon progress?')) {\n transition.abort();\n } else {\n // Bubble the `willTransition` action so that\n // parent routes can decide whether or not to abort.\n return true;\n }\n }\n}\n```",
10114
10114
  "itemtype": "property",
10115
10115
  "name": "controller",
@@ -10122,7 +10122,7 @@
10122
10122
  },
10123
10123
  {
10124
10124
  "file": "packages/@ember/-internals/routing/lib/system/route.ts",
10125
- "line": 2411,
10125
+ "line": 2410,
10126
10126
  "description": "This action is called when one or more query params have changed. Bubbles.",
10127
10127
  "itemtype": "method",
10128
10128
  "name": "queryParamsDidChange",
@@ -18503,7 +18503,7 @@
18503
18503
  },
18504
18504
  {
18505
18505
  "message": "replacing incorrect tag: returns with return",
18506
- "line": " packages/@ember/-internals/routing/lib/system/route.ts:2411"
18506
+ "line": " packages/@ember/-internals/routing/lib/system/route.ts:2410"
18507
18507
  },
18508
18508
  {
18509
18509
  "message": "unknown tag: internal",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "4.3.0-beta.1",
3
+ "version": "4.4.0-alpha.1",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -156,9 +156,9 @@
156
156
  "ember-addon": {
157
157
  "after": "ember-cli-legacy-blueprints"
158
158
  },
159
- "_originalVersion": "4.3.0-beta.1",
159
+ "_originalVersion": "4.4.0-alpha.1",
160
160
  "_versionPreviouslyCalculated": true,
161
161
  "publishConfig": {
162
- "tag": "beta"
162
+ "tag": "alpha"
163
163
  }
164
164
  }