@twin.org/blob-storage-connector-memory 0.0.1-next.3 → 0.0.1-next.30

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.
@@ -39,5 +39,5 @@ export declare class MemoryBlobStorageConnector implements IBlobStorageConnector
39
39
  */
40
40
  getStore(): {
41
41
  [id: string]: Uint8Array;
42
- } | undefined;
42
+ };
43
43
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @twin.org/blob-storage-connector-memory - Changelog
2
2
 
3
- ## v0.0.1-next.3
3
+ ## [0.0.1-next.30](https://github.com/twinfoundation/blob-storage/compare/blob-storage-connector-memory-v0.0.1-next.29...blob-storage-connector-memory-v0.0.1-next.30) (2025-04-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * use shared store mechanism ([#12](https://github.com/twinfoundation/blob-storage/issues/12)) ([cae8110](https://github.com/twinfoundation/blob-storage/commit/cae8110681847a1ac4fcac968b8196694e49c320))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/blob-storage-models bumped from 0.0.1-next.29 to 0.0.1-next.30
16
+
17
+ ## [0.0.1-next.29](https://github.com/twinfoundation/blob-storage/compare/blob-storage-connector-memory-v0.0.1-next.28...blob-storage-connector-memory-v0.0.1-next.29) (2025-03-28)
18
+
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * **blob-storage-connector-memory:** Synchronize repo versions
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * The following workspace dependencies were updated
28
+ * dependencies
29
+ * @twin.org/blob-storage-models bumped from 0.0.1-next.28 to 0.0.1-next.29
30
+
31
+ ## v0.0.1-next.28
4
32
 
5
33
  - Initial Release
@@ -8,15 +8,15 @@ Class for performing blob storage operations in-memory.
8
8
 
9
9
  ## Constructors
10
10
 
11
- ### new MemoryBlobStorageConnector()
11
+ ### Constructor
12
12
 
13
- > **new MemoryBlobStorageConnector**(): [`MemoryBlobStorageConnector`](MemoryBlobStorageConnector.md)
13
+ > **new MemoryBlobStorageConnector**(): `MemoryBlobStorageConnector`
14
14
 
15
15
  Create a new instance of MemoryBlobStorageConnector.
16
16
 
17
17
  #### Returns
18
18
 
19
- [`MemoryBlobStorageConnector`](MemoryBlobStorageConnector.md)
19
+ `MemoryBlobStorageConnector`
20
20
 
21
21
  ## Properties
22
22
 
@@ -48,7 +48,9 @@ Set the blob.
48
48
 
49
49
  #### Parameters
50
50
 
51
- **blob**: `Uint8Array`
51
+ ##### blob
52
+
53
+ `Uint8Array`
52
54
 
53
55
  The data for the blob.
54
56
 
@@ -66,19 +68,21 @@ The id of the stored blob in urn format.
66
68
 
67
69
  ### get()
68
70
 
69
- > **get**(`id`): `Promise`\<`undefined` \| `Uint8Array`\>
71
+ > **get**(`id`): `Promise`\<`undefined` \| `Uint8Array`\<`ArrayBufferLike`\>\>
70
72
 
71
73
  Get the blob.
72
74
 
73
75
  #### Parameters
74
76
 
75
- **id**: `string`
77
+ ##### id
78
+
79
+ `string`
76
80
 
77
81
  The id of the blob to get in urn format.
78
82
 
79
83
  #### Returns
80
84
 
81
- `Promise`\<`undefined` \| `Uint8Array`\>
85
+ `Promise`\<`undefined` \| `Uint8Array`\<`ArrayBufferLike`\>\>
82
86
 
83
87
  The data for the blob if it can be found or undefined.
84
88
 
@@ -96,7 +100,9 @@ Remove the blob.
96
100
 
97
101
  #### Parameters
98
102
 
99
- **id**: `string`
103
+ ##### id
104
+
105
+ `string`
100
106
 
101
107
  The id of the blob to remove in urn format.
102
108
 
@@ -114,12 +120,12 @@ True if the blob was found.
114
120
 
115
121
  ### getStore()
116
122
 
117
- > **getStore**(): `undefined` \| `object`
123
+ > **getStore**(): `object`
118
124
 
119
125
  Get the memory store.
120
126
 
121
127
  #### Returns
122
128
 
123
- `undefined` \| `object`
129
+ `object`
124
130
 
125
131
  The store.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/blob-storage-connector-memory",
3
- "version": "0.0.1-next.3",
3
+ "version": "0.0.1-next.30",
4
4
  "description": "Blob Storage connector implementation using in-memory storage",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,50 +13,22 @@
13
13
  "engines": {
14
14
  "node": ">=20.0.0"
15
15
  },
16
- "scripts": {
17
- "clean": "rimraf dist coverage docs/reference",
18
- "build": "tspc",
19
- "test": "vitest --run --config ./vitest.config.ts --no-cache",
20
- "coverage": "vitest --run --coverage --config ./vitest.config.ts --no-cache",
21
- "bundle:esm": "rollup --config rollup.config.mjs --environment MODULE:esm",
22
- "bundle:cjs": "rollup --config rollup.config.mjs --environment MODULE:cjs",
23
- "bundle": "npm run bundle:esm && npm run bundle:cjs",
24
- "docs:clean": "rimraf docs/reference",
25
- "docs:generate": "typedoc",
26
- "docs": "npm run docs:clean && npm run docs:generate",
27
- "dist": "npm run clean && npm run build && npm run test && npm run bundle && npm run docs"
28
- },
29
16
  "dependencies": {
30
- "@twin.org/blob-storage-models": "0.0.1-next.3",
17
+ "@twin.org/blob-storage-models": "0.0.1-next.30",
31
18
  "@twin.org/core": "next",
32
19
  "@twin.org/crypto": "next",
33
20
  "@twin.org/nameof": "next"
34
21
  },
35
- "devDependencies": {
36
- "@twin.org/nameof-transformer": "next",
37
- "@vitest/coverage-v8": "2.1.1",
38
- "copyfiles": "2.4.1",
39
- "dotenv": "16.4.5",
40
- "rimraf": "6.0.1",
41
- "rollup": "4.22.0",
42
- "rollup-plugin-copy": "3.5.0",
43
- "rollup-plugin-typescript2": "0.36.0",
44
- "ts-patch": "3.2.1",
45
- "typedoc": "0.26.7",
46
- "typedoc-plugin-markdown": "4.2.7",
47
- "typescript": "5.6.2",
48
- "vitest": "2.1.1"
49
- },
50
22
  "main": "./dist/cjs/index.cjs",
51
23
  "module": "./dist/esm/index.mjs",
52
24
  "types": "./dist/types/index.d.ts",
53
25
  "exports": {
54
26
  ".": {
27
+ "types": "./dist/types/index.d.ts",
55
28
  "require": "./dist/cjs/index.cjs",
56
- "import": "./dist/esm/index.mjs",
57
- "types": "./dist/types/index.d.ts"
29
+ "import": "./dist/esm/index.mjs"
58
30
  },
59
- "./locales": "./locales"
31
+ "./locales/*.json": "./locales/*.json"
60
32
  },
61
33
  "files": [
62
34
  "dist/cjs",