nx/packages/angular/src/utils/backward-compatible-versions.ts
Phillip Barta 7df5737e12
feat(node): upgrade express to v4.21.2 to address security vulnerabilities (#29419)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
Nx should install and depend on a version of express without security
vulnerabilities.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

Co-authored-by: Igor Loskutov <igor.loskutoff@gmail.com>
Co-authored-by: Colum Ferry <cferry09@gmail.com>
2025-01-27 11:49:20 -05:00

83 lines
2.5 KiB
TypeScript

import * as latestVersions from './versions';
type SupportedVersions = 'angularV17' | 'angularV18';
type LatestPackageVersionNames = Exclude<
keyof typeof latestVersions,
'nxVersion'
>;
type CompatPackageVersionNames = LatestPackageVersionNames;
export type PackageVersionNames =
| LatestPackageVersionNames
| CompatPackageVersionNames;
export type VersionMap = {
angularV17: Record<
Exclude<CompatPackageVersionNames, 'typescriptEslintVersion'>,
string
>;
angularV18: Record<CompatPackageVersionNames, string>;
};
export type PackageLatestVersions = Record<LatestPackageVersionNames, string>;
export type PackageCompatVersions = VersionMap[SupportedVersions];
export const backwardCompatibleVersions: VersionMap = {
angularV17: {
angularVersion: '~17.3.0',
angularDevkitVersion: '~17.3.0',
ngPackagrVersion: '~17.3.0',
ngrxVersion: '~17.0.0',
rxjsVersion: '~7.8.0',
zoneJsVersion: '~0.14.3',
angularJsVersion: '1.7.9',
tsLibVersion: '^2.3.0',
corsVersion: '~2.8.5',
typesCorsVersion: '~2.8.5',
expressVersion: '^4.21.2',
typesExpressVersion: '^4.17.21',
browserSyncVersion: '^3.0.0',
moduleFederationNodeVersion: '~2.3.0',
moduleFederationEnhancedVersion: '~0.2.3',
angularEslintVersion: '~17.3.0',
tailwindVersion: '^3.0.2',
postcssVersion: '^8.4.5',
postcssUrlVersion: '~10.1.3',
autoprefixerVersion: '^10.4.0',
tsNodeVersion: '10.9.1',
jestPresetAngularVersion: '~14.0.3',
typesNodeVersion: '18.16.9',
jasmineMarblesVersion: '^0.9.2',
jsoncEslintParserVersion: '^2.1.0',
},
angularV18: {
angularVersion: '~18.2.0',
angularDevkitVersion: '~18.2.0',
ngPackagrVersion: '~18.2.0',
ngrxVersion: '~18.0.2',
rxjsVersion: '~7.8.0',
zoneJsVersion: '~0.14.3',
angularJsVersion: '1.7.9',
tsLibVersion: '^2.3.0',
corsVersion: '~2.8.5',
typesCorsVersion: '~2.8.5',
expressVersion: '^4.21.2',
typesExpressVersion: '^4.17.21',
browserSyncVersion: '^3.0.0',
moduleFederationNodeVersion: '~2.5.0',
moduleFederationEnhancedVersion: '0.6.9',
angularEslintVersion: '^18.3.0',
typescriptEslintVersion: '^7.16.0',
tailwindVersion: '^3.0.2',
postcssVersion: '^8.4.5',
postcssUrlVersion: '~10.1.3',
autoprefixerVersion: '^10.4.0',
tsNodeVersion: '10.9.1',
jestPresetAngularVersion: '~14.1.0',
typesNodeVersion: '18.16.9',
jasmineMarblesVersion: '^0.9.2',
jsoncEslintParserVersion: '^2.1.0',
},
};