8906 Commits

Author SHA1 Message Date
Alan Agius
c95ab7041f test: remove hardcoded app-shell test
With this change we remove the hard coded app-shell test that is currently failing in Node.Js 12.

We can remove this test, because this is a duplicate of https://github.com/angular/angular-cli/blob/master/tests/legacy-cli/e2e/tests/build/build-app-shell-with-schematic.ts which app-shell is generated using schematics.
2022-02-01 17:01:23 -08:00
Alan Agius
378ec0bcf0 docs(@angular-devkit/build-angular): add missing period in include description 2022-02-01 17:01:11 -08:00
Alan Agius
1842bd5d53 fix(@angular-devkit/build-angular): add whatwg-url to downlevel exclusion list
Similar to https://github.com/angular/angular-cli/pull/21739, `whatwg-url` seems to suffer from the same issue as https://github.com/angular/angular-cli/issues/21735

```ts
const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype);
```
2022-02-01 17:00:58 -08:00
Renovate Bot
6e27a1a7c2 build: lock file maintenance 2022-01-31 11:37:15 -08:00
Alan Agius
3829fb20d6 docs: improve readme
Update readme to match that of angular/angular
2022-01-31 11:36:53 -08:00
Alan Agius
40fb1a1e00 docs: move developer guide into a seperate file
Currently, the `readme.md` also contains information on how to build and test the CLI which isn't useful to most users. With this change we move this information into a seperate document.
2022-01-31 11:36:53 -08:00
Joey Perrott
c47195aea0 build: add an action for handling feature requests
Add feature request voting process github actions to the repo.
2022-01-31 11:35:37 -08:00
Alan Agius
a0c02af7e3 refactor(@angular-devkit/core): remove deprecated fs, object and array APIs
BREAKING CHANGE:

The below APIs have been removed without replacement. Users should leverage other Node.js or other APIs.
- `fs` namespace
- `clean`
- `mapObject`
2022-01-31 11:35:18 -08:00
Alan Agius
0a1cd584d8 refactor(@angular-devkit/build-angular): remove deprecated showCircularDependencies browser and server builder option
BREAKING CHANGE:

The deprecated `showCircularDependencies` browser and server builder option has been removed. The recommended method to detect circular dependencies in project code is to use either a lint rule or other external tools.
2022-01-31 11:34:58 -08:00
Alan Agius
d23a168b8d feat(@angular-devkit/build-angular): validate file extensions for scripts and styles options
In some cases unexpected files may be provided which can cause to unsupported or broken behaviour.

One such use-case is users can provide TypeScript files as `scripts` input, this would not be processed by the TypeScript compiler, see: https://github.com/angular/angular-cli/issues/17125 and would cause the build to fail with a an unhelpful error message during optimization as the JS optimizers cannot parse TypeScript input.

BREAKING CHANGE:

`browser` and `karma` builders `script` and `styles` options input files extensions are now validated.

Valid extensions for `scripts` are:
- `.js`
- `.cjs`
- `.mjs`
- `.jsx`
- `.cjsx`
- `.mjsx`

Valid extensions for `styles` are:
- `.css`
- `.less`
- `.sass`
- `.scss`
- `.styl`
2022-01-31 11:30:10 -08:00
Joey Perrott
ed13222175 docs: release notes for the v13.2.1 release 2022-01-31 10:46:13 -08:00
Alan Agius
7f67dbc1cf fix(@angular-devkit/build-angular): invalid browsers version ranges
This change addresses the `Invalid version: "15.2-15.3"` range error. We previously only handled version ranges for `ios_safari`. Now, we handle such versions for all browsers.

Closes #22606
2022-01-31 09:14:43 -08:00
Doug Parker
ecf5cffab9 docs: add note about switching FW dependencies off of -rc.0 and -next.0 before the production release
Also turns two unrelated file references into links because it's been bugging me for ages but I was never willing to go out of my way for a separate commit or PR, and including it into another PR is kinda mixing concerns, but also who cares, so I'm just gonna do it now and hope no one notices, rant over.
2022-01-28 11:41:25 -08:00
Renovate Bot
7bcc18e753 build: update dependency @ampproject/remapping to v2 2022-01-28 11:02:57 -08:00
Alan Agius
44c1e6d0d2 refactor(@angular-devkit/schematics): remove deprecated analytics property
BREAKING CHANGE:

Deprecated `analytics` property has been removed from `TypedSchematicContext` interface
2022-01-28 11:01:52 -08:00
Alan Agius
2fc7c73d7e refactor(@angular/cli): remove deprecated --prod flag
BREAKING CHANGE:

Deprecated option `--prod` has been removed from all builders. `--configuration production`/`-c production` should be used instead if the default configuration of the builder is not configured to `production`.
2022-01-28 11:01:37 -08:00
Alan Agius
69ecddaa7d feat(@schematics/angular): update new and existing projects compilation target to ES2020
With this change we update the TypeScript compilation target to `ES2020` for both new and existing projects. This is because all browsers that Angular supports (https://angular.io/guide/browser-support) support `ES2020` features without the need for polyfills.
2022-01-28 11:01:09 -08:00
Alan Agius
b3082355c0 build: update @angular/ packages to version 14 prerelease 2022-01-28 10:59:53 -08:00
Alan Agius
d18469eb3f build: remove extra period in build script 2022-01-27 11:08:41 -08:00
Alan Agius
07e776ea37 fix(@angular-devkit/build-angular): fail build when importing CSS files as an ECMA modules
BREAKING CHANGE:

We now issue a build time error since importing a CSS file as an ECMA module is non standard Webpack specific feature, which is not supported by the Angular CLI.

This feature was never truly supported by the Angular CLI, but has as such for visibility.
2022-01-27 11:07:32 -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
Alan Agius
28b0cdc966 refactor(@schematics/angular): remove version 13 migrations
These migrations cannot be used with version Angular CLI 14, since `ng update` will not allow updating multiple versions at once.
2022-01-27 11:07:13 -08:00
Alan Agius
d94a67353d refactor(@angular/cli): remove deprecated --all option from ng update
BREAKING CHANGE:

`--all` option from `ng update` has been removed without replacement. To update packages which don’t provide `ng  update` capabilities in your workspace `package.json` use `npm update`, `yarn upgrade-interactive` or `yarn upgrade` instead.
2022-01-27 11:06:51 -08:00
Alan Agius
9277eed1d9 refactor(@ngtools/webpack): remove deprecated ivy namespace
BREAKING CHANGE:

`ivy` namespace has been removed from the public API.

- `ivy.AngularWebpackPlugin` -> `AngularWebpackPlugin`
- `ivy.AngularPluginOptions` -> `AngularPluginOptions`
2022-01-27 11:06:26 -08:00
Alan Agius
6df962c7a4 refactor: remove build-optimizer from repo
This package is deprecated and should not be used. It has always been experimental. All the relevant functionality has been moved into `@angular-devkit/build-angular`.
2022-01-27 11:06:00 -08:00
Alan Agius
7068de2809 refactor(@angular-devkit/build-angular): clean find tests logic
With this change we clean up and reduce the complexity of the `findTests` logic that handles the `include` option in the karma builder.
2022-01-27 11:05:36 -08:00
Alan Agius
d64ef88a30 test(@angular/cli): add update test from version 12 to 13
This is needed as updating multiple major versions of `@angular/cli`  and `@angular/core` at once is not supported therefore an update from 12 to 14 will fail.
2022-01-27 11:05:00 -08:00
Joey Perrott
987c83f762 release: update version to 14.0.0-next.0 2022-01-27 11:05:00 -08:00
Doug Parker
8278b56c9f docs: release notes for the v13.2.0 release 2022-01-26 13:44:47 -08:00
Renovate Bot
fe746463f9 build: update angular 2022-01-26 12:45:56 +01:00
Renovate Bot
5c5230861c build: update all non-major dependencies 2022-01-26 10:44:30 +01:00
grant-wilson
68490f1553
docs: fix character code in expression example (#22564)
* docs: fix character code in expression example

Add '\' prefix so character code is rendered literally,
not as the character it represents.

* docs: format readme.md

Run `ng-dev format files` on readme.md.
2022-01-25 19:42:25 +01:00
Renovate Bot
23dac94c78 build: update all non-major dependencies 2022-01-25 15:39:41 +01:00
Doug Parker
a8b1dfce52 docs: release notes for the v13.2.0-rc.1 release 2022-01-24 16:18:03 -08:00
Doug Parker
a5bddd620f docs: bump FW peer deps at the same time as FW dependencies 2022-01-24 14:59:17 -08:00
Alan Agius
5def2de1bf fix(@angular-devkit/architect): correctly handle ESM builders
Previoiusly, we didn't correctly handle ESM builders as the `import` was always downlevelled to `require` by TypeScript.
2022-01-24 20:33:21 +01:00
Alan Agius
cb73c0b4ae fix(@angular-devkit/build-webpack): correctly handle ESM webpack configurations
Previoiusly, we didn't correctly handle ESM configurations as the `import` was always downlevelled to `require` by TypeScript.

Closes #22547
2022-01-24 20:33:21 +01:00
Renovate Bot
919b569713 build: lock file maintenance 2022-01-24 15:46:21 +01:00
Renovate Bot
1d58215e00 build: update dependency node-fetch to v2.6.7 [security] 2022-01-24 13:53:08 +01:00
Renovate Bot
dd88520cd4 build: update angular 2022-01-24 13:33:15 +01:00
Alan Agius
e9684b2fd2 build: update all non-major dependencies 2022-01-24 12:54:31 +01:00
Renovate Bot
1fa5e1f975 build: update dependency typescript to v4.5.5 2022-01-21 12:51:57 +01:00
Renovate Bot
906c419911 build: update angular to 27f7616 2022-01-21 12:51:39 +01:00
Renovate Bot
f8eb40e58a build: update all non-major dependencies 2022-01-21 12:51:20 +01:00
Derek Cormier
331c34c4df build: remove old build-ng-packagr reference 2022-01-21 12:50:53 +01:00
Derek Cormier
043fbf0054 build: substitute snapshot repo dependencies in snapshot builds 2022-01-21 12:50:53 +01:00
Derek Cormier
4721b2796c build: correctly stamp experimental packages in bazel build 2022-01-21 12:50:53 +01:00
Renovate Bot
4280990ef4 build: update angular 2022-01-20 12:31:38 +01:00
Renovate Bot
3478258486 build: update all non-major dependencies to v7.16.10 2022-01-20 09:59:34 +01:00
Joey Perrott
782d55ce2a docs: release notes for the v13.2.0-rc.0 release 2022-01-19 14:18:55 -08:00