Release 1.2.0 with compact DONKI output - #16
Merged
Merged
Conversation
…limit, and enforce the 30-day DONKI window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release PR for 1.2.0. It contains the APOD/DONKI migrations and nine new tools from #15, plus the DONKI output change below. It sets the version in
package.json/package-lock.jsonand turns the CHANGELOG's "Unreleased" section into## 1.2.0, asRELEASING.mdstep 1 expects.DONKI: compact output by default
nasa_donkireturned DONKI's full JSON. A month of CMEs (108 records) produced about 270,000 characters, which failed with the server's 250,000-character limit. A month of CMEAnalysis records (about 66,000 characters) was too large for some clients' tool-output limits.response_mode: "compact"(default) returns one line per event with the fields that matter for its type:Every line also lists linked events. A month of CMEs is now about 21 KB.
response_mode: "raw"returns the full records as before. The retained resource always holds the full records.limitkeeps the most recent N events.DONKI: 30-day window
The CCMC API rejects ranges over 30 days (
400 API Error: Date range cannot exceed 30 days. You requested 31 days., astext/plain). With onlyendDate, it counts its default start back from today, so an olderendDatefails with "startDate cannot be after endDate". The tool now:startDatemore than 30 days ago, suggesting anendDate;startDate;startDate = endDate - 30 dayswhen onlyendDateis given, which matches the default the tool already documented.Release notes
1.2.0intro flags thatnasa_apodandnasa_donkiparameters and output changed, and that APOD and DONKI no longer work in 1.1.0.latest= 1.0.14 andnext= 1.1.0. 1.2.0 is not on npm.Verification
npm run lint,npm run typecheck,npm test(144 tests) andnpm run docs:checkpass.node dist/index.js --versionprints1.2.0.endDate-only start;rawtogether withlimit.NASA_API_KEYblanked for the server:wsawithresponse_mode: "raw"andlimit: 1returned the latest record;startDateof 2026-01-01 returned the 30-day message.