Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Getting started with ember-cli-deprecation-workflow

Getting started with ember-cli-deprecation-workflow

53f03faec1f8e5de88b555cb02ae6ac9?s=128

Robert DeLuca

August 27, 2015
Tweet

Transcript

  1. ember-cli-deprecation-workflow @robdel12 1

  2. Who has seen this before? 2

  3. 3

  4. The deprecation warnings can be overwhelming. 4

  5. But that’s okay. 5

  6. ember-cli-deprecation- workflow to the rescue! 6

  7. Let’s get set up. 7

  8. Run `ember install ember-cli- deprecation-workflow` in your ember cli project.

    8
  9. Create the config file: `config/deprecation-workflow.js` 9

  10. Run your test suite with the server: `ember test -

    - server` 10
  11. After the tests finish run `deprecationWorkflow.flushDeprecations() ` in the browser

    console. 11
  12. Paste the output into your deprecation-workflow config file you created.

    12
  13. 13

  14. Why is this awesome? 14

  15. Change one object from “silence” to “throw”. 15

  16. 16

  17. This will raise an exception when a deprecation is thrown.

    17
  18. And give a stack trace. 18

  19. Click that link to see the offending code. 19

  20. 20

  21. You can break each deprecation into a commit. 21

  22. It allows you to focus on one problem at a

    time. 22
  23. Lather, rinse, repeat. 23

  24. Limitations • Doesn’t work with deprecations in vendor.js1 • Only

    catches deprecations ran in the browser2 24
  25. Go forth and upgrade! 25

  26. Wifi name: spiceworksguest Password: R2d2C3p0