Skip to content
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

Support rxjs v6 #355

Closed
wants to merge 1 commit into from
Closed

Support rxjs v6 #355

wants to merge 1 commit into from

Conversation

mprahl
Copy link

@mprahl mprahl commented May 18, 2018

Angular v6 started requiring rxjs v6 which has changed import locations. ngx-bootstrap v2 does not support rxjs v6, so as a work-around, we can install rxjs-compat to get Patternfly to work with Angular v6.

When you feel comfortable, you could alternatively upgrade ngx-bootstrap to v3. Here is the backstory on that:
valor-software/ngx-bootstrap#4308

@@ -75,7 +75,8 @@
"angular-tree-component": "^6.0.0 || ^7.0.0",
"c3": "^0.4.15",
"ng2-dragula": "^1.5.0",
"ngx-bootstrap": "^1.8.0 || ^2.0.0"
"ngx-bootstrap": "^1.8.0 || ^2.0.0",
"rxjs-compat": "^6.1.0"
Copy link
Member

@dlabrecq dlabrecq May 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering it's the application that performs the transpile (patternfly-ng doesn't use rxjs-compat itself), I'm thinking it should be the application that includes rxjs-compat. That way, an unused package is not installed by default for existing Angular 4 and 5 applications.

Since there are breaking changes with rxjs 6 (the reason for rxjs-compat), and the numerous challenges noted in #356, I'd like to create a new major version of patternfly-ng built with Angular 6 instead. Then, we can update to the latest versions of ngx-bootstrap 3.0.0, ngx-datatable 13.0.0, rxjs 6, and webpack 4.

Note that patternfly-ng currently builds with Angular 4 in order to be compatible with 4 and 5. However, the current version of patternfly-ng cannot upgrade to ngx-bootstrap 3.0.0 and ngx-datatable 13.0.0 because those packages are built with Angular 6. In order to update those packages, patternfly-ng must also build with Angular 6, which will be a breaking change.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See: #359

@mprahl mprahl closed this May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants