Skip to content

Deprecate PromiseProxyMixin, Enumerable, and Observable (mixins, RFC#… - #21588

Merged
NullVoxPopuli merged 24 commits into
mainfrom
nvp/deprecate-mixin-followups
Oct 13, 2026
Merged

NullVoxPopuli merged 24 commits into
mainfrom
nvp/deprecate-mixin-followups

Conversation

@NullVoxPopuli

@NullVoxPopuli NullVoxPopuli commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Supersedes:

Advancement:

RFC:

Guides:

Best viewed with:
image

Note

Because of the strategy of this deprecation (internal + public extends + deprecate), our tests don't have a lot of the testUnless stuff. We still need the tests because many of these mixins are still used internally. This makes this deprecation a bit different from the other ones due to how entangled mixins our in the codebase

@github-actions

github-actions Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

📊 Size report

Tarball size — 1.2 MB → 1.3 MB

dist/dev   0.7%↑

File Before (Size / Brotli) After (Size / Brotli)
Total (Includes all files) 2.1 MB / 514.6 kB 0.7%↑2.2 MB / 0.8%↑519 kB
Show files (29 files)
File Before (Size / Brotli) After (Size / Brotli)
./packages/@ember/-internals/deprecations/index.js 7 kB / 1.8 kB 41%↑9.8 kB / 10%↑1.9 kB
./packages/@ember/-internals/runtime/lib/mixins/-proxy-internal.js — 3.9 kB / 1.3 kB
./packages/@ember/-internals/runtime/lib/mixins/-proxy.js 4 kB / 1.3 kB -73.4%↓1.1 kB / -67.1%↓443 B
./packages/@ember/-internals/runtime/lib/mixins/action_handler-internal.js — 1.6 kB / 596 B
./packages/@ember/-internals/runtime/lib/mixins/action_handler.js 6.2 kB / 1.7 kB -11.3%↓5.5 kB / -14%↓1.5 kB
./packages/@ember/-internals/runtime/lib/mixins/container_proxy-internal.js — 990 B / 358 B
./packages/@ember/-internals/runtime/lib/mixins/registry_proxy-internal.js — 1.6 kB / 541 B
./packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js 1.6 kB / 528 B 105%↑3.2 kB / 80%↑948 B
./packages/@ember/-internals/runtime/lib/mixins/target_action_support-internal.js — 2.8 kB / 831 B
./packages/@ember/-internals/runtime/lib/mixins/target_action_support.js 4.9 kB / 1.3 kB -77.9%↓1.1 kB / -68.4%↓427 B
./packages/@ember/-internals/views/lib/mixins/action_support-internal.js — 1.7 kB / 630 B
./packages/@ember/-internals/views/lib/mixins/action_support.js 1.5 kB / 585 B -56%↓680 B / -47.9%↓305 B
./packages/@ember/array/index-internal.js — 676 B / 241 B
./packages/@ember/array/index.js 755 B / 270 B 489%↑4.4 kB / 400%↑1.3 kB
./packages/@ember/array/proxy.js 10.9 kB / 2.7 kB 1%↑11 kB / -0.11%↓2.7 kB
./packages/@ember/controller/controller-internal.js — 2.9 kB / 1 kB
./packages/@ember/controller/index.js 4.9 kB / 1.6 kB -41.9%↓2.8 kB / -41.5%↓936 B
./packages/@ember/enumerable/index.js 570 B / 281 B 54%↑878 B / 38%↑387 B
./packages/@ember/enumerable/mutable.js 623 B / 289 B 47%↑917 B / 33%↑383 B
./packages/@ember/object/mixin-internal.js — 17 kB / 4.5 kB
./packages/@ember/object/mixin.js 610 B / 230 B 346%↑2.7 kB / 257%↑820 B
./packages/@ember/object/observable-internal.js — 4.4 kB / 1.1 kB
./packages/@ember/object/observable.js 6.7 kB / 1.8 kB -51.7%↓3.2 kB / -40.3%↓1.1 kB
./packages/shared-chunks/computed-BHLSC3Cg.js 34.1 kB / 7.9 kB —
./packages/shared-chunks/evented-{hash}.js 3.3 kB / 855 B 6%↑3.5 kB / 0.1%↑856 B
./packages/shared-chunks/index-internal-C0ouLBvx.js — 15.6 kB / 3.7 kB
./packages/shared-chunks/mixin-6JjyWNte.js 18.5 kB / 4.8 kB —
./packages/shared-chunks/mutable-BIeaBqYk.js 18.2 kB / 4.6 kB —
./packages/shared-chunks/properties-zkQ-nuns.js — 34.1 kB / 7.9 kB

dist/prod   0.7%↑

File Before (Size / Brotli) After (Size / Brotli)
Total (Includes all files) 1.9 MB / 471.4 kB 0.7%↑2 MB / 0.9%↑475.8 kB
Show files (28 files)
File Before (Size / Brotli) After (Size / Brotli)
./packages/@ember/-internals/deprecations/index.js 6.7 kB / 1.7 kB 43%↑9.5 kB / 11%↑1.9 kB
./packages/@ember/-internals/runtime/lib/mixins/-proxy-internal.js — 2.9 kB / 1 kB
./packages/@ember/-internals/runtime/lib/mixins/-proxy.js 3.1 kB / 1 kB -65.1%↓1.1 kB / -57.2%↓443 B
./packages/@ember/-internals/runtime/lib/mixins/action_handler-internal.js — 1.1 kB / 460 B
./packages/@ember/-internals/runtime/lib/mixins/action_handler.js 5.7 kB / 1.6 kB -4.18%↓5.5 kB / -6.81%↓1.5 kB
./packages/@ember/-internals/runtime/lib/mixins/container_proxy-internal.js — 990 B / 358 B
./packages/@ember/-internals/runtime/lib/mixins/registry_proxy-internal.js — 1.4 kB / 508 B
./packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js 1.3 kB / 473 B 143%↑3.2 kB / 100%↑948 B
./packages/@ember/-internals/runtime/lib/mixins/target_action_support-internal.js — 2.5 kB / 754 B
./packages/@ember/-internals/runtime/lib/mixins/target_action_support.js 4.6 kB / 1.3 kB -77.4%↓1 kB / -68%↓411 B
./packages/@ember/-internals/views/lib/mixins/action_support-internal.js — 1.1 kB / 477 B
./packages/@ember/-internals/views/lib/mixins/action_support.js 923 B / 403 B -26.3%↓680 B / -24.3%↓305 B
./packages/@ember/array/index-internal.js — 615 B / 232 B
./packages/@ember/array/index.js 694 B / 260 B 541%↑4.4 kB / 414%↑1.3 kB
./packages/@ember/controller/controller-internal.js — 2.9 kB / 1 kB
./packages/@ember/controller/index.js 4.9 kB / 1.6 kB -41.9%↓2.8 kB / -41.4%↓938 B
./packages/@ember/enumerable/index.js 570 B / 283 B 54%↑878 B / 37%↑387 B
./packages/@ember/enumerable/mutable.js 623 B / 296 B 47%↑917 B / 29%↑383 B
./packages/@ember/object/mixin-internal.js — 15.3 kB / 4 kB
./packages/@ember/object/mixin.js 497 B / 205 B 447%↑2.7 kB / 300%↑820 B
./packages/@ember/object/observable-internal.js — 3.9 kB / 1 kB
./packages/@ember/object/observable.js 6.2 kB / 1.7 kB -47.6%↓3.2 kB / -36.6%↓1.1 kB
./packages/shared-chunks/computed-CMpy8sQ2.js 28.2 kB / 6.6 kB —
./packages/shared-chunks/evented-{hash}.js 3.3 kB / 852 B 6%↑3.5 kB / 0.2%↑854 B
./packages/shared-chunks/index-internal-C18cONEx.js — 13.7 kB / 3.5 kB
./packages/shared-chunks/mixin-Io_m1M_e.js 16.7 kB / 4.4 kB —
./packages/shared-chunks/mutable-Bohp9fQW.js 16.4 kB / 4.3 kB —
./packages/shared-chunks/properties-DCNROVm7.js — 28.2 kB / 6.6 kB

smoke-tests/v2-app-template/dist   1%↑

File Before (Size / Brotli) After (Size / Brotli)
./assets/main-{hash}.js 319.8 kB / 85.7 kB 0.8%↑322.3 kB / 0.2%↑85.8 kB
./assets/modules-{hash}.js 31.3 kB / 9.9 kB 7%↑33.6 kB / 2%↑10.1 kB
Total (Includes all files) 353 kB / 96.4 kB 1%↑357.7 kB / 0.4%↑96.7 kB

smoke-tests/v2-app-hello-world-template/dist   1%↑

File Before (Size / Brotli) After (Size / Brotli)
./assets/main-{hash}.js 126.2 kB / 35 kB 1%↑128 kB / 0.4%↑35.1 kB
Total (Includes all files) 126.5 kB / 35.2 kB 1%↑128.4 kB / 0.4%↑35.3 kB

🤖 This report was automatically generated by wyvox/pkg-size

Comment thread packages/@ember/object/index.ts Resolved
@NullVoxPopuli
NullVoxPopuli marked this pull request as draft September 2, 2026 17:38
Comment thread rollup.config.mjs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to expose all these new internal files as importable things, so they got filtered out

@NullVoxPopuli
NullVoxPopuli marked this pull request as ready for review September 3, 2026 14:03
Comment thread packages/@ember/array/index-internal.ts Resolved
…ted when on the mixin. No longer show that RegistryProxyMixin extends RegistryProxy so that the deprecated docs "win".
…RegistryProxyMixin) so it displays the correct inherited non-deprecated method
…er than the mixins so that they properly show documentation of the public inherited methods.
@NullVoxPopuli
NullVoxPopuli force-pushed the nvp/deprecate-mixin-followups branch from e08d95c to d771297 Compare October 13, 2026 00:01
@kategengler

Copy link
Copy Markdown
Member

I'm still getting confused by the internal versions that are ONLY used in deprecated public mixins. For example, InternalMutableArray and InternalEmberArray appear to only be used in public mixins that also trigger a deprecation. Should we not then be calling deprecate() on every method and marking the methods as deprecated? Since the methods cannot be used if the mixins cannot be used.

NullVoxPopuli and others added 5 commits October 12, 2026 21:30
…methods are not deprecated where they are included.

I'd prefer to put the documentation on InternalObservable and have the documentation show that way, but I believe the filtering is keeping that from ending up in the docs.
NullVoxPopuli added a commit to ember-learn/deprecation-app that referenced this pull request Oct 13, 2026
NullVoxPopuli added a commit to ember-learn/deprecation-app that referenced this pull request Oct 13, 2026
@NullVoxPopuli
NullVoxPopuli merged commit ddec488 into main Oct 13, 2026
69 checks passed
@NullVoxPopuli
NullVoxPopuli deleted the nvp/deprecate-mixin-followups branch October 13, 2026 21:25
@github-actions github-actions Bot mentioned this pull request Oct 13, 2026
@NullVoxPopuli
NullVoxPopuli restored the nvp/deprecate-mixin-followups branch October 13, 2026 21:32
@NullVoxPopuli
NullVoxPopuli deleted the nvp/deprecate-mixin-followups branch October 13, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants