@goatech/react
v1.0.0
Published
Deprecated — use @sheepit-ai/react. This package re-exports @sheepit-ai/react for backward compatibility.
Downloads
215
Maintainers
Readme
@goatech/react (deprecated)
This package is a backward-compatibility shim. The Sheepit React SDK has moved to @sheepit-ai/react.
All exports are identical — only the package name changed. Swap your dependency:
- "@goatech/react": "^1.0.0"
+ "@sheepit-ai/react": "^1.0.0"If you're on
^0.1.x: this shim publishes as1.0.0, so^0.1.xwill NOT auto-resolve. Change your range to^1.0.0(or migrate directly to@sheepit-ai/react@^1.0.0).
And update your imports:
- import { GoaTechProvider, useFlag, useTrack } from "@goatech/react";
+ import { GoaTechProvider, useFlag, useTrack } from "@sheepit-ai/react";The hook names (useFlag, useExperiment, useTrack, useGoaTech) and component names (GoaTechProvider, Feature, Experiment, PageViewTracker) are all unchanged — only the package import path moves.
This shim will emit a console.warn on import until you migrate (once per JS realm — that's once per main thread, once per worker_thread, once per vm.Context). It will stop receiving updates after 2026-11-26.
Full migration guide: https://www.goatech.ai/docs/migrate-to-sheepit
Publishing this shim (maintainers only)
Order matters. The shim depends on @sheepit-ai/react: workspace:*, which pnpm publish rewrites to a real semver range. That rewrite fails closed if the dependency isn't published yet:
pnpm --filter @sheepit-ai/sdk-js publish --access public— must succeed first (react peer-dep).pnpm --filter @sheepit-ai/react publish --access public— must succeed second.pnpm --filter @goatech/react publish --access public— shim publishes last.npm deprecate "@goatech/react@<2.0.0" "Renamed to @sheepit-ai/react. See README."
Reversing the order publishes the shim with a broken dep.
