@avsbhq/js
v1.0.0
Published
This package has been renamed to [`@avsbhq/browser`](https://www.npmjs.com/package/@avsbhq/browser).
Readme
@avsbhq/js — Renamed
This package has been renamed to @avsbhq/browser.
Update your dependency now:
npm uninstall @avsbhq/js
npm install @avsbhq/browserWhy the rename?
@avsbhq/js implied "JavaScript only" but the package has always been a browser client — it uses fetch, EventSource, localStorage, and navigator.sendBeacon. The new name @avsbhq/browser reflects that accurately and avoids confusion with the server SDK (@avsbhq/node) or the edge runtime (@avsbhq/edge).
Migration — 12-line change list
| Old | New |
|---|---|
| npm install @avsbhq/js | npm install @avsbhq/browser |
| import { AvsbClient } from '@avsbhq/js' | import { AvsbClient } from '@avsbhq/browser' |
| import type { ... } from '@avsbhq/js' | import type { ... } from '@avsbhq/browser' |
| client.setAttributes(attrs) | client.updateAttributes(attrs) |
| client.getFlag('key', default) → T | client.getBoolFlag('key', default) → Flag<T> |
| client.getFlagDetails('key') | client.getFlag('key', default) (returns Flag<T> directly) |
| client.track('event', { revenue }) | client.track('event', { value }) |
| client.onReady(): Promise<void> | client.onReady(): Promise<InitResult> |
| evaluateFlag (from this package) | import { evaluateFlag } from '@avsbhq/core/engine' |
| evaluateAudience (from this package) | import { evaluateAudience } from '@avsbhq/core/engine' |
| murmurhash3 (from this package) | import { murmurhash3 } from '@avsbhq/core/engine' |
This stub re-exports the @avsbhq/browser surface with a console.warn on import. It will be removed in a future release — migrate now.
Full documentation
See @avsbhq/browser on npm for the complete API reference.
