Browse Source

Feature/upgrade yahoo-finance2 to version 3.4.1 (#5072)

* Upgrade yahoo-finance2 to version 3.4.1

* Suppress survey notice

* Update changelog
pull/5085/head
Thomas Kaul 3 weeks ago
committed by GitHub
parent
commit
64b392fa02
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 4
      apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts
  3. 4
      apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts
  4. 32
      package-lock.json
  5. 2
      package.json

1
CHANGELOG.md

@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improved the language localization for Portuguese (`pt`)
- Upgraded `@internationalized/number` from version `3.6.0` to `3.6.3`
- Upgraded `ngx-skeleton-loader` from version `11.0.0` to `11.2.1`
- Upgraded `yahoo-finance2` from version `3.3.5` to `3.4.1`
## 2.176.0 - 2025-06-30

4
apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts

@ -23,7 +23,9 @@ import type { Price } from 'yahoo-finance2/esm/src/modules/quoteSummary-iface';
@Injectable()
export class YahooFinanceDataEnhancerService implements DataEnhancerInterface {
private readonly yahooFinance = new YahooFinance();
private readonly yahooFinance = new YahooFinance({
suppressNotices: ['yahooSurvey']
});
public constructor(
private readonly cryptocurrencyService: CryptocurrencyService

4
apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts

@ -38,7 +38,9 @@ import { SearchQuoteNonYahoo } from 'yahoo-finance2/esm/src/modules/search';
@Injectable()
export class YahooFinanceService implements DataProviderInterface {
private readonly yahooFinance = new YahooFinance();
private readonly yahooFinance = new YahooFinance({
suppressNotices: ['yahooSurvey']
});
public constructor(
private readonly cryptocurrencyService: CryptocurrencyService,

32
package-lock.json

@ -92,7 +92,7 @@
"svgmap": "2.12.2",
"twitter-api-v2": "1.23.0",
"uuid": "11.1.0",
"yahoo-finance2": "3.3.5",
"yahoo-finance2": "3.4.1",
"zone.js": "0.15.1"
},
"devDependencies": {
@ -29589,7 +29589,6 @@
"version": "1.15.0",
"resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz",
"integrity": "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==",
"devOptional": true,
"license": "MIT",
"dependencies": {
"punycode": "^2.3.1"
@ -29613,7 +29612,6 @@
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
"integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
"devOptional": true,
"license": "MIT",
"engines": {
"node": ">=6"
@ -29690,7 +29688,6 @@
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz",
"integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==",
"devOptional": true,
"license": "MIT"
},
"node_modules/queue-microtask": {
@ -33254,7 +33251,6 @@
"version": "4.1.4",
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz",
"integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==",
"devOptional": true,
"license": "BSD-3-Clause",
"dependencies": {
"psl": "^1.1.33",
@ -33266,11 +33262,22 @@
"node": ">=6"
}
},
"node_modules/tough-cookie-file-store": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/tough-cookie-file-store/-/tough-cookie-file-store-2.0.3.tgz",
"integrity": "sha512-sMpZVcmFf6EYFHFFl+SYH4W1/OnXBYMGDsv2IlbQ2caHyFElW/UR/gpj/KYU1JwmP4dE9xqwv2+vWcmlXHojSw==",
"license": "MIT",
"dependencies": {
"tough-cookie": "^4.0.0"
},
"engines": {
"node": ">=6"
}
},
"node_modules/tough-cookie/node_modules/universalify": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz",
"integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==",
"devOptional": true,
"license": "MIT",
"engines": {
"node": ">= 4.0.0"
@ -34330,7 +34337,6 @@
"version": "1.5.10",
"resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz",
"integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==",
"devOptional": true,
"license": "MIT",
"dependencies": {
"querystringify": "^2.1.1",
@ -35876,14 +35882,18 @@
}
},
"node_modules/yahoo-finance2": {
"version": "3.3.5",
"resolved": "https://registry.npmjs.org/yahoo-finance2/-/yahoo-finance2-3.3.5.tgz",
"integrity": "sha512-rLsoKpxOGD5x2aT62mfF89yFBKBUNM3RMttvW4JuLH1K0JgADwyOfBm3zJzl4zLFoSOnqeOjRvlhhF59R6X3HA==",
"version": "3.4.1",
"resolved": "https://registry.npmjs.org/yahoo-finance2/-/yahoo-finance2-3.4.1.tgz",
"integrity": "sha512-L8Ubmdsn6f+uJEuEDUUHR5n95TFcGkMiMkV0phmvPONFekAn1vWzsEzGfIDG2ODR7aYBB+aURdQg7a3HX2iUHA==",
"license": "MIT",
"dependencies": {
"@deno/shim-deno": "~0.18.0",
"fetch-mock-cache": "npm:fetch-mock-cache@^2.1.3",
"tough-cookie": "npm:tough-cookie@^5.1.1"
"tough-cookie": "npm:tough-cookie@^5.1.1",
"tough-cookie-file-store": "npm:tough-cookie-file-store@^2.0.3"
},
"bin": {
"yahoo-finance": "bin/yahoo-finance.mjs"
},
"engines": {
"node": ">=20.0.0"

2
package.json

@ -138,7 +138,7 @@
"svgmap": "2.12.2",
"twitter-api-v2": "1.23.0",
"uuid": "11.1.0",
"yahoo-finance2": "3.3.5",
"yahoo-finance2": "3.4.1",
"zone.js": "0.15.1"
},
"devDependencies": {

Loading…
Cancel
Save