@trebired/logger 2.1.1 → 2.2.0

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.
Files changed (75) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +661 -21
  3. package/README.md +8 -1
  4. package/dist/core/create_log.d.ts.map +1 -1
  5. package/dist/core/create_log.js +71 -0
  6. package/dist/core/create_log.js.map +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/storage/backend/index.d.ts +2 -1
  10. package/dist/storage/backend/index.d.ts.map +1 -1
  11. package/dist/storage/backend/index.js +6 -1
  12. package/dist/storage/backend/index.js.map +1 -1
  13. package/dist/storage/backend/js.d.ts.map +1 -1
  14. package/dist/storage/backend/js.js +15 -1
  15. package/dist/storage/backend/js.js.map +1 -1
  16. package/dist/storage/backend/native.d.ts.map +1 -1
  17. package/dist/storage/backend/native.js +3 -0
  18. package/dist/storage/backend/native.js.map +1 -1
  19. package/dist/storage/backend/types.d.ts +10 -1
  20. package/dist/storage/backend/types.d.ts.map +1 -1
  21. package/dist/storage/partitions/delete.d.ts +2 -1
  22. package/dist/storage/partitions/delete.d.ts.map +1 -1
  23. package/dist/storage/partitions/delete.js +10 -1
  24. package/dist/storage/partitions/delete.js.map +1 -1
  25. package/dist/storage/partitions/files.d.ts +2 -7
  26. package/dist/storage/partitions/files.d.ts.map +1 -1
  27. package/dist/storage/partitions/files.js +2 -86
  28. package/dist/storage/partitions/files.js.map +1 -1
  29. package/dist/storage/partitions/public.d.ts +2 -2
  30. package/dist/storage/partitions/public.d.ts.map +1 -1
  31. package/dist/storage/partitions/public.js +2 -2
  32. package/dist/storage/partitions/public.js.map +1 -1
  33. package/dist/storage/partitions/records.d.ts +3 -2
  34. package/dist/storage/partitions/records.d.ts.map +1 -1
  35. package/dist/storage/partitions/records.js +31 -7
  36. package/dist/storage/partitions/records.js.map +1 -1
  37. package/dist/storage/partitions/rewrite.d.ts +18 -0
  38. package/dist/storage/partitions/rewrite.d.ts.map +1 -0
  39. package/dist/storage/partitions/rewrite.js +102 -0
  40. package/dist/storage/partitions/rewrite.js.map +1 -0
  41. package/dist/storage/partitions/transforms.d.ts.map +1 -1
  42. package/dist/storage/partitions/transforms.js +14 -3
  43. package/dist/storage/partitions/transforms.js.map +1 -1
  44. package/dist/storage/query/rows.d.ts +7 -0
  45. package/dist/storage/query/rows.d.ts.map +1 -0
  46. package/dist/storage/query/rows.js +46 -0
  47. package/dist/storage/query/rows.js.map +1 -0
  48. package/dist/storage/query/shared.d.ts +13 -0
  49. package/dist/storage/query/shared.d.ts.map +1 -0
  50. package/dist/storage/query/shared.js +37 -0
  51. package/dist/storage/query/shared.js.map +1 -0
  52. package/dist/storage/query/summary.d.ts +12 -0
  53. package/dist/storage/query/summary.d.ts.map +1 -0
  54. package/dist/storage/query/summary.js +108 -0
  55. package/dist/storage/query/summary.js.map +1 -0
  56. package/dist/storage/query.d.ts +3 -8
  57. package/dist/storage/query.d.ts.map +1 -1
  58. package/dist/storage/query.js +4 -179
  59. package/dist/storage/query.js.map +1 -1
  60. package/dist/types/export.d.ts +1 -0
  61. package/dist/types/export.d.ts.map +1 -1
  62. package/dist/types/index.d.ts +1 -1
  63. package/dist/types/index.d.ts.map +1 -1
  64. package/dist/types/partitions.d.ts +8 -1
  65. package/dist/types/partitions.d.ts.map +1 -1
  66. package/dist/types/server.d.ts +2 -2
  67. package/dist/types/server.d.ts.map +1 -1
  68. package/dist/utils/size.d.ts +2 -1
  69. package/dist/utils/size.d.ts.map +1 -1
  70. package/dist/utils/size.js +7 -1
  71. package/dist/utils/size.js.map +1 -1
  72. package/native/darwin-arm64.node +0 -0
  73. package/native/darwin-x64.node +0 -0
  74. package/native/linux-x64-gnu.node +0 -0
  75. package/package.json +5 -3
package/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ This project follows semantic versioning once published.
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 2.2.0
10
+
11
+ - Changed the project license from MIT to GNU AGPL-3.0.
12
+ - Added automatic cleanup for temporary partitions that are no longer current so stale temp partitions are deleted during partition switches, promotions, logger dir changes, and shutdown.
13
+ - Added partition size reporting in megabytes alongside raw bytes, plus combined `listPartitions()` totals across all returned partitions.
14
+ - Expanded the native Rust backend to rewrite partition files during copy, move, rename, and merge flows instead of leaving that work in TypeScript.
15
+ - Refactored the native crate into focused modules for scan, rewrite, archive, log-file helpers, and shared utilities, and split storage query helpers into dedicated TypeScript modules for easier maintenance.
16
+
9
17
  ## 2.1.1
10
18
 
11
19
  - Changed `prepublishOnly` to build the host native addon before publish and verify the packed tarball contents.