@avsbhq/node 1.7.1 → 1.7.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/README.md CHANGED
@@ -104,7 +104,7 @@ interface EventOptions {
104
104
 
105
105
  ### SDK keys
106
106
 
107
- Copy the key for the environment you want from app.avsb.cloud, then Settings, then Environments. The format is `sdk_<environment>_<id>`.
107
+ Copy the key for the environment you want from app.avsb.cloud, then Environments in the project sidebar. The format is `sdk_<environment>_<id>`.
108
108
 
109
109
  ```bash
110
110
  AVSB_SDK_KEY=sdk_production_ttqm0eaj4vth1krcb2xn
@@ -471,7 +471,7 @@ actually being served.
471
471
  exactly the steady state of a healthy process.
472
472
  - **Fire and forget**: a failed heartbeat is dropped, never retried, and never
473
473
  affects evaluation.
474
- - **Where it shows up**: Settings, then Environments, in the dashboard. Each
474
+ - **Where it shows up**: Environments in the project sidebar, in the dashboard. Each
475
475
  environment shows Connected, Stale, or Not connected, plus the `sdkType` and
476
476
  `sdkVersion` that last reported, which is how you see "production is running
477
477
  @avsbhq/node 1.6.2". An environment goes Stale after five minutes without a
package/dist/index.cjs CHANGED
@@ -478,7 +478,7 @@ async function fetchDatafile(input) {
478
478
  if (response.status === 304) return { status: "not-modified" };
479
479
  if (!response.ok) {
480
480
  input.logger.error(
481
- `AvsB datafile request failed with HTTP ${response.status} for ${url}. ` + (response.status === 404 ? "That SDK key has no published datafile: check the key belongs to this environment and that the environment has been published at least once (app.avsb.cloud, then Settings, then Environments)." : "The SDK keeps serving whatever datafile it already has and retries on the polling interval.")
481
+ `AvsB datafile request failed with HTTP ${response.status} for ${url}. ` + (response.status === 404 ? "That SDK key has no published datafile: check the key belongs to this environment and that the environment has been published at least once (app.avsb.cloud, then Environments in the project sidebar)." : "The SDK keeps serving whatever datafile it already has and retries on the polling interval.")
482
482
  );
483
483
  return { status: "failed" };
484
484
  }
package/dist/index.d.cts CHANGED
@@ -63,7 +63,7 @@ interface AvsbServerOptions {
63
63
  /**
64
64
  * SDK key for the environment, shaped `sdk_<environment>_<id>`, for example
65
65
  * `sdk_production_ttqm0eaj4vth1krcb2xn`. Copy it from app.avsb.cloud, then
66
- * Settings, then Environments. The shape is checked at construction and an
66
+ * Environments in the project sidebar. The shape is checked at construction and an
67
67
  * unrecognisable value is logged (never thrown) with what looked wrong.
68
68
  */
69
69
  sdkKey: string;
package/dist/index.d.ts CHANGED
@@ -63,7 +63,7 @@ interface AvsbServerOptions {
63
63
  /**
64
64
  * SDK key for the environment, shaped `sdk_<environment>_<id>`, for example
65
65
  * `sdk_production_ttqm0eaj4vth1krcb2xn`. Copy it from app.avsb.cloud, then
66
- * Settings, then Environments. The shape is checked at construction and an
66
+ * Environments in the project sidebar. The shape is checked at construction and an
67
67
  * unrecognisable value is logged (never thrown) with what looked wrong.
68
68
  */
69
69
  sdkKey: string;
package/dist/index.js CHANGED
@@ -437,7 +437,7 @@ async function fetchDatafile(input) {
437
437
  if (response.status === 304) return { status: "not-modified" };
438
438
  if (!response.ok) {
439
439
  input.logger.error(
440
- `AvsB datafile request failed with HTTP ${response.status} for ${url}. ` + (response.status === 404 ? "That SDK key has no published datafile: check the key belongs to this environment and that the environment has been published at least once (app.avsb.cloud, then Settings, then Environments)." : "The SDK keeps serving whatever datafile it already has and retries on the polling interval.")
440
+ `AvsB datafile request failed with HTTP ${response.status} for ${url}. ` + (response.status === 404 ? "That SDK key has no published datafile: check the key belongs to this environment and that the environment has been published at least once (app.avsb.cloud, then Environments in the project sidebar)." : "The SDK keeps serving whatever datafile it already has and retries on the polling interval.")
441
441
  );
442
442
  return { status: "failed" };
443
443
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avsbhq/node",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Node.js server SDK for A vs B feature flags and experiments: per-request contexts, sticky bucketing, decision logs, and batched event delivery.",
5
5
  "keywords": [
6
6
  "avsb",