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

Upgrade Angular to v17 #641

Merged
merged 68 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
aaaa3a4
bump typescript to 4.8
clemiller May 14, 2024
2aef8aa
bump angular to v15
clemiller May 14, 2024
e81308b
bump angular material to v15
clemiller May 14, 2024
43d2f41
bump @angular-builders/custom-webpack to v15
clemiller May 14, 2024
0bacccf
bump typescript to 4.9.5
clemiller May 14, 2024
2f2a0d8
temp uninstall ngx-markdown and ngx-drag-drop
clemiller May 14, 2024
edb5846
bump angular to v16
clemiller May 14, 2024
48c8fc5
bump @angular-builders/custom-webpack to v16
clemiller May 14, 2024
87de99a
bump angular material to v16
clemiller May 14, 2024
e482e63
uninstall ngx-smart-popover
clemiller May 14, 2024
281a5c4
install marked
clemiller May 14, 2024
d212056
mdc migration tool
clemiller May 14, 2024
8bc8b3e
partial migration
clemiller May 23, 2024
7612383
finish migration TODOs
clemiller May 24, 2024
d0acea7
bump angular to v17
clemiller May 24, 2024
36a0563
bump @angular-builders/custom-webpack to v17
clemiller May 24, 2024
8acb26b
bump angular material to v17
clemiller May 24, 2024
366add4
re-install/upgrade ngx-markdown v17
clemiller May 24, 2024
0f374e6
updates to dialogs
clemiller May 28, 2024
f450ce8
re-install/upgrade ngx-drag-drop to v17
clemiller May 28, 2024
3a23c4a
update readme
clemiller May 28, 2024
2dadaea
update changelog
clemiller May 28, 2024
b35779a
package updates
clemiller May 28, 2024
8db2ed5
fix rxjs usage
clemiller May 28, 2024
0c81650
commonjs deps
clemiller May 28, 2024
0c0ef9b
upgrade ngx-color-picker
clemiller May 28, 2024
3e26001
fix tests
clemiller May 28, 2024
cd17d85
update test.yml
clemiller May 29, 2024
c1e90ef
minor change
clemiller Jun 4, 2024
fb74d2b
uncomment markdown tests
clemiller Jun 4, 2024
8be5828
tests are running, albeit failing
clemiller Jun 4, 2024
b41a229
fix zone.js issue
clemiller Jun 5, 2024
d1cf1f0
update TabsComponent dialog tests
clemiller Jun 5, 2024
f672597
both app & tests are running, but some tests are still failing
clemiller Jul 9, 2024
5ebfa54
remove comments
clemiller Jul 9, 2024
8d225e3
Merge remote-tracking branch 'origin/develop' into upgrade-angular
clemiller Jul 9, 2024
f57c059
update tests
clemiller Jul 10, 2024
4344906
rename file & remove unused import
clemiller Jul 10, 2024
289b04a
testing pipeline
clemiller Jul 10, 2024
530254a
another test
clemiller Jul 10, 2024
adc618e
added declaration
clemiller Jul 10, 2024
5d3b70a
use new built in control flows
clemiller Jul 10, 2024
2174e54
fix tab tests to set latest version
clemiller Jul 10, 2024
2394c3e
undo list-input changes
clemiller Jul 10, 2024
6a3827d
again
clemiller Jul 10, 2024
4ce3ab7
add list input types
clemiller Jul 10, 2024
524fa7e
updated some tests
clemiller Jul 19, 2024
77dda39
fix matrix tests
clemiller Jul 19, 2024
d7c40cb
re-enable service, sidebar, and svg-export tests
clemiller Jul 19, 2024
84a0db0
undo
clemiller Jul 19, 2024
884b7ad
config service tests
clemiller Jul 19, 2024
0af9af4
data service tests
clemiller Jul 19, 2024
5bafa15
icon service tests
clemiller Jul 19, 2024
45d7bd5
view model service tests
clemiller Jul 19, 2024
5697a93
sidebar tests
clemiller Jul 19, 2024
0c58413
svg export tests
clemiller Jul 19, 2024
4d52cb3
app tests
clemiller Jul 19, 2024
380015c
version upgrade tests
clemiller Jul 19, 2024
0b3d90c
code smells
clemiller Jul 19, 2024
9cfe80b
partial tabs tests
clemiller Jul 19, 2024
14814c0
load and open tab tests
clemiller Jul 19, 2024
db0067d
more tests
clemiller Jul 19, 2024
1d18a0e
helper fn tests
clemiller Jul 19, 2024
945162a
another
clemiller Jul 19, 2024
779ec9f
tab tests done?
clemiller Jul 19, 2024
40ece0f
sonarcloud
clemiller Jul 19, 2024
882d498
update list input dividers
clemiller Jul 22, 2024
87d56ee
fix dropdown container adaptive color
clemiller Jul 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,23 @@ jobs:
working-directory: ./nav-app/
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: nav-app/package-lock.json

- name: Install
run: npm ci

- name: Run Jasmine tests
run: npm run test -- --code-coverage --no-watch --browsers ChromeHeadlessCI

- name: Archive code coverage results
uses: actions/upload-artifact@v4
if: always()
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
The creation of the tag can be disabled with the --no-git-tag-version if desired.
-->

# Changes Staged on Develop

## Improvements
- Updated Angular from v14 to v17.

# 5.0.1 - 9 May 2024

## Fixes
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Use our [GitHub Issue Tracker](https://github.com/mitre-attack/attack-navigator/

## Requirements

* [Node.js v16](https://nodejs.org)
* [AngularCLI](https://cli.angular.io)
* [Node.js v18](https://nodejs.org)
* [AngularCLI v17](https://cli.angular.io)

## Supported Browsers

Expand Down
21 changes: 10 additions & 11 deletions nav-app/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"polyfills": ["src/polyfills.ts", "zone.js"],
"preserveSymlinks": true,
"allowedCommonJsDependencies": ["lodash"],
"allowedCommonJsDependencies": ["lodash", "is_js", "seedrandom", "typed_function", "tinygradient", "exceljs"],
"assets": [
{ "glob": "*.md", "input": "../", "output": "/" },
{ "glob": "*.md", "input": "../layers", "output": "/layers" },
"src/assets",
"src/favicon.ico"
],
"styles": ["src/styles.scss", "node_modules/ngx-smart-popover/scss/popover-content.component.scss"],
"styles": ["src/styles.scss"],
"scripts": [
"node_modules/file-saver/dist/FileSaver.js",
"node_modules/mathjs/lib/browser/math.js",
Expand Down Expand Up @@ -75,28 +75,27 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "nav-app:build"
"buildTarget": "nav-app:build"
},
"configurations": {
"production": {
"browserTarget": "nav-app:build:production"
"buildTarget": "nav-app:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "nav-app:build"
"buildTarget": "nav-app:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"karmaConfig": "./karma.conf.js",
"codeCoverageExclude": ["src/polyfills.ts", "src/app/utils/taxii2lib.ts"],
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"polyfills": ["src/polyfills.ts", "zone.js/testing", "zone.js"],
"tsConfig": "tsconfig.spec.json",
"scripts": [
"node_modules/file-saver/dist/FileSaver.js",
"node_modules/mathjs/lib/browser/math.js",
Expand All @@ -112,7 +111,7 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"],
"tsConfig": ["tsconfig.app.json", "tsconfig.spec.json"],
"exclude": ["**/node_modules/**"]
}
}
Expand Down
2 changes: 1 addition & 1 deletion nav-app/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function (config) {
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome', 'ChromeHeadlessCI'],
browsers: ['Chrome', 'ChromeHeadless', 'ChromeHeadlessCI'],
customLaunchers: {
ChromeHeadlessCI: {
base: 'ChromeHeadless',
Expand Down
Loading