fix: revert type:module to restore WASM compatibility (2.0.1 patch)

This commit is contained in:
Aric Camarata 2026-05-28 14:17:42 -04:00
parent fb95c4a26f
commit 049394d7dc
2 changed files with 6 additions and 2 deletions

View file

@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [2.0.1] - 2026-05-28
### Fixed
- Reverted `"type": "module"` addition that broke WASM module loading. Emscripten's `createSpaModule` factory uses CJS output conventions; adding `"type": "module"` made Node.js parse `wasm/spa-module.js` as ESM, causing `createSpaModule is not a function`. The package already ships proper `.mjs` and `.cjs` dist files via the exports map, so the package-level `type` field is not needed. A full ESM-native WASM build is planned for a future major version.
## [2.0.0] - 2026-05-28
### Added

View file

@ -1,6 +1,6 @@
{
"name": "solar-spa",
"version": "2.0.0",
"version": "2.0.1",
"description": "NREL Solar Position Algorithm (SPA) compiled to WebAssembly. High-performance solar position, sunrise, sunset, and solar noon calculations.",
"author": "Aric Camarata",
"license": "MIT",
@ -79,6 +79,5 @@
"typescript": "^5.9.3",
"typescript-eslint": "^8.56.1"
},
"type": "module",
"packageManager": "pnpm@10.11.1"
}