paymongo-cli 1.4.3 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/commands/config.js +14 -0
- package/dist/commands/dev/logs.js +46 -0
- package/dist/commands/dev/status.js +41 -0
- package/dist/commands/dev/stop.js +41 -0
- package/dist/commands/dev.js +9 -283
- package/dist/commands/generate/templates/checkout-page/index.js +539 -0
- package/dist/commands/generate/templates/index.js +5 -0
- package/dist/commands/generate/templates/payment-intent/javascript.js +71 -0
- package/dist/commands/generate/templates/payment-intent/typescript.js +95 -0
- package/dist/commands/generate/templates/webhook-handler/javascript.js +219 -0
- package/dist/commands/generate/templates/webhook-handler/typescript.js +168 -0
- package/dist/commands/generate.js +21 -1007
- package/dist/commands/init.js +22 -5
- package/dist/commands/login.js +53 -16
- package/dist/commands/team/index.js +4 -3
- package/dist/commands/trigger.js +40 -2
- package/dist/commands/webhooks.js +1 -1
- package/dist/services/analytics/service.js +5 -1
- package/dist/services/api/client.js +1 -1
- package/dist/services/config/manager.js +6 -8
- package/dist/services/dev/server.js +167 -0
- package/dist/services/team/service.js +4 -1
- package/dist/types/schemas.js +38 -9
- package/package.json +1 -1
- package/dist/services/api/undici-client.js +0 -288
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,51 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.4.6] - 2026-02-03
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **Config Validation** - Allowed loading configs without API keys and normalized optional fields to avoid setup lockouts.
|
|
15
|
+
- **Webhook Signatures** - Standardized signature verification format across dev server, trigger, and generated templates.
|
|
16
|
+
- **CLI Startup** - Lazy-loaded prompt dependencies in several commands for faster startup.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **Analytics Persistence** - Stored analytics in a safe user directory with test override support.
|
|
21
|
+
- **Dev Auto-Register** - Respected `dev.autoRegisterWebhook` in the dev command.
|
|
22
|
+
- **Team Import** - Enabled `--force` to overwrite existing keys during team import.
|
|
23
|
+
- **Config Import** - Validated imports with schema and normalized missing optional fields.
|
|
24
|
+
|
|
25
|
+
## [1.4.5] - 2026-02-01
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- **Credential Encryption** - Migrated stored credentials to AES-256-GCM with scrypt-derived keys and per-machine salt, with automatic legacy AES-256-CBC migration on load.
|
|
30
|
+
- **Init .gitignore Handling** - Made `.env` and `.paymongo` ignore entries idempotent and appended with a consistent header when missing.
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- **API Key Errors** - Standardized missing secret key handling to throw `ApiKeyError` in the API client.
|
|
35
|
+
- **Test Reliability** - Updated login and template tests for new encryption payloads and added DevServer webhook signature verification coverage.
|
|
36
|
+
|
|
37
|
+
## [1.4.4] - 2026-01-27
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
|
|
41
|
+
- **Codebase Modularization** - Refactored large command files into modular components for better maintainability:
|
|
42
|
+
- `dev.ts`: Extracted `DevServer` class and subcommands (`status`, `stop`, `logs`) into separate files.
|
|
43
|
+
- `generate.ts`: Extracted code generation templates into modular template files organized by type and language.
|
|
44
|
+
- Reduced main command file sizes significantly (`dev.ts`: 735 -> ~330 lines, `generate.ts`: 1261 -> ~250 lines).
|
|
45
|
+
|
|
46
|
+
- **Integration Testing** - Expanded integration test coverage:
|
|
47
|
+
- Added `dev-server.test.ts` for DevServer lifecycle and process management.
|
|
48
|
+
- Added `generate-templates.test.ts` for comprehensive template generation verification.
|
|
49
|
+
- Achieved pass on all 387 tests across 25 test suites.
|
|
50
|
+
|
|
51
|
+
### Fixed
|
|
52
|
+
|
|
53
|
+
- **Type Safety** - Resolved TypeScript errors in integration tests by adding proper type definitions for mock objects.
|
|
54
|
+
|
|
10
55
|
## [1.4.3] - 2026-01-26
|
|
11
56
|
|
|
12
57
|
### Added
|
|
@@ -372,7 +417,8 @@ npm install -g paymongo-cli
|
|
|
372
417
|
- [Issue Tracker](https://github.com/leodyversemilla07/paymongo-cli/issues)
|
|
373
418
|
- [PayMongo API Documentation](https://developers.paymongo.com/)
|
|
374
419
|
|
|
375
|
-
[Unreleased]: https://github.com/leodyversemilla07/paymongo-cli/compare/v1.4.
|
|
420
|
+
[Unreleased]: https://github.com/leodyversemilla07/paymongo-cli/compare/v1.4.4...HEAD
|
|
421
|
+
[1.4.4]: https://github.com/leodyversemilla07/paymongo-cli/compare/v1.4.3...v1.4.4
|
|
376
422
|
[1.4.3]: https://github.com/leodyversemilla07/paymongo-cli/compare/v1.4.1...v1.4.3
|
|
377
423
|
[1.4.1]: https://github.com/leodyversemilla07/paymongo-cli/compare/v1.4.0...v1.4.1
|
|
378
424
|
[1.4.0]: https://github.com/leodyversemilla07/paymongo-cli/compare/v1.3.0...v1.4.0
|