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): remove LetModule #4087

Merged
merged 5 commits into from
Oct 24, 2023
Merged

feat(component): remove LetModule #4087

merged 5 commits into from
Oct 24, 2023

Conversation

timdeschryver
Copy link
Member

@timdeschryver timdeschryver commented Oct 21, 2023

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)
[x] Build related changes
[ ] CI related changes
[x] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Closes #4077

What is the new behavior?

Does this PR introduce a breaking change?

[x] Yes
[ ] No

BREAKING CHANGE:

The LetModule is removed in favor of the standalone LetDirective.

BEFORE:

import { LetModule } from '@ngrx/component';

@NgModule({
  imports: [
    // ... other imports
    LetModule,
  ],
})
export class MyFeatureModule {}

AFTER:

import { Component } from '@angular/core';
import { LetDirective } from '@ngrx/component';
 
@Component({
  // ... other metadata
  standalone: true,
  imports: [
    // ... other imports
    LetDirective,
  ],
})
export class MyStandaloneComponent {}

Other information

BREAKING CHANGE:

The `LetModule` is removed in favor of the standalone `LetDirective`.

BEFORE:

```ts
import { LetModule } from '@ngrx/component';

@NgModule({
  imports: [
    // ... other imports
    LetModule,
  ],
})
export class MyFeatureModule {}
```

AFTER:

```ts
import { Component } from '@angular/core';
import { LetDirective } from '@ngrx/component';

@component({
  // ... other metadata
  standalone: true,
  imports: [
    // ... other imports
    LetDirective,
  ],
})
export class MyStandaloneComponent {}
```
@netlify
Copy link

netlify bot commented Oct 21, 2023

Deploy Preview for ngrx-io ready!

Name Link
🔨 Latest commit a6ece02
🔍 Latest deploy log https://app.netlify.com/sites/ngrx-io/deploys/6537b15dccc234000834bde6
😎 Deploy Preview https://deploy-preview-4087--ngrx-io.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -33,7 +33,6 @@ module.exports = new Package('angular-api', [basePackage, typeScriptPackage])
.processor(require('./processors/computeStability'))
.processor(require('./processors/removeInjectableConstructors'))
.processor(require('./processors/processPackages'))
.processor(require('./processors/processNgModuleDocs'))
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed because otherwise we'll get an error during the build, e.g.

7:33:20 PM: error:   "component/LetDirective" has no @ngModule tag. Docs of type "directive" must have this tag. - doc "component/LetDirective" (directive)  - from file "component/src/let/let.directive.ts" - starting at line 34, ending at line 227
7:33:20 PM: error:   Error running processor "processNgModuleDocs":

@timdeschryver timdeschryver changed the title Remove let module feat(component): remove LetModule Oct 21, 2023
@markostanimirovic markostanimirovic merged commit f28ea71 into main Oct 24, 2023
5 checks passed
@markostanimirovic markostanimirovic deleted the remove-let-module branch October 24, 2023 13:57
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.

Remove deprecated LetModule
3 participants