Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update angular monorepo to v15 (major) #323

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ollitod
Copy link
Collaborator

@Ollitod Ollitod commented Jun 29, 2024

This PR contains the following updates:

Package Type Update Change
@angular-devkit/build-angular devDependencies major ^14.2.13 -> ^15.0.0
@angular/animations (source) dependencies major ^14.2.0 -> ^15.0.0
@angular/cdk dependencies major ^14.2.7 -> ^15.0.0
@angular/cli devDependencies major ~14.2.13 -> ~15.2.0
@angular/common (source) dependencies major ^14.2.0 -> ^15.0.0
@angular/compiler (source) dependencies major ^14.2.0 -> ^15.0.0
@angular/compiler-cli (source) devDependencies major ^14.2.0 -> ^15.0.0
@angular/core (source) dependencies major ^14.2.0 -> ^15.0.0
@angular/forms (source) dependencies major ^14.2.0 -> ^15.0.0
@angular/material dependencies major ^14.2.7 -> ^15.0.0
@angular/platform-browser (source) dependencies major ^14.2.0 -> ^15.0.0
@angular/platform-browser-dynamic (source) dependencies major ^14.2.0 -> ^15.0.0
@angular/router (source) dependencies major ^14.2.0 -> ^15.0.0

Release Notes

angular/angular-cli (@​angular-devkit/build-angular)

v15.2.11

Compare Source

@​angular-devkit/build-angular
Commit Type Description
c6feb0bb0 fix update webpack-dev-middleware to 6.1.2

v15.2.10

Compare Source

@​angular-devkit/build-angular
Commit Type Description
05213c95b fix update dependency postcss to v8.4.31

v15.2.9

Compare Source

@​angular/cli
Commit Type Description
f36e38a91 fix update direct semver dependencies to 7.5.3

v15.2.8

Compare Source

@​angular/cli
Commit Type Description
069dcdf0c docs improve wording in doc command version description

v15.2.7

Compare Source

@​angular/cli
Commit Type Description
f4a6dac87 fix process keeps running when analytics are enabled
f9b2fb1c4 perf register CLI commands lazily
@​schematics/angular
Commit Type Description
d9aefd6da fix replace vscode launch type from pwa-chrome to chrome

v15.2.6

Compare Source

@​schematics/angular
Commit Type Description
f0b257ef4 fix ignore hidden directories when running browserlist migration

v15.2.5

Compare Source

@​angular/cli
Commit Type Description
db173d7ed fix collect tech information

Special Thanks

Alan Agius

v15.2.4

Compare Source

@​angular-devkit/build-angular
Commit Type Description
f74bfea24 fix update webpack dependency to 5.76.1

Special Thanks

Alan Agius

v15.2.3

Compare Source

@​angular-devkit/build-angular
Commit Type Description
a93680585 fix correct wrap ES2022 classes with static properties

Special Thanks

Alan Agius and Paul Gschwendtner

v15.2.2

Compare Source

@​angular-devkit/schematics-cli
Commit Type Description
dfd03aa7c fix correctly transform numbers from prompts
@​angular-devkit/build-angular
Commit Type Description
eb22f634f fix build optimizer support for non spec-compliant ES2022 class static properties

Special Thanks

Alan Agius

v15.2.1

Compare Source

@​angular-devkit/build-angular
Commit Type Description
c6feb0bb0 fix update webpack-dev-middleware to 6.1.2

v15.2.0

Compare Source

@​angular/cli
Commit Type Description
0f58a17c4 feat log number of files update during ng update
@​angular-devkit/schematics-cli
Commit Type Description
ecf43090d feat auto detect package manager (#​24305)
@​angular-devkit/build-angular
Commit Type Description
01b3bcf89 feat add Less stylesheet support to experimental esbuild-based builder
09af70743 feat implement node module license extraction for esbuild builder
bbc1a4f0d feat support CommonJS dependency checking in esbuild
8cf0d17fb feat support JIT compilation with esbuild
3f6769ef9 fix allow empty scripts to be optimized
421417a36 fix avoid CommonJS warning for zone.js in esbuild

Special Thanks

Alan Agius, Charles Lyding, Doug Parker, Jason Bedard, Joey Perrott, Marvin and Paul Gschwendtner

v15.1.6

Compare Source

@​angular/cli
Commit Type Description
3d1f48fa2 fix add set SessionEngaged in GA
df07ab113 fix convert before option in .npmrc to Date
c787cc780 fix replace os.version with os.release.
@​angular-devkit/build-angular
Commit Type Description
34a4a1bbf fix correctly copy safety-worker.js contents
88a33155d fix update the ECMA output warning message to be more actionable
384ad29c9 fix use babel default export helper in build optimizer
59aa1cdbd perf reduce rebuilt times when using the scripts option

Special Thanks

Alan Agius and Charles Lyding

v15.1.5

Compare Source

@​angular/cli
Commit Type Description
b8bbe9688 fix error if Angular compiler is used in a schematic
fabbb8a93 fix only set DebugView when NG_DEBUG is passed
@​schematics/angular
Commit Type Description
499173b5d fix remove bootstrapping wrapping in universal schematic
@​angular-devkit/build-angular
Commit Type Description
e87134fe9 fix build optimizer support for spec-compliant downlevel class properties
d80adde2f fix do not fail compilation when spec pattern does not match
11be502e7 fix fix support of Safari TP versions
14e317d85 fix load polyfills and runtime as scripts instead of modules

Special Thanks

Alan Agius, Charles Lyding, Kristiyan Kostadinov and Ricardo

v15.1.4

Compare Source

@​angular-devkit/build-angular
Commit Type Description
6c8fdfc69 fix load JavaScript bundles as modules in karma
317452e3b fix print server builder errors and warnings

Special Thanks

Alan Agius

v15.1.3

Compare Source

@​angular/cli
Commit Type Description
de15ec576 fix handle extended schematics when retrieving aliases
@​schematics/angular
Commit Type Description
2c04f4a8f fix update browserslist config to include last 2 Chrome version
@​angular-devkit/build-angular
Commit Type Description
f31bf300b fix avoid undefined module path for Sass imports in esbuild
c152a4a13 fix update browserslist config to include last 2 Chrome versions
@​angular-devkit/core
Commit Type Description
9de99202e fix handle number like strings in workspace writer

Special Thanks

Alan Agius, Charles Lyding and Doug Parker

v15.1.2

Compare Source

@​angular/cli
Commit Type Description
387472a95 fix register schematic aliases when providing collection name in ng generate
5d9fd788a fix remove --to option from being required when using --from in ng update
@​schematics/angular
Commit Type Description
0f5fb7e59 fix replace existing BrowserModule.withServerTransition calls when running universal schematic
@​angular-devkit/build-angular
Commit Type Description
bf4639a6e fix prevent hanging initial build during exception with esbuild

Special Thanks

Alan Agius, Charles Lyding and Doug Parker

v15.1.1

Compare Source

@​angular-devkit/build-angular
Commit Type Description
b94bf60ca fix update esbuild to 0.16.17

Special Thanks

Alan Agius

v15.1.0

Compare Source

Deprecations

@​angular-devkit/schematics
  • The Observable based SchematicTestRunner.runSchematicAsync and SchematicTestRunner.runExternalSchematicAsync method have been deprecated in favor of the Promise based SchematicTestRunner.runSchematic and SchematicTestRunner.runExternalSchematic.
@​schematics/angular
Commit Type Description
5b18ce154 feat add guardType as an alias of implements in guard schematic
dd2b65943 feat add configuration files generation schematic
8d000d156 feat add environments generation schematic
6c39a162b feat Add schematics for generating functional router guards and resolvers
62121f89a feat add sideEffects:false to library package.json
9299dea64 feat generate functional interceptors
49b313f27 fix add missing import for functional interceptor spec
2f92fe7e5 fix add missing semicolon in functional guard/resolver/interceptor
9b6d190f4 fix remove EnvironmentInjector import in functional guard spec
b11d3f644 fix use proper variable in functional guard spec
451975f76 fix use proper variable in resolver functional spec
@​angular-devkit/build-angular
Commit Type Description
c29df6954 feat add assets option to server builder
839d0cb57 feat implement stats-json option for esbuild builder
216991b9d feat support inline component Sass styles with esbuild builder
7c87ce47c fix ensure Sass load paths are resolved from workspace root
7a063238b fix explicitly send options to JS transformer workers
22cba7937 fix provide an option to exclude specs in Karma builder
20376649c fix transform async generator class methods for Zone.js support
0520608f6 fix use relative css resource paths in esbuild JSON stats
0c01532cb perf use worker pool for JavaScript transforms in esbuild builder
@​angular-devkit/schematics
Commit Type Description
207358afb feat add runSchematic and runExternalSchematic methods

Special Thanks

Alan Agius, Andrew Scott, Charles Lyding, Cédric Exbrayat, Doug Parker, Felix Hamann, Jason Bedard, Joey Perrott and Kristiyan Kostadinov

v15.0.5

Compare Source

@​angular-devkit/build-angular
Commit Type Description
c2030dec7 fix format esbuild error messages to include more information

Special Thanks

Alan Agius, Kristiyan Kostadinov, Paul Gschwendtner and aanchal

v15.0.4

Compare Source

@​angular-devkit/build-angular
Commit Type Description
ccc8e0350 fix display actionable error when a style does not exist in Karma builder
507f756c3 fix downlevel class private methods when targeting Safari <=v15
a0da91dba fix include sources in generated
9fd356234 fix only set ngDevMode when script optimizations are enabled
8e85f4728 fix update css-loader to 6.7.3
b2d4415ca fix update locale setting snippet to use globalThis.

Special Thanks

Alan Agius and Charles Lyding

v15.0.3

Compare Source

@​angular-devkit/build-angular
Commit Type Description
3d9971edb fix default preserve symlinks to Node.js value for esbuild
24f4b51d2 fix downlevel class fields with Safari <= v15 for esbuild
45afc42db fix downlevel class properties when targeting Safari <=v15
e6461badf fix prevent optimization adding unsupported ECMASCript features

Special Thanks

Charles Lyding, Dominic Elm and Paul Gschwendtner

v15.0.2

Compare Source

@​angular-devkit/build-angular
Commit Type Description
2891d5bc9 fix correctly set Sass quietDeps and verbose options
@​ngtools/webpack
Commit Type Description
d9cc4b028 fix elide unused type references

Special Thanks

Alan Agius and Juuso Valkeejärvi

v15.0.1

Compare Source

@​angular/cli
Commit Type Description
eda96def4 fix use global version of the CLI when running ng new
@​schematics/angular
Commit Type Description
48426852b fix show warning when a TS Config is not found during migrations
@​angular-devkit/build-angular
Commit Type Description
2af32fd3a fix hide loader paths in webpack warnings
19f5cc746 fix improve package deep import Sass index resolution in esbuild plugin
2220a907d fix use url function lexer to rebase Sass URLs

Special Thanks

Alan Agius, Charles Lyding, Doug Parker, Joey Perrott and Piotr Wysocki

v15.0.0

Compare Source

Breaking Changes

@​angular/cli
  • The Angular CLI no longer supports 16.10.x, 16.11.x and 16.12.x. Current minimum versions of Node.js are 14.20.0, 16.13.0 and 18.10.0.
  • Node.js versions older than 14.20 are no longer supported.
  • The 'path' option in schematics schema no longer has a special meaning. Use 'workingDirectory' smart default provider should be used instead.
@​schematics/angular
  • Removed unused appDir option from Universal and App-Shell schematic. This option can safely be removed if present since it no longer has effect.

  • analyticsSharing option in the global angular configuration has been
    removed without replacement. This option was used to configure the Angular CLI to access to your own users' CLI usage data.

    If this option is used, it can be removed using ng config --global cli.analyticsSharing undefined.

  • analytics APIs have been removed without replacement from @angular-devkit/core and @angular-devkit/architect.

@​angular-devkit/build-angular
  • TypeScript versions older than 4.8.2 are no longer supported.

  • The server builder bundleDependencies option has been removed. This option was used pre Ivy. Currently, using this option is unlikely to produce working server bundles.

    The externalDependencies option can be used instead to exclude specific node_module packages from the final bundle.

    • Deprecated support for tilde import has been removed. Please update the imports by removing the ~.

    Before

    @&#8203;import '~font-awesome/scss/font-awesome';

    After

    @&#8203;import 'font-awesome/scss/font-awesome';
    • By default the CLI will use Sass modern API, While not recommended, users can still opt to use legacy API by setting NG_BUILD_LEGACY_SASS=1.
  • Internally the Angular CLI now always set the TypeScript target to ES2022 and useDefineForClassFields to false unless the target is set to ES2022 or later in the TypeScript configuration. To control ECMA version and features use the Browerslist configuration.

  • require.context are no longer parsed. Webpack specific features are not supported nor guaranteed to work in the future.

  • Producing ES5 output is no longer possible. This was needed for Internet Explorer which is no longer supported. All browsers that Angular supports work with ES2015+

  • server builder bundleDependencies option now only accept a boolean value.

  • Deprecated support for Stylus has been removed. The Stylus package has never reached a stable version and its usage in the Angular CLI is minimal. It's recommended to migrate to another CSS preprocessor that the Angular CLI supports.

@​angular-devkit/core
  • Workspace projects with missing root is now an error.
@​ngtools/webpack
  • TypeScript versions older than 4.8.2 are no longer supported.
@​schematics/angular
Commit Type Description
766d4a089 feat add migration to remove require calls from karma builder main file
d8bff4f1e feat Added --project-root option to the library schematics
597bfea1b feat drop polyfills.ts file from new templates
1c21e470c feat enable error on unknown properties and elements in tests
f2a0682dc feat generate new projects using TypeScript 4.8.2
b06421d15 feat mark projectRoot as non hidden option in application schematic
b6897dbb0 feat remove karma.conf.js from newly generated projects
301b5669a feat remove ngOnInit from component template
9beb878e2 feat remove Browserslist configuration files from projects
283b564d1 feat remove environment files in new applications
56a1e8f9f feat remove test.ts file from new projects
4e69e8050 fix add @angular/localize as type when localize package is installed
57d93fb7d fix mark project as required option
84e3f7727 fix remove empty lines
316a50d75 fix remove TypeScript target from universal schematic
69b221498 refactor remove deprecated appDir option
@​angular/cli
Commit Type Description
4827d1b23 feat add support for Node.js version 18
4b623461a feat drop support for Node.js versions older than 14.20
3dea1fa71 fix add unique user id as user parameter in GA
af07aa340 fix add workspace information as part of analytics collection
83524f625 fix allow ng add to find prerelease versions when CLI is prerelease
22955f245 fix do not collect analytics when running in non TTY mode
35e5f4278 fix exclude @angular/localize@<10.0.0 from ng add pa… (#​24152)
1a584364e fix exclude @angular/[email protected] from ng add package discovery
ff0382718 fix respect registry in RC when running update through yarn
774d349b7 refactor remove deprecated path handler

Commit Type Description
639a3071c refactor migrate analytics collector to use GA4
c969152de refactor remove analytics API from core and architect
@​angular-devkit/build-angular
Commit Type Description
4ead45cab feat add ng-server-context when using app-shell builder
1c527a9da feat add esbuild-based builder initial support for fileReplacements
67324b3e5 feat add initial incremental code rebuilding to esbuild builder
3d94ca21b feat add initial watch support to esbuild-based builder
c592ec584 feat amend polyfills option in all builders to support an array of module specifiers
a95d130ef feat auto include @angular/localize/init when found in types
979bce45e feat auto include @angular/platform-server/init during server builds
fd4175357 feat drop support for TypeScript 4.6 and 4.7
15d3fc6dc feat export @angular/platform-server symbols in server bundle
05a98c029 feat karma builder main option is now optional
2b6029245 feat providing a karma config is now optional
9c13fce16 feat remove bundleDependencies from server builder
308e3a017 feat switch to use Sass modern API
1e5d4a750 feat use Browserslist to determine ECMA output
3ff391738 fix account for package.json exports fields with CSS import statements
001445982 fix account for package.json exports with Sass in esbuild builder
6280741ce fix add @angular/platform-server as an optional peer dependency
f9a2c3a12 fix allow both script and module sourceTypes to be localized
4cb27b803 fix avoid attempted resolve of external CSS URLs with esbuild builder
192e0e6d7 fix correct escaping of target warning text in esbuild builder
4fcb0a82b fix correctly resolve Sass partial files in node packages
fb5a66ae6 fix fix crash when Sass error occurs
b6df9c136 fix handle conditional exports in scripts and styles option
0ee7625d6 fix ignore cache path when watching with esbuild builder
e34bfe5eb fix ignore specs in node_modules when finding specs
f143171fd fix only add @angular/platform-server/init when package is installed.
3a1970b76 fix only import karma when running karma builder
8b84c18ed

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@Ollitod
Copy link
Collaborator Author

Ollitod commented Jun 29, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/typescript
npm error   dev typescript@"^4.7.2" from the root project
npm error   peer typescript@">=4.6.2 <4.9" from @ngtools/[email protected]
npm error   node_modules/@ngtools/webpack
npm error
npm error Could not resolve dependency:
npm error dev @angular-devkit/build-angular@"^15.0.0" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/typescript
npm error   peer typescript@">=4.8.2 <5.0" from @angular-devkit/[email protected]
npm error   node_modules/@angular-devkit/build-angular
npm error     dev @angular-devkit/build-angular@"^15.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-06-29T07_17_03_117Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-06-29T07_17_03_117Z-debug-0.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants