mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-01 19:00:38 +08:00
Replaces `@ember-compat/tracked-built-ins` with Ember's native `@ember/reactive/collections` module (available since Ember 6.8) across ~80 files in core and plugins. Changes: - Replace `TrackedArray`/`TrackedObject`/`TrackedSet`/`TrackedMap` class constructors with `trackedArray()`/`trackedObject()`/`trackedSet()`/`trackedMap()` factory functions - Replace `instanceof TrackedArray` checks with new `isTrackedArray()` utility (factory returns a Proxy, not a class instance) - Add `trackedObjectWithComputedSupport()` wrapper for site settings and other objects observed via `@computed` dependent key chains -- registers `setCustomTagFor` to bypass `setupMandatorySetter` and intercepts `set` to call `dirtyTagFor()` - Add `@ember/reactive/collections` loader shim for theme/plugin compatibility - Patch `ember-source` to fix `TrackedMap`/`TrackedWeakMap` `set()` truthiness bug, `entries()`/`values()`/`forEach()` tag consumption, `delete()` return values, and missing `[Symbol.iterator]()` on iterators - Bump `@discourse/lint-configs` to `2.44.0` Depends on #38220. |
||
|---|---|---|
| .. | ||
| admin/components | ||
| discourse | ||