@carddb/client 0.1.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.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # @carddb/client
2
+
3
+ Shared client logic for CardDB JavaScript clients.
4
+
5
+ > **Note:** This is an internal package. You should use `@carddb/node` or `@carddb/browser` instead.
6
+
7
+ ## Overview
8
+
9
+ This package provides the core client implementation shared between browser and Node.js packages:
10
+
11
+ - **CardDBClient**: Main client class with resource accessors
12
+ - **Connection**: HTTP/GraphQL connection handling
13
+ - **Configuration**: Client configuration management
14
+ - **Resources**: Publisher, Game, Dataset, and Record resource classes
15
+ - **Cache utilities**: Cache key generation and read/write helpers
16
+
17
+ ## Usage
18
+
19
+ This package is used internally by `@carddb/browser` and `@carddb/node`. Those packages re-export everything from this package along with platform-specific cache implementations.
20
+
21
+ ```typescript
22
+ // Don't do this:
23
+ import { CardDBClient } from '@carddb/client'
24
+
25
+ // Do this instead:
26
+ import { CardDBClient } from '@carddb/node'
27
+ // or
28
+ import { CardDBClient } from '@carddb/browser'
29
+ ```
30
+
31
+ ## License
32
+
33
+ MIT