Skip to content

Commit 3bb1747

Browse files
authored
build: update bazel setup and angular (#24772)
* build: update bazel setup and angular This should fix the snapshot CI job * build: update goldens after type signature changes in compiler The signatures changed with: angular/angular@d3c0fa3
1 parent 49c1921 commit 3bb1747

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+356
-470
lines changed

WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
88
# Add NodeJS rules
99
http_archive(
1010
name = "build_bazel_rules_nodejs",
11-
sha256 = "3ceb1e5b5dcad5fa2ad8870a20201cfbb9c9c63cac4055c9ab370034c765297f",
12-
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.3.0/rules_nodejs-5.3.0.tar.gz"],
11+
sha256 = "2b2004784358655f334925e7eadc7ba80f701144363df949b3293e1ae7a2fb7b",
12+
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.4.0/rules_nodejs-5.4.0.tar.gz"],
1313
)
1414

1515
# Add sass rules

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@
5454
},
5555
"version": "14.0.0-next.11",
5656
"dependencies": {
57-
"@angular/animations": "14.0.0-next.13",
58-
"@angular/common": "14.0.0-next.13",
59-
"@angular/compiler": "14.0.0-next.13",
60-
"@angular/core": "14.0.0-next.13",
61-
"@angular/forms": "14.0.0-next.13",
62-
"@angular/platform-browser": "14.0.0-next.13",
57+
"@angular/animations": "14.0.0-next.14",
58+
"@angular/common": "14.0.0-next.14",
59+
"@angular/compiler": "14.0.0-next.14",
60+
"@angular/core": "14.0.0-next.14",
61+
"@angular/forms": "14.0.0-next.14",
62+
"@angular/platform-browser": "14.0.0-next.14",
6363
"@types/google.maps": "^3.47.3",
6464
"@types/youtube": "^0.0.46",
6565
"rxjs": "^6.6.7",
@@ -71,27 +71,27 @@
7171
"@angular-devkit/build-angular": "14.0.0-next.9",
7272
"@angular-devkit/core": "14.0.0-next.9",
7373
"@angular-devkit/schematics": "14.0.0-next.9",
74-
"@angular/bazel": "14.0.0-next.9",
74+
"@angular/bazel": "14.0.0-next.14",
7575
"@angular/cli": "14.0.0-next.9",
76-
"@angular/compiler-cli": "14.0.0-next.13",
76+
"@angular/compiler-cli": "14.0.0-next.14",
7777
"@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#94108cd31fae6c341fdce4394c9a050f134b25fa",
78-
"@angular/localize": "14.0.0-next.13",
79-
"@angular/platform-browser-dynamic": "14.0.0-next.13",
80-
"@angular/platform-server": "14.0.0-next.13",
81-
"@angular/router": "14.0.0-next.13",
78+
"@angular/localize": "14.0.0-next.14",
79+
"@angular/platform-browser-dynamic": "14.0.0-next.14",
80+
"@angular/platform-server": "14.0.0-next.14",
81+
"@angular/router": "14.0.0-next.14",
8282
"@axe-core/webdriverjs": "^4.3.2",
8383
"@babel/core": "^7.16.12",
8484
"@bazel/bazelisk": "~1.11.0",
8585
"@bazel/buildifier": "~5.0.1",
86-
"@bazel/concatjs": "5.3.0",
87-
"@bazel/esbuild": "5.3.0",
86+
"@bazel/concatjs": "5.4.0",
87+
"@bazel/esbuild": "5.4.0",
8888
"@bazel/ibazel": "~0.16.2",
89-
"@bazel/jasmine": "5.3.0",
90-
"@bazel/protractor": "5.3.0",
91-
"@bazel/rollup": "5.3.0",
92-
"@bazel/runfiles": "5.3.0",
93-
"@bazel/terser": "5.3.0",
94-
"@bazel/worker": "5.3.0",
89+
"@bazel/jasmine": "5.4.0",
90+
"@bazel/protractor": "5.4.0",
91+
"@bazel/rollup": "5.4.0",
92+
"@bazel/runfiles": "5.4.0",
93+
"@bazel/terser": "5.4.0",
94+
"@bazel/worker": "5.4.0",
9595
"@firebase/app-types": "^0.7.0",
9696
"@material/animation": "14.0.0-canary.9736ddce9.0",
9797
"@material/auto-init": "14.0.0-canary.9736ddce9.0",

src/cdk/BUILD.bazel

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ sass_library(
4949
# Creates the @angular/cdk package published to npm.
5050
ng_package(
5151
name = "npm_package",
52-
srcs = ["package.json"],
53-
data = [":sass_lib"] + prebuiltStyleTargets + CDK_SCSS_LIBS,
52+
srcs = [
53+
"package.json",
54+
":sass_lib",
55+
] + prebuiltStyleTargets + CDK_SCSS_LIBS,
5456
nested_packages = [
5557
"//src/cdk/schematics:npm_package",
5658
],

src/dev-app/stepper/stepper-demo.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9+
import {AbstractControl, FormBuilder, Validators} from '@angular/forms';
10+
911
import {Component} from '@angular/core';
1012
import {ThemePalette} from '@angular/material/core';
11-
import {AbstractControl, FormBuilder, Validators} from '@angular/forms';
1213

1314
@Component({
1415
selector: 'stepper-demo',
@@ -31,10 +32,7 @@ export class StepperDemo {
3132
});
3233

3334
formGroup = this._formBuilder.group({
34-
formArray: this._formBuilder.array<
35-
| {firstNameFormCtrl?: string | null; lastNameFormCtrl?: string | null}
36-
| {emailFormCtrl?: string | null}
37-
>([
35+
formArray: this._formBuilder.array([
3836
this._formBuilder.group({
3937
firstNameFormCtrl: this._formBuilder.control('', [Validators.required]),
4038
lastNameFormCtrl: this._formBuilder.control('', [Validators.required]),

src/material-experimental/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ sass_library(
3636

3737
ng_package(
3838
name = "npm_package",
39-
srcs = ["package.json"],
40-
data = [
39+
srcs = [
40+
"package.json",
4141
":sass_lib",
4242
":theming_scss_lib",
4343
],

src/material/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ ng_package(
3333
name = "npm_package",
3434
srcs = [
3535
"package.json",
36-
],
37-
data = [
3836
":sass_lib",
3937
"//src/material/core:theming_scss_lib",
4038
"//src/material/prebuilt-themes:deeppurple-amber",

tools/defaults.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def ng_module(
168168
if module_name and not testonly:
169169
_make_tsec_test(kwargs["name"])
170170

171-
def ng_package(name, data = [], deps = [], externals = PKG_EXTERNALS, readme_md = None, visibility = None, **kwargs):
171+
def ng_package(name, srcs = [], deps = [], externals = PKG_EXTERNALS, readme_md = None, visibility = None, **kwargs):
172172
# If no readme file has been specified explicitly, use the default readme for
173173
# release packages from "src/README.md".
174174
if not readme_md:
@@ -186,7 +186,7 @@ def ng_package(name, data = [], deps = [], externals = PKG_EXTERNALS, readme_md
186186
_ng_package(
187187
name = name,
188188
externals = externals,
189-
data = data + [":license_copied"],
189+
srcs = srcs + [":license_copied"],
190190
deps = deps,
191191
# We never set a `package_name` for NPM packages, neither do we enable validation.
192192
# This is necessary because the source targets of the NPM packages all have

tools/public_api_guard/cdk/a11y.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class CdkAriaLive implements OnDestroy {
7373
get politeness(): AriaLivePoliteness;
7474
set politeness(value: AriaLivePoliteness);
7575
// (undocumented)
76-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAriaLive, "[cdkAriaLive]", ["cdkAriaLive"], { "politeness": "cdkAriaLive"; "duration": "cdkAriaLiveDuration"; }, {}, never>;
76+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAriaLive, "[cdkAriaLive]", ["cdkAriaLive"], { "politeness": "cdkAriaLive"; "duration": "cdkAriaLiveDuration"; }, {}, never, never, false>;
7777
// (undocumented)
7878
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAriaLive, never>;
7979
}
@@ -88,7 +88,7 @@ export class CdkMonitorFocus implements AfterViewInit, OnDestroy {
8888
// (undocumented)
8989
ngOnDestroy(): void;
9090
// (undocumented)
91-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMonitorFocus, "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", never, {}, { "cdkFocusChange": "cdkFocusChange"; }, never>;
91+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMonitorFocus, "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", never, {}, { "cdkFocusChange": "cdkFocusChange"; }, never, never, false>;
9292
// (undocumented)
9393
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMonitorFocus, never>;
9494
}
@@ -111,7 +111,7 @@ export class CdkTrapFocus implements OnDestroy, AfterContentInit, OnChanges, DoC
111111
// (undocumented)
112112
ngOnDestroy(): void;
113113
// (undocumented)
114-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTrapFocus, "[cdkTrapFocus]", ["cdkTrapFocus"], { "enabled": "cdkTrapFocus"; "autoCapture": "cdkTrapFocusAutoCapture"; }, {}, never>;
114+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTrapFocus, "[cdkTrapFocus]", ["cdkTrapFocus"], { "enabled": "cdkTrapFocus"; "autoCapture": "cdkTrapFocusAutoCapture"; }, {}, never, never, false>;
115115
// (undocumented)
116116
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTrapFocus, never>;
117117
}

tools/public_api_guard/cdk/accordion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class CdkAccordion implements OnDestroy, OnChanges {
3232
readonly _openCloseAllActions: Subject<boolean>;
3333
readonly _stateChanges: Subject<SimpleChanges>;
3434
// (undocumented)
35-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordion, "cdk-accordion, [cdkAccordion]", ["cdkAccordion"], { "multi": "multi"; }, {}, never>;
35+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordion, "cdk-accordion, [cdkAccordion]", ["cdkAccordion"], { "multi": "multi"; }, {}, never, never, false>;
3636
// (undocumented)
3737
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAccordion, never>;
3838
}
@@ -58,7 +58,7 @@ export class CdkAccordionItem implements OnDestroy {
5858
readonly opened: EventEmitter<void>;
5959
toggle(): void;
6060
// (undocumented)
61-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordionItem, "cdk-accordion-item, [cdkAccordionItem]", ["cdkAccordionItem"], { "expanded": "expanded"; "disabled": "disabled"; }, { "closed": "closed"; "opened": "opened"; "destroyed": "destroyed"; "expandedChange": "expandedChange"; }, never>;
61+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordionItem, "cdk-accordion-item, [cdkAccordionItem]", ["cdkAccordionItem"], { "expanded": "expanded"; "disabled": "disabled"; }, { "closed": "closed"; "opened": "opened"; "destroyed": "destroyed"; "expandedChange": "expandedChange"; }, never, never, false>;
6262
// (undocumented)
6363
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAccordionItem, [{ optional: true; skipSelf: true; }, null, null]>;
6464
}

tools/public_api_guard/cdk/bidi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class Dir implements Directionality, AfterContentInit, OnDestroy {
3131
_rawDir: string;
3232
get value(): Direction;
3333
// (undocumented)
34-
static ɵdir: i0.ɵɵDirectiveDeclaration<Dir, "[dir]", ["dir"], { "dir": "dir"; }, { "change": "dirChange"; }, never>;
34+
static ɵdir: i0.ɵɵDirectiveDeclaration<Dir, "[dir]", ["dir"], { "dir": "dir"; }, { "change": "dirChange"; }, never, never, false>;
3535
// (undocumented)
3636
static ɵfac: i0.ɵɵFactoryDeclaration<Dir, never>;
3737
}

0 commit comments

Comments
 (0)