Skip to content

Commit 9847978

Browse files
feat: update angular/compiler to v13.2.2 (#834)
1 parent d349149 commit 9847978

6 files changed

Lines changed: 221 additions & 67 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
"devDependencies": {
5454
"@actions/core": "1.6.0",
5555
"@actions/github": "5.0.0",
56-
"@angular/cli": "13.0.2",
57-
"@angular/compiler": "13.0.2",
56+
"@angular/cli": "13.2.3",
57+
"@angular/compiler": "13.2.2",
5858
"@commitlint/cli": "15.0.0",
5959
"@commitlint/config-conventional": "15.0.0",
6060
"@nrwl/cli": "13.8.1",
@@ -63,7 +63,7 @@
6363
"@nrwl/nx-cloud": "13.1.4",
6464
"@nrwl/tao": "13.8.1",
6565
"@nrwl/workspace": "13.8.1",
66-
"@schematics/angular": "13.0.2",
66+
"@schematics/angular": "13.2.3",
6767
"@types/eslint": "8.2.0",
6868
"@types/eslint-scope": "3.7.3",
6969
"@types/jest": "27.0.2",

packages/eslint-plugin-template/src/rules/banana-in-box.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { BoundEventAst } from '@angular-eslint/bundled-angular-compiler';
1+
import type { TmplAstBoundEvent } from '@angular-eslint/bundled-angular-compiler';
22
import {
33
createESLintRule,
44
getTemplateParserServices,
@@ -31,7 +31,7 @@ export default createESLintRule<Options, MessageIds>({
3131
const sourceCode = context.getSourceCode();
3232

3333
return {
34-
BoundEvent({ name, sourceSpan }: BoundEventAst) {
34+
BoundEvent({ name, sourceSpan }: TmplAstBoundEvent) {
3535
const matches = name.match(INVALID_PATTERN);
3636

3737
if (!matches) return;

packages/integration-tests/tests/__snapshots__/v13-new-workspace.test.ts.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22

33
exports[`v13-new-workspace it should pass linting after creating a new workspace from scratch using @angular-eslint 2`] = `
44
Object {
5-
"@angular-devkit/build-angular": "~13.0.2",
5+
"@angular-devkit/build-angular": "~13.2.3",
66
"@angular-eslint/builder": "9999.0.1-local-integration-tests",
77
"@angular-eslint/eslint-plugin": "9999.0.1-local-integration-tests",
88
"@angular-eslint/eslint-plugin-template": "9999.0.1-local-integration-tests",
99
"@angular-eslint/schematics": "9999.0.1-local-integration-tests",
1010
"@angular-eslint/template-parser": "9999.0.1-local-integration-tests",
11-
"@angular/cli": "~13.0.2",
12-
"@angular/compiler-cli": "~13.0.0",
11+
"@angular/cli": "~13.2.3",
12+
"@angular/compiler-cli": "~13.2.0",
1313
"@types/jasmine": "~3.10.0",
1414
"@types/node": "^12.11.1",
1515
"@typescript-eslint/eslint-plugin": "5.3.0",
1616
"@typescript-eslint/parser": "5.3.0",
1717
"eslint": "^8.2.0",
18-
"jasmine-core": "~3.10.0",
18+
"jasmine-core": "~4.0.0",
1919
"karma": "~6.3.0",
2020
"karma-chrome-launcher": "~3.1.0",
21-
"karma-coverage": "~2.0.3",
21+
"karma-coverage": "~2.1.0",
2222
"karma-jasmine": "~4.0.0",
2323
"karma-jasmine-html-reporter": "~1.7.0",
2424
"ng-packagr": "^13.0.0",
25-
"typescript": "~4.4.3",
25+
"typescript": "~4.5.2",
2626
}
2727
`;
2828

packages/schematics/src/application/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"name": {
1515
"description": "The name of the new app.",
1616
"type": "string",
17+
"pattern": "^(?:@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*/)?[a-zA-Z0-9-~][a-zA-Z0-9-._~]*$",
1718
"$default": {
1819
"$source": "argv",
1920
"index": 0

packages/schematics/src/library/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"name": {
1111
"type": "string",
1212
"description": "The name of the library.",
13+
"pattern": "^(?:@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*/)?[a-zA-Z0-9-~][a-zA-Z0-9-._~]*$",
1314
"$default": {
1415
"$source": "argv",
1516
"index": 0
@@ -45,5 +46,5 @@
4546
"description": "Do not update \"tsconfig.json\" to add a path mapping for the new library. The path mapping is needed to use the library in an app, but can be disabled here to simplify development."
4647
}
4748
},
48-
"required": []
49+
"required": ["name"]
4950
}

0 commit comments

Comments
 (0)