mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-04-28 21:44:14 +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. |
||
|---|---|---|
| .. | ||
| @ember-compat__tracked-built-ins@0.9.1.patch | ||
| babel-plugin-debug-macros@0.3.4.patch | ||
| ember-source@6.10.1.patch | ||
| ember-this-fallback@0.4.0.patch | ||
| http-proxy@1.18.1.patch | ||
| licensee@11.1.1.patch | ||