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
fix(common): temporarily re-export and deprecate XhrFactory
#41393
fix(common): temporarily re-export and deprecate XhrFactory
#41393
Conversation
You can preview 454f9a3 at https://pr41393-454f9a3.ngbuilds.io/. |
454f9a3
to
60f4504
Compare
You can preview 60f4504 at https://pr41393-60f4504.ngbuilds.io/. |
15d17bd
to
2509b87
Compare
You can preview 2509b87 at https://pr41393-2509b87.ngbuilds.io/. |
2509b87
to
afa3d38
Compare
You can preview afa3d38 at https://pr41393-afa3d38.ngbuilds.io/. |
The moved `XhrFactory` still needs to be available from `@angular/common/http` for some libraries that were built prior to 12.0.0, otherwise they cannot be used in applications built post-12.0.0. This commit adds back the re-export of `XhrFactory` and deprecates it.
afa3d38
to
f625e20
Compare
XhrFactory
You can preview f625e20 at https://pr41393-f625e20.ngbuilds.io/. |
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
packages/misc/angular-in-memory-web-api/src/in-memory-web-api-module.ts
Outdated
Show resolved
Hide resolved
You can preview f69734e at https://pr41393-f69734e.ngbuilds.io/. |
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.
LGTM, not sure why this didn't work for me when I tried it. Clearly, I was doing something different.
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.
👍
Shouldn't we also add a note in aio/content/guide/deprecations.md?
We now include `misc/angular-in-memory-web-api` in the packages that are build in the `dist/packages-dist` directory. But this package should not be published as an artifact. This commit prevents attempting to publishing the `misc` directory by first checking whether the directory contains a `package.json` file.
f69734e
to
3e30358
Compare
You can preview 3e30358 at https://pr41393-3e30358.ngbuilds.io/. |
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
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.
LGTM
Reviewed-for: docs-packaging-and-releasing
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.
LGTM
Reviewed-for: public-api
@petebacondarwin FYI presubmits are successful for the changes in this PR. |
We now include `misc/angular-in-memory-web-api` in the packages that are build in the `dist/packages-dist` directory. But this package should not be published as an artifact. This commit prevents attempting to publishing the `misc` directory by first checking whether the directory contains a `package.json` file. PR Close #41393
…r#41393) The moved `XhrFactory` still needs to be available from `@angular/common/http` for some libraries that were built prior to 12.0.0, otherwise they cannot be used in applications built post-12.0.0. This commit adds back the re-export of `XhrFactory` and deprecates it. PR Close angular#41393
…41393) We now include `misc/angular-in-memory-web-api` in the packages that are build in the `dist/packages-dist` directory. But this package should not be published as an artifact. This commit prevents attempting to publishing the `misc` directory by first checking whether the directory contains a `package.json` file. PR Close angular#41393
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. |
Docs show deprecation notice: https://pr41393-f625e20.ngbuilds.io/api/common/http/XhrFactory
Tested against ngcc-validation: angular/ngcc-validation#2820
Deprecation message also shows in IDE: