1255 Commits

Author SHA1 Message Date
Dylan Hunn 257a30d7b3 release: cut the v13.0.3 release (#44332)
PR Close #44332
2021-12-01 21:05:16 +00:00
Renovate Bot a18b1177cf build: update dependency saucelabs to v7 (#44321)
PR Close #44321
2021-12-01 11:56:13 -08:00
Paul Gschwendtner 595d6479eb build: bundle spec files for saucelabs legacy job (#44281)
Bundle spec files similar to how it is done within the Angular
Components repo. This should simplify the setup and also speed
up the Saucelab job as only a single spec bundle would need to be
downloaded, compared to having to load hundreds of files through the
Saucelabs tunnel.

Also makes a couple of tests more robust with the emulators/and accounts
for ES2015 test runner changes. The tests should be less reluctant to
such build process changes.

Note for reviewers: Some imports have been simplified here. This work
came from Joey's original WIP for this. It's unclear to me whether this
is still needed, but it sounded like this was necessary for the ESBuild
bundling to work. I have robusted the module resolution plugin though,
so I doubt it's still needed. At the same time though: Not worth
reverting/trying as these changes are nice to have anyway!

Co-Authored-By: Joey Perrott <josephperrott@gmail.com>
Co-Authored-By: Paul Gschwendtner <paulgschwendtner@gmail.com>

PR Close #44281
2021-11-30 11:56:05 -05:00
Paul Gschwendtner 6d16255ae0 ci: attempt to increase stability of saucelabs legacy job (#44281)
This is an attempt to increase the stability of the Saucelabs legacy
job by using an emulator recommended by the Saucelabs platform
configurator, explicitly specifying the appium server version etc.

PR Close #44281
2021-11-30 11:56:05 -05:00
Pei Wang b8dd936b56 ci: Upgrade tsec to 0.2.0. (#44205)
tools/tsec.bzl is now part of tsec. Remove from Angular repo and update
BUILD.bazel files.

PR Close #44205
2021-11-24 18:55:58 +00:00
Alex Rickabaugh 1f6fa260c3 test: remove view-engine-only tests (#44218)
This commit removes most tests that were designated as only covering View
Engine code. It also removes tag filters from CI and local commands to run
tests.

In a few cases (such as with the packages/compiler tests), this tag was
improperly applied, and certain test cases have been added back running in
Ivy mode.

This commit also empties `@angular/compiler/testing` as it is no longer
necessary (this is safe since compiler packages are not public API). It can
be deleted in the future.

PR Close #44218
2021-11-24 00:04:24 +00:00
Renovate Bot b8bee24dfd build: update dependency source-map-support to v0.5.21 (#44225)
PR Close #44225
2021-11-23 17:10:59 +00:00
Renovate Bot 0c1a1421e1 build: update angular (#44241)
PR Close #44241
2021-11-23 17:10:24 +00:00
Renovate Bot 6e351ed753 build: update angular (#44221)
PR Close #44221
2021-11-19 19:44:55 +00:00
Renovate Bot 76f390be95 build: update angular (#44145)
PR Close #44145
2021-11-18 10:17:16 -08:00
Andrew Kushnir c25927da25 release: cut the v13.0.2 release (#44199) 2021-11-17 09:35:20 -08:00
Andrew Scott 539d720fcd release: cut the v13.0.1 release (#44139) 2021-11-10 15:41:43 -08:00
Joey Perrott ca0873fca9 build: update to latest @angular/dev-infra-private to address issues related to verifying environment (#44138)
Update to the latest package which properly checks if the running version of ng-dev is the version
described in yarn lock.

PR Close #44138
2021-11-10 23:40:09 +00:00
Paul Gschwendtner 9c47b77b05 build: sync all lock file and package.json updates from next with patch (#44134)
With the goal of avoiding more conflicts with build changes that should
go into both patch + next in general, this commit brings the lock files
+ `package.json` files from patch branch to the equivalent contents of
the next branch, except for the actual `version` field.

PR Close #44134
2021-11-10 23:33:11 +00:00
Pei Wang bfb2882a71 ci: Windows support for tsec_test. (#44130)
Contents of generated tsconfig for tsec_test now depend on whether
Bazel uses symlinked runfiles for nodejs_test. The current
implementation assumes that symlinked runfiles are not available
on Windows.

PR Close #44130
2021-11-10 17:48:48 +00:00
Renovate Bot 3c0daa94ba build: update dependency vlq to v2 (#43901)
PR Close #43901
2021-11-08 17:00:56 +00:00
Renovate Bot 12769e3583 build: update angular (#44030)
Update all `@angular/*` and `@schematics/*` root dependencies to latest
versions.

PR Close #44030
2021-11-08 16:59:47 +00:00
Paul Gschwendtner 00420fa295 test: re-enable platform-server integration test (#44055)
Re-enables the platform-server integration test that we had
to disable when we landed the APF v13 changes.

We can re-enable it by setting up the `fullySpecified` option
similar to how the CLI does it.

PR Close #44055
2021-11-04 18:57:22 +00:00
Renovate Bot c809e4b763 build: update dependency tsec to v0.1.10 (#43899) (#44010)
Updates the tsec dependency to v0.1.10 so that the Tsec
Windows support PR can land.

PR Close #43899

PR Close #44010
2021-11-04 18:54:21 +00:00
Alex Rickabaugh 167e2a8bb8 release: cut the v13.0.0 release (#44032)
PR Close #44032
2021-11-03 10:51:28 -07:00
Alex Rickabaugh d24cbcea70 release: cut the v13.0.0-rc.3 release (#44011)
PR Close #44011
2021-11-01 18:50:22 -07:00
George Kalpakas 6ff9798268 build: use the latest version of Chrome (v93) in non-bazel tests (#43880)
This commit updates the version of Chrome used in non-bazel tests (via
Puppeteer) to the latest (v93).

PR Close #43880
2021-10-29 13:10:26 -07:00
Jessica Janiuk a2ce1da85b release: cut the v13.0.0-rc.2 release (#43968) 2021-10-27 11:29:30 -07:00
Renovate Bot 081a4c2722 build: update all non-major dependencies (#43917)
PR Close #43917
2021-10-26 21:16:07 +00:00
Andrew Kushnir b31a9a75ad release: cut the v13.0.0-rc.1 release (#43911) 2021-10-20 09:57:26 -07:00
Joey Perrott 730511b948 build: rename "no-ivy-aot" tag to "view-engine-only" (#43862)
Using the tag "view-engine-only" better describes the expected usage of bazel targets with the test. They can
only be run with view engine.

PR Close #43862
2021-10-19 10:06:56 -07:00
Joey Perrott c3f677dbe6 build: remove test-ivy-aot yarn script (#43862)
Since building with ViewEngine is not longer desired on CI, removing the ivy vs non-ivy testing yarn scripts
is done, informing developers to instead use `yarn test` as all tests should be run using the Ivy complier.

PR Close #43862
2021-10-19 10:06:56 -07:00
Joey Perrott b489ae5ecd ci: remove browserstack configuration (#43881)
Remove browserstack configuration from the repo as it is not used for our CI.

PR Close #43881
2021-10-18 15:00:23 -07:00
Renovate Bot 0983eec7ab build: update all non-major dependencies (#43853)
Updates all non-major dependencies to their latest available
versions.

PR Close #43853
2021-10-15 13:55:53 -07:00
Andrew Scott b5eccde447 release: cut the v13.0.0-rc.0 release (#43828) 2021-10-13 11:24:59 -07:00
Alan Agius 80449f4570 build: update rollup dependencies (#43737)
With this change we update `rollup` and remove the usage of no longer maintained `rollup-plugin-commonjs` and `rollup-plugin-node-resolve` plugins.

PR Close #43737
2021-10-13 16:56:42 +00:00
Joey Perrott 780082c025 build: update to cldr@39 (#43820)
Update repository to use cldr version 39 as it is the latest available.

PR Close #43820
2021-10-13 16:49:24 +00:00
Renovate Bot c6496350a9 build: update dependency @rollup/plugin-commonjs to v21 (#43675)
PR Close #43675
2021-10-13 16:48:46 +00:00
Paul Gschwendtner bc36814f0d build: update karma-sauce-launcher to latest version with heartbeat to prevent idle timeout (#43659)
Updates the `karma-sauce-launcher` to the latest version that comes with
the heartbeat implemented. Whenever we create an instance of a browser
in Saucelabs, we need to send a Selenium command every X seconds as otherwise
Saucelabs will terminate the session due to it thinking the session is already
unused. This is especially a problem for Karma unit tests as there is no
selenium command at all, except for the initial one loading the Karma site.

The latest version of the launcher has implemented an interval that
dispatches a noop selenium command every X seconds to notify Saucelabs
that the instance is still active.

The current version of the launcher does not do that. This is likely
the source of some disconnects because after 10-13min, the SL browser
is terminated but Karma still waits some minute after realizing the
browser is actually disconnected.

We (the Angular team), contributed to that version in the past since
the heartbeat was very flaky.. and we removed it. With the new version
a lot has changed, the underlying Selenium client has changed so it's
worth trying again with the heartbeat re-implemented; it worked pretty
well so far in the COMP repo).

PR Close #43659
2021-10-11 16:41:28 +00:00
Joey Perrott 7e858f362c build: update to latest @angular/dev-infra-private (#43785)
Update to the latest version of the dev infra packages to allow for merging deprecations during the feature
freeze period.

PR Close #43785
2021-10-08 20:15:36 +00:00
Renovate Bot 06a87c4a65 build: update all non-major dependencies (#43760)
PR Close #43760
2021-10-07 20:56:11 +00:00
Andrew Scott aef18bcbd6 release: cut the v13.0.0-next.15 release (#43769) 2021-10-07 12:08:50 -07:00
Dylan Hunn 325fafad70 release: cut the v13.0.0-next.14 release (#43751) (#43768)
PR Close #43751

PR Close #43768
2021-10-07 19:03:42 +00:00
Dylan Hunn 5d7229e6b6 release: cut the v13.0.0-next.13 release (#43741)
PR Close #43741
2021-10-06 11:50:36 -07:00
Paul Gschwendtner e0a0d05d45 feat(core): update node version support range to support v16 (#43740)
This commit updates the `node` engines range for all Angular
framework packages to:

* No longer support NodeJS v12 `< 12.20`. This is done because APF v13
  uses package export patterns which are only supported as of v12.20.
  https://nodejs.org/api/packages.html#packages_subpath_patterns.

* Allows for the latest v16 NodeJS versions. This matches with the CLI
  which added NodeJS v16 support with https://github.com/angular/angular-cli/pull/21854.

  We already limit this to `>= v16.10.0` in preparation to only
  supporting the LTS minors of Node v16.

BREAKING CHANGE: NodeJS versions older than `v12.20.0` are no longer
supported due to the Angular packages using the NodeJS package exports
feature with subpath patterns.

PR Close #43740
2021-10-06 10:55:44 -07:00
Dylan Hunn 7acf3bece4 release: cut the v13.0.0-next.12 release (#43726)
PR Close #43726
2021-10-05 18:09:34 -07:00
Alan Agius e7b647fc06 refactor(dev-infra): remove dependency on minimist (#43644)
Refactor scripts to use `yargs`. The main motivation for this is to align and use a single parser.

PR Close #43644
2021-10-04 17:31:03 -07:00
Dylan Hunn dd0722fd1f release: cut the v13.0.0-next.11 release (#43707)
PR Close #43707
2021-10-04 17:23:50 -07:00
Renovate Bot 3d4432874c build: update dependency google-closure-compiler to v20210907 (#43398)
PR Close #43398
2021-10-04 16:33:13 -07:00
Joey Perrott 0d43148f58 build: update to the latest version of @angular/dev-infra-private (#43541)
Updates to the latest dev-infra version and updates the config as required.

PR Close #43541
2021-10-04 10:51:01 -07:00
Dylan Hunn c721135e37 release: cut the v13.0.0-next.10 release (#43672)
PR Close #43672
2021-10-01 16:19:49 -04:00
Paul Gschwendtner cebcfbe1d9 refactor: update yargs to new API for ESM compatibility (#43431)
Given that we ship all of compiler-cli and localize in ESM
mode now, we need to use a ESM compatible version of Yargs.
The latest version seems ESM compatible but with some small
API changes. This commit updates Yargs and updates the command
line option code to use the new API.

PR Close #43431
2021-10-01 18:28:45 +00:00
Paul Gschwendtner 8d7f1098d8 refactor: make all imports compatible with ESM/CJS output. (#43431)
As outlined in the previous commit which enabled the `esModuleInterop`
TypeScript compiler option, we need to update all namespace imports
for `typescript` to default imports. This is needed to allow for
TypeScript to be imported at runtime from an ES module.

Similar changes are needed for modules like `semver` where the types incorrectly
suggest named exports that will not exist at runtime when imported from ESM.

This commit refactors all imports to match with the lint rule we have
configured in the previous commit. See the previous commit for more
details on why certain imports have been changed.

A special case are the imports to `@babel/core` and `@babel/types`. For
these a special interop is needed as both default imports, or named
imports break the other module format. e.g default imports would work
well for ESM, but it breaks for CJS. For CJS, the named imports would
only work, but in ESM, only the default export exist. We work around
this for now until the devmode is using ESM as well (which would be
consistent with prodmode and gives us more valuable test results). More
details on the interop can be found in the `babel_core.ts` files (two
interops are needed for both localize/or the compiler-cli).

PR Close #43431
2021-10-01 18:28:45 +00:00
Paul Gschwendtner 090861b020 build: update to latest version Angular CLI supporting ESM package output (#43431)
The CLI has been updated with various changes to support for ESM package
output of the framework. This commit updates to a next version of the
CLI v13 that contains these necessary changes, allowing us to test/validate
our package changes through integration tests or AIO examples.

This update also contains a fix for the adjust enum babel optimization
that broke with the latest rollup version.

PR Close #43431
2021-10-01 18:28:44 +00:00
Paul Gschwendtner ab390e49ac test: update i18n integration test to use Ivy (#43431)
Updates the i18n integration test to use Ivy in order to
work with the new Angular v13 package format.

PR Close #43431
2021-10-01 18:28:44 +00:00