From e4bc27436aed022005d30581343c8a1085e8392f Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 10 Apr 2024 15:03:02 +0800 Subject: [PATCH] [YUNIKORN-2506] fix deprecation warning for fontsource-roboto (#185) Remove deprecated fontsource-roboto ,migrate to @fontsource/roboto Closes: #185 Signed-off-by: Yu-Lin Chen --- angular.json | 2 +- package.json | 2 +- pnpm-lock.yaml | 15 +++++++-------- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/angular.json b/angular.json index 16d81aa9..c3b4d836 100644 --- a/angular.json +++ b/angular.json @@ -33,7 +33,7 @@ "assets": ["src/favicon.ico", "src/assets", {"glob": "LICENSE", "input": "./", "output": "./"}], "styles": [ "src/styles.scss", - "node_modules/fontsource-roboto/index.css", + "node_modules/@fontsource/roboto/index.css", "node_modules/@fortawesome/fontawesome-free/css/all.css" ], "scripts": [] diff --git a/package.json b/package.json index 3f6bd99f..5d6750fa 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "@angular/platform-browser": "^16.2.10", "@angular/platform-browser-dynamic": "^16.2.10", "@angular/router": "^16.2.10", + "@fontsource/roboto": "^5.0.12", "@fortawesome/fontawesome-free": "^6.5.1", "@types/d3-flextree": "^2.1.4", "@types/d3-hierarchy": "^3.1.6", @@ -54,7 +55,6 @@ "d3-transition": "^3.0.1", "d3-zoom": "^3.0.0", "date-fns": "^2.30.0", - "fontsource-roboto": "^4.0.0", "material-design-icons": "^3.0.1", "moment": "^2.29.4", "ngx-spinner": "^16.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 892758ae..f1f82628 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,6 +35,9 @@ dependencies: '@angular/router': specifier: ^16.2.10 version: 16.2.10(@angular/common@16.2.10)(@angular/core@16.2.10)(@angular/platform-browser@16.2.10)(rxjs@7.8.1) + '@fontsource/roboto': + specifier: ^5.0.12 + version: 5.0.12 '@fortawesome/fontawesome-free': specifier: ^6.5.1 version: 6.5.1 @@ -83,9 +86,6 @@ dependencies: date-fns: specifier: ^2.30.0 version: 2.30.0 - fontsource-roboto: - specifier: ^4.0.0 - version: 4.0.0 material-design-icons: specifier: ^3.0.1 version: 3.0.1 @@ -2270,6 +2270,10 @@ packages: dev: true optional: true + /@fontsource/roboto@5.0.12: + resolution: {integrity: sha512-x0o17jvgoSSbS9OZnUX2+xJmVRvVCfeaYJjkS7w62iN7CuJWtMf5vJj8LqgC7ibqIkitOHVW+XssRjgrcHn62g==} + dev: false + /@fortawesome/fontawesome-free@6.5.1: resolution: {integrity: sha512-CNy5vSwN3fsUStPRLX7fUYojyuzoEMSXPl7zSLJ8TgtRfjv24LOnOWKT2zYwaHZCJGkdyRnTmstR0P+Ah503Gw==} engines: {node: '>=6'} @@ -5382,11 +5386,6 @@ packages: optional: true dev: true - /fontsource-roboto@4.0.0: - resolution: {integrity: sha512-zD6L8nvdWRcwSgp4ojxFchG+MPj8kXXQKDEAH9bfhbxy+lkpvpC1WgAK0lCa4dwobv+hvAe0uyHaawcgH7WH/g==} - deprecated: Package relocated. Please install and migrate to @fontsource/roboto. - dev: false - /foreground-child@3.1.1: resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} engines: {node: '>=14'}