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
refactor(http): Deprecate HttpClientModule & related modules #54020
Conversation
|
Why not reopen the other PR? (Why was it even closed without feedback? o.o) |
|
@alfaproject I pushed the branch on the repo itself, not my own fork ! |
|
We need to deprecate https://angular.io/api/common/http/testing/HttpClientTestingModule too 😄 |
|
@eneajaho Let's do that too ! |
3a1da25
to
91bb73b
Compare
91bb73b
to
357d578
Compare
357d578
to
e0a7f13
Compare
e0a7f13
to
767d7fd
Compare
|
@JeanMeche is this change being discussed? I see Dylan wanted to talk to the team about this change. (Just wondering if/when we should review) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: fw-http, fw-testing, fw-migrations
Note that migrations are a bit hard to review without actually testing them out. But the included tests look sufficiently comprehenaive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-for: public-api
|
@JeanMeche can you rebase? I'll find another public-api reviewer |
767d7fd
to
a9d71ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-for: public-api
This commit deprecates the `HttpClientModule` and other related http modules. Those can be replaced by provider function only. Angular is an opinionated framework, feature guidance will help developer choose the recommended way to enable feature (like Http requests here). Note: This is not an indication of deprecation for `NgModule`. The deprecated module's only purpose here was to define providers. This can be done directly by the provide function pattern. DEPRECATED: `HttpClientModule`, `HttpClientXsrfModule` and `HttpClientJsonpModule` As mentionned, those modules can be replaced by provider function only.
This migration will allow developers to migrate the deprecated `HttpClientModule`, `HttpClientJsonpModule` & `HttpClientXsrfModule` to their respective provider functions.
a9d71ee
to
bad5401
Compare
|
This PR was merged into the repository by commit f914f6a. |
This migration will allow developers to migrate the deprecated `HttpClientModule`, `HttpClientJsonpModule` & `HttpClientXsrfModule` to their respective provider functions. PR Close #54020
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This commit deprecates the
HttpClientModuleand other related http modules. Those can be replaced by provider function only.Angular is an opinionated framework, feature guidance will help developer choose the recommended way to enable features (like Http requests here).
This PR provides a migration schematics to smooth out the transition.
Note: This is NOT an indication of deprecation for NgModules. The deprecated modules only purpose was to define providers. This can be done directly by the provide function pattern.
DEPRECATION:
HttpClientModule,HttpClientXsrfModuleandHttpClientJsonpModulePreviously at #53861