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

Update ember-ajax to the latest version 🚀 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

greenkeeper[bot]
Copy link

@greenkeeper greenkeeper bot commented Jan 24, 2017

Version 2.5.4 of ember-ajax just got published.

Dependency ember-ajax
Current Version 2.5.3
Type dependency

The version 2.5.4 is not covered by your current version range.

Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.

I recommend you look into these changes and try to get onto the latest version of ember-ajax.
Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.


Commits

The new version differs by 2 commits .

  • 3798d33 2.5.4
  • 5d98a44 Ensure that requestData has the correct method and type (#231)

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 15, 2017

Version 2.5.5 just got published.

Update to this version instead 🚀

Release Notes v2.5.5

Changelog

Note: This release was not cut from master, which contains breaking changes in preparation for v3.0.0

Commits

The new version differs by 3 commits .

  • f624aa4 Released v2.5.5
  • 4e5ee64 Add test case for #226 (#227)
  • fdd4a13 Clone options object before modifying it (#226)

See the full diff.

@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 27, 2017

Version 2.5.6 just got published.

Update to this version instead 🚀

Release Notes v2.5.6

Changlog

  • errors: Recognize HTTP status 0 as AbortError (#243) @Turbo87

Note: This release was not cut from master, which contains breaking changes in preparation for v3.0.0

Commits

The new version differs by 2 commits .

  • 6348a57 Released v2.5.6
  • 174b121 errors: Recognize HTTP status 0 as AbortError (#243)

See the full diff.

@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 27, 2017

Version 3.0.0-beta.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 38 commits (ahead by 38, behind by 7).

  • 4e784a2 Released v3.0.0-beta.0
  • fe03044 Released v2.5.7-beta.0
  • db086b3 Released v2.5.7
  • 1f4ca9d Simplify normalizeErrorResponse (#265)
  • df87315 Remove Appveyor badge from README
  • f7d7a6a Remove Appveyor command
  • 18fd004 Upgrade other dependencies
  • 9d5cf88 Upgrade ember-cli to 2.12.1
  • d9bdca0 Upgrade ember-cli-htmlbars to 1.2.0
  • 2634a20 Upgrade ember-export-application-global to 2.0.0
  • aa57517 Upgrade ember-cli-shims to 1.1.0
  • 07bf529 Upgrade ember-cli-app-version to 3.0.0
  • b79784c Configure Travis to use built-in yarn
  • 2a4d9d2 Upgrade ember-resolver to 4.0.0
  • bccdf3b Upgrade ember-load-initializers to 1.0.0

There are 38 commits in total. See the full diff.

@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 27, 2017

Version 3.0.0-beta.1 just got published.

Update to this version instead 🚀

Commits

The new version differs by 6 commits .

  • 4181656 Released v3.0.0-beta.1
  • 86ab8d0 Fix issues with the isString helper
  • 723dd66 Tighten ESLint config
  • 78de692 Hide container by default when running tests
  • ac023c1 Slight cleanup of JSON test helper
  • 60cb8de make sure contentType is a string before running a regex match (#250)

See the full diff.

@greenkeeper
Copy link
Author

greenkeeper bot commented Apr 22, 2017

Version 3.0.0 just got published.

Update to this version instead 🚀

Release Notes Make it Simple(r)

Breaking Changes

Simplifying normalizeErrorResponse

After much discussion, the team around ember-ajax decided that it was probably not a great idea to reformat the error payload to match some arbitrary format that we designed. Instead, we should just use the payload that the server returned.

If you want to maintain the old behavior, you can include the the legacy/normalize-error-response mixin, which has the old version of the method included and will override the new behavior.

// app/services/ajax.js
import AjaxService from 'ember-ajax/services/ajax';
import LegacyNormalizeErrorResponse from 'ember-ajax/mixins/legacy/normalize-error-response';

export default AjaxService.extends(LegacyNormalizeErrorResponse, {
// Your other configuration here
});

Replacing AjaxError.errors with AjaxError.payload

The errors property on any AjaxError subclass has been deprecated in favor of a payload property for a while now. If you want access to the response from the server, you should now use the payload property, like so:

return this.get('ajax').request('/posts')
  .then((posts) => {
    // Do something with your posts
  })
  .catch((error) => {
    this.displayError(error.payload); // `error.payload` will be whatever the server responded with
  });

No longer modify null or undefined server response (#232)

If your server response is interpreted by jQuery#ajax to be null or undefined, we will resolve that value, instead of turning it into an empty object.

Commits

The new version differs by 5 commits0.

  • 2aba19e Released v3.0.0
  • 5c6a45a Upgrade dependencies (#283)
  • acd384f fix(package): update ember-cli-babel to version 6.0.0-beta.10 (#277)
  • c70bc9a Update to use Babel 6 (#266)
  • 528e843 Upgrade ember-resolver to 4.1.0

false

See the full diff

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.

0 participants