Skip to content

Commit 5df3917

Browse files
vinayhclauderaycastbot
authored
Update stock-tracker extension (#27549)
* Update stock-tracker extension - Show sunrise/moon icon on rows with pre/post-market prices - Show a star next to symbol in search results when already in Favorites - Show last-updated timestamp next to section headers - Fix "Move Down in Favorites" no-op for last item; guard missing symbols - Fix prices of 0 not rendering; scale negative values correctly - Refresh Yahoo cookie/crumb proactively after 12h - Only refresh cookie/crumb on 401/403 (was any 4xx/5xx) - Fix Set-Cookie parsing under native fetch - Thread AbortSignal through cookie/crumb fetches - Cancel in-flight requests on unmount - Recover gracefully from corrupted local-storage values - Switch to native fetch (removes punycode deprecation warning) - Update @raycast/api, TypeScript, ESLint, and other dependencies Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * [stock-tracker] Use defineConfig and avoid reaching into transitive eslint plugin Defer entirely to @raycast/eslint-config (the declared devDependency). defineConfig from eslint/config flattens the nested array that @raycast/eslint-config currently emits, so we no longer need to inline the composition or import @raycast/eslint-plugin directly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * [stock-tracker] Address PR review: getCrumb status check and formatMoney suffix bound - getCrumb now throws on non-2xx instead of caching an HTML error page as a "crumb" string (which would cause the next request to fail with 401/403 and waste a round trip plus poison the cache for up to 12h). - formatMoney clamps the magnitude to the suffix table length so values >= 1e15 render as "1000.00T" rather than "1000.00undefined". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Update CHANGELOG.md and add platforms field --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: raycastbot <bot@raycast.com>
1 parent 888d040 commit 5df3917

16 files changed

Lines changed: 4564 additions & 2769 deletions

extensions/stock-tracker/.eslintrc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

extensions/stock-tracker/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Stock Tracker Changelog
22

3+
## [Improvements] - 2026-04-30
4+
5+
- Show a sunrise/moon icon on rows with pre/post-market prices
6+
- Show a ★ next to the symbol in search results when it is already in Favorites
7+
- Show the last-updated timestamp next to the Favorites / Search Results section header
8+
- Fix "Move Down in Favorites" being a no-op for the last item, and guard against missing symbols
9+
- Fix prices of `0` rendering as ``; correctly scale negative values with k/M/B/T suffixes
10+
- Refresh Yahoo Finance cookie/crumb proactively after 12h instead of waiting for a request to fail
11+
- Only refresh cookie/crumb on 401/403 (previously refreshed on any 4xx/5xx)
12+
- Fix `Set-Cookie` parsing under native `fetch` and thread `AbortSignal` through cookie/crumb fetches
13+
- Cancel in-flight requests when the view closes
14+
- Recover gracefully from corrupted local-storage values
15+
- Switch to native `fetch` (removes the `punycode` deprecation warning) and update `@raycast/api`, TypeScript, ESLint, and other dependencies
16+
317
## [Fix] - 2025-05-27
418

519
- Fixed the integration with the Yahoo Finance API by changing a header value and by making it update the cookie and crumb, if it encounters an error >= 400
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const { defineConfig } = require("eslint/config");
2+
const raycastConfig = require("@raycast/eslint-config");
3+
4+
module.exports = defineConfig(raycastConfig);

0 commit comments

Comments
 (0)