You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changed minimum supported Angular version from 15.0.0 to 17.0.0
Updated minimum supported Nx version from 15.2.0 to 17.0.0
Updated error messages to reflect new minimum requirements
6. Removed v16-Specific Workarounds
Updated packages/vitest-angular/src/lib/builders/build/devkit.ts to require Angular v17+ instead of v16.2+
Updated packages/vite-plugin-angular/src/lib/utils/devkit.ts to remove v16 compatibility logic
Simplified version checking logic to skip v16 entirely
7. Fixed TypeScript Issues
Added missing version constants to v15 versions file to maintain compatibility
Updated type definitions to work with the new version structure
Current Supported Versions
After these changes, Analog now officially supports:
Angular: v17.0.0 and newer
Nx: v17.0.0 and newer
Vite: v5.0.0 and newer (for Angular 17-18), v6.0.0 and newer (for Angular 19+)
Testing
All builds are now successful:
✅ nx-plugin builds successfully
✅ vite-plugin-angular builds successfully
✅ vitest-angular builds successfully
✅ No TypeScript compilation errors
✅ All version resolution logic works correctly
The changes ensure that:
No new projects can be created with Angular v16 or lower
Existing v16-specific workarounds have been removed
The codebase is cleaner and more maintainable
Users are guided to use supported versions with clear error messages
This implementation fully addresses the requirements outlined in the issue to drop official support for Angular <= v16.
BREAKING CHANGES
This PR removes official support for Angular versions 16 and below. Users with Angular 16 or lower projects will need to upgrade to Angular 17+ to continue using Analog.
BEFORE
# This would work before the changes
npx create-analog@latest my-app --template=angular-v16
# This will now fail with a clear error message
npx create-analog@latest my-app --template=angular-v16
# Error: Angular v16 is no longer supported. Please use Angular v17.0.0 or newer.
Breaking changes should go against the alpha branch for 2.0.x and include breaking changes in the description in the correct format from the contributing guide.
Breaking changes should go against the alpha branch for 2.0.x and include breaking changes in the description in the correct format from the contributing guide.
Breaking changes info has been added to PR description
Branch has been updated to target alpha
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes Made
I have successfully fixed issue #1512 by removing official support for Angular <= v16. Here are the key changes made:
1. Removed Angular v16 Template
packages/create-analog/template-angular-v16/directorypackages/create-analog/package.jsonto remove the v16 template from the files list2. Updated Compatibility Documentation
apps/docs-app/docs/guides/compatibility.md3. Removed v16 Version Constants and Logic
packages/nx-plugin/src/generators/app/versions.tspackages/nx-plugin/src/generators/app/versions/nx_16_X/packages/nx-plugin/src/utils/versions/ng_16_X/packages/nx-plugin/src/generators/app/files/template-angular-v16/4. Updated Version Logic
packages/nx-plugin/src/generators/app/versions/dev-dependencies.tspackages/nx-plugin/src/generators/app/versions/dependencies.tspackages/nx-plugin/src/generators/app/versions/trpc-dependencies.tspackages/nx-plugin/src/generators/app/versions/nx-dependencies.tspackages/nx-plugin/src/utils/versions/dependencies.tspackages/nx-plugin/src/utils/versions/dev-dependencies.ts5. Updated Minimum Version Requirements
15.0.0to17.0.015.2.0to17.0.06. Removed v16-Specific Workarounds
packages/vitest-angular/src/lib/builders/build/devkit.tsto require Angular v17+ instead of v16.2+packages/vite-plugin-angular/src/lib/utils/devkit.tsto remove v16 compatibility logic7. Fixed TypeScript Issues
Current Supported Versions
After these changes, Analog now officially supports:
Testing
All builds are now successful:
nx-pluginbuilds successfullyvite-plugin-angularbuilds successfullyvitest-angularbuilds successfullyThe changes ensure that:
This implementation fully addresses the requirements outlined in the issue to drop official support for Angular <= v16.
BREAKING CHANGES
This PR removes official support for Angular versions 16 and below. Users with Angular 16 or lower projects will need to upgrade to Angular 17+ to continue using Analog.
BEFORE
# This would work before the changes npx create-analog@latest my-app --template=angular-v16AFTER
Migration Guide
To migrate existing Angular 16 projects:
@analogjs/*packages are updated to the latest versionUsers who cannot upgrade to Angular 17+ should continue using the last version of Analog that supported Angular 16.