-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat(store): add ngrx-store-freeze migration #1901
Conversation
}, | ||
"ngrx-store-migration-03": { | ||
"description": "The road to v8 RC", | ||
"version": "8-rc.1", |
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.
Will this be picked up? 🤔
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.
🤷♂
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.
This should work according to: https://github.com/angular/angular-cli/blob/master/packages/schematics/update/migrate/index_spec.ts#L133
Preview docs changes for a3c62bc at https://previews.ngrx.io/pr1901-a3c62bc/ |
|
||
return { hit: false }; | ||
}) | ||
.filter(({ hit }) => hit) |
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.
Nice.
.map(p => (p.importClause!.namedBindings! as ts.NamedImports).elements) | ||
.reduce((imports, curr) => imports.concat(curr), [] as ts.ImportSpecifier[]) | ||
.map(specifier => { | ||
if (!ts.isImportSpecifier(specifier)) { |
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.
Is this not a duplicate of code in ast-utils.ts
#L666
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.
return []; | ||
} | ||
|
||
const changes = imports |
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.
Seems totally NOT DRY; or am I mistaken?
Preview docs changes for 0318924 at https://previews.ngrx.io/pr1901-0318924/ |
Preview docs changes for 4d1128c at https://previews.ngrx.io/pr1901-4d1128c/ |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Closes #1896
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Still to be done: