ember-source 5.3.0-beta.1 → 5.3.0
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/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +2 -2
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +6 -4
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/routing/route.js +4 -2
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +15 -15
- package/package.json +7 -7
package/dist/header/license.js
CHANGED
|
@@ -613,9 +613,11 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
|
|
|
613
613
|
id: 'deprecate-implicit-route-model',
|
|
614
614
|
for: 'ember-source',
|
|
615
615
|
since: {
|
|
616
|
-
available: '5.3.0'
|
|
616
|
+
available: '5.3.0',
|
|
617
|
+
enabled: '5.3.0'
|
|
617
618
|
},
|
|
618
|
-
until: '6.0.0'
|
|
619
|
+
until: '6.0.0',
|
|
620
|
+
url: 'https://deprecations.emberjs.com/v5.x/#toc_deprecate-implicit-route-model'
|
|
619
621
|
});
|
|
620
622
|
const store = 'store' in this ? this.store : get(this, '_store');
|
|
621
623
|
assert('Expected route to have a store with a find method', isStoreLike(store));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "5.3.0
|
|
1
|
+
export default "5.3.0";
|
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": "5.3.0
|
|
6
|
+
"version": "5.3.0"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -16418,7 +16418,7 @@
|
|
|
16418
16418
|
},
|
|
16419
16419
|
{
|
|
16420
16420
|
"file": "packages/@ember/routing/route.ts",
|
|
16421
|
-
"line":
|
|
16421
|
+
"line": 1267,
|
|
16422
16422
|
"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';\nimport { service } from '@ember/service';\n\nexport default class PhotosRoute extends Route {\n @service store;\n\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.",
|
|
16423
16423
|
"example": [
|
|
16424
16424
|
" 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```"
|
|
@@ -16451,7 +16451,7 @@
|
|
|
16451
16451
|
},
|
|
16452
16452
|
{
|
|
16453
16453
|
"file": "packages/@ember/routing/route.ts",
|
|
16454
|
-
"line":
|
|
16454
|
+
"line": 1346,
|
|
16455
16455
|
"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```",
|
|
16456
16456
|
"itemtype": "method",
|
|
16457
16457
|
"name": "controllerFor",
|
|
@@ -16474,7 +16474,7 @@
|
|
|
16474
16474
|
},
|
|
16475
16475
|
{
|
|
16476
16476
|
"file": "packages/@ember/routing/route.ts",
|
|
16477
|
-
"line":
|
|
16477
|
+
"line": 1400,
|
|
16478
16478
|
"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```",
|
|
16479
16479
|
"itemtype": "method",
|
|
16480
16480
|
"name": "generateController",
|
|
@@ -16492,7 +16492,7 @@
|
|
|
16492
16492
|
},
|
|
16493
16493
|
{
|
|
16494
16494
|
"file": "packages/@ember/routing/route.ts",
|
|
16495
|
-
"line":
|
|
16495
|
+
"line": 1428,
|
|
16496
16496
|
"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```",
|
|
16497
16497
|
"itemtype": "method",
|
|
16498
16498
|
"name": "modelFor",
|
|
@@ -16515,7 +16515,7 @@
|
|
|
16515
16515
|
},
|
|
16516
16516
|
{
|
|
16517
16517
|
"file": "packages/@ember/routing/route.ts",
|
|
16518
|
-
"line":
|
|
16518
|
+
"line": 1500,
|
|
16519
16519
|
"description": "`this[RENDER]` is used to render a template into a region of another template\n(indicated by an `{{outlet}}`).",
|
|
16520
16520
|
"itemtype": "method",
|
|
16521
16521
|
"name": "this[RENDER]",
|
|
@@ -16565,7 +16565,7 @@
|
|
|
16565
16565
|
},
|
|
16566
16566
|
{
|
|
16567
16567
|
"file": "packages/@ember/routing/route.ts",
|
|
16568
|
-
"line":
|
|
16568
|
+
"line": 1527,
|
|
16569
16569
|
"access": "private",
|
|
16570
16570
|
"tagname": "",
|
|
16571
16571
|
"itemtype": "method",
|
|
@@ -16575,7 +16575,7 @@
|
|
|
16575
16575
|
},
|
|
16576
16576
|
{
|
|
16577
16577
|
"file": "packages/@ember/routing/route.ts",
|
|
16578
|
-
"line":
|
|
16578
|
+
"line": 1540,
|
|
16579
16579
|
"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```",
|
|
16580
16580
|
"itemtype": "method",
|
|
16581
16581
|
"name": "buildRouteInfoMetadata",
|
|
@@ -16590,13 +16590,13 @@
|
|
|
16590
16590
|
},
|
|
16591
16591
|
{
|
|
16592
16592
|
"file": "packages/@ember/routing/route.ts",
|
|
16593
|
-
"line":
|
|
16593
|
+
"line": 1591,
|
|
16594
16594
|
"class": "Route",
|
|
16595
16595
|
"module": "@ember/routing/route"
|
|
16596
16596
|
},
|
|
16597
16597
|
{
|
|
16598
16598
|
"file": "packages/@ember/routing/route.ts",
|
|
16599
|
-
"line":
|
|
16599
|
+
"line": 1640,
|
|
16600
16600
|
"access": "private",
|
|
16601
16601
|
"tagname": "",
|
|
16602
16602
|
"itemtype": "property",
|
|
@@ -16606,7 +16606,7 @@
|
|
|
16606
16606
|
},
|
|
16607
16607
|
{
|
|
16608
16608
|
"file": "packages/@ember/routing/route.ts",
|
|
16609
|
-
"line":
|
|
16609
|
+
"line": 1779,
|
|
16610
16610
|
"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```",
|
|
16611
16611
|
"itemtype": "method",
|
|
16612
16612
|
"name": "send",
|
|
@@ -16630,7 +16630,7 @@
|
|
|
16630
16630
|
},
|
|
16631
16631
|
{
|
|
16632
16632
|
"file": "packages/@ember/routing/route.ts",
|
|
16633
|
-
"line":
|
|
16633
|
+
"line": 2162,
|
|
16634
16634
|
"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```",
|
|
16635
16635
|
"itemtype": "property",
|
|
16636
16636
|
"name": "controller",
|
|
@@ -16643,7 +16643,7 @@
|
|
|
16643
16643
|
},
|
|
16644
16644
|
{
|
|
16645
16645
|
"file": "packages/@ember/routing/route.ts",
|
|
16646
|
-
"line":
|
|
16646
|
+
"line": 2193,
|
|
16647
16647
|
"description": "This action is called when one or more query params have changed. Bubbles.",
|
|
16648
16648
|
"itemtype": "method",
|
|
16649
16649
|
"name": "queryParamsDidChange",
|
|
@@ -19118,7 +19118,7 @@
|
|
|
19118
19118
|
},
|
|
19119
19119
|
{
|
|
19120
19120
|
"message": "replacing incorrect tag: returns with return",
|
|
19121
|
-
"line": " packages/@ember/routing/route.ts:
|
|
19121
|
+
"line": " packages/@ember/routing/route.ts:2193"
|
|
19122
19122
|
},
|
|
19123
19123
|
{
|
|
19124
19124
|
"message": "unknown tag: internal",
|
|
@@ -19714,7 +19714,7 @@
|
|
|
19714
19714
|
},
|
|
19715
19715
|
{
|
|
19716
19716
|
"message": "Missing item type",
|
|
19717
|
-
"line": " packages/@ember/routing/route.ts:
|
|
19717
|
+
"line": " packages/@ember/routing/route.ts:1591"
|
|
19718
19718
|
},
|
|
19719
19719
|
{
|
|
19720
19720
|
"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`.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "5.3.0
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -163,6 +163,9 @@
|
|
|
163
163
|
"testem-failure-only-reporter": "^1.0.0",
|
|
164
164
|
"typescript": "5.1"
|
|
165
165
|
},
|
|
166
|
+
"resolutions": {
|
|
167
|
+
"socket.io": "^4.7.0"
|
|
168
|
+
},
|
|
166
169
|
"peerDependencies": {
|
|
167
170
|
"@glimmer/component": "^1.1.2"
|
|
168
171
|
},
|
|
@@ -186,9 +189,6 @@
|
|
|
186
189
|
"node": "16.20.0",
|
|
187
190
|
"yarn": "1.22.19"
|
|
188
191
|
},
|
|
189
|
-
"_originalVersion": "5.3.0
|
|
190
|
-
"_versionPreviouslyCalculated": true
|
|
191
|
-
|
|
192
|
-
"tag": "beta"
|
|
193
|
-
}
|
|
194
|
-
}
|
|
192
|
+
"_originalVersion": "5.3.0",
|
|
193
|
+
"_versionPreviouslyCalculated": true
|
|
194
|
+
}
|