@gravito/core 2.0.6 → 3.0.1

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 (72) hide show
  1. package/README.md +64 -25
  2. package/dist/Application.d.ts +2 -9
  3. package/dist/Container.d.ts +18 -1
  4. package/dist/GravitoServer.d.ts +8 -8
  5. package/dist/HookManager.d.ts +36 -34
  6. package/dist/PlanetCore.d.ts +54 -0
  7. package/dist/Route.d.ts +5 -0
  8. package/dist/Router.d.ts +14 -1
  9. package/dist/adapters/bun/BunContext.d.ts +1 -1
  10. package/dist/adapters/bun/BunNativeAdapter.d.ts +11 -1
  11. package/dist/adapters/bun/FastPathRegistry.d.ts +31 -0
  12. package/dist/adapters/bun/RadixNode.d.ts +4 -3
  13. package/dist/adapters/bun/RadixRouter.d.ts +2 -2
  14. package/dist/adapters/bun/types.d.ts +7 -0
  15. package/dist/adapters/types.d.ts +20 -0
  16. package/dist/compat/async-local-storage.d.ts +5 -1
  17. package/dist/compat/async-local-storage.js.map +2 -2
  18. package/dist/compat/crypto.d.ts +6 -1
  19. package/dist/compat/crypto.js.map +2 -2
  20. package/dist/engine/AOTRouter.d.ts +1 -1
  21. package/dist/engine/FastContext.d.ts +4 -4
  22. package/dist/engine/MinimalContext.d.ts +3 -3
  23. package/dist/engine/index.js +29 -8
  24. package/dist/engine/index.js.map +10 -10
  25. package/dist/engine/types.d.ts +5 -5
  26. package/dist/events/CircuitBreaker.d.ts +12 -0
  27. package/dist/events/MessageQueueBridge.d.ts +2 -1
  28. package/dist/events/observability/EventMetrics.d.ts +1 -2
  29. package/dist/events/observability/ObservableHookManager.d.ts +1 -1
  30. package/dist/exceptions/AuthException.d.ts +19 -0
  31. package/dist/exceptions/AuthenticationException.d.ts +9 -3
  32. package/dist/exceptions/AuthorizationException.d.ts +2 -2
  33. package/dist/exceptions/CacheException.d.ts +9 -0
  34. package/dist/exceptions/CircularDependencyException.d.ts +2 -1
  35. package/dist/exceptions/ConfigurationException.d.ts +9 -0
  36. package/dist/exceptions/ContainerBindingCollisionException.d.ts +10 -0
  37. package/dist/exceptions/DatabaseException.d.ts +9 -0
  38. package/dist/exceptions/DomainException.d.ts +9 -0
  39. package/dist/exceptions/InfrastructureException.d.ts +17 -0
  40. package/dist/exceptions/MiddlewareDriftException.d.ts +10 -0
  41. package/dist/exceptions/QueueException.d.ts +9 -0
  42. package/dist/exceptions/StorageException.d.ts +9 -0
  43. package/dist/exceptions/StreamException.d.ts +9 -0
  44. package/dist/exceptions/SystemException.d.ts +9 -0
  45. package/dist/exceptions/ValidationException.d.ts +2 -2
  46. package/dist/exceptions/index.d.ts +12 -0
  47. package/dist/ffi/NativeAccelerator.js.map +3 -3
  48. package/dist/ffi/NativeHasher.d.ts +14 -0
  49. package/dist/ffi/NativeHasher.js +24 -1
  50. package/dist/ffi/NativeHasher.js.map +4 -4
  51. package/dist/ffi/cbor-fallback.js.map +1 -1
  52. package/dist/ffi/hash-fallback.d.ts +15 -0
  53. package/dist/ffi/hash-fallback.js +12 -1
  54. package/dist/ffi/hash-fallback.js.map +3 -3
  55. package/dist/ffi/types.d.ts +13 -0
  56. package/dist/ffi/types.js.map +1 -1
  57. package/dist/hooks/types.d.ts +7 -3
  58. package/dist/http/types.d.ts +2 -2
  59. package/dist/index.browser.d.ts +5 -5
  60. package/dist/index.browser.js +190 -47
  61. package/dist/index.browser.js.map +50 -46
  62. package/dist/index.d.ts +17 -7
  63. package/dist/index.js +613 -202
  64. package/dist/index.js.map +82 -68
  65. package/dist/runtime/NativeOrbitDetector.d.ts +59 -0
  66. package/dist/runtime/index.browser.d.ts +1 -1
  67. package/dist/runtime/index.d.ts +7 -0
  68. package/dist/runtime.d.ts +1 -1
  69. package/dist/testing/HttpTester.d.ts +4 -4
  70. package/dist/testing/TestResponse.d.ts +4 -4
  71. package/dist/types.d.ts +3 -3
  72. package/package.json +4 -3
package/dist/index.d.ts CHANGED
@@ -250,7 +250,7 @@ export { type DashboardSnapshot, type ErrorStats, type JobEvent, QueueDashboard,
250
250
  *
251
251
  * @public
252
252
  */
253
- export * from './exceptions';
253
+ export { AuthException, AuthenticationException, AuthorizationException, CacheException, CircularDependencyException, ConfigurationException, DatabaseException, DomainException, type ExceptionOptions, GravitoException, HttpException, InfrastructureException, type InfrastructureExceptionOptions, ModelNotFoundException, QueueException, StorageException, StreamException, SystemException, type ValidationError, ValidationException, } from './exceptions';
254
254
  /**
255
255
  * Global process error handler registration for uncaught exceptions and rejections.
256
256
  *
@@ -320,17 +320,17 @@ export { Arr, abort, abortIf, abortUnless, app, blank, config, DumpDieError, dd,
320
320
  * Helper utilities for data transformation and validation.
321
321
  * @public
322
322
  */
323
- export * from './helpers/data';
323
+ export { type DataPath, dataGet, dataHas, dataSet, type PathSegment } from './helpers/data';
324
324
  /**
325
325
  * Error creation and handling helpers.
326
326
  * @public
327
327
  */
328
- export * from './helpers/errors';
328
+ export { createErrorBag, type ErrorBag, errors, old } from './helpers/errors';
329
329
  /**
330
330
  * HTTP response building helpers.
331
331
  * @public
332
332
  */
333
- export * from './helpers/response';
333
+ export { type ApiFailure, type ApiSuccess, fail, jsonFail, jsonSuccess, ok, } from './helpers/response';
334
334
  /**
335
335
  * Cookie jar and cookie management utilities.
336
336
  *
@@ -477,7 +477,7 @@ export { Event } from './types/events';
477
477
  * Testing utilities and test helpers for unit and integration tests.
478
478
  * @public
479
479
  */
480
- export * from './testing';
480
+ export { createHttpTester, HttpTester, TestResponse } from './testing';
481
481
  /**
482
482
  * Runtime abstraction layer for cross-platform compatibility (Bun, Node, Deno).
483
483
  *
@@ -493,7 +493,17 @@ export * from './testing';
493
493
  * ```
494
494
  * @public
495
495
  */
496
- export { type ArchiveCreateOptions, type ArchiveEntry, type ArchiveExtractOptions, type ArchiveFileInfo, type ArchiveFromDirectoryOptions, archiveFromDirectory, type CompressionOptions, createHtmlRenderCallbacks, createSqliteDatabase, type EscapeHtmlFn, getArchiveAdapter, getCompressionAdapter, getEscapeHtml, getMarkdownAdapter, getPasswordAdapter, getRuntimeAdapter, getRuntimeEnv, getRuntimeKind, type MarkdownRenderCallbacks, type MarkdownRenderOptions, type RuntimeAdapter, type RuntimeArchiveAdapter, type RuntimeCompressionAdapter, type RuntimeFileSink, type RuntimeFileStat, type RuntimeKind, type RuntimeMarkdownAdapter, type RuntimePasswordAdapter, type RuntimeProcess, type RuntimeProcessOutput, type RuntimeResourceUsage, type RuntimeServeConfig, type RuntimeServer, type RuntimeSpawnOptions, type RuntimeSpawnSyncResult, type RuntimeSqliteDatabase, type RuntimeSqliteStatement, resetRuntimeAdapter, toUint8Array, } from './runtime';
496
+ export { type ArchiveCreateOptions, type ArchiveEntry, type ArchiveExtractOptions, type ArchiveFileInfo, type ArchiveFromDirectoryOptions, archiveFromDirectory, type CompressionOptions, createHtmlRenderCallbacks, createSqliteDatabase, type EscapeHtmlFn, getArchiveAdapter, getCompressionAdapter, getEscapeHtml, getMarkdownAdapter, getPasswordAdapter, getRuntimeAdapter, getRuntimeEnv, getRuntimeKind, type MarkdownRenderCallbacks, type MarkdownRenderOptions, type RuntimeAdapter, type RuntimeArchiveAdapter, type RuntimeCompressionAdapter, type RuntimeFileSink, type RuntimeFileStat, type RuntimeKind, type RuntimeMarkdownAdapter, type RuntimePasswordAdapter, type RuntimeProcess, type RuntimeProcessOutput, type RuntimeResourceUsage, type RuntimeServeConfig, type RuntimeServer, type RuntimeSpawnOptions, type RuntimeSpawnSyncResult, type RuntimeSqliteDatabase, type RuntimeSqliteStatement, resetPasswordAdapter, resetRuntimeAdapter, toUint8Array, } from './runtime';
497
+ /**
498
+ * Native Orbit capability detection.
499
+ *
500
+ * Allows any Orbit to query available Bun-native capabilities at boot time
501
+ * without directly importing Bun APIs.
502
+ *
503
+ * @public
504
+ */
505
+ export type { NativeFeatures } from './runtime/NativeOrbitDetector';
506
+ export { formatCapabilityReport, NativeOrbitDetector } from './runtime/NativeOrbitDetector';
497
507
  /**
498
508
  * Runtime helper functions for file system operations.
499
509
  *
@@ -562,4 +572,4 @@ export declare function defineConfig(config: GravitoConfig): GravitoConfig;
562
572
  * Bun platform-specific adapters and utilities.
563
573
  * @public
564
574
  */
565
- export * from './adapters/bun/index';
575
+ export { BunContext, BunRequest, type BunRouteOptions, BunWebSocketHandler, NodeType, RadixNode, RadixRouter, type RouteMatch, type WebSocketRouteHandlers, } from './adapters/bun';