Skip to content

New package with bundled tides-database#174

Merged
bkeepers merged 9 commits into
mainfrom
monorepo
Dec 21, 2025
Merged

New package with bundled tides-database#174
bkeepers merged 9 commits into
mainfrom
monorepo

Conversation

@bkeepers
Copy link
Copy Markdown
Contributor

@bkeepers bkeepers commented Dec 19, 2025

This creates a new top-level package called simply neaps that bundles @neaps/tide-predictor and @neaps/tide-database into an easier to use pre-configured tide prediction engine.

import { getExtremesPrediction } from 'neaps'

const prediction = getExtremesPrediction({
  latitude: 26.7, // or `lat`
  longitude: -80.05, // or `lng` or `lon`
  start: new Date('2025-12-17'),
  end: new Date('2025-12-18'),
  datum: 'MLLW', // optional, defaults to MLLW if available
})

console.log(extremes)
// {
//   datum: 'MLLW',
//   station: {
//     id: '8723214',
//     name: 'Fort Lauderdale, FL',
//     // ...
//   },
//   distance: 12.3,
//   predictions: [
//     { time: 2019-01-01T03:12:00.000Z, level: 3.2, high: true, low: false, label: 'High' },
//     { time: 2019-01-01T09:45:00.000Z, level: 0.5, high: false, low: true, label: 'Low' },
//   ]
// }
  • Move @neaps/tide-predictor to packages/ directory
  • Add top-level neaps pacakge that pulls everything together
  • Get tests/coverage passing on GH Actions
  • Rename this repo neaps/neaps

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (a853022) to head (75fbdab).
⚠️ Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #174   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        11    +1     
  Lines          437       491   +54     
  Branches        32        44   +12     
=========================================
+ Hits           437       491   +54     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bkeepers bkeepers marked this pull request as ready for review December 19, 2025 15:25
@bkeepers bkeepers merged commit e988386 into main Dec 21, 2025
4 checks passed
@bkeepers bkeepers deleted the monorepo branch December 21, 2025 04:23
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