Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLEANUP beta] Remove deprecated array observers #19833

Merged
merged 1 commit into from Nov 12, 2021

Commits on Nov 12, 2021

  1. [CLEANUP beta] Remove deprecated array observers

    Part of emberjs#19617
    
    * Remove `someArray.addArrayObserver`
      https://github.com/emberjs/ember.js/pull/19833/files#diff-8116921433c6e1664250d5735e4f9daeb6ea9e00940783e0c4db7adf88aa8772L532
    * Remove `someArray.removeArrayObserver`
      https://github.com/emberjs/ember.js/pull/19833/files#diff-8116921433c6e1664250d5735e4f9daeb6ea9e00940783e0c4db7adf88aa8772L548
    * Remove `someArray.hasArrayObservers`
      https://github.com/emberjs/ember.js/pull/19833/files#diff-8116921433c6e1664250d5735e4f9daeb6ea9e00940783e0c4db7adf88aa8772L571
    * Remove `someArray.arrayContentWillChange`
      https://github.com/emberjs/ember.js/pull/19833/files#diff-8116921433c6e1664250d5735e4f9daeb6ea9e00940783e0c4db7adf88aa8772L642
    * Remove `someArray.arrayContentDidChange`
      https://github.com/emberjs/ember.js/pull/19833/files#diff-8116921433c6e1664250d5735e4f9daeb6ea9e00940783e0c4db7adf88aa8772L670
      (also at
      https://github.com/emberjs/ember.js/pull/19833/files#diff-79a0015ca0e6a6c3661d9119f4caf6b26b111af6bb0e5bb784558631c599a81cL357)
    * On the internal version of `addArrayObserver`, remove the optionality
      of `willChange` and `didChange` arguments to name the hooks. In
      framework code (and now in test) these are always provided.
    * Retain basically all the test coverage of array observers since they
      remain used by `ArrayProxy` internally (and through that interface, in
      Ember Data).
    
    Co-authored-by: Matthew Beale <matt.beale@madhatted.com>
    kategengler and mixonic committed Nov 12, 2021
    Copy the full SHA
    a9aedea View commit details
    Browse the repository at this point in the history