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

feat(store): add ngrx-store-freeze migration #1901

Merged
merged 6 commits into from
Jun 3, 2019

Conversation

timdeschryver
Copy link
Member

@timdeschryver timdeschryver commented May 30, 2019

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Closes #1896

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Still to be done:

  • Add it to the v8 migration
  • Cleanup

},
"ngrx-store-migration-03": {
"description": "The road to v8 RC",
"version": "8-rc.1",
Copy link
Member Author

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? 🤔

Copy link
Member

Choose a reason for hiding this comment

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

🤷‍♂

Copy link
Member

Choose a reason for hiding this comment

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

@ngrxbot
Copy link
Collaborator

ngrxbot commented May 30, 2019

Preview docs changes for a3c62bc at https://previews.ngrx.io/pr1901-a3c62bc/


return { hit: false };
})
.filter(({ hit }) => hit)
Copy link
Contributor

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)) {
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean that this code is repeated in all of the modules?
This is by design. If I'm not mistaken by doing it this way, we don't need to create a schematics-core package. (see #1025 and #1044).

return [];
}

const changes = imports
Copy link
Contributor

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?

@ngrxbot
Copy link
Collaborator

ngrxbot commented May 31, 2019

Preview docs changes for 0318924 at https://previews.ngrx.io/pr1901-0318924/

@ngrxbot
Copy link
Collaborator

ngrxbot commented May 31, 2019

Preview docs changes for 4d1128c at https://previews.ngrx.io/pr1901-4d1128c/

@timdeschryver timdeschryver marked this pull request as ready for review May 31, 2019 14:25
@brandonroberts brandonroberts merged commit 4146650 into master Jun 3, 2019
@brandonroberts brandonroberts deleted the feat/store-freeze-migration branch June 3, 2019 13:40
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.

Store: add migration to move users off ngrx-store-freeze
4 participants