discourse/app/assets/javascripts
Jarek Radosz 7b8343d482
FIX: Support getters in hbr #each context (#28941)
There is a risk of overriding and then deleting a prop of the context in case of a naming clash between localName and that prop, e.g.

```js
class Test {
  item = "foo";
  items = [1, 2];
}

const template = `
  {{#each items as |item|}}
    {{item}}
  {{/each}}
`;
const compiledTemplate = compile(template);

const object = new Test();
// object.item === "foo"
const output = compiledTemplate(object, RUNTIME_OPTIONS);
// object.item === undefined
```

…but I think we can accept this risk and just be careful.`#each` isn't widely used in hbr anyway (as proven by the other long-standing and recently fixed bug) and hbr is on its way out anyway.
2024-09-17 12:07:07 +02:00
..
admin FEATURE: Add ability to dismiss admin notices (#28916) 2024-09-17 14:43:34 +08:00
custom-proxy Build(deps-dev): Bump express from 4.20.0 to 4.21.0 (#28886) 2024-09-12 21:21:46 +02:00
deprecation-silencer DEV: Reformat package.json files (#28733) 2024-09-04 21:14:13 +02:00
dialog-holder Build(deps): Bump ember-auto-import from 2.7.4 to 2.8.0 (#28933) 2024-09-17 01:23:58 +02:00
discourse FIX: Support getters in hbr #each context (#28941) 2024-09-17 12:07:07 +02:00
discourse-common FIX: Support getters in hbr #each context (#28941) 2024-09-17 12:07:07 +02:00
discourse-hbr DEV: Reformat package.json files (#28733) 2024-09-04 21:14:13 +02:00
discourse-i18n DEV: Reformat package.json files (#28733) 2024-09-04 21:14:13 +02:00
discourse-markdown-it Build(deps): Bump ember-auto-import from 2.7.4 to 2.8.0 (#28933) 2024-09-17 01:23:58 +02:00
discourse-plugins DEV: Reformat package.json files (#28733) 2024-09-04 21:14:13 +02:00
discourse-widget-hbs Build(deps): Bump ember-auto-import from 2.7.4 to 2.8.0 (#28933) 2024-09-17 01:23:58 +02:00
docs
ember-addons
ember-cli-progress-ci PERF: Improve production JS build in low-memory environments (#26849) 2024-05-02 11:43:59 +01:00
ember-production-deprecations DEV: Update ember-cli-deprecation-workflow from 2.2.0 to 3.0.1 (#28226) 2024-08-07 17:59:42 +02:00
float-kit Build(deps): Bump ember-auto-import from 2.7.4 to 2.8.0 (#28933) 2024-09-17 01:23:58 +02:00
locales FEATURE: Add Uyghur language (#27183) 2024-05-27 09:58:18 +02:00
pretty-text Build(deps): Bump ember-auto-import from 2.7.4 to 2.8.0 (#28933) 2024-09-17 01:23:58 +02:00
select-kit Build(deps): Bump ember-auto-import from 2.7.4 to 2.8.0 (#28933) 2024-09-17 01:23:58 +02:00
theme-transpiler Build(deps): Bump babel-plugin-ember-template-compilation (#28812) 2024-09-10 09:45:56 +02:00
truth-helpers Build(deps): Bump ember-auto-import from 2.7.4 to 2.8.0 (#28933) 2024-09-17 01:23:58 +02:00
.npmrc
handlebars-shim.js
polyfills.js
service-worker.js.erb DEV: Drop workbox dependency (#26735) 2024-04-24 10:19:12 +01:00