mirror of
https://github.com/acamarata/solar-spa.git
synced 2026-07-01 19:34:28 +00:00
fix: revert type:module to restore WASM compatibility (2.0.1 patch)
This commit is contained in:
parent
fb95c4a26f
commit
049394d7dc
2 changed files with 6 additions and 2 deletions
|
|
@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [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
|
## [2.0.0] - 2026-05-28
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "solar-spa",
|
"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.",
|
"description": "NREL Solar Position Algorithm (SPA) compiled to WebAssembly. High-performance solar position, sunrise, sunset, and solar noon calculations.",
|
||||||
"author": "Aric Camarata",
|
"author": "Aric Camarata",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
@ -79,6 +79,5 @@
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"typescript-eslint": "^8.56.1"
|
"typescript-eslint": "^8.56.1"
|
||||||
},
|
},
|
||||||
"type": "module",
|
|
||||||
"packageManager": "pnpm@10.11.1"
|
"packageManager": "pnpm@10.11.1"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue