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(component): make LetDirective and PushPipe standalone #3826

Merged

Conversation

stefanoslig
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

With this PR we make the LetDirective and PushPipe standalone. The LetModule and PushModule have been marked as deprecated and they can still be used.

Ideally, I would like to rename the directive from LetDirective => NgRxLet and the pipe from PushPipe => NgRxPush but this would introduce a lot of changes. Maybe something for the future?

Another thing we can consider for the future is a migration schematic.

[ ] 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 #

#3804

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@netlify
Copy link

netlify bot commented Mar 31, 2023

Deploy Preview for ngrx-io canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 647603f
🔍 Latest deploy log https://app.netlify.com/sites/ngrx-io/deploys/6454222cc7ec660008ac70d8

@stefanoslig
Copy link
Contributor Author

@timdeschryver , @markostanimirovic Could you maybe have a look? Btw, do you have any idea why the build is failing?

@brandonroberts
Copy link
Member

@stefanoslig this issue was already to assigned to be worked on, ping them in the original issue to see if they still want to work on it first before proceeding here

@stefanoslig stefanoslig closed this Apr 5, 2023
@stefanoslig
Copy link
Contributor Author

I closed this since @adyngom is going to work on this

@stefanoslig
Copy link
Contributor Author

@brandonroberts could you maybe help me with the failed pipeline?

Copy link
Member

@markostanimirovic markostanimirovic left a comment

Choose a reason for hiding this comment

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

thanks @stefanoslig! few suggestions 👇

modules/component/spec/let/let.directive.spec.ts Outdated Show resolved Hide resolved
modules/component/spec/push/push.pipe.spec.ts Outdated Show resolved Hide resolved
modules/component/src/let/let.module.ts Outdated Show resolved Hide resolved
modules/component/src/push/push.module.ts Outdated Show resolved Hide resolved
projects/ngrx.io/content/guide/component/let.md Outdated Show resolved Hide resolved
projects/ngrx.io/content/guide/component/push.md Outdated Show resolved Hide resolved
projects/ngrx.io/content/guide/component/push.md Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

I guess this file is pushed by mistake 👀

@@ -154,6 +154,129 @@ import { createMockStore } from '@ngrx/store/testing';
const mockStore = createMockStore();
```

#### LetModule
Copy link
Member

Choose a reason for hiding this comment

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

Deprecations need to be added as a separate section. Move added lines to the bottom of this file and add the following headings:

## Deprecations

### @ngrx/component

#### LetModule

....

#### PushModule

...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, yeah, you're right!

Copy link
Member

@markostanimirovic markostanimirovic left a comment

Choose a reason for hiding this comment

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

🚀

@markostanimirovic markostanimirovic changed the title feat(component): Make LetDirective and PushPipe standalone feat(component): make LetDirective and PushPipe standalone May 4, 2023
Copy link
Member

@brandonroberts brandonroberts left a comment

Choose a reason for hiding this comment

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

🤝

@brandonroberts brandonroberts merged commit 985d80c into ngrx:master May 5, 2023
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.

4 participants