ember-source 6.11.0 → 6.11.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.
Files changed (33) hide show
  1. package/build-metadata.json +3 -3
  2. package/dist/ember-template-compiler.js +2 -2
  3. package/dist/ember-template-compiler.js.map +1 -1
  4. package/dist/ember-testing.js +1 -1
  5. package/dist/ember.debug.js +16 -8
  6. package/dist/ember.debug.js.map +1 -1
  7. package/dist/ember.prod.js +15 -7
  8. package/dist/ember.prod.js.map +1 -1
  9. package/dist/packages/@ember/-internals/glimmer/index.js +2 -2
  10. package/dist/packages/@ember/-internals/metal/index.js +1 -1
  11. package/dist/packages/@ember/application/index.js +2 -2
  12. package/dist/packages/@ember/application/instance.js +2 -4
  13. package/dist/packages/@ember/application/namespace.js +1 -1
  14. package/dist/packages/@ember/component/helper.js +1 -1
  15. package/dist/packages/@ember/component/index.js +1 -1
  16. package/dist/packages/@ember/engine/index.js +2 -2
  17. package/dist/packages/@ember/helper/index.js +1 -1
  18. package/dist/packages/@ember/modifier/index.js +1 -1
  19. package/dist/packages/@ember/object/mixin.js +1 -1
  20. package/dist/packages/@ember/renderer/index.js +1 -1
  21. package/dist/packages/@ember/routing/index.js +1 -1
  22. package/dist/packages/@ember/runloop/index.js +1 -1
  23. package/dist/packages/@ember/template/index.js +1 -1
  24. package/dist/packages/ember/barrel.js +2 -2
  25. package/dist/packages/ember/version.js +1 -1
  26. package/dist/packages/ember-testing/lib/initializers.js +1 -1
  27. package/dist/packages/shared-chunks/{index-DaCZcoCY.js → index-BYG--K5l.js} +11 -1
  28. package/dist/packages/shared-chunks/{namespace_search-Dh_YNV5f.js → namespace_search--Ia0-sY3.js} +1 -1
  29. package/dist/packages/shared-chunks/{setup-registry-DktVPnKH.js → setup-registry-A4OqqnFT.js} +1 -1
  30. package/docs/data.json +36 -36
  31. package/lib/index.js +20 -20
  32. package/package.json +3 -3
  33. package/types/stable/@ember/application/instance.d.ts +2 -1
@@ -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.11.0
8
+ * @version 6.11.1
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */
@@ -2116,7 +2116,7 @@ var define, require;
2116
2116
  }, Symbol.toStringTag, { value: 'Module' });
2117
2117
 
2118
2118
  // this file gets replaced with the real value during the build
2119
- const Version = '6.11.0';
2119
+ const Version = '6.11.1';
2120
2120
 
2121
2121
  const emberVersion = /*#__PURE__*/Object.defineProperty({
2122
2122
  __proto__: null,
@@ -9061,7 +9061,7 @@ var define, require;
9061
9061
  }
9062
9062
  function isUppercase(code) {
9063
9063
  return code >= 65 && code <= 90 // A
9064
- ; // Z
9064
+ ; // Z
9065
9065
  }
9066
9066
  function tryIsNamespace(lookup, prop) {
9067
9067
  try {
@@ -36989,7 +36989,17 @@ var define, require;
36989
36989
  nextSibling: null
36990
36990
  }), layout, dynamicScope);
36991
36991
  let result = this.result = iterator.sync();
36992
- associateDestroyableChild(owner, result);
36992
+
36993
+ // Associate the result with the root state (not the owner) so that
36994
+ // destruction cascades through:
36995
+ // Owner → Container → Renderer → RendererState → ClassicRootState → result
36996
+ // This ensures the container is still alive when component destructors
36997
+ // run (e.g. willDestroy looking up the renderer via injection).
36998
+ // Previously, associating with the owner made the result a sibling of
36999
+ // the Container, causing the Container to be destroyed first — which
37000
+ // broke FastBoot where the container was already dead by the time
37001
+ // component teardown tried to do lookups. (See: emberjs/ember.js#20984)
37002
+ associateDestroyableChild(this, result);
36993
37003
  this.render = errorLoopTransaction(() => {
36994
37004
  if (isDestroying(result) || isDestroyed(result)) return;
36995
37005
  return result.rerender({
@@ -39102,8 +39112,6 @@ var define, require;
39102
39112
  let handleTransitionReject = error => {
39103
39113
  if (error.error && error.error instanceof Error) {
39104
39114
  throw error.error;
39105
- } else if (error.name === 'TransitionAborted' && router._routerMicrolib.activeTransition) {
39106
- return router._routerMicrolib.activeTransition.then(handleTransitionResolve, handleTransitionReject);
39107
39115
  } else if (error.name === 'TransitionAborted') {
39108
39116
  throw new Error(error.message);
39109
39117
  } else {
@@ -39114,7 +39122,7 @@ var define, require;
39114
39122
  location.setURL(url);
39115
39123
 
39116
39124
  // getURL returns the set url with the rootURL stripped off
39117
- return router.handleURL(location.getURL()).then(handleTransitionResolve, handleTransitionReject);
39125
+ return router.handleURL(location.getURL()).followRedirects().then(handleTransitionResolve, handleTransitionReject);
39118
39126
  }
39119
39127
  willDestroy() {
39120
39128
  super.willDestroy();