Commit 9a2fc86
committed
feat: make library self-contained with pre-built binaries for Vercel
- Remove swisseph-v2 from direct dependencies (moved to optional)
- Add platform-specific prebuilt binaries:
- darwin-arm64 for macOS M1/M2/M3
- linux-x64 for Vercel/Linux servers
- Implement native-loader.ts for platform detection and binary loading
- Add fallback support for development with swisseph-v2
- Export platform utilities (getPlatformInfo, hasPrebuilds)
- Update README with Vercel deployment section
- Bump version to 0.2.0
This update enables Vercel deployment without native compilation.
Closes: native module loading issues on serverless platforms1 parent a6633f6 commit 9a2fc86
22 files changed
Lines changed: 581 additions & 93 deletions
File tree
- dist
- prebuilds
- darwin-arm64
- linux-x64
- scripts
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| 11 | + | |
9 | 12 | | |
10 | | - | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
572 | 575 | | |
573 | 576 | | |
574 | 577 | | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
575 | 611 | | |
576 | 612 | | |
577 | 613 | | |
578 | 614 | | |
579 | 615 | | |
580 | | - | |
| 616 | + | |
581 | 617 | | |
| 618 | + | |
582 | 619 | | |
583 | | - | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
584 | 626 | | |
585 | 627 | | |
586 | 628 | | |
587 | | - | |
| 629 | + | |
588 | 630 | | |
589 | 631 | | |
590 | 632 | | |
591 | | - | |
| 633 | + | |
592 | 634 | | |
593 | 635 | | |
594 | 636 | | |
| 637 | + | |
595 | 638 | | |
596 | 639 | | |
597 | 640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments