Cognite Javascript SDK beta
The package @cognite/sdk-beta
provides convenient access to the beta version of the Cognite API.
Setup is very similar to stable,
but use the following command to install:
$ yarn add @cognite/sdk@npm:@cognite/sdk-beta
or with npm
$ npm install @cognite/sdk@npm:@cognite/sdk-beta --save
This will install the package @cognite/sdk-beta
as a dependency, but aliased as @cognite/sdk
.
In package.json
, it will look like this:
"@cognite/sdk": "npm:@cognite/sdk-beta@^X.X.X"
This will download @cognite/sdk-beta
and pretend it is @cognite/sdk
.
With the beta package installed under an alias, you don't need to modify your code
to access beta features. Import the CogniteClient
as you normally would:
import { CogniteClient } from '@congite/sdk';
Documentation
When you import CogniteClient
from the beta sdk, you will in reality get the subclass CogniteClientBeta
.
See the reference doc here.
The beta API is mostly a superset of stable. See the stable readme.