Commit graph

33 commits

Author SHA1 Message Date
Aric Camarata
f28abeea65 build: use prepack hook so npm pack/publish reliably emit index.d.mts 2026-06-13 10:30:59 -04:00
Aric Camarata
6aabd304b0 ci: fix coverage corepack order, eslint parser devDeps, pack-check d.mts
- Move corepack enable before actions/setup-node in coverage job
- Add @typescript-eslint/parser and @typescript-eslint/eslint-plugin as direct devDeps
- Add files pattern and parserOptions.project to eslint.config.mjs
- Change build:ts to cp dist/index.d.ts dist/index.d.mts so pack-check passes
- Run prettier format on src/ files
2026-05-31 08:46:54 -04:00
Aric Camarata
706b67d0f6 release: v2.0.2 — P1 standardization 2026-05-30 19:12:24 -04:00
Aric Camarata
79e2c03505 chore: refresh CI workflow + TypeDoc wiki (E5 conformance) 2026-05-30 18:37:50 -04:00
Aric Camarata
ffb720a7c8 docs: refresh TypeDoc API output (T-E8-03 QA-A verify) 2026-05-30 17:48:45 -04:00
Aric Camarata
3c848806ab docs: add TypeDoc API generation (typedoc@0.28.19 + typedoc-plugin-markdown@4.11.0)
Add typedoc and typedoc-plugin-markdown as devDependencies. Add typedoc.json config
targeting src/index.ts with markdown output to .github/wiki/api. Add docs script to
package.json. Generate initial API reference pages.

Part of T-E8-03 — TypeDoc automation for all 12 JS/TS packages.
2026-05-30 16:41:57 -04:00
Aric Camarata
aa0161a824 chore: adopt shared config packages (tsconfig, eslint, prettier) 2026-05-30 15:04:42 -04:00
Aric Camarata
b8da0c8717 ci(solar-spa): enable corepack before setup-node, emit d.mts 2026-05-29 20:06:49 -04:00
Aric Camarata
525bb15f5b chore: E6 polish wiki content (P1) 2026-05-29 07:15:56 -04:00
Aric Camarata
6bb7d729bb chore: untrack AGENTS.md (AI working memory, not source code) 2026-05-29 06:36:40 -04:00
Aric Camarata
049394d7dc fix: revert type:module to restore WASM compatibility (2.0.1 patch) 2026-05-28 14:17:42 -04:00
Aric Camarata
fb95c4a26f feat(e6): portfolio polish — docs, CI, TypeScript standard, wiki
- Trim README to ≤80 lines with wiki link for full docs
- Add CHANGELOG.md with initial entry
- Fix CI: replace pinned pnpm/action-setup with corepack enable
- Add "type": "module" and flat exports map (ADR-015)
- Add ./package.json exports entry
- Add coverage script
- Rename wasm/spa-module.js → wasm/spa-module.cjs to fix CJS/ESM conflict
- Update src/index.ts and tsup.config.ts to reference spa-module.cjs
- Add .github/wiki pages: _Sidebar, _Footer, SECURITY, CODE_OF_CONDUCT
2026-05-28 13:59:50 -04:00
Aric Camarata
89f9faa2fa chore(config): add AGENTS.md for dual-harness parity 2026-05-25 15:51:24 -04:00
Aric Camarata
4102f7463e chore: align repository structure with portfolio documentation standards 2026-05-15 15:27:52 -04:00
Aric Camarata
e734c058d1 Add GitHub Sponsors funding config 2026-03-28 18:19:03 -04:00
Aric Camarata
a57b4502b2 style: fix prettier table formatting in wiki 2026-03-08 17:30:56 -04:00
Aric Camarata
f21be803fe refactor: code quality improvements across the board 2026-03-08 11:33:21 -04:00
Aric Camarata
1db4c24537 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
66083d1e70 fix: normalize repository URL to prevent npm publish warning 2026-02-25 10:36:37 -05:00
Aric Camarata
fb0c14e761 v2.0.0: TypeScript rewrite with WASM recompilation
Complete rewrite of the package from plain JavaScript to TypeScript,
compiled to dual CJS/ESM via tsup. The NREL SPA C source is recompiled
to WASM with Emscripten using SINGLE_FILE base64 inlining, eliminating
bundler path-resolution issues.

Changes:
- Rewrite JS wrapper in TypeScript with full type definitions
- Recompile WASM with -O3 -flto, 1MB fixed memory, no filesystem
- Add input validation with descriptive error messages
- Add spaFormatted() for HH:MM:SS time strings
- Add formatTime() utility and init() for eager WASM loading
- Add SPA_ZA, SPA_ZA_INC, SPA_ZA_RTS, SPA_ALL function code exports
- Dual CJS/ESM output via tsup with proper exports map
- Test suite: 68 ESM + 13 CJS assertions
- 100-scenario validation suite across 7 categories
- GitHub Wiki with 8 documentation pages
- CI workflow: Node 20/22/24 matrix, typecheck, pack-check
- NREL attribution in LICENSE and README per their license terms
- Minimum Node.js 20
2026-02-25 10:35:24 -05:00
uny-dev
3f1144d037 Updated package.json repository field for NPM 2025-03-18 06:13:24 -04:00
e5f2a3c27a
Update README.md 2025-03-07 09:43:43 -05:00
8d0a6050bb
Create LICENSE 2025-03-07 09:35:46 -05:00
9e56f9e1ca
Delete .DS_Store 2025-03-07 09:33:10 -05:00
a4b07f8cee Revert bug fix in 1.2.1 2023-04-04 21:16:18 -04:00
e0faeadcde Bug fix 2023-04-04 21:01:46 -04:00
4dc4b3004c Bug fix for onRuntimeInitialized 2023-04-04 17:54:56 -04:00
cc8b0299b2 Rebuilt WASM for web and node envs 2023-04-02 10:16:27 -04:00
9fc46f0784 Removed dependency on fs 2023-04-02 08:20:42 -04:00
2a729af7d1 Updated version for publishing 2023-04-01 08:08:53 -04:00
cad59e5759 Directly linked WASM file to resolve bug 2023-04-01 08:08:18 -04:00
35b1cedc4a Added Typescript support and path for WASM file 2023-04-01 07:56:21 -04:00
f10c64c5f1 first commit 2023-03-31 23:26:40 -04:00