ember-source 4.1.0-beta.1 → 4.2.0-alpha.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.
- package/CHANGELOG.md +14 -0
- package/blueprints/route/files/__root__/__path__/__name__.js +8 -1
- package/blueprints/route/index.js +2 -0
- package/blueprints/route/native-files/__root__/__path__/__name__.js +8 -1
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +4 -4
- 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 +7 -8
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/routing/lib/system/route.js +2 -4
- package/dist/packages/@ember/canary-features/index.js +2 -2
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +55 -55
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
- [#18269](https://github.com/emberjs/ember.js/pull/18269) [BUGFIX] Fix for when query params are using a nested value
|
|
11
11
|
- [#19787](https://github.com/emberjs/ember.js/pull/19787) Setup basic infrastructure to ensure destroyables destroyed
|
|
12
12
|
|
|
13
|
+
### v4.0.1 (December 1, 2021)
|
|
14
|
+
|
|
15
|
+
- [#19858](https://github.com/emberjs/ember.js/pull/19858) [BUGFIX] Improve assert message in default store for when routes have dynamic segments but no model hook
|
|
16
|
+
- [#19860](https://github.com/emberjs/ember.js/pull/19860) [BUGFIX] Add model hook in route blueprint for routes with dynamic segments
|
|
17
|
+
|
|
13
18
|
### v4.0.0 (November 15, 2021)
|
|
14
19
|
|
|
15
20
|
- [#19761](https://github.com/emberjs/ember.js/pull/19761) [BREAKING] Require ember-auto-import >= 2 or higher to enable ember-source to become a v2 addon in the 4.x cycle
|
|
@@ -82,6 +87,15 @@
|
|
|
82
87
|
- [#19542](https://github.com/emberjs/ember.js/pull/19542) [BUGFIX] Fix initializer test blueprints
|
|
83
88
|
- [#19589](https://github.com/emberjs/ember.js/pull/19589) [BUGFIX] Don’t include type-tests in build output
|
|
84
89
|
|
|
90
|
+
## v3.28.8 (December 2, 2021)
|
|
91
|
+
|
|
92
|
+
- [#19868](https://github.com/emberjs/ember.js/pull/19868) [BUGFIX] Fix a bug with the implicit injections deprecation that meant injecting a store to avoid the deprecation did not work.
|
|
93
|
+
|
|
94
|
+
## v3.28.7 (December 1, 2021)
|
|
95
|
+
|
|
96
|
+
- [#19854](https://github.com/emberjs/ember.js/pull/19854) [BUGFIX] Fix implicit injections deprecation for routes to cover previously missed cases
|
|
97
|
+
- [#19857](https://github.com/emberjs/ember.js/pull/19857) [BUGFIX] Improve assert message in default store for when routes have dynamic segments but no model hook
|
|
98
|
+
|
|
85
99
|
## v3.28.6 (November 4, 2021)
|
|
86
100
|
|
|
87
101
|
- [#19683](https://github.com/emberjs/ember.js/pull/19683) Ensure super.willDestroy is called correctly in Router's willDestroy
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import Route from '@ember/routing/route';
|
|
2
2
|
|
|
3
|
-
export default Route.extend({
|
|
3
|
+
export default Route.extend({<% if (hasDynamicSegment) {%>
|
|
4
|
+
model(params) {
|
|
5
|
+
/**
|
|
6
|
+
* This route was generated with a dynamic segment. Implement data loading
|
|
7
|
+
* based on that dynamic segment here in the model hook.
|
|
8
|
+
*/
|
|
9
|
+
return params;
|
|
10
|
+
},<%}%>
|
|
4
11
|
});
|
|
@@ -75,6 +75,7 @@ module.exports = useEditionDetector({
|
|
|
75
75
|
let moduleName = options.entity.name;
|
|
76
76
|
let rawRouteName = moduleName.split('/').pop();
|
|
77
77
|
let emberPageTitleExists = 'ember-page-title' in options.project.dependencies();
|
|
78
|
+
let hasDynamicSegment = options.path && options.path.includes(':');
|
|
78
79
|
|
|
79
80
|
if (options.resetNamespace) {
|
|
80
81
|
moduleName = rawRouteName;
|
|
@@ -84,6 +85,7 @@ module.exports = useEditionDetector({
|
|
|
84
85
|
moduleName: stringUtil.dasherize(moduleName),
|
|
85
86
|
routeName: stringUtil.classify(rawRouteName),
|
|
86
87
|
addTitle: emberPageTitleExists,
|
|
88
|
+
hasDynamicSegment,
|
|
87
89
|
};
|
|
88
90
|
},
|
|
89
91
|
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import Route from '@ember/routing/route';
|
|
2
2
|
|
|
3
|
-
export default class <%= classifiedModuleName %>Route extends Route {
|
|
3
|
+
export default class <%= classifiedModuleName %>Route extends Route {<% if (hasDynamicSegment) {%>
|
|
4
|
+
model(params) {
|
|
5
|
+
/**
|
|
6
|
+
* This route was generated with a dynamic segment. Implement data loading
|
|
7
|
+
* based on that dynamic segment here in the model hook.
|
|
8
|
+
*/
|
|
9
|
+
return params;
|
|
10
|
+
}<%}%>
|
|
4
11
|
}
|
package/build-metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.
|
|
2
|
+
"version": "4.2.0-alpha.4",
|
|
3
3
|
"buildType": "tag",
|
|
4
|
-
"SHA": "
|
|
5
|
-
"assetPath": "/tag/shas/
|
|
4
|
+
"SHA": "549c95c478ec209e0ded297afed8c05c4c88b051",
|
|
5
|
+
"assetPath": "/tag/shas/549c95c478ec209e0ded297afed8c05c4c88b051.tgz"
|
|
6
6
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
|
7
7
|
* @license Licensed under MIT license
|
|
8
8
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
|
9
|
-
* @version 4.
|
|
9
|
+
* @version 4.2.0-alpha.4
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* eslint-disable no-var */
|
|
@@ -1297,8 +1297,8 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
|
|
|
1297
1297
|
@public
|
|
1298
1298
|
*/
|
|
1299
1299
|
var DEFAULT_FEATURES = {
|
|
1300
|
-
EMBER_LIBRARIES_ISREGISTERED:
|
|
1301
|
-
EMBER_IMPROVED_INSTRUMENTATION:
|
|
1300
|
+
EMBER_LIBRARIES_ISREGISTERED: null,
|
|
1301
|
+
EMBER_IMPROVED_INSTRUMENTATION: null,
|
|
1302
1302
|
EMBER_NAMED_BLOCKS: true,
|
|
1303
1303
|
EMBER_GLIMMER_HELPER_MANAGER: true,
|
|
1304
1304
|
EMBER_GLIMMER_INVOKE_HELPER: true,
|
|
@@ -18468,7 +18468,7 @@ define("ember/version", ["exports"], function (_exports) {
|
|
|
18468
18468
|
value: true
|
|
18469
18469
|
});
|
|
18470
18470
|
_exports.default = void 0;
|
|
18471
|
-
var _default = "4.
|
|
18471
|
+
var _default = "4.2.0-alpha.4";
|
|
18472
18472
|
_exports.default = _default;
|
|
18473
18473
|
});
|
|
18474
18474
|
define("simple-html-tokenizer", ["exports"], function (_exports) {
|