hono-crud 0.5.1 → 0.5.2

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 CHANGED
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
20
  %b
21
21
  %b
22
22
  %b
23
+ %b
23
24
  ## [0.1.0] - 2025-01-29
24
25
 
25
26
  ### Added
@@ -56,3 +57,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
56
57
  [0.4.4]: https://github.com/kshdotdev/hono-crud/compare/v0.4.3...v0.4.4
57
58
  [0.5.0]: https://github.com/kshdotdev/hono-crud/compare/v0.4.4...v0.5.0
58
59
  [0.5.1]: https://github.com/kshdotdev/hono-crud/compare/v0.5.0...v0.5.1
60
+ [0.5.2]: https://github.com/kshdotdev/hono-crud/compare/v0.5.1...v0.5.2
package/README.md CHANGED
@@ -317,6 +317,24 @@ See [docs/logging.md](./docs/logging.md).
317
317
 
318
318
  See [docs/advanced-features.md](./docs/advanced-features.md) for examples of every feature.
319
319
 
320
+ ### Subpath Imports
321
+
322
+ Every advanced feature is also exposed as a tree-shakeable subpath, so apps that only need one feature can import it directly without pulling in the rest of the library:
323
+
324
+ ```typescript
325
+ import { multiTenant } from 'hono-crud/multi-tenant';
326
+ import { createAuditLogger, MemoryAuditLogStorage } from 'hono-crud/audit';
327
+ import { VersionManager, MemoryVersioningStorage } from 'hono-crud/versioning';
328
+ import { CrudEventEmitter, registerWebhooks } from 'hono-crud/events';
329
+ import { idempotency, MemoryIdempotencyStorage } from 'hono-crud/idempotency';
330
+ import { createHealthEndpoints } from 'hono-crud/health';
331
+ import { encryptFields, decryptFields, StaticKeyProvider } from 'hono-crud/encryption';
332
+ import { applyProfile, type SerializationProfile } from 'hono-crud/serialization';
333
+ import { apiVersion, getApiVersion } from 'hono-crud/api-version';
334
+ ```
335
+
336
+ The same symbols remain available from `'hono-crud'` for convenience.
337
+
320
338
  ## API Documentation
321
339
 
322
340
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono-crud",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "CRUD generator for Hono with Zod validation and OpenAPI generation",
5
5
  "author": "Kauan Guesser <contato@kauan.net>",
6
6
  "license": "MIT",