-
Notifications
You must be signed in to change notification settings - Fork 122
Fix #95 - replace HttpModule with HttpClientModule #161
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
Conversation
1 similar comment
|
Its possible to review and merge this PL? thanks |
In |
|
@cguilhermef: I didn't want to change the public API, so I kept Can you specify what workaround you had to use to make this work? |
|
Good Solutions. Need Merged Fast. Because Angular 5+ use HttpClientModule and the performance and controls is best than Http |
|
When will a new version be generated with this feature? |
|
@gustavomcastro version 5.0.0 has been already published |
|
Nice work! We still have some deprecated dependencies, like Response and Headers, but the first step was done! |
|
@hpawe01 thank you for your contribution. |
|
Thank you. Nice Work! |
This pull request tries to fix #95 and to finish parts of the open pull request #96. I used some ideas of this pull request, so thanks @agustinvinao. This pull request does not change
publicorprotectedmethod signatures except the constructor of theDatastoreService(it now needs aHttpClientinstead ofHttp), so it should be easy to integrate for the users of this library.To replace
HttpModulewithHttpClientModulewe have to do multiple things:modulefileRequestOptionsorResponse) and use HttpClientModule constructs (likeHttpHeadersorHttpResponse) injson-api-datastore.service.tsandjson-api.model.tsjson-api.datastore.service.spec.tsto use the new testing concepts of HttpClientModule (https://angular.io/guide/http#testing-http-requests)Other things should be considered in following pull requests:
querymethod (and its test cases)nullresponse