Skip to content

Scope to @fiale-plus/fred-cli, fix code review issues#1

Merged
bearmug merged 1 commit intomainfrom
fix/package-name-and-review-issues
Mar 29, 2026
Merged

Scope to @fiale-plus/fred-cli, fix code review issues#1
bearmug merged 1 commit intomainfrom
fix/package-name-and-review-issues

Conversation

@bearmug
Copy link
Copy Markdown
Contributor

@bearmug bearmug commented Mar 29, 2026

Summary

  • Rename npm package to @fiale-plus/fred-cli (fred-cli is already taken on npm)
  • Fix FredSeriesResponse type: add FredSingleSeriesResponse for the non-paginated /series endpoint (code review issue — getSeries() was typed with pagination fields that the API doesn't return)
  • Remove dead "elements" entry from ARRAY_FIELDS in formatters (code review issue — FredReleaseTable.elements is a Record, not an array, so Array.isArray always returns false)
  • Update README, badges, and npm-publish workflow for scoped package name

Test plan

  • npm run build compiles cleanly
  • npm test — 62 tests pass
  • Verify README badge URLs point to correct GitHub repo (not scoped path)
  • Verify npm view step in publish workflow uses scoped name

- Rename npm package to @fiale-plus/fred-cli (fred-cli is taken)
- Fix FredSeriesResponse: add FredSingleSeriesResponse for non-paginated
  single-series endpoint, keeping FredSeriesResponse for paginated lists
- Remove dead "elements" from ARRAY_FIELDS (FredReleaseTable.elements
  is Record<string, ...>, not an array)
- Update README badges and install commands for scoped package
- Update npm-publish workflow verify step
@bearmug bearmug merged commit b2f9cb1 into main Mar 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant