ember-source 6.6.0-alpha.6 → 6.6.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.
Files changed (31) 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 +10 -53
  6. package/dist/ember.debug.js.map +1 -1
  7. package/dist/ember.prod.js +10 -53
  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/application/index.js +2 -2
  11. package/dist/packages/@ember/application/instance.js +1 -1
  12. package/dist/packages/@ember/component/helper.js +1 -1
  13. package/dist/packages/@ember/component/index.js +1 -1
  14. package/dist/packages/@ember/engine/index.js +2 -2
  15. package/dist/packages/@ember/helper/index.js +1 -1
  16. package/dist/packages/@ember/modifier/index.js +1 -1
  17. package/dist/packages/@ember/renderer/index.js +1 -1
  18. package/dist/packages/@ember/routing/index.js +1 -1
  19. package/dist/packages/@ember/template/index.js +1 -1
  20. package/dist/packages/@ember/template-compiler/lib/template.js +3 -5
  21. package/dist/packages/ember/barrel.js +2 -4
  22. package/dist/packages/ember/version.js +1 -1
  23. package/dist/packages/ember-testing/lib/initializers.js +1 -1
  24. package/dist/packages/shared-chunks/{index-YU6dOE3v.js → index-BCp6wOJU.js} +8 -48
  25. package/dist/packages/shared-chunks/{setup-registry-CD3BNZix.js → setup-registry-D07VAwbJ.js} +1 -1
  26. package/docs/data.json +5 -5
  27. package/package.json +3 -6
  28. package/types/stable/@ember/-internals/glimmer/index.d.ts +1 -1
  29. package/types/stable/@ember/-internals/glimmer/lib/utils/string.d.ts +1 -2
  30. package/types/stable/ember/barrel.d.ts +2 -4
  31. package/types/stable/ember/index.d.ts +2 -4
@@ -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.6.0-alpha.6
8
+ * @version 6.6.0
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.6.0-alpha.6
8
+ * @version 6.6.0
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */
@@ -2860,7 +2860,7 @@ var define, require;
2860
2860
  }, Symbol.toStringTag, { value: 'Module' });
2861
2861
 
2862
2862
  // this file gets replaced with the real value during the build
2863
- const Version = '6.6.0-alpha.6';
2863
+ const Version = '6.6.0';
2864
2864
 
2865
2865
  const emberVersion = /*#__PURE__*/Object.defineProperty({
2866
2866
  __proto__: null,
@@ -26439,52 +26439,6 @@ var define, require;
26439
26439
  return this.toString();
26440
26440
  }
26441
26441
  }
26442
- const escape = {
26443
- '&': '&',
26444
- '<': '&lt;',
26445
- '>': '&gt;',
26446
- '"': '&quot;',
26447
- "'": '&#x27;',
26448
- '`': '&#x60;',
26449
- '=': '&#x3D;'
26450
- };
26451
- const possible = /[&<>"'`=]/;
26452
- const badChars = /[&<>"'`=]/g;
26453
- function escapeChar(chr) {
26454
- return escape[chr];
26455
- }
26456
- function escapeExpression(string) {
26457
- let s;
26458
- if (typeof string !== 'string') {
26459
- // don't escape SafeStrings, since they're already safe
26460
- if (isHTMLSafe(string)) {
26461
- return string.toHTML();
26462
- } else if (string === null || string === undefined) {
26463
- return '';
26464
- } else if (!string) {
26465
- return String(string);
26466
- }
26467
-
26468
- // Force a string conversion as this will be done by the append regardless and
26469
- // the regex test will do this transparently behind the scenes, causing issues if
26470
- // an object's to string has escaped characters in it.
26471
- s = String(string);
26472
- } else {
26473
- s = string;
26474
- }
26475
- if (!possible.test(s)) {
26476
- return s;
26477
- }
26478
-
26479
- // SAFETY: this is technically a lie, but it's a true lie as long as the
26480
- // invariant it depends on is upheld: `escapeChar` will always return a string
26481
- // as long as its input is one of the characters in `escape`, and it will only
26482
- // be called if it matches one of the characters in the `badChar` regex, which
26483
- // is hand-maintained to match the set escaped. (It would be nice if TS could
26484
- // "see" into the regex to see how this works, but that'd be quite a lot of
26485
- // extra fanciness.)
26486
- return s.replace(badChars, escapeChar);
26487
- }
26488
26442
 
26489
26443
  /**
26490
26444
  Use this method to indicate that a string should be rendered as HTML
@@ -26544,7 +26498,13 @@ var define, require;
26544
26498
  @public
26545
26499
  */
26546
26500
  function isHTMLSafe(str) {
26547
- return str !== null && typeof str === 'object' && 'toHTML' in str && typeof str.toHTML === 'function';
26501
+ return (
26502
+ // SAFETY: cast `as SafeString` only present to make this check "legal"; we
26503
+ // can further improve this by changing the behavior to do an `in` check
26504
+ // instead, but that's worth landing as a separate change for bisecting if
26505
+ // it happens to have an impact on e.g. perf.
26506
+ str !== null && typeof str === 'object' && typeof str.toHTML === 'function'
26507
+ );
26548
26508
  }
26549
26509
 
26550
26510
  /**
@@ -40074,7 +40034,6 @@ var define, require;
40074
40034
  Textarea,
40075
40035
  _resetRenderers,
40076
40036
  componentCapabilities,
40077
- escapeExpression,
40078
40037
  getTemplate,
40079
40038
  getTemplates,
40080
40039
  hasTemplate,
@@ -46991,9 +46950,7 @@ var define, require;
46991
46950
  runLoadHooks('Ember.Application', Application);
46992
46951
  let EmberHandlebars = {
46993
46952
  template: templateFactory,
46994
- Utils: {
46995
- escapeExpression
46996
- }
46953
+ Utils: {}
46997
46954
  };
46998
46955
  let EmberHTMLBars = {
46999
46956
  template: templateFactory