@onyx.dev/onyx-database 2.1.0 → 2.1.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.
package/README.md CHANGED
@@ -91,7 +91,7 @@ Set these environment variables for your database:
91
91
 
92
92
  | Variable | Purpose | Default when unset |
93
93
  | --- | --- | --- |
94
- | `ONYX_DATABASE_ID` | Target database ID | required |
94
+ | `ONYX_DATABASE_ID` | Optional database scope for env credentials; omit to use file/profile/default context | optional |
95
95
  | `ONYX_DATABASE_BASE_URL` | Base URL for DB API | `https://api.onyx.dev` |
96
96
  | `ONYX_DATABASE_API_KEY` | API key | required |
97
97
  | `ONYX_DATABASE_API_SECRET` | API secret | required |
@@ -1,5 +1,5 @@
1
1
  var name = "@onyx.dev/onyx-database";
2
- var version = "2.1.0";
2
+ var version = "2.1.1";
3
3
 
4
4
  /**
5
5
  * Supported operators for building query criteria.
@@ -1,5 +1,5 @@
1
1
  var name = "@onyx.dev/onyx-database";
2
- var version = "2.1.0";
2
+ var version = "2.1.1";
3
3
 
4
4
  /**
5
5
  * Supported operators for building query criteria.
package/dist/edge.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  // package.json
4
4
  var name = "@onyx.dev/onyx-database";
5
- var version = "2.1.0";
5
+ var version = "2.1.1";
6
6
 
7
7
  // src/config/defaults.ts
8
8
  var DEFAULT_BASE_URL = "https://api.onyx.dev";
@@ -100,7 +100,6 @@ async function resolveConfig(input) {
100
100
  const maxRetries = retryConfig.maxRetries ?? 3;
101
101
  const retryInitialDelayMs = retryConfig.initialDelayMs ?? 300;
102
102
  const missing = [];
103
- if (!databaseId) missing.push("databaseId");
104
103
  if (!apiKey) missing.push("apiKey");
105
104
  if (!apiSecret) missing.push("apiSecret");
106
105
  if (missing.length) {