-
-
Notifications
You must be signed in to change notification settings - Fork 926
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
Bring some sanity to request parsing and error handling #2335
Merged
dead-claudia
merged 2 commits into
MithrilJS:next
from
dead-claudia:request-response-type-fix
May 29, 2019
Merged
Bring some sanity to request parsing and error handling #2335
dead-claudia
merged 2 commits into
MithrilJS:next
from
dead-claudia:request-response-type-fix
May 29, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dead-claudia
added
Type: Bug
For bugs and any other unexpected breakage
Type: Breaking Change
For any feature request or suggestion that could reasonably break existing code
labels
Dec 10, 2018
dead-claudia
force-pushed
the
request-response-type-fix
branch
from
December 10, 2018 09:34
37bd8ac
to
c2b1eb7
Compare
@MithrilJS/collaborators Could I get a review here? |
dead-claudia
requested review from
barneycarroll and
StephanHoyer
and removed request for
a team
February 1, 2019 21:28
dead-claudia
force-pushed
the
request-response-type-fix
branch
from
February 7, 2019 09:38
c2b1eb7
to
1ce2376
Compare
dead-claudia
force-pushed
the
request-response-type-fix
branch
3 times, most recently
from
March 2, 2019 07:40
4999b46
to
42002f4
Compare
StephanHoyer
requested changes
Mar 14, 2019
@StephanHoyer Anything else stick out to you? |
dead-claudia
commented
Apr 24, 2019
- The browser can do JSON parsing itself. Let's defer to that where possible. (A few IE hacks are required here, though.) - Don't propagate any error that occurs before `deserialize`/`extract`. - Allow sending raw array buffers/blobs/etc. to `deserialize`. - Align behavior more closely with the XHR spec. - Send the more useful parsed response to `deserialize`, not the less useful string response.
Co-Authored-By: isiahmeadows <contact@isiahmeadows.com>
dead-claudia
force-pushed
the
request-response-type-fix
branch
from
May 29, 2019 13:35
cf9f4ab
to
b814567
Compare
Merging as per private discussion with @StephanHoyer. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Type: Breaking Change
For any feature request or suggestion that could reasonably break existing code
Type: Bug
For bugs and any other unexpected breakage
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
deserialize
/extract
.deserialize
.deserialize
, not the less useful string response.Motivation and Context
Fixes #2333
Edit: Fixes #2313
Here's why I included more breaking changes:
responseType
.responseType: "json"
feature for a while and that it's fully integrated withresponse
, and thought that could simplify our end a little.How Has This Been Tested?
Ran all the tests and updated them as appropriate. I updated a mock, but the tests for them didn't really need updated.
Types of changes
Checklist:
docs/change-log.md