Commit graph

12 commits

Author SHA1 Message Date
Aric Camarata
423560c0ab Remove pnpm-specific .npmrc setting that causes npm warning
package-import-method=hardlink is pnpm's default since v7 and does not
need to be set explicitly. npm reads .npmrc and warns about unknown
project config keys — removing it silences the warning with no effect
on pnpm behavior.
2026-02-25 11:17:19 -05:00
Aric Camarata
b44d9a958b v2.0.0: TypeScript rewrite with dual CJS/ESM build
Complete modernization of the package. The core SPA algorithm is
unchanged and validated; everything else is rebuilt to match current
JavaScript ecosystem standards.

Changes:
- TypeScript wrapper in src/ with full type definitions
- Dual CJS/ESM build via tsup (dist/index.cjs, dist/index.mjs)
- Core algorithm moved from dist/spa.js to lib/spa.js (same code)
- Input validation with descriptive TypeError/RangeError messages
- formatTime() and SPA function code constants as named exports
- getSpa() / calcSpa() accept null for optional args (tz, options)
- Test suite: 61 ESM assertions and 17 CJS assertions
- GitHub Actions CI: Node 20/22/24 matrix, typecheck, pack-check
- GitHub Wiki: Home, API Reference, Architecture, Twilight, NREL SPA
- NREL attribution in LICENSE and README per their license terms
- package.json: exports map, files, engines >=20, sideEffects: false
- Author corrected to Aric Camarata; repository.url uses git+https://
- LICENSE year corrected to 2023-2026
- Removed: index.js, test.js, dist/spa.js (superseded by above)
2026-02-25 11:01:38 -05:00
b1c7f638ae Major fix to core time calculations 2025-05-04 07:50:00 -04:00
uny-dev
322342d978 Updated package.json repository field for NPM 2025-03-18 06:13:30 -04:00
88edcab489
Update LICENSE 2025-03-07 09:49:05 -05:00
3a2f6fcbab updated version 2023-11-13 07:46:28 +07:00
61ef96ad08 updated require in readme 2023-11-13 07:45:53 +07:00
e2c6dbe6ba updated format and docs 2023-11-13 07:43:18 +07:00
4a5c28261e major fix for handling timezones 2023-11-13 07:05:10 +07:00
8c4c4991f2 updated version 2023-11-11 18:18:01 +07:00
18b3c8d5b7 unignored dist folder 2023-11-11 18:17:51 +07:00
82fd5feb92 initial commit 2023-11-11 17:23:30 +07:00