cognite-create 0.2.21 → 0.2.22
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/package.json
CHANGED
|
@@ -41,3 +41,13 @@ export const getToken = async (clientId: string, clientSecret: string) => {
|
|
|
41
41
|
Always run `pnpm lint` after you make changes to make sure you have fixed all potential errors.
|
|
42
42
|
|
|
43
43
|
Make sure all client and server components are handled properly and you are not passing client events from server components.
|
|
44
|
+
|
|
45
|
+
Security Fix: Moved Cognite SDK authentication to server-side API routes (/api/cognite/*) to keep client secrets secure, with client-side service using fetch() calls to these routes.
|
|
46
|
+
|
|
47
|
+
Date Format Fix: Converted Date objects to Unix timestamps (milliseconds) before sending to Cognite API, as it doesn't accept ISO strings.
|
|
48
|
+
|
|
49
|
+
Granularity/Aggregates Fix: Ensured aggregates are always provided when granularity is specified (Cognite API requirement), defaulting to "average" aggregation.
|
|
50
|
+
|
|
51
|
+
Aggregated Data Display: Updated chart component to handle both regular datapoints (value) and aggregated datapoints (average, max, min, etc.) since granularity returns aggregated data.
|
|
52
|
+
|
|
53
|
+
UI Enhancement: Replaced search dialog with dropdown interface for time series selection, providing better UX with automatic loading and filtering of available time series.
|
package/templates/.env.example
CHANGED