From 055be3927e8a55d198b5e9696d89a7a1da2d0738 Mon Sep 17 00:00:00 2001 From: Wassim Chegham Date: Mon, 12 Feb 2024 13:34:16 +0100 Subject: [PATCH] chore: update all core dependencies to angular v17+ --- .browserslistrc | 12 - angular.json | 63 +- docs/classes/AppPage.html | 124 +- docs/classes/FakeBluetoothDevice.html | 234 +- ...FakeBluetoothRemoteGATTCharacteristic.html | 316 +- .../FakeBluetoothRemoteGATTServer.html | 210 +- .../FakeBluetoothRemoteGATTService.html | 174 +- docs/components/AppComponent.html | 92 +- docs/components/BatteryLevelComponent.html | 733 +- docs/components/DashboardComponent.html | 108 +- docs/components/HumidityComponent.html | 446 +- docs/components/StepCounterComponent.html | 385 +- docs/components/TemperatureComponent.html | 587 +- docs/coverage.html | 64 +- docs/dependencies.html | 66 +- docs/graph/dependencies.svg | 98 +- docs/index.html | 90 +- docs/injectables/BleService.html | 258 +- docs/injectables/BluetoothCore.html | 2644 ++--- docs/injectables/BrowserWebBluetooth.html | 174 +- docs/injectables/ConsoleLoggerService.html | 346 +- docs/injectables/NoLoggerService.html | 346 +- docs/injectables/ServerWebBluetooth.html | 110 +- docs/interfaces/AWBOptions.html | 88 +- docs/interfaces/Logger.html | 346 +- docs/js/libs/bootstrap-native.js | 4 +- docs/js/libs/es6-shim.min.js | 21 +- docs/js/libs/prism.js | 86 +- docs/js/libs/svg-pan-zoom.min.js | 4 +- docs/js/libs/tablesort.min.js | 6 +- docs/js/libs/tablesort.number.min.js | 4 +- docs/js/libs/vis.min.js | 13 +- docs/js/menu-wc.js | 26 +- docs/js/menu-wc_es5.js | 21 +- docs/js/menu.js | 63 +- docs/js/routes.js | 355 +- docs/js/search/search_index.js | 4 +- docs/license.html | 62 +- docs/miscellaneous/functions.html | 126 +- docs/miscellaneous/typealiases.html | 72 +- docs/miscellaneous/variables.html | 130 +- docs/modules.html | 64 +- docs/modules/AppModule.html | 195 +- docs/modules/AppModule/dependencies.svg | 104 +- docs/modules/WebBluetoothModule.html | 180 +- docs/overview.html | 162 +- docs/properties.html | 66 +- docs/styles/bootstrap.min.css | 12 +- docs/styles/compodoc.css | 41 +- docs/styles/dark.css | 4 + package-lock.json | 8959 ++++++----------- package.json | 22 +- .../angular-web-bluetooth/package.json | 8 +- .../src/lib/bluetooth.service.ts | 88 +- .../src/lib/logger.service.ts | 12 +- .../angular-web-bluetooth/tsconfig.lib.json | 22 +- .../angular-web-bluetooth/tsconfig.spec.json | 2 - .../angular-web-bluetooth/tslint.json | 17 - src/app/ble.service.ts | 7 +- src/app/thingy52/battery-level.component.ts | 196 +- src/app/thingy52/humidity.component.ts | 40 +- src/app/thingy52/stepcounter.component.ts | 20 +- src/app/thingy52/temperature.component.ts | 134 +- src/polyfills.ts | 53 - src/tslint.json | 17 - tsconfig.app.json | 1 - tsconfig.json | 38 +- tsconfig.spec.json | 5 - tslint.json | 148 - 69 files changed, 9639 insertions(+), 10089 deletions(-) delete mode 100644 .browserslistrc delete mode 100644 projects/manekinekko/angular-web-bluetooth/tslint.json delete mode 100644 src/polyfills.ts delete mode 100644 src/tslint.json delete mode 100644 tslint.json diff --git a/.browserslistrc b/.browserslistrc deleted file mode 100644 index 8084853..0000000 --- a/.browserslistrc +++ /dev/null @@ -1,12 +0,0 @@ -# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries - -# You can see what browsers were selected by your queries by running: -# npx browserslist - -> 0.5% -last 2 versions -Firefox ESR -not dead -not IE 9-11 # For IE 9-11 support, remove 'not'. \ No newline at end of file diff --git a/angular.json b/angular.json index 856879d..fe0759b 100644 --- a/angular.json +++ b/angular.json @@ -11,12 +11,14 @@ "prefix": "ble", "architect": { "build": { - "builder": "@angular-devkit/build-angular:browser", + "builder": "@angular-devkit/build-angular:application", "options": { "outputPath": "dist/angular-web-bluetooth-starter", "index": "src/index.html", - "main": "src/main.ts", - "polyfills": "src/polyfills.ts", + "browser": "src/main.ts", + "polyfills": [ + "zone.js" + ], "tsConfig": "tsconfig.app.json", "assets": [ "src/favicon.ico", @@ -28,55 +30,43 @@ ], "scripts": [ "./node_modules/smoothie/smoothie.js" - ], - "vendorChunk": true, - "extractLicenses": false, - "buildOptimizer": false, - "sourceMap": true, - "optimization": false, - "namedChunks": true + ] }, "configurations": { "production": { - "fileReplacements": [ - { - "replace": "src/environments/environment.ts", - "with": "src/environments/environment.prod.ts" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, "budgets": [ { "type": "initial", - "maximumWarning": "2mb", - "maximumError": "5mb" + "maximumWarning": "500kb", + "maximumError": "1mb" }, { "type": "anyComponentStyle", - "maximumWarning": "6kb", - "maximumError": "10kb" + "maximumWarning": "2kb", + "maximumError": "4kb" } - ] + ], + "outputHashing": "all" + }, + "development": { + "optimization": false, + "extractLicenses": false, + "sourceMap": true } }, - "defaultConfiguration": "" + "defaultConfiguration": "production" }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "buildTarget": "angular-web-bluetooth-starter:build" - }, "configurations": { "production": { "buildTarget": "angular-web-bluetooth-starter:build:production" + }, + "development": { + "buildTarget": "angular-web-bluetooth-starter:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -114,14 +104,17 @@ "build": { "builder": "@angular-devkit/build-angular:ng-packagr", "options": { - "tsConfig": "projects/manekinekko/angular-web-bluetooth/tsconfig.lib.json", "project": "projects/manekinekko/angular-web-bluetooth/ng-package.json" }, "configurations": { "production": { "tsConfig": "projects/manekinekko/angular-web-bluetooth/tsconfig.lib.prod.json" + }, + "development": { + "tsConfig": "projects/manekinekko/angular-web-bluetooth/tsconfig.lib.json" } - } + }, + "defaultConfiguration": "production" }, "test": { "builder": "@angular-builders/jest:run", diff --git a/docs/classes/AppPage.html b/docs/classes/AppPage.html index 5f4c9ae..7e15bb2 100644 --- a/docs/classes/AppPage.html +++ b/docs/classes/AppPage.html @@ -13,8 +13,66 @@ - -