Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Comments

Remove deprecated Ember.K#132

Merged
pixelhandler merged 2 commits intopixelhandler:masterfrom
cibernox:remove-deprecated-ember-k
Dec 31, 2016
Merged

Remove deprecated Ember.K#132
pixelhandler merged 2 commits intopixelhandler:masterfrom
cibernox:remove-deprecated-ember-k

Conversation

@cibernox
Copy link
Contributor

Ember.K has been deprecated in Ember.

mockFetchJax(sandbox, adapter, postMock);
sandbox.stub(adapter, 'cacheResource', function () {});
adapter.serializer = { deserialize: sandbox.spy(), deserializeIncluded: Ember.K };
adapter.serializer = { deserialize: sandbox.spy(), deserializeIncluded() {} };
Copy link
Owner

Choose a reason for hiding this comment

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

@cibernox nice, thanks for the fix. So named function declaration in shorthand syntax . Sweet. deserializeIncluded() {} and clean

@pixelhandler
Copy link
Owner

@cibernox looks like the Travis build fails. I'll take a look over the weekend.

@cibernox
Copy link
Contributor Author

Actually this PR was made with an automatic tool that does all the transformations automatically https://github.com/cibernox/ember-k-codemod

I'm working on a script that it's going to fix every open source addon automatically, because after 3/4 pull requests this is boring.

@pixelhandler
Copy link
Owner

pixelhandler commented Dec 30, 2016

@cibernox I've been interested in creating code mods for things like blueprint upgrades, e.g. many files generated with a blueprint and then upgrading the blueprint and providing a codemode to migrate existing (generated) files.

@cibernox
Copy link
Contributor Author

It is fun indeed, but beware, documentation is scarce. It's mostly a matter of trial and error (and a lot of debuggers)

@pixelhandler
Copy link
Owner

@cibernox one way "I cut my teeth" (learning) programming was writing code mods for phpMyBB, the format was like find code and replace with new code. before learning to write an app/system I learned how to hack it for customized behaviors. Seems like a nice modx like tool could be great for patching existing ember apps.

@pixelhandler
Copy link
Owner

@cibernox I added a commit to fixup an unused Ember import in a test.

@@ -1,4 +1,3 @@
import Ember from 'ember';
Copy link
Owner

Choose a reason for hiding this comment

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

@cibernox after removing Ember.K the import was no longer needed.

@pixelhandler pixelhandler merged commit 21e8822 into pixelhandler:master Dec 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants