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

refactor minimal option #2258

Merged
merged 1 commit into from
Jan 7, 2020
Merged

Conversation

Jefiozie
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?
It will introduce a breaking change based on the flag option that has been changed.

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

What is the current behavior?

By default the minimal flag is false.

Closes #2250

What is the new behavior?

By default the minimal flag is true

Does this PR introduce a breaking change?

[X] Yes
[ ] No

Other information

@Jefiozie
Copy link
Contributor Author

cc: @brandonroberts

@ngrxbot
Copy link
Collaborator

ngrxbot commented Nov 13, 2019

Preview docs changes for 54b14c0 at https://previews.ngrx.io/pr2258-54b14c0/

Copy link
Member

@timdeschryver timdeschryver left a comment

Choose a reason for hiding this comment

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

I think you have changed the wrong schematic.
We have generate schematics (ng generate store) and ng-add schematics (ng add @ngrx/store), this change should only affect the ng-add schematics.

These schematics are located at https://github.com/ngrx/platform/blob/master/modules/store/schematics/ng-add/schema.json#L41

@timdeschryver
Copy link
Member

@Jefiozie could you also add a breaking change note to the PR please, you can find a template in CONTRIBUTING.MD

Closes ngrx#2250

BREAKING CHANGES:

With this change by default the minimal setup for `ngrx/store` will be generated.

BEFORE:

```
@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    StoreModule.forRoot(reducers, {
      metaReducers,
      runtimeChecks: {
        strictStateImmutability: true,
        strictActionImmutability: true
      }
    }),
    .....
  ],
  providers: [],
  bootstrap: [AppComponent]
})
```

AFTER:

```
@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    StoreModule.forRoot({})
    ....
  ],
  providers: [],
  bootstrap: [AppComponent]
})
```
@Jefiozie
Copy link
Contributor Author

Added the breaking change request.

@brandonroberts brandonroberts merged commit 7ecaa22 into ngrx:master Jan 7, 2020
@Jefiozie Jefiozie deleted the 2250-minimal-store branch January 7, 2020 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store: Use minimal option by default for ng add
4 participants