paymongo-cli 1.4.3 → 1.4.5
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 +32 -1
- package/dist/.tsbuildinfo +1 -1
- 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 +7 -282
- 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 +174 -0
- package/dist/commands/generate/templates/webhook-handler/typescript.js +138 -0
- package/dist/commands/generate.js +7 -999
- package/dist/commands/init.js +22 -5
- package/dist/commands/login.js +52 -15
- package/dist/services/api/client.js +1 -1
- package/dist/services/dev/server.js +167 -0
- package/package.json +2 -2
- package/dist/services/api/undici-client.js +0 -288
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.4.5] - 2026-02-01
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **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.
|
|
15
|
+
- **Init .gitignore Handling** - Made `.env` and `.paymongo` ignore entries idempotent and appended with a consistent header when missing.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- **API Key Errors** - Standardized missing secret key handling to throw `ApiKeyError` in the API client.
|
|
20
|
+
- **Test Reliability** - Updated login and template tests for new encryption payloads and added DevServer webhook signature verification coverage.
|
|
21
|
+
|
|
22
|
+
## [1.4.4] - 2026-01-27
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- **Codebase Modularization** - Refactored large command files into modular components for better maintainability:
|
|
27
|
+
- `dev.ts`: Extracted `DevServer` class and subcommands (`status`, `stop`, `logs`) into separate files.
|
|
28
|
+
- `generate.ts`: Extracted code generation templates into modular template files organized by type and language.
|
|
29
|
+
- Reduced main command file sizes significantly (`dev.ts`: 735 -> ~330 lines, `generate.ts`: 1261 -> ~250 lines).
|
|
30
|
+
|
|
31
|
+
- **Integration Testing** - Expanded integration test coverage:
|
|
32
|
+
- Added `dev-server.test.ts` for DevServer lifecycle and process management.
|
|
33
|
+
- Added `generate-templates.test.ts` for comprehensive template generation verification.
|
|
34
|
+
- Achieved pass on all 387 tests across 25 test suites.
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- **Type Safety** - Resolved TypeScript errors in integration tests by adding proper type definitions for mock objects.
|
|
39
|
+
|
|
10
40
|
## [1.4.3] - 2026-01-26
|
|
11
41
|
|
|
12
42
|
### Added
|
|
@@ -372,7 +402,8 @@ npm install -g paymongo-cli
|
|
|
372
402
|
- [Issue Tracker](https://github.com/leodyversemilla07/paymongo-cli/issues)
|
|
373
403
|
- [PayMongo API Documentation](https://developers.paymongo.com/)
|
|
374
404
|
|
|
375
|
-
[Unreleased]: https://github.com/leodyversemilla07/paymongo-cli/compare/v1.4.
|
|
405
|
+
[Unreleased]: https://github.com/leodyversemilla07/paymongo-cli/compare/v1.4.4...HEAD
|
|
406
|
+
[1.4.4]: https://github.com/leodyversemilla07/paymongo-cli/compare/v1.4.3...v1.4.4
|
|
376
407
|
[1.4.3]: https://github.com/leodyversemilla07/paymongo-cli/compare/v1.4.1...v1.4.3
|
|
377
408
|
[1.4.1]: https://github.com/leodyversemilla07/paymongo-cli/compare/v1.4.0...v1.4.1
|
|
378
409
|
[1.4.0]: https://github.com/leodyversemilla07/paymongo-cli/compare/v1.3.0...v1.4.0
|