Skip to content

Commit

Permalink
Merge pull request #3911 from crazyserver/MOBILE-3947
Browse files Browse the repository at this point in the history
MOBILE-3947 angular: Update angular to v17
  • Loading branch information
dpalou authored Jan 24, 2024
2 parents 0f441d1 + f20a30d commit d740f60
Show file tree
Hide file tree
Showing 23 changed files with 7,892 additions and 4,467 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ jobs:
npm run build:prod
npm run prod --prefix cordova-plugin-moodleapp
- name: JavaScript code compatibility
# 6 BigInt usage errors are expected, they are fine without polyfill because they are only used if available.
# See https://github.com/videojs/mpd-parser/blob/v0.22.1/src/segment/urlType.js
run: |
result=$(npx check-es-compat www/*.js --polyfills="{Array,String,TypedArray}.prototype.at,Array.prototype.flatMap,Array.prototype.flat,Array.prototype.includes,globalThis,Object.fromEntries,Object.hasOwn,Promise.prototype.finally,String.prototype.matchAll,String.prototype.trimRight" | grep "6 problems (6 errors, 0 warnings)" | wc -l); test $result -eq 1
npx check-es-compat www/*.js --polyfills="\{Array,String,TypedArray\}.prototype.at,Array.prototype.flatMap,Array.prototype.flat,Array.prototype.includes,globalThis,Object.fromEntries,Object.hasOwn,Promise.prototype.finally,String.prototype.matchAll,String.prototype.trimRight" | grep "No issues found. Files are compatible with the target runtimes."
npx check-es-compat cordova-plugin-moodleapp/www/*.js
10 changes: 5 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,24 +93,24 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "app:build",
"disableHostCheck": true,
"port": 8100
"port": 8100,
"buildTarget": "app:build"
},
"configurations": {
"production": {
"browserTarget": "app:build:production"
"buildTarget": "app:build:production"
},
"development": {
"browserTarget": "app:build:development"
"buildTarget": "app:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "app:build"
"buildTarget": "app:build"
}
},
"lint": {
Expand Down
6 changes: 3 additions & 3 deletions browserslist
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
#
# More info: https://github.com/browserslist/browserslist

Android >= 5
iOS >= 11
Chrome >= 61
Android >= 5.1
iOS >= 14
Chrome >= 79
Loading

0 comments on commit d740f60

Please sign in to comment.