228 Commits

Author SHA1 Message Date
Ash Ramirez
434a3740f0 refactor(@angular/cli): update aio links -> adev links
Updates for all angular.io links to the new angular.dev domain. Additionally, adjustment to new resources where the equivalent does not exist on the new site (e.g. Tour of Heroes tutorial)
2024-06-06 11:12:06 +02:00
Alan Agius
7682a7145f build: address pre-release validation failure
Previously, the release process encountered an error due to ts-node's inability to transform `packages/schematics/angular/utility/latest-versions.ts`, resulting in the following error:

```
export const latestVersions: Record<string, string> & {
^^^^^^

SyntaxError: Unexpected token 'export'
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1274:20)
    at Module._compile (node:internal/modules/cjs/loader:1320:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:202:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:336:24)
    at async checkSchematicsAngularLatestVersion (file:///usr/..../git/angular-cli/scripts/release-checks/dependency-ranges/latest-versions-check.mts:9:46)
```

To resolve this issue, we now utilize the `package.json` directly to retrieve dependency versions.
2024-03-26 16:38:42 +01:00
Alan Agius
a1833c66c2 build: update Angular versions to 18.0.0-next.0 2024-03-15 10:16:11 +01:00
Alan Agius
73e7c2b2c5 build: update dependencies for version 17.3.0
The prerelease checks are failing due to incorrect dependencies

```
Discovered errors when validating dependency ranges.
  - @angular/pwa: Unexpected peer dependency range for "@angular/cli". Expected: ^17.0.0 || ^17.3.0-next.0
  - @angular/ssr: Unexpected peer dependency range for "@angular/common". Expected: ^17.0.0 || ^17.3.0-next.0
  - @angular/ssr: Unexpected peer dependency range for "@angular/core". Expected: ^17.0.0 || ^17.3.0-next.0
  - @angular-devkit/build-angular: Unexpected peer dependency range for "@angular/compiler-cli". Expected: ^17.0.0 || ^17.3.0-next.0
  - @angular-devkit/build-angular: Unexpected peer dependency range for "@angular/localize". Expected: ^17.0.0 || ^17.3.0-next.0
  - @angular-devkit/build-angular: Unexpected peer dependency range for "@angular/platform-server". Expected: ^17.0.0 || ^17.3.0-next.0
  - @angular-devkit/build-angular: Unexpected peer dependency range for "@angular/service-worker". Expected: ^17.0.0 || ^17.3.0-next.0
  - @angular-devkit/build-angular: Unexpected peer dependency range for "ng-packagr". Expected: ^17.0.0 || ^17.3.0-next.0
  - @ngtools/webpack: Unexpected peer dependency range for "@angular/compiler-cli". Expected: ^17.0.0 || ^17.3.0-next.0
  - latest-versions: Invalid dependency range for "ng-packagr". Expected: ^17.3.0-next.0
  - latest-versions: Invalid dependency range for "Angular". Expected: ^17.3.0-next.0
```
2024-03-06 13:04:30 +01:00
Alan Agius
6c65730b60 build: update angular to 17.2.0-next 2024-01-25 09:11:51 +01:00
Charles Lyding
9e356754ce build: update Angular version to v17.1 prerelease
Angular package dependency versions and the version used to generate a new project have been updated to use 17.1.0-next.0.
2023-11-17 12:34:39 -05:00
Alan Agius
0ccb4c7d0b build: update Angular packages to version 17 stable
Update all versions to stable
2023-11-08 13:56:40 +01:00
Alan Agius
62aa7393c8 test: ensure to use the correct version for @angular/ssr packages
This commit fixes an issue that causes update tests to fail when we are in feature freeze
2023-10-12 15:54:24 +02:00
Charles Lyding
7d006cb3a7 build: update Angular version to v17 prerelease
Package dependency versions and the version used to generate a new project have been updated to use `17.0.0-next.1`.
2023-08-29 00:38:37 -07:00
Alan Agius
08ff43b887 build: update Angular peer dependencies to ^16.0.0 || ^16.2.0-next.0
This is needed to cut the `next` prerelease.
2023-06-28 15:25:43 +02:00
Doug Parker
d4a2849010 build: bump versions for minor release 2023-06-13 09:22:39 -07:00
Alan Agius
e2792f69bb build: update Angular deps to 16.1.0-next.0
This commits updates Angular packages to 16.1.0-next.0
2023-05-17 15:25:00 +02:00
Doug Parker
f50234f72c Revert "ci: bump Angular dependencies to 16.0.0-rc.0"
This reverts commit 290e06018d3934cf27a5734a60947dcd7b45fa58.

Release checks don't like being in an RC state and it's not strictly necessary since installing a `-next` package will install `-rc` because it alphabetically follows. This means generating applications with `-next` in the `package.json` will still pull the latest RC releases of Angular packages.
2023-04-13 16:54:22 +00:00
Doug Parker
290e06018d ci: bump Angular dependencies to 16.0.0-rc.0 2023-04-12 20:30:02 +00:00
Alan Agius
8df900f24a build: update FW and ng-packagr dependencies to version 16
This commit update Angular and ng-packagr dependencies to version 16.
2023-02-23 10:26:07 +00:00
Alan Agius
ef39987e59 build: update Angular peer deps to support ^15.2.0-next.0 2023-01-12 12:24:11 +00:00
Kristiyan Kostadinov
ba895b1af6 build: update to TypeScript 4.9
Updates the project to TypeScript 4.9.
2023-01-03 16:46:36 +00:00
Alan Agius
2300be6a41 build: update dependencies to Angular 15.0.0-next 2022-08-30 08:53:41 -04:00
Alan Agius
b3082355c0 build: update @angular/ packages to version 14 prerelease 2022-01-28 10:59:53 -08:00
Alan Agius
7e7de6858d feat(@schematics/angular): update Angular dependencies to use ^ as version prefix
With this change we update Angular dependencies to use `^` instead of `~` as version prefix.

Closes #21925
2022-01-27 11:07:13 -08:00
cexbrayat
41a828e206 fix(@schematics/angular): updated Angular new project version to v13.2.0-next.0 2021-12-10 11:04:29 +01:00
Joey Perrott
cf67f2629d fix(@schematics/angular): updated Angular new project version to v13.0.0 2021-11-03 18:03:27 -07:00
Charles Lyding
f227e145df fix(@schematics/angular): updated Angular new project version to v13.0 prerelease 2021-08-06 08:12:06 +02:00
Joey Perrott
bec21de06a refactor(@schematics/angular): hard code version of Angular in latest-verisons
Update the version of Angular in latest-verions as 13.0.0-next.0 is not on npm.
2021-07-29 14:20:43 +02:00
Alan Agius
c92a381710 refactor(@schematics/angular): improve automatic versions
With this change we improve the versions we set in the users project to be less confusing.  Previously, for both stable and next versions we set the versions of Angular packages to the below;

```
"@angular/animations": "~12.2.0-"
```

This might be problematic as one might not immediately notice that they might depend on a prerelease. The `-` is short character and can be missed when having a large set of dependencies.

With this can we are more explicate by adding `--next` when it's a prerelease and omit the suffix for stable releases.
2021-07-22 14:42:42 -04:00
Joey Perrott
3772836c1d refactor(@schematics/angular): automatically determine the version string to match latest Angular
Automatically determine the latest compatible Angular Framework version by using `~` matching
for the current minor version of @schematics/angular.
2021-07-21 14:51:24 -07:00
Alan Agius
14df2aaef9 refactor(@schematics/angular): sync schematics dependencies using Renovate
With this change we sync workspace and library schematic dependencies using Renovate. We do this to avoid having to keep these in sync by hand.

We could have used TypeScripts' `resolveJsonModule` to make the `latestVersion` object typesafe. But `ts_library` doesn't support JSON inputs.
2021-07-20 18:58:29 +02:00
Joey Perrott
792bdb9f34 release: v12.2.0-next.2 2021-07-14 15:07:54 -07:00
Doug Parker
0c285d3e98 release: v12.2.0-next.1 2021-07-01 09:38:26 -07:00
Alan Agius
7d2ed2a248 build: update ng-packagr to 12.1 stable version 2021-06-27 16:01:13 +02:00
Doug Parker
c666d0b73b release: v12.2.0-next.0 2021-06-24 16:26:12 -07:00
Doug Parker
e08323b4c1 Revert "release: v12.1.0"
This reverts commit d9fc97198da1a76773cc4dc840ec04b5416c22a8.

This should be on the `12.1.x` branch, not `master`.
2021-06-24 16:21:43 -07:00
Doug Parker
d9fc97198d release: v12.1.0 2021-06-24 16:18:15 -07:00
Alan Agius
4fc33ca0c0 build: update to ng-packagr to 12.1.0-next.0 2021-06-23 11:51:09 +01:00
Joey Perrott
b150093bbe release: v12.1.0-next.6 2021-06-17 10:32:40 -07:00
Doug Parker
c9fe66ab79 release: v12.1.0-next.5 2021-06-10 09:38:33 -07:00
Charles Lyding
4251343aee feat(@schematics/angular): create new projects with TypeScript 4.3
With the support of TypeScript 4.3 available in both the framework and the CLI, all new projects will now use TypeScript 4.3 by default.
2021-06-10 17:34:02 +02:00
Doug Parker
8690ed0a35 release: v12.1.0-next.4 2021-06-02 11:52:42 -07:00
Doug Parker
2f295963d7 release: v12.1.0-next.3 2021-05-26 12:05:16 -07:00
Doug Parker
f0dd794f75 Revert "release: v12.1.0-next.3"
This reverts commit 8b967fabd95f66fcedb2903cc7a4ffff8a0fd43e.

Needed to update the version in `package.json` but didn't.
2021-05-26 11:50:48 -07:00
Doug Parker
8b967fabd9 release: v12.1.0-next.3 2021-05-26 11:39:21 -07:00
Joey Perrott
1ac3931d3e release: v12.1.0-next.2 2021-05-19 12:29:28 -07:00
Alan Agius
e992c9a70b build: update files to be fix eslint header/header failures 2021-05-04 09:59:40 -04:00
Joey Perrott
003854257c build: migrate all file header to use Google LLC rather than Google Inc 2021-04-27 08:35:22 +02:00
Keen Yee Liau
c3cc50e6b9 refactor(@schematics/angular): read build-angular's version from package.json
Now that `@angular-devkit/build-angular` is promoted to stable
(https://github.com/angular/angular-cli/pull/20528), it will
always have the same version as `@schematics/angular`.

With this change, there is no need to manually update `DevkitBuildAngular`
field in `latest-versions.ts` anymore.
2021-04-20 09:33:36 -05:00
Alan Agius
e1bb8c4f9a build: update master version to 12.1.0-next.0 2021-04-19 20:25:36 +02:00
Keen Yee Liau
1a8ed40db8 build: bump version to v12.0.0-rc.0 2021-04-19 19:39:13 +02:00
Keen Yee Liau
c7a7a7591b release: v12.0.0-next.9 2021-04-14 16:47:18 -07:00
Alan Agius
d7bedb7293 build: promote @angular-devkit/build-angular to stable 2021-04-14 15:50:27 -04:00
Alan Agius
695a01ba02 feat(@schematics/angular): configure new libraries to be published in Ivy partial mode
With this change we configure new libraries to be published using Ivy partial compilation instead of the deprecated View Engine rendering engine, we also remove several view engine specific `angularCompilerOptions`.

New libraries can be published using this format, as they are not depend upon by View Engine libraries or application.
2021-04-09 18:40:39 -04:00