discourse/app/assets/javascripts
David Taylor a19efc4304
DEV: Support modifyClass for native class fields on EmberObjects (#20987)
EmberObject's `reopen` feature allows changes to be made to the prototype of the class, but it does not work with native class fields. Native class field values are set on the instance in the constructor, and therefore override any values from the prototype.

This commit implements a workaround which detects possible field overrides and then sets the values during the `init()` function of the EmberObject. This isn't perfect - old field values will still be present while any constructor function is running. But in the vast majority of cases, it should provide parity with old non-native-class EmberObject properties.

This commit also adds a warning when trying to override fields on non-EmberObject classes. There is no change in behavior here - we're just warning about the fact it doesn't work.
2023-04-12 16:49:57 +01:00
..
admin DEV: Remove unneeded optional chaining operators (#21019) 2023-04-07 14:10:49 +02:00
bootstrap-json Build(deps): Bump node-fetch from 3.3.0 to 3.3.1 in /app/assets/javascripts (#20655) 2023-03-13 08:45:43 +08:00
confirm-new-email
dialog-holder Build(deps): Bump webpack in /app/assets/javascripts (#20999) 2023-04-06 10:55:24 +02:00
discourse DEV: Support modifyClass for native class fields on EmberObjects (#20987) 2023-04-12 16:49:57 +01:00
discourse-common Build(deps): Bump @uppy/aws-s3 in /app/assets/javascripts (#20996) 2023-04-06 13:39:31 +02:00
discourse-hbr Build(deps): Bump webpack in /app/assets/javascripts (#20999) 2023-04-06 10:55:24 +02:00
discourse-plugins Build(deps): Bump webpack in /app/assets/javascripts (#20999) 2023-04-06 10:55:24 +02:00
discourse-widget-hbs Build(deps): Bump webpack in /app/assets/javascripts (#20999) 2023-04-06 10:55:24 +02:00
docs
ember-addons
ember-cli-progress-ci DEV: Add progress output in CI during ember-cli build (#17977) 2022-08-17 22:39:52 +01:00
ember-production-deprecations DEV: Include ember deprecation messages in production builds (#20587) 2023-03-10 10:37:28 +00:00
locales UX/DEV: Review queue redesign fixes (#20239) 2023-03-02 16:40:53 +01:00
patches DEV: Use patch-package to apply ember-jquery workaround 2023-04-11 10:12:30 +01:00
pretty-text Build(deps): Bump webpack in /app/assets/javascripts (#20999) 2023-04-06 10:55:24 +02:00
select-kit DEV: Remove unneeded optional chaining operators (#21019) 2023-04-07 14:10:49 +02:00
truth-helpers Build(deps): Bump webpack in /app/assets/javascripts (#20999) 2023-04-06 10:55:24 +02:00
wizard Build(deps): Bump webpack in /app/assets/javascripts (#20999) 2023-04-06 10:55:24 +02:00
.licensee.json DEV: Have licensee check xmldom license (#18840) 2022-11-02 11:51:11 -04:00
.npmrc
discourse-js-processor.js DEV: Update ember-cli-htmlbars to 6.2.0 (#20467) 2023-02-27 18:43:28 +01:00
handlebars-shim.js
package.json DEV: Enable patch-package in production and in javascripts/discourse (#21078) 2023-04-12 13:15:53 +01:00
polyfills.js Drop support for iOS < 15.7 (#19847) 2023-01-16 17:28:59 +00:00
service-worker.js.erb FEATURE: Enable service worker for Apple devices (#19643) 2023-01-30 13:23:19 -03:00
yarn.lock Build(deps): Bump sass from 1.61.0 to 1.62.0 in /app/assets/javascripts (#21063) 2023-04-12 09:08:49 +08:00