Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chore: add v14 release notes
  • Loading branch information
JamesHenry committed Jun 23, 2022
1 parent 676699f commit 9b348c0
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions CHANGELOG.md
Expand Up @@ -5,11 +5,34 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [14.0.0](https://github.com/angular-eslint/angular-eslint/compare/v13.5.0...v14.0.0) (2022-06-23)

As always we recommend that you update your existing workspaces by using `ng update` as we provide some helpful schematics to help migrate your workspaces to the latest and greatest. Running the following will update Angular, the Angular CLI and angular-eslint together:

```sh
ng update @angular/core @angular/cli @angular-eslint/schematics
```

### BREAKING CHANGES

This is a major version bump and comes with some breaking changes, one of which might possibly impact your ESLint configuration if you are targeting inline HTML templates with a very specific glob pattern because the virtual filename has changed (read on to learn more).

- update Angular to v14

- All packages now require the use of Angular CLI >= 14.0.0 < 15.0.0

- dropped support for Node 12 (in alignment with Angular's own version policy)

- extracted inline HTML templates now contain the original Component filename in their processed virtual filename
- When ESLint runs on your Component files, if you are using the recommended configuration, it will invoke a processor we have set up to extract the inline HTML templates from your Component declarations. Behind the scenes we give these extracted templates virtual filenames ending in `.html` so that rules targeting HTML files can also target your inline templates.
- **Before:** In v13 the filename looked like this: `inline-template-${++i}.component.html`, where `i` was an incrementing integer (in case for example you had multiple Component declarations in the same `.ts` file.
- **Now**: In v14 the filename now looks like this `inline-template-${baseFilename}-${++i}.component.html`, where `i` has the same incrementing integer behavior as before, but we now include the base filename within the virtual filename.
- E.g. if you have a test file in `projects/foo/src/app/app.spec.ts` which declares a Component with an inline template, the virtual filename generated behind the scene for that template will be `inline-template-app.spec.ts-1.component.html`.
- This new behavior allows you to use ESLint overrides to apply different behavior to Component inline templates in different files.

### Features

- update dependency eslint to v8.18.0 ([#1061](https://github.com/angular-eslint/angular-eslint/issues/1061)) ([6130377](https://github.com/angular-eslint/angular-eslint/commit/6130377ca9363a5a510093609031d9943755c63e))
- update typescript-eslint packages to v5.28.0 ([#1045](https://github.com/angular-eslint/angular-eslint/issues/1045)) ([9e8c340](https://github.com/angular-eslint/angular-eslint/commit/9e8c3406de716d1d5e7f45e06b06700af3861f65))
- update typescript-eslint packages to v5.29.0 ([#1063](https://github.com/angular-eslint/angular-eslint/issues/1063)) ([02856cb](https://github.com/angular-eslint/angular-eslint/commit/02856cbc6116491eaa634a3cbdcd38d6bffda64c))
- update eslint to `^8.18.0` (automatically migrated via `ng update`)
- update typescript-eslint to `^5.29.0` (automatically migrated via `ng update`)
- update deprecated `cli.defaultCollection` usage in `angular.json` to use `cli.schematicCollections` instead (automatically migrated via `ng update`)

# [13.5.0](https://github.com/angular-eslint/angular-eslint/compare/v13.4.0...v13.5.0) (2022-06-12)

Expand Down

0 comments on commit 9b348c0

Please sign in to comment.