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 */
@@ -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 */
@@ -2846,7 +2846,7 @@ var define, require;
2846
2846
  }, Symbol.toStringTag, { value: 'Module' });
2847
2847
 
2848
2848
  // this file gets replaced with the real value during the build
2849
- const Version = '6.11.0';
2849
+ const Version = '6.11.1';
2850
2850
 
2851
2851
  const emberVersion = /*#__PURE__*/Object.defineProperty({
2852
2852
  __proto__: null,
@@ -10379,7 +10379,7 @@ var define, require;
10379
10379
  }
10380
10380
  function isUppercase(code) {
10381
10381
  return code >= 65 && code <= 90 // A
10382
- ; // Z
10382
+ ; // Z
10383
10383
  }
10384
10384
  function tryIsNamespace(lookup, prop) {
10385
10385
  try {
@@ -12288,7 +12288,7 @@ var define, require;
12288
12288
  methodOrTarget !== null && typeof methodOrArg === 'string' && methodOrArg in methodOrTarget ||
12289
12289
  // second argument is the name of a method in first argument
12290
12290
  typeof methodOrTarget === 'function' //first argument is a function
12291
- ;
12291
+ ;
12292
12292
  }
12293
12293
  // @ts-expect-error TS doesn't like our spread args
12294
12294
  }(...curried)) && assert$1('could not find a suitable method to bind', function (methodOrTarget, methodOrArg) {
@@ -39439,7 +39439,17 @@ var define, require;
39439
39439
  nextSibling: null
39440
39440
  }), layout, dynamicScope);
39441
39441
  let result = this.result = iterator.sync();
39442
- associateDestroyableChild(owner, result);
39442
+
39443
+ // Associate the result with the root state (not the owner) so that
39444
+ // destruction cascades through:
39445
+ // Owner → Container → Renderer → RendererState → ClassicRootState → result
39446
+ // This ensures the container is still alive when component destructors
39447
+ // run (e.g. willDestroy looking up the renderer via injection).
39448
+ // Previously, associating with the owner made the result a sibling of
39449
+ // the Container, causing the Container to be destroyed first — which
39450
+ // broke FastBoot where the container was already dead by the time
39451
+ // component teardown tried to do lookups. (See: emberjs/ember.js#20984)
39452
+ associateDestroyableChild(this, result);
39443
39453
  this.render = errorLoopTransaction(() => {
39444
39454
  if (isDestroying(result) || isDestroyed(result)) return;
39445
39455
  return result.rerender({
@@ -41572,8 +41582,6 @@ var define, require;
41572
41582
  let handleTransitionReject = error => {
41573
41583
  if (error.error && error.error instanceof Error) {
41574
41584
  throw error.error;
41575
- } else if (error.name === 'TransitionAborted' && router._routerMicrolib.activeTransition) {
41576
- return router._routerMicrolib.activeTransition.then(handleTransitionResolve, handleTransitionReject);
41577
41585
  } else if (error.name === 'TransitionAborted') {
41578
41586
  throw new Error(error.message);
41579
41587
  } else {
@@ -41585,7 +41593,7 @@ var define, require;
41585
41593
  location.setURL(url);
41586
41594
 
41587
41595
  // getURL returns the set url with the rootURL stripped off
41588
- return router.handleURL(location.getURL()).then(handleTransitionResolve, handleTransitionReject);
41596
+ return router.handleURL(location.getURL()).followRedirects().then(handleTransitionResolve, handleTransitionReject);
41589
41597
  }
41590
41598
  willDestroy() {
41591
41599
  super.willDestroy();