@i2analyze/notebook-sdk 1.1.0-dev.30 → 1.1.0-dev.31
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/CHANGELOG.md +23 -0
- package/lib/gen/notebook-sdk-public.d.ts +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @i2analyze/notebook-sdk
|
|
2
2
|
|
|
3
|
+
## 1.1.0-dev.31
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Deprecated `toolview.SerializableValue` which will be removed in the future. Usages have been replaced with the type `unknown` to make it easier to get and set values within the volatile store.
|
|
8
|
+
|
|
9
|
+
E.g.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
interface IData {
|
|
13
|
+
someString: string;
|
|
14
|
+
someNumber: number;
|
|
15
|
+
someOptionalBoolean?: boolean;
|
|
16
|
+
}
|
|
17
|
+
let toolView: toolview.IToolView = getToolView();
|
|
18
|
+
|
|
19
|
+
// Getting a value of type IData.
|
|
20
|
+
const myData = toolView.volatileStore.get<IData>('myKey');
|
|
21
|
+
|
|
22
|
+
// Setting a value of type IData.
|
|
23
|
+
toolView.volatileStore.set('myKey', myData);
|
|
24
|
+
```
|
|
25
|
+
|
|
3
26
|
## 1.1.0-dev.30
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
|
@@ -3953,6 +3953,7 @@ export declare namespace toolview {
|
|
|
3953
3953
|
* @remarks
|
|
3954
3954
|
* Serializable values are constrained to the logical types that are listed in the definition.
|
|
3955
3955
|
* @i2since 1.0
|
|
3956
|
+
* @deprecated toolview.SerializableValue is no longer used as usages have been replaced with 'unknown'
|
|
3956
3957
|
*/
|
|
3957
3958
|
export type SerializableValue = string | number | boolean | null | BigInt | Date | SerializableValue[] | {
|
|
3958
3959
|
[key: string]: SerializableValue;
|
|
@@ -3989,7 +3990,7 @@ export declare namespace toolview {
|
|
|
3989
3990
|
* @returns The stored value, or `undefined` if the key does not exist in the store.
|
|
3990
3991
|
* @i2since 1.0
|
|
3991
3992
|
*/
|
|
3992
|
-
get<TValue
|
|
3993
|
+
get<TValue = unknown>(key: string): TValue | undefined;
|
|
3993
3994
|
/**
|
|
3994
3995
|
* Creates or updates a key in the volatile store.
|
|
3995
3996
|
*
|
|
@@ -3997,7 +3998,7 @@ export declare namespace toolview {
|
|
|
3997
3998
|
* @param value - The new value for the key.
|
|
3998
3999
|
* @i2since 1.0
|
|
3999
4000
|
*/
|
|
4000
|
-
set(key: string, value:
|
|
4001
|
+
set(key: string, value: unknown): void;
|
|
4001
4002
|
/**
|
|
4002
4003
|
* Deletes a key from the volatile store.
|
|
4003
4004
|
*
|