@solana/codecs-data-structures 2.0.0-experimental.eb5fd16 → 2.0.0-experimental.eeb355e

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.
@@ -1,7 +1,7 @@
1
- import { BaseCodecOptions, Codec, Decoder, Encoder } from '@solana/codecs-core';
1
+ import { BaseCodecConfig, Codec, Decoder, Encoder } from '@solana/codecs-core';
2
2
  import { NumberCodec, NumberDecoder, NumberEncoder } from '@solana/codecs-numbers';
3
- /** Defines the options for bytes codecs. */
4
- export type BytesCodecOptions<TSize extends NumberCodec | NumberEncoder | NumberDecoder> = BaseCodecOptions & {
3
+ /** Defines the config for bytes codecs. */
4
+ export type BytesCodecConfig<TSize extends NumberCodec | NumberEncoder | NumberDecoder> = BaseCodecConfig & {
5
5
  /**
6
6
  * The size of the byte array. It can be one of the following:
7
7
  * - a {@link NumberSerializer} that prefixes the byte array with its size.
@@ -14,19 +14,19 @@ export type BytesCodecOptions<TSize extends NumberCodec | NumberEncoder | Number
14
14
  /**
15
15
  * Encodes sized bytes.
16
16
  *
17
- * @param options - A set of options for the encoder.
17
+ * @param config - A set of config for the encoder.
18
18
  */
19
- export declare function getBytesEncoder(options?: BytesCodecOptions<NumberEncoder>): Encoder<Uint8Array>;
19
+ export declare function getBytesEncoder(config?: BytesCodecConfig<NumberEncoder>): Encoder<Uint8Array>;
20
20
  /**
21
21
  * Decodes sized bytes.
22
22
  *
23
- * @param options - A set of options for the decoder.
23
+ * @param config - A set of config for the decoder.
24
24
  */
25
- export declare function getBytesDecoder(options?: BytesCodecOptions<NumberDecoder>): Decoder<Uint8Array>;
25
+ export declare function getBytesDecoder(config?: BytesCodecConfig<NumberDecoder>): Decoder<Uint8Array>;
26
26
  /**
27
27
  * Creates a sized bytes codec.
28
28
  *
29
- * @param options - A set of options for the codec.
29
+ * @param config - A set of config for the codec.
30
30
  */
31
- export declare function getBytesCodec(options?: BytesCodecOptions<NumberCodec>): Codec<Uint8Array>;
31
+ export declare function getBytesCodec(config?: BytesCodecConfig<NumberCodec>): Codec<Uint8Array>;
32
32
  //# sourceMappingURL=bytes.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BaseCodecOptions, Codec, Decoder, Encoder } from '@solana/codecs-core';
1
+ import { BaseCodecConfig, Codec, Decoder, Encoder } from '@solana/codecs-core';
2
2
  import { NumberCodec, NumberDecoder, NumberEncoder } from '@solana/codecs-numbers';
3
3
  /**
4
4
  * Defines a data enum using discriminated union types.
@@ -58,8 +58,8 @@ export type DataEnumToDecoderTuple<T extends DataEnum> = Array<T extends never ?
58
58
  T['__kind'],
59
59
  keyof Omit<T, '__kind'> extends never ? Decoder<Omit<T, '__kind'>> | Decoder<void> : Decoder<Omit<T, '__kind'>>
60
60
  ]>;
61
- /** Defines the options for data enum codecs. */
62
- export type DataEnumCodecOptions<TDiscriminator = NumberCodec | NumberEncoder | NumberDecoder> = BaseCodecOptions & {
61
+ /** Defines the config for data enum codecs. */
62
+ export type DataEnumCodecConfig<TDiscriminator = NumberCodec | NumberEncoder | NumberDecoder> = BaseCodecConfig & {
63
63
  /**
64
64
  * The codec to use for the enum discriminator prefixing the variant.
65
65
  * @defaultValue u8 prefix.
@@ -70,21 +70,21 @@ export type DataEnumCodecOptions<TDiscriminator = NumberCodec | NumberEncoder |
70
70
  * Creates a data enum encoder.
71
71
  *
72
72
  * @param variants - The variant encoders of the data enum.
73
- * @param options - A set of options for the encoder.
73
+ * @param config - A set of config for the encoder.
74
74
  */
75
- export declare function getDataEnumEncoder<T extends DataEnum>(variants: DataEnumToEncoderTuple<T>, options?: DataEnumCodecOptions<NumberEncoder>): Encoder<T>;
75
+ export declare function getDataEnumEncoder<T extends DataEnum>(variants: DataEnumToEncoderTuple<T>, config?: DataEnumCodecConfig<NumberEncoder>): Encoder<T>;
76
76
  /**
77
77
  * Creates a data enum decoder.
78
78
  *
79
79
  * @param variants - The variant decoders of the data enum.
80
- * @param options - A set of options for the decoder.
80
+ * @param config - A set of config for the decoder.
81
81
  */
82
- export declare function getDataEnumDecoder<T extends DataEnum>(variants: DataEnumToDecoderTuple<T>, options?: DataEnumCodecOptions<NumberDecoder>): Decoder<T>;
82
+ export declare function getDataEnumDecoder<T extends DataEnum>(variants: DataEnumToDecoderTuple<T>, config?: DataEnumCodecConfig<NumberDecoder>): Decoder<T>;
83
83
  /**
84
84
  * Creates a data enum codec.
85
85
  *
86
86
  * @param variants - The variant codecs of the data enum.
87
- * @param options - A set of options for the codec.
87
+ * @param config - A set of config for the codec.
88
88
  */
89
- export declare function getDataEnumCodec<T extends DataEnum, U extends T = T>(variants: DataEnumToCodecTuple<T, U>, options?: DataEnumCodecOptions<NumberCodec>): Codec<T, U>;
89
+ export declare function getDataEnumCodec<T extends DataEnum, U extends T = T>(variants: DataEnumToCodecTuple<T, U>, config?: DataEnumCodecConfig<NumberCodec>): Codec<T, U>;
90
90
  //# sourceMappingURL=data-enum.d.ts.map
@@ -1,8 +1,8 @@
1
- import { BaseCodecOptions, Codec, Decoder, Encoder } from '@solana/codecs-core';
1
+ import { BaseCodecConfig, Codec, Decoder, Encoder } from '@solana/codecs-core';
2
2
  import { NumberCodec, NumberDecoder, NumberEncoder } from '@solana/codecs-numbers';
3
3
  import { ArrayLikeCodecSize } from './array-like-codec-size';
4
- /** Defines the options for Map codecs. */
5
- export type MapCodecOptions<TPrefix extends NumberCodec | NumberEncoder | NumberDecoder> = BaseCodecOptions & {
4
+ /** Defines the config for Map codecs. */
5
+ export type MapCodecConfig<TPrefix extends NumberCodec | NumberEncoder | NumberDecoder> = BaseCodecConfig & {
6
6
  /**
7
7
  * The size of the array.
8
8
  * @defaultValue u32 prefix.
@@ -14,23 +14,23 @@ export type MapCodecOptions<TPrefix extends NumberCodec | NumberEncoder | Number
14
14
  *
15
15
  * @param key - The encoder to use for the map's keys.
16
16
  * @param value - The encoder to use for the map's values.
17
- * @param options - A set of options for the encoder.
17
+ * @param config - A set of config for the encoder.
18
18
  */
19
- export declare function getMapEncoder<K, V>(key: Encoder<K>, value: Encoder<V>, options?: MapCodecOptions<NumberEncoder>): Encoder<Map<K, V>>;
19
+ export declare function getMapEncoder<K, V>(key: Encoder<K>, value: Encoder<V>, config?: MapCodecConfig<NumberEncoder>): Encoder<Map<K, V>>;
20
20
  /**
21
21
  * Creates a decoder for a map.
22
22
  *
23
23
  * @param key - The decoder to use for the map's keys.
24
24
  * @param value - The decoder to use for the map's values.
25
- * @param options - A set of options for the decoder.
25
+ * @param config - A set of config for the decoder.
26
26
  */
27
- export declare function getMapDecoder<K, V>(key: Decoder<K>, value: Decoder<V>, options?: MapCodecOptions<NumberDecoder>): Decoder<Map<K, V>>;
27
+ export declare function getMapDecoder<K, V>(key: Decoder<K>, value: Decoder<V>, config?: MapCodecConfig<NumberDecoder>): Decoder<Map<K, V>>;
28
28
  /**
29
29
  * Creates a codec for a map.
30
30
  *
31
31
  * @param key - The codec to use for the map's keys.
32
32
  * @param value - The codec to use for the map's values.
33
- * @param options - A set of options for the codec.
33
+ * @param config - A set of config for the codec.
34
34
  */
35
- export declare function getMapCodec<TK, TV, UK extends TK = TK, UV extends TV = TV>(key: Codec<TK, UK>, value: Codec<TV, UV>, options?: MapCodecOptions<NumberCodec>): Codec<Map<TK, TV>, Map<UK, UV>>;
35
+ export declare function getMapCodec<TK, TV, UK extends TK = TK, UV extends TV = TV>(key: Codec<TK, UK>, value: Codec<TV, UV>, config?: MapCodecConfig<NumberCodec>): Codec<Map<TK, TV>, Map<UK, UV>>;
36
36
  //# sourceMappingURL=map.d.ts.map
@@ -1,7 +1,7 @@
1
- import { BaseCodecOptions, Codec, Decoder, Encoder } from '@solana/codecs-core';
1
+ import { BaseCodecConfig, Codec, Decoder, Encoder } from '@solana/codecs-core';
2
2
  import { NumberCodec, NumberDecoder, NumberEncoder } from '@solana/codecs-numbers';
3
- /** Defines the options for nullable codecs. */
4
- export type NullableCodecOptions<TPrefix extends NumberCodec | NumberEncoder | NumberDecoder> = BaseCodecOptions & {
3
+ /** Defines the config for nullable codecs. */
4
+ export type NullableCodecConfig<TPrefix extends NumberCodec | NumberEncoder | NumberDecoder> = BaseCodecConfig & {
5
5
  /**
6
6
  * The codec to use for the boolean prefix.
7
7
  * @defaultValue u8 prefix.
@@ -21,21 +21,21 @@ export type NullableCodecOptions<TPrefix extends NumberCodec | NumberEncoder | N
21
21
  * Creates a encoder for an optional value using `null` as the `None` value.
22
22
  *
23
23
  * @param item - The encoder to use for the value that may be present.
24
- * @param options - A set of options for the encoder.
24
+ * @param config - A set of config for the encoder.
25
25
  */
26
- export declare function getNullableEncoder<T>(item: Encoder<T>, options?: NullableCodecOptions<NumberEncoder>): Encoder<T | null>;
26
+ export declare function getNullableEncoder<T>(item: Encoder<T>, config?: NullableCodecConfig<NumberEncoder>): Encoder<T | null>;
27
27
  /**
28
28
  * Creates a decoder for an optional value using `null` as the `None` value.
29
29
  *
30
30
  * @param item - The decoder to use for the value that may be present.
31
- * @param options - A set of options for the decoder.
31
+ * @param config - A set of config for the decoder.
32
32
  */
33
- export declare function getNullableDecoder<T>(item: Decoder<T>, options?: NullableCodecOptions<NumberDecoder>): Decoder<T | null>;
33
+ export declare function getNullableDecoder<T>(item: Decoder<T>, config?: NullableCodecConfig<NumberDecoder>): Decoder<T | null>;
34
34
  /**
35
35
  * Creates a codec for an optional value using `null` as the `None` value.
36
36
  *
37
37
  * @param item - The codec to use for the value that may be present.
38
- * @param options - A set of options for the codec.
38
+ * @param config - A set of config for the codec.
39
39
  */
40
- export declare function getNullableCodec<T, U extends T = T>(item: Codec<T, U>, options?: NullableCodecOptions<NumberCodec>): Codec<T | null, U | null>;
40
+ export declare function getNullableCodec<T, U extends T = T>(item: Codec<T, U>, config?: NullableCodecConfig<NumberCodec>): Codec<T | null, U | null>;
41
41
  //# sourceMappingURL=nullable.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BaseCodecOptions, Codec, Decoder, Encoder } from '@solana/codecs-core';
1
+ import { BaseCodecConfig, Codec, Decoder, Encoder } from '@solana/codecs-core';
2
2
  import { NumberCodec, NumberDecoder, NumberEncoder } from '@solana/codecs-numbers';
3
3
  /**
4
4
  * Defines a scalar enum as a type from its constructor.
@@ -12,8 +12,8 @@ import { NumberCodec, NumberDecoder, NumberEncoder } from '@solana/codecs-number
12
12
  export type ScalarEnum<T> = ({
13
13
  [key: number | string]: string | number | T;
14
14
  } | number | T) & NonNullable<unknown>;
15
- /** Defines the options for scalar enum codecs. */
16
- export type ScalarEnumCodecOptions<TDiscriminator extends NumberCodec | NumberEncoder | NumberDecoder> = BaseCodecOptions & {
15
+ /** Defines the config for scalar enum codecs. */
16
+ export type ScalarEnumCodecConfig<TDiscriminator extends NumberCodec | NumberEncoder | NumberDecoder> = BaseCodecConfig & {
17
17
  /**
18
18
  * The codec to use for the enum discriminator.
19
19
  * @defaultValue u8 discriminator.
@@ -24,21 +24,21 @@ export type ScalarEnumCodecOptions<TDiscriminator extends NumberCodec | NumberEn
24
24
  * Creates a scalar enum encoder.
25
25
  *
26
26
  * @param constructor - The constructor of the scalar enum.
27
- * @param options - A set of options for the encoder.
27
+ * @param config - A set of config for the encoder.
28
28
  */
29
- export declare function getScalarEnumEncoder<T>(constructor: ScalarEnum<T>, options?: ScalarEnumCodecOptions<NumberCodec>): Encoder<T>;
29
+ export declare function getScalarEnumEncoder<T>(constructor: ScalarEnum<T>, config?: ScalarEnumCodecConfig<NumberEncoder>): Encoder<T>;
30
30
  /**
31
31
  * Creates a scalar enum decoder.
32
32
  *
33
33
  * @param constructor - The constructor of the scalar enum.
34
- * @param options - A set of options for the decoder.
34
+ * @param config - A set of config for the decoder.
35
35
  */
36
- export declare function getScalarEnumDecoder<T>(constructor: ScalarEnum<T>, options?: ScalarEnumCodecOptions<NumberCodec>): Decoder<T>;
36
+ export declare function getScalarEnumDecoder<T>(constructor: ScalarEnum<T>, config?: ScalarEnumCodecConfig<NumberDecoder>): Decoder<T>;
37
37
  /**
38
38
  * Creates a scalar enum codec.
39
39
  *
40
40
  * @param constructor - The constructor of the scalar enum.
41
- * @param options - A set of options for the codec.
41
+ * @param config - A set of config for the codec.
42
42
  */
43
- export declare function getScalarEnumCodec<T>(constructor: ScalarEnum<T>, options?: ScalarEnumCodecOptions<NumberCodec>): Codec<T>;
43
+ export declare function getScalarEnumCodec<T>(constructor: ScalarEnum<T>, config?: ScalarEnumCodecConfig<NumberCodec>): Codec<T>;
44
44
  //# sourceMappingURL=scalar-enum.d.ts.map
@@ -1,8 +1,8 @@
1
- import { BaseCodecOptions, Codec, Decoder, Encoder } from '@solana/codecs-core';
1
+ import { BaseCodecConfig, Codec, Decoder, Encoder } from '@solana/codecs-core';
2
2
  import { NumberCodec, NumberDecoder, NumberEncoder } from '@solana/codecs-numbers';
3
3
  import { ArrayLikeCodecSize } from './array-like-codec-size';
4
- /** Defines the options for set codecs. */
5
- export type SetCodecOptions<TPrefix extends NumberCodec | NumberEncoder | NumberDecoder> = BaseCodecOptions & {
4
+ /** Defines the config for set codecs. */
5
+ export type SetCodecConfig<TPrefix extends NumberCodec | NumberEncoder | NumberDecoder> = BaseCodecConfig & {
6
6
  /**
7
7
  * The size of the set.
8
8
  * @defaultValue u32 prefix.
@@ -13,21 +13,21 @@ export type SetCodecOptions<TPrefix extends NumberCodec | NumberEncoder | Number
13
13
  * Encodes an set of items.
14
14
  *
15
15
  * @param item - The encoder to use for the set's items.
16
- * @param options - A set of options for the encoder.
16
+ * @param config - A set of config for the encoder.
17
17
  */
18
- export declare function getSetEncoder<T>(item: Encoder<T>, options?: SetCodecOptions<NumberEncoder>): Encoder<Set<T>>;
18
+ export declare function getSetEncoder<T>(item: Encoder<T>, config?: SetCodecConfig<NumberEncoder>): Encoder<Set<T>>;
19
19
  /**
20
20
  * Decodes an set of items.
21
21
  *
22
22
  * @param item - The encoder to use for the set's items.
23
- * @param options - A set of options for the encoder.
23
+ * @param config - A set of config for the encoder.
24
24
  */
25
- export declare function getSetDecoder<T>(item: Decoder<T>, options?: SetCodecOptions<NumberDecoder>): Decoder<Set<T>>;
25
+ export declare function getSetDecoder<T>(item: Decoder<T>, config?: SetCodecConfig<NumberDecoder>): Decoder<Set<T>>;
26
26
  /**
27
27
  * Creates a codec for an set of items.
28
28
  *
29
29
  * @param item - The codec to use for the set's items.
30
- * @param options - A set of options for the codec.
30
+ * @param config - A set of config for the codec.
31
31
  */
32
- export declare function getSetCodec<T, U extends T = T>(item: Codec<T, U>, options?: SetCodecOptions<NumberCodec>): Codec<Set<T>, Set<U>>;
32
+ export declare function getSetCodec<T, U extends T = T>(item: Codec<T, U>, config?: SetCodecConfig<NumberCodec>): Codec<Set<T>, Set<U>>;
33
33
  //# sourceMappingURL=set.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BaseCodecOptions, Codec, Decoder, Encoder } from '@solana/codecs-core';
1
+ import { BaseCodecConfig, Codec, Decoder, Encoder } from '@solana/codecs-core';
2
2
  /** Get the name and encoder of each field in a struct. */
3
3
  export type StructToEncoderTuple<T extends object> = Array<{
4
4
  [K in keyof T]: [K, Encoder<T[K]>];
@@ -11,27 +11,27 @@ export type StructToDecoderTuple<T extends object> = Array<{
11
11
  export type StructToCodecTuple<T extends object, U extends T> = Array<{
12
12
  [K in keyof T]: [K, Codec<T[K], U[K]>];
13
13
  }[keyof T]>;
14
- /** Defines the options for struct codecs. */
15
- export type StructCodecOptions = BaseCodecOptions;
14
+ /** Defines the config for struct codecs. */
15
+ export type StructCodecConfig = BaseCodecConfig;
16
16
  /**
17
17
  * Creates a encoder for a custom object.
18
18
  *
19
19
  * @param fields - The name and encoder of each field.
20
- * @param options - A set of options for the encoder.
20
+ * @param config - A set of config for the encoder.
21
21
  */
22
- export declare function getStructEncoder<T extends object>(fields: StructToEncoderTuple<T>, options?: StructCodecOptions): Encoder<T>;
22
+ export declare function getStructEncoder<T extends object>(fields: StructToEncoderTuple<T>, config?: StructCodecConfig): Encoder<T>;
23
23
  /**
24
24
  * Creates a decoder for a custom object.
25
25
  *
26
26
  * @param fields - The name and decoder of each field.
27
- * @param options - A set of options for the decoder.
27
+ * @param config - A set of config for the decoder.
28
28
  */
29
- export declare function getStructDecoder<T extends object>(fields: StructToDecoderTuple<T>, options?: StructCodecOptions): Decoder<T>;
29
+ export declare function getStructDecoder<T extends object>(fields: StructToDecoderTuple<T>, config?: StructCodecConfig): Decoder<T>;
30
30
  /**
31
31
  * Creates a codec for a custom object.
32
32
  *
33
33
  * @param fields - The name and codec of each field.
34
- * @param options - A set of options for the codec.
34
+ * @param config - A set of config for the codec.
35
35
  */
36
- export declare function getStructCodec<T extends object, U extends T = T>(fields: StructToCodecTuple<T, U>, options?: StructCodecOptions): Codec<T, U>;
36
+ export declare function getStructCodec<T extends object, U extends T = T>(fields: StructToCodecTuple<T, U>, config?: StructCodecConfig): Codec<T, U>;
37
37
  //# sourceMappingURL=struct.d.ts.map
@@ -1,6 +1,6 @@
1
- import { BaseCodecOptions, Codec, Decoder, Encoder } from '@solana/codecs-core';
2
- /** Defines the options for tuple codecs. */
3
- export type TupleCodecOptions = BaseCodecOptions;
1
+ import { BaseCodecConfig, Codec, Decoder, Encoder } from '@solana/codecs-core';
2
+ /** Defines the config for tuple codecs. */
3
+ export type TupleCodecConfig = BaseCodecConfig;
4
4
  type WrapInEncoder<T> = {
5
5
  [P in keyof T]: Encoder<T[P]>;
6
6
  };
@@ -15,22 +15,22 @@ type AnyArray = any[];
15
15
  * Creates a encoder for a tuple-like array.
16
16
  *
17
17
  * @param items - The encoders to use for each item in the tuple.
18
- * @param options - A set of options for the encoder.
18
+ * @param config - A set of config for the encoder.
19
19
  */
20
- export declare function getTupleEncoder<T extends AnyArray>(items: WrapInEncoder<[...T]>, options?: TupleCodecOptions): Encoder<T>;
20
+ export declare function getTupleEncoder<T extends AnyArray>(items: WrapInEncoder<[...T]>, config?: TupleCodecConfig): Encoder<T>;
21
21
  /**
22
22
  * Creates a decoder for a tuple-like array.
23
23
  *
24
24
  * @param items - The decoders to use for each item in the tuple.
25
- * @param options - A set of options for the decoder.
25
+ * @param config - A set of config for the decoder.
26
26
  */
27
- export declare function getTupleDecoder<T extends AnyArray>(items: WrapInDecoder<[...T]>, options?: TupleCodecOptions): Decoder<T>;
27
+ export declare function getTupleDecoder<T extends AnyArray>(items: WrapInDecoder<[...T]>, config?: TupleCodecConfig): Decoder<T>;
28
28
  /**
29
29
  * Creates a codec for a tuple-like array.
30
30
  *
31
31
  * @param items - The codecs to use for each item in the tuple.
32
- * @param options - A set of options for the codec.
32
+ * @param config - A set of config for the codec.
33
33
  */
34
- export declare function getTupleCodec<T extends AnyArray, U extends T = T>(items: WrapInCodec<[...T], [...U]>, options?: TupleCodecOptions): Codec<T, U>;
34
+ export declare function getTupleCodec<T extends AnyArray, U extends T = T>(items: WrapInCodec<[...T], [...U]>, config?: TupleCodecConfig): Codec<T, U>;
35
35
  export {};
36
36
  //# sourceMappingURL=tuple.d.ts.map
@@ -1,22 +1,22 @@
1
- import { BaseCodecOptions, Codec, Decoder, Encoder } from '@solana/codecs-core';
2
- /** Defines the options for unit codecs. */
3
- export type UnitSerializerOptions = BaseCodecOptions;
1
+ import { BaseCodecConfig, Codec, Decoder, Encoder } from '@solana/codecs-core';
2
+ /** Defines the config for unit codecs. */
3
+ export type UnitSerializerconfig = BaseCodecConfig;
4
4
  /**
5
5
  * Creates a void encoder.
6
6
  *
7
- * @param options - A set of options for the encoder.
7
+ * @param config - A set of config for the encoder.
8
8
  */
9
- export declare function getUnitEncoder(options?: UnitSerializerOptions): Encoder<void>;
9
+ export declare function getUnitEncoder(config?: UnitSerializerconfig): Encoder<void>;
10
10
  /**
11
11
  * Creates a void decoder.
12
12
  *
13
- * @param options - A set of options for the decoder.
13
+ * @param config - A set of config for the decoder.
14
14
  */
15
- export declare function getUnitDecoder(options?: UnitSerializerOptions): Decoder<void>;
15
+ export declare function getUnitDecoder(config?: UnitSerializerconfig): Decoder<void>;
16
16
  /**
17
17
  * Creates a void codec.
18
18
  *
19
- * @param options - A set of options for the codec.
19
+ * @param config - A set of config for the codec.
20
20
  */
21
- export declare function getUnitCodec(options?: UnitSerializerOptions): Codec<void>;
21
+ export declare function getUnitCodec(config?: UnitSerializerconfig): Codec<void>;
22
22
  //# sourceMappingURL=unit.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/codecs-data-structures",
3
- "version": "2.0.0-experimental.eb5fd16",
3
+ "version": "2.0.0-experimental.eeb355e",
4
4
  "description": "Codecs for various data structures",
5
5
  "exports": {
6
6
  "browser": {
@@ -49,28 +49,28 @@
49
49
  "node": ">=17.4"
50
50
  },
51
51
  "dependencies": {
52
- "@solana/codecs-core": "2.0.0-experimental.eb5fd16",
53
- "@solana/codecs-numbers": "2.0.0-experimental.eb5fd16"
52
+ "@solana/codecs-core": "2.0.0-experimental.eeb355e",
53
+ "@solana/codecs-numbers": "2.0.0-experimental.eeb355e"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@solana/eslint-config-solana": "^1.0.2",
57
- "@swc/jest": "^0.2.28",
58
- "@types/jest": "^29.5.5",
57
+ "@swc/jest": "^0.2.29",
58
+ "@types/jest": "^29.5.6",
59
59
  "@typescript-eslint/eslint-plugin": "^6.7.0",
60
60
  "@typescript-eslint/parser": "^6.3.0",
61
61
  "agadoo": "^3.0.0",
62
62
  "eslint": "^8.45.0",
63
- "eslint-plugin-jest": "^27.2.3",
63
+ "eslint-plugin-jest": "^27.4.2",
64
64
  "eslint-plugin-sort-keys-fix": "^1.1.2",
65
65
  "jest": "^29.7.0",
66
- "jest-environment-jsdom": "^29.6.4",
67
- "jest-runner-eslint": "^2.1.0",
66
+ "jest-environment-jsdom": "^29.7.0",
67
+ "jest-runner-eslint": "^2.1.2",
68
68
  "jest-runner-prettier": "^1.0.0",
69
69
  "prettier": "^2.8",
70
70
  "tsup": "7.2.0",
71
71
  "typescript": "^5.2.2",
72
72
  "version-from-git": "^1.1.1",
73
- "@solana/codecs-strings": "2.0.0-experimental.eb5fd16",
73
+ "@solana/codecs-strings": "2.0.0-experimental.eeb355e",
74
74
  "build-scripts": "0.0.0",
75
75
  "test-config": "0.0.0",
76
76
  "tsconfig": "0.0.0"
@@ -88,7 +88,7 @@
88
88
  "compile:typedefs": "tsc -p ./tsconfig.declarations.json",
89
89
  "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
90
90
  "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
91
- "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
91
+ "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
92
92
  "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
93
93
  "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
94
94
  "test:treeshakability:browser": "agadoo dist/index.browser.js",