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
Depends on rxjs as dependencies
#6659
Comments
ES6 polyfills ( Angular2 polyfills ( But RxJS have to be installed always explicitly. This should be |
@btford Hi. How are you thinking about this? |
👍 |
1 similar comment
+1 |
👍 |
#7001 could be prevent if rxjs were @mhevery @IgorMinar I want you to think about this thing. |
dependencies
#7001 is simply tracking that changes are needed in angular 2 for us to work with the latest rxjs, not related to how the right See #5560 where we decided to make these peers. @IgorMinar has written elsewhere about the reasoning for these peerDependencies - essentially it is that these are all API-level dependencies on upcoming EcmaScript standards (eg. reflect-metadata is already coming in es7, zone.js is TC-39 stage zero, rxjs is next) and so you could choose whatever implementation you want. Angular just wants you to bring some implementation for each of these standards. Also, you should use the same version of the peerDependency everywhere. We think the right fix is to add an npm option that lets you opt-in to explicitly installing the peerDependencies that angular requests. |
@alexeagle I agree on your opinion about es6 shims. But I think it should not apply on RxJS. If angular2 keeps peerDependency for RxJS, I think that to install it on |
I don't even know if we've filed an issue with npm for the behavior we want. On Tue, Feb 16, 2016 at 7:33 PM Suguru Inatomi notifications@github.com
|
Okay, I can understand it. It's really correct but I'm worried if it is not friendly for beginners. |
If RxJS will be stable, my worry is unnecessary. I hope it. :) |
We decided to use All of the peer dependencies as required today are expected to be provided by the runtime and compile-time environment to Angular 2 (as opposed to Angular loading these dependencies during boot time). Let's take a look at all of them and discuss what I mean by the statement above.
Now all of the polyfill dependencies, should ideally by just a suggestion or a hint to developers so that they know what Angular expects, but they should not be a hard requirement as they are today. There is an npm feature request for "optional peerDependencies" which would allow us to model this relationship better. Once implemented, Angular will switch over to using these |
@wardbell could you please incorporate the information in the above comment into our docs in some suitable way? Thanks! (angular/angular.io#848) |
@IgorMinar Thanks to very kind explanation. I finally understood your decision and purposes. |
I see! got it. Thank you. |
@IgorMinar It's on its way. See angular.io PR #852 |
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. |
Currently, this project uses npm v3. That's great!
But, there are still
peerDependencies
in https://github.com/angular/angular/blob/master/modules/angular2/package.json .In npm v3,
peerDependencies
are no longer installed implicitly.Contributors can install those as
dependencies
from package.json on root, but users cannot. I must execute commands;npm install --save angular2@2.0.0-beta.1 rxjs@5.0.0-beta.1 reflect-metadata es6-shims es6-promise zone.js
. It's not happy for developers.I'd like to install only
angular2
explicitly. I think many developers are also thinking so.The text was updated successfully, but these errors were encountered: