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

Deprecate all the things! #6368

Merged
merged 2 commits into from
Mar 27, 2018
Merged

Deprecate all the things! #6368

merged 2 commits into from
Mar 27, 2018

Conversation

mramato
Copy link
Contributor

@mramato mramato commented Mar 24, 2018

Didn't see anyone tackling this and the release is a week away (plus I know how to party on a Friday night).

  • Remove loadArrayBuffer, loadBlob, loadImage, loadJson, loadJsonp, loadText, loadXML and loadWithXhr have been removed.
  • Remove proxy, headers and query parameters from all the fuctions that take a Resource.

Fixes #6119

Remove `loadArrayBuffer`, `loadBlob`, `loadImage`, `loadJson`, `loadJsonp`,
`loadText`, `loadXML` and `loadWithXhr` have been removed. Please use the
equivalent `fetch` functions on the `Resource` class.

Remove `proxy`, `headers` and `query` parameters from all the fuctions
that take a `Resource`.

Fixes #6119
@cesium-concierge
Copy link

Signed CLA is on file.

@mramato, thanks for the pull request! Maintainers, we have a signed CLA from @mramato, so you can review this at any time.


I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

@mramato
Copy link
Contributor Author

mramato commented Mar 24, 2018

Just realized that none of the tests were moved into Resource, @tfili am I right that I need to move all of the loadXXXSpec.js tests into Resource.js and update them? (Not sure why we didn't do that initially)

@mramato
Copy link
Contributor Author

mramato commented Mar 24, 2018

Okay, I added back the relevant tests and this is ready. (Still ~2700 lines down!) Not all the tests needed to be moved because they were duplicating stuff that was already tested.

In the future we can definitely streamline the Resource tests further, but that's purely for cleanup purposes.

@tfili
Copy link
Contributor

tfili commented Mar 27, 2018

It looks like you got everything outlined in the issue. Thanks @mramato.

@tfili tfili merged commit 41c7d6b into master Mar 27, 2018
@tfili tfili deleted the deprecatiageddon branch March 27, 2018 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants