@toa.io/storages.null 1.0.0-alpha.32 → 1.0.0-alpha.321

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 ADDED
@@ -0,0 +1,184 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # [1.0.0-alpha.321](https://github.com/toa-io/toa/compare/v1.0.0-alpha.320...v1.0.0-alpha.321) (2026-09-28)
7
+
8
+ **Note:** Version bump only for package @toa.io/storages.null
9
+
10
+
11
+
12
+
13
+
14
+ # [1.0.0-alpha.320](https://github.com/toa-io/toa/compare/v1.0.0-alpha.319...v1.0.0-alpha.320) (2026-09-28)
15
+
16
+ **Note:** Version bump only for package @toa.io/storages.null
17
+
18
+
19
+
20
+
21
+
22
+ # [1.0.0-alpha.319](https://github.com/toa-io/toa/compare/v1.0.0-alpha.318...v1.0.0-alpha.319) (2026-09-27)
23
+
24
+ **Note:** Version bump only for package @toa.io/storages.null
25
+
26
+
27
+
28
+
29
+
30
+ # [1.0.0-alpha.315](https://github.com/toa-io/toa/compare/v1.0.0-alpha.314...v1.0.0-alpha.315) (2026-09-23)
31
+
32
+ **Note:** Version bump only for package @toa.io/storages.null
33
+
34
+
35
+
36
+
37
+
38
+ # [1.0.0-alpha.314](https://github.com/toa-io/toa/compare/v1.0.0-alpha.313...v1.0.0-alpha.314) (2026-09-19)
39
+
40
+ **Note:** Version bump only for package @toa.io/storages.null
41
+
42
+
43
+
44
+
45
+
46
+ # [1.0.0-alpha.312](https://github.com/toa-io/toa/compare/v1.0.0-alpha.311...v1.0.0-alpha.312) (2026-09-18)
47
+
48
+ **Note:** Version bump only for package @toa.io/storages.null
49
+
50
+
51
+
52
+
53
+
54
+ # [1.0.0-alpha.311](https://github.com/toa-io/toa/compare/v1.0.0-alpha.310...v1.0.0-alpha.311) (2026-09-17)
55
+
56
+ **Note:** Version bump only for package @toa.io/storages.null
57
+
58
+
59
+
60
+
61
+
62
+ # [1.0.0-alpha.310](https://github.com/toa-io/toa/compare/v1.0.0-alpha.309...v1.0.0-alpha.310) (2026-09-16)
63
+
64
+ **Note:** Version bump only for package @toa.io/storages.null
65
+
66
+
67
+
68
+
69
+
70
+ # [1.0.0-alpha.308](https://github.com/toa-io/toa/compare/v1.0.0-alpha.307...v1.0.0-alpha.308) (2026-09-15)
71
+
72
+ **Note:** Version bump only for package @toa.io/storages.null
73
+
74
+
75
+
76
+
77
+
78
+ # [1.0.0-alpha.306](https://github.com/toa-io/toa/compare/v1.0.0-alpha.305...v1.0.0-alpha.306) (2026-09-14)
79
+
80
+ **Note:** Version bump only for package @toa.io/storages.null
81
+
82
+
83
+
84
+
85
+
86
+ # [1.0.0-alpha.305](https://github.com/toa-io/toa/compare/v1.0.0-alpha.304...v1.0.0-alpha.305) (2026-09-13)
87
+
88
+ **Note:** Version bump only for package @toa.io/storages.null
89
+
90
+
91
+
92
+
93
+
94
+ # [1.0.0-alpha.304](https://github.com/toa-io/toa/compare/v1.0.0-alpha.303...v1.0.0-alpha.304) (2026-09-13)
95
+
96
+ **Note:** Version bump only for package @toa.io/storages.null
97
+
98
+
99
+
100
+
101
+
102
+ # [1.0.0-alpha.303](https://github.com/toa-io/toa/compare/v1.0.0-alpha.302...v1.0.0-alpha.303) (2026-09-12)
103
+
104
+ **Note:** Version bump only for package @toa.io/storages.null
105
+
106
+
107
+
108
+
109
+
110
+ # [1.0.0-alpha.302](https://github.com/toa-io/toa/compare/v1.0.0-alpha.301...v1.0.0-alpha.302) (2026-09-11)
111
+
112
+ **Note:** Version bump only for package @toa.io/storages.null
113
+
114
+
115
+
116
+
117
+
118
+ # [1.0.0-alpha.301](https://github.com/toa-io/toa/compare/v1.0.0-alpha.300...v1.0.0-alpha.301) (2026-09-11)
119
+
120
+ **Note:** Version bump only for package @toa.io/storages.null
121
+
122
+
123
+
124
+
125
+
126
+ # [1.0.0-alpha.300](https://github.com/toa-io/toa/compare/v1.0.0-alpha.299...v1.0.0-alpha.300) (2026-09-11)
127
+
128
+ **Note:** Version bump only for package @toa.io/storages.null
129
+
130
+
131
+
132
+
133
+
134
+ # [1.0.0-alpha.299](https://github.com/toa-io/toa/compare/v1.0.0-alpha.298...v1.0.0-alpha.299) (2026-09-10)
135
+
136
+ **Note:** Version bump only for package @toa.io/storages.null
137
+
138
+
139
+
140
+
141
+
142
+ # [1.0.0-alpha.293](https://github.com/toa-io/toa/compare/v1.0.0-alpha.292...v1.0.0-alpha.293) (2026-09-07)
143
+
144
+ **Note:** Version bump only for package @toa.io/storages.null
145
+
146
+
147
+
148
+
149
+
150
+ # [1.0.0-alpha.292](https://github.com/toa-io/toa/compare/v1.0.0-alpha.291...v1.0.0-alpha.292) (2026-09-07)
151
+
152
+ **Note:** Version bump only for package @toa.io/storages.null
153
+
154
+
155
+
156
+
157
+
158
+ # [1.0.0-alpha.291](https://github.com/toa-io/toa/compare/v1.0.0-alpha.290...v1.0.0-alpha.291) (2026-09-07)
159
+
160
+ **Note:** Version bump only for package @toa.io/storages.null
161
+
162
+
163
+
164
+
165
+
166
+ # [1.0.0-alpha.289](https://github.com/toa-io/toa/compare/v1.0.0-alpha.288...v1.0.0-alpha.289) (2026-09-07)
167
+
168
+ **Note:** Version bump only for package @toa.io/storages.null
169
+
170
+
171
+
172
+
173
+
174
+ # [1.0.0-alpha.288](https://github.com/toa-io/toa/compare/v1.0.0-alpha.287...v1.0.0-alpha.288) (2026-09-06)
175
+
176
+ **Note:** Version bump only for package @toa.io/storages.null
177
+
178
+
179
+
180
+
181
+
182
+ # [1.0.0-alpha.287](https://github.com/toa-io/toa/compare/v1.0.0-alpha.286...v1.0.0-alpha.287) (2026-09-06)
183
+
184
+ **Note:** Version bump only for package @toa.io/storages.null
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@toa.io/storages.null",
3
- "version": "1.0.0-alpha.32",
3
+ "version": "1.0.0-alpha.321",
4
+ "type": "module",
4
5
  "description": "Toa Null Storage Connector",
5
6
  "author": "temich <tema.gurtovoy@gmail.com>",
6
7
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -15,11 +16,11 @@
15
16
  "publishConfig": {
16
17
  "access": "public"
17
18
  },
18
- "peerDependencies": {
19
- "@toa.io/core": "*"
20
- },
21
19
  "scripts": {
22
20
  "test": "echo \"Error: run tests from root\" && exit 1"
23
21
  },
24
- "gitHead": "93ceb53797363abb77eb9c550db77e906691d42a"
22
+ "gitHead": "fa850e861a0c748d7364ccf7c8a09ce26973fc04",
23
+ "dependencies": {
24
+ "@toa.io/core": "1.0.0-alpha.321"
25
+ }
25
26
  }
package/src/factory.js CHANGED
@@ -1,14 +1,10 @@
1
- 'use strict'
2
-
3
- const { Storage } = require('./storage')
1
+ import { Storage } from './storage.js'
4
2
 
5
3
  /**
6
- * @implements {toa.core.storages.Factory}
4
+ * @implements {import('@toa.io/core/types').storages.Factory}
7
5
  */
8
- class Factory {
9
- storage (_) {
6
+ export class Factory {
7
+ storage(_) {
10
8
  return new Storage()
11
9
  }
12
10
  }
13
-
14
- exports.Factory = Factory
package/src/index.js CHANGED
@@ -1,5 +1 @@
1
- 'use strict'
2
-
3
- const { Factory } = require('./factory')
4
-
5
- exports.Factory = Factory
1
+ export { Factory } from './factory.js'
package/src/storage.js CHANGED
@@ -1,22 +1,18 @@
1
- 'use strict'
2
-
3
- const { Connector } = require('@toa.io/core')
1
+ import { Connector } from '@toa.io/core'
4
2
 
5
3
  /**
6
- * @implements {toa.core.Storage}
4
+ * @implements {import('@toa.io/core/types').storages.Storage}
7
5
  */
8
- class Storage extends Connector {
9
- async get (_) {
6
+ export class Storage extends Connector {
7
+ async get(_) {
10
8
  return null
11
9
  }
12
10
 
13
- async add (_) {
11
+ async add(_) {
14
12
  return true
15
13
  }
16
14
 
17
- async store (_) {
15
+ async store(_) {
18
16
  return true
19
17
  }
20
18
  }
21
-
22
- exports.Storage = Storage
@@ -1,16 +1,17 @@
1
- 'use strict'
1
+ import { it, before } from 'node:test'
2
+ import assert from 'node:assert/strict'
2
3
 
3
- const { Factory } = require('../src/factory')
4
- const { Storage } = require('../src/storage')
4
+ import { Factory } from '../src/factory.js'
5
+ import { Storage } from '../src/storage.js'
5
6
 
6
7
  let factory
7
8
 
8
- beforeAll(() => {
9
+ before(() => {
9
10
  factory = new Factory()
10
11
  })
11
12
 
12
13
  it('should create storage', () => {
13
14
  const storage = factory.storage()
14
15
 
15
- expect(storage).toBeInstanceOf(Storage)
16
+ assert.ok(storage instanceof Storage)
16
17
  })
@@ -1,7 +1,8 @@
1
- 'use strict'
1
+ import { it } from 'node:test'
2
+ import assert from 'node:assert/strict'
2
3
 
3
- const index = require('../src')
4
+ import * as index from '../src/index.js'
4
5
 
5
6
  it('should export Factory', () => {
6
- expect(index.Factory).toBeDefined()
7
+ assert.notStrictEqual(index.Factory, undefined)
7
8
  })
@@ -1,26 +1,27 @@
1
- 'use strict'
1
+ import { it, before } from 'node:test'
2
+ import assert from 'node:assert/strict'
2
3
 
3
- const { generate } = require('randomstring')
4
+ import { generate } from 'randomstring'
4
5
 
5
- const { Storage } = require('../src/storage')
6
+ import { Storage } from '../src/storage.js'
6
7
 
7
8
  let storage
8
9
 
9
- beforeAll(() => {
10
+ before(() => {
10
11
  storage = new Storage()
11
12
  })
12
13
 
13
14
  it('should get null', async () => {
14
15
  const result = await storage.get()
15
16
 
16
- expect(result).toBeNull()
17
+ assert.strictEqual(result, null)
17
18
  })
18
19
 
19
20
  it('should add', async () => {
20
21
  const object = { id: generate() }
21
22
  const result = await storage.add(object)
22
23
 
23
- expect(result).toStrictEqual(true)
24
+ assert.deepStrictEqual(result, true)
24
25
  })
25
26
 
26
27
  it('should not really add', async () => {
@@ -30,7 +31,7 @@ it('should not really add', async () => {
30
31
 
31
32
  const result = await storage.get({ query: { id: object.id } })
32
33
 
33
- expect(result).toBeNull()
34
+ assert.strictEqual(result, null)
34
35
  })
35
36
 
36
37
  it('should store', async () => {
@@ -38,5 +39,5 @@ it('should store', async () => {
38
39
 
39
40
  const result = await storage.store(object)
40
41
 
41
- expect(result).toStrictEqual(true)
42
+ assert.deepStrictEqual(result, true)
42
43
  })