@streamr/node 102.2.0-rc.3 → 103.0.0-rc.1
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/dist/package.json +22 -13
- package/package.json +22 -13
- package/bin/delete-expired-data.ts +0 -41
- package/bin/entry-point.ts +0 -27
- package/bin/streamr-node-init.ts +0 -17
- package/bin/streamr-node.ts +0 -35
- package/jest.config.ts +0 -9
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamr/node",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "103.0.0-rc.1",
|
|
4
4
|
"description": "A full-featured node implementation for the Streamr Network",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,6 +15,15 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "./dist/src/exports.js",
|
|
17
17
|
"types": "./dist/src/exports.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"!*.tsbuildinfo",
|
|
21
|
+
"README.md",
|
|
22
|
+
"LICENSE",
|
|
23
|
+
"plugins.md",
|
|
24
|
+
"configs",
|
|
25
|
+
"configuration.md"
|
|
26
|
+
],
|
|
18
27
|
"scripts": {
|
|
19
28
|
"build": "tsc -b tsconfig.node.json",
|
|
20
29
|
"check": "tsc -p ./tsconfig.jest.json",
|
|
@@ -28,15 +37,15 @@
|
|
|
28
37
|
"author": "Streamr Network AG <contact@streamr.network>",
|
|
29
38
|
"license": "STREAMR NETWORK OPEN SOURCE LICENSE",
|
|
30
39
|
"dependencies": {
|
|
31
|
-
"@inquirer/prompts": "^7.3.
|
|
32
|
-
"@streamr/config": "^5.5.
|
|
33
|
-
"@streamr/dht": "
|
|
34
|
-
"@streamr/sdk": "
|
|
35
|
-
"@streamr/utils": "
|
|
40
|
+
"@inquirer/prompts": "^7.3.3",
|
|
41
|
+
"@streamr/config": "^5.5.2",
|
|
42
|
+
"@streamr/dht": "103.0.0-rc.1",
|
|
43
|
+
"@streamr/sdk": "103.0.0-rc.1",
|
|
44
|
+
"@streamr/utils": "103.0.0-rc.1",
|
|
36
45
|
"aedes": "^0.51.3",
|
|
37
46
|
"ajv": "^8.17.1",
|
|
38
47
|
"ajv-formats": "^3.0.1",
|
|
39
|
-
"cassandra-driver": "^4.
|
|
48
|
+
"cassandra-driver": "^4.8.0",
|
|
40
49
|
"chalk": "^4.0.0",
|
|
41
50
|
"commander": "^13.1.0",
|
|
42
51
|
"consistent-hash": "^1.1.1",
|
|
@@ -49,23 +58,23 @@
|
|
|
49
58
|
"merge2": "^1.4.1",
|
|
50
59
|
"p-limit": "^3.1.0",
|
|
51
60
|
"qs": "^6.14.0",
|
|
52
|
-
"uuid": "^11.0
|
|
53
|
-
"ws": "^8.18.
|
|
61
|
+
"uuid": "^11.1.0",
|
|
62
|
+
"ws": "^8.18.1",
|
|
54
63
|
"zod": "^3.24.1"
|
|
55
64
|
},
|
|
56
65
|
"devDependencies": {
|
|
57
|
-
"@inquirer/testing": "^2.1.
|
|
66
|
+
"@inquirer/testing": "^2.1.45",
|
|
58
67
|
"@streamr/network-contracts": "^8.2.0",
|
|
59
|
-
"@streamr/test-utils": "
|
|
68
|
+
"@streamr/test-utils": "103.0.0-rc.1",
|
|
60
69
|
"@types/cors": "^2.8.17",
|
|
61
70
|
"@types/express": "^4.17.21",
|
|
62
71
|
"@types/heap": "^0.2.34",
|
|
63
|
-
"@types/lodash": "^4.17.
|
|
72
|
+
"@types/lodash": "^4.17.16",
|
|
64
73
|
"@types/merge2": "^1.4.4",
|
|
65
74
|
"@types/qs": "^6.9.18",
|
|
66
75
|
"@types/stream-to-array": "^2.3.3",
|
|
67
76
|
"@types/supertest": "^6.0.2",
|
|
68
|
-
"@types/ws": "^8.
|
|
77
|
+
"@types/ws": "^8.18.0",
|
|
69
78
|
"async-mqtt": "^2.6.1",
|
|
70
79
|
"stream-to-array": "^2.3.0",
|
|
71
80
|
"supertest": "^7.0.0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamr/node",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "103.0.0-rc.1",
|
|
4
4
|
"description": "A full-featured node implementation for the Streamr Network",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,6 +15,15 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "./dist/src/exports.js",
|
|
17
17
|
"types": "./dist/src/exports.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"!*.tsbuildinfo",
|
|
21
|
+
"README.md",
|
|
22
|
+
"LICENSE",
|
|
23
|
+
"plugins.md",
|
|
24
|
+
"configs",
|
|
25
|
+
"configuration.md"
|
|
26
|
+
],
|
|
18
27
|
"scripts": {
|
|
19
28
|
"build": "tsc -b tsconfig.node.json",
|
|
20
29
|
"check": "tsc -p ./tsconfig.jest.json",
|
|
@@ -28,15 +37,15 @@
|
|
|
28
37
|
"author": "Streamr Network AG <contact@streamr.network>",
|
|
29
38
|
"license": "STREAMR NETWORK OPEN SOURCE LICENSE",
|
|
30
39
|
"dependencies": {
|
|
31
|
-
"@inquirer/prompts": "^7.3.
|
|
32
|
-
"@streamr/config": "^5.5.
|
|
33
|
-
"@streamr/dht": "
|
|
34
|
-
"@streamr/sdk": "
|
|
35
|
-
"@streamr/utils": "
|
|
40
|
+
"@inquirer/prompts": "^7.3.3",
|
|
41
|
+
"@streamr/config": "^5.5.2",
|
|
42
|
+
"@streamr/dht": "103.0.0-rc.1",
|
|
43
|
+
"@streamr/sdk": "103.0.0-rc.1",
|
|
44
|
+
"@streamr/utils": "103.0.0-rc.1",
|
|
36
45
|
"aedes": "^0.51.3",
|
|
37
46
|
"ajv": "^8.17.1",
|
|
38
47
|
"ajv-formats": "^3.0.1",
|
|
39
|
-
"cassandra-driver": "^4.
|
|
48
|
+
"cassandra-driver": "^4.8.0",
|
|
40
49
|
"chalk": "^4.0.0",
|
|
41
50
|
"commander": "^13.1.0",
|
|
42
51
|
"consistent-hash": "^1.1.1",
|
|
@@ -49,23 +58,23 @@
|
|
|
49
58
|
"merge2": "^1.4.1",
|
|
50
59
|
"p-limit": "^3.1.0",
|
|
51
60
|
"qs": "^6.14.0",
|
|
52
|
-
"uuid": "^11.0
|
|
53
|
-
"ws": "^8.18.
|
|
61
|
+
"uuid": "^11.1.0",
|
|
62
|
+
"ws": "^8.18.1",
|
|
54
63
|
"zod": "^3.24.1"
|
|
55
64
|
},
|
|
56
65
|
"devDependencies": {
|
|
57
|
-
"@inquirer/testing": "^2.1.
|
|
66
|
+
"@inquirer/testing": "^2.1.45",
|
|
58
67
|
"@streamr/network-contracts": "^8.2.0",
|
|
59
|
-
"@streamr/test-utils": "
|
|
68
|
+
"@streamr/test-utils": "103.0.0-rc.1",
|
|
60
69
|
"@types/cors": "^2.8.17",
|
|
61
70
|
"@types/express": "^4.17.21",
|
|
62
71
|
"@types/heap": "^0.2.34",
|
|
63
|
-
"@types/lodash": "^4.17.
|
|
72
|
+
"@types/lodash": "^4.17.16",
|
|
64
73
|
"@types/merge2": "^1.4.4",
|
|
65
74
|
"@types/qs": "^6.9.18",
|
|
66
75
|
"@types/stream-to-array": "^2.3.3",
|
|
67
76
|
"@types/supertest": "^6.0.2",
|
|
68
|
-
"@types/ws": "^8.
|
|
77
|
+
"@types/ws": "^8.18.0",
|
|
69
78
|
"async-mqtt": "^2.6.1",
|
|
70
79
|
"stream-to-array": "^2.3.0",
|
|
71
80
|
"supertest": "^7.0.0"
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { program } from 'commander'
|
|
3
|
-
import pkg from '../package.json'
|
|
4
|
-
import { DeleteExpiredCmd } from '../src/plugins/storage/DeleteExpiredCmd'
|
|
5
|
-
|
|
6
|
-
program
|
|
7
|
-
.version(pkg.version)
|
|
8
|
-
.requiredOption('--cassandra-username <username>')
|
|
9
|
-
.requiredOption('--cassandra-password <password>')
|
|
10
|
-
.requiredOption('--cassandra-hosts <hosts_delimited_by_comma>')
|
|
11
|
-
.requiredOption('--cassandra-datacenter <datacenter>')
|
|
12
|
-
.requiredOption('--cassandra-keyspace <keyspace>')
|
|
13
|
-
.requiredOption('--streamr-base-url <baseUrl>')
|
|
14
|
-
.requiredOption('--bucket-limit <bucketLimit>', 'max number of buckets to fetch')
|
|
15
|
-
.option('--real-run', 'delete data for real', false)
|
|
16
|
-
.description('Delete expired data')
|
|
17
|
-
.parse(process.argv)
|
|
18
|
-
|
|
19
|
-
const deleteExpiredCommand = new DeleteExpiredCmd({
|
|
20
|
-
cassandraUsername: program.opts().cassandraUsername,
|
|
21
|
-
cassandraPassword: program.opts().cassandraPassword,
|
|
22
|
-
cassandraHosts: program.opts().cassandraHosts.split(','),
|
|
23
|
-
cassandraDatacenter: program.opts().cassandraDatacenter,
|
|
24
|
-
cassandraKeyspace: program.opts().cassandraKeyspace,
|
|
25
|
-
streamrBaseUrl: program.opts().streamrBaseUrl,
|
|
26
|
-
bucketLimit: program.opts().bucketLimit,
|
|
27
|
-
dryRun: !program.opts().realRun
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
async function run() {
|
|
31
|
-
try {
|
|
32
|
-
// @ts-expect-error TODO fix
|
|
33
|
-
await deleteExpiredCommand.run()
|
|
34
|
-
return {}
|
|
35
|
-
} catch (err) {
|
|
36
|
-
console.error(err)
|
|
37
|
-
process.exit(1)
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
run()
|
package/bin/entry-point.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { config as CHAIN_CONFIG } from '@streamr/config'
|
|
3
|
-
import { DhtAddress, DhtNode, NodeType, toDhtAddressRaw } from '@streamr/dht'
|
|
4
|
-
|
|
5
|
-
const main = async () => {
|
|
6
|
-
const entryPoint = CHAIN_CONFIG.dev2.entryPoints[0]
|
|
7
|
-
const peerDescriptor = {
|
|
8
|
-
...entryPoint,
|
|
9
|
-
nodeId: toDhtAddressRaw(entryPoint.nodeId as DhtAddress),
|
|
10
|
-
type: NodeType.NODEJS // TODO remove this when NET-1070 done
|
|
11
|
-
}
|
|
12
|
-
const dhtNode = new DhtNode({
|
|
13
|
-
nodeId: entryPoint.nodeId as DhtAddress,
|
|
14
|
-
websocketHost: entryPoint.websocket.host,
|
|
15
|
-
websocketPortRange: {
|
|
16
|
-
min: entryPoint.websocket.port,
|
|
17
|
-
max: entryPoint.websocket.port
|
|
18
|
-
},
|
|
19
|
-
websocketServerEnableTls: false,
|
|
20
|
-
entryPoints: [peerDescriptor]
|
|
21
|
-
})
|
|
22
|
-
await dhtNode.start()
|
|
23
|
-
await dhtNode.joinDht([peerDescriptor])
|
|
24
|
-
console.info('Entry point started')
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
main()
|
package/bin/streamr-node-init.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { program } from 'commander'
|
|
3
|
-
import pkg from '../package.json'
|
|
4
|
-
import { start } from '../src/config/ConfigWizard'
|
|
5
|
-
|
|
6
|
-
program
|
|
7
|
-
.version(pkg.version)
|
|
8
|
-
.name('streamr-node-init')
|
|
9
|
-
.description('Run the configuration wizard for the Streamr node.')
|
|
10
|
-
|
|
11
|
-
;(async () => {
|
|
12
|
-
try {
|
|
13
|
-
await start()
|
|
14
|
-
} catch (e) {
|
|
15
|
-
console.error('Streamr Node Config Wizard encountered an error:\n', e)
|
|
16
|
-
}
|
|
17
|
-
})()
|
package/bin/streamr-node.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { program } from 'commander'
|
|
3
|
-
import pkg from '../package.json'
|
|
4
|
-
|
|
5
|
-
import { createBroker } from '../src/broker'
|
|
6
|
-
import { readConfigAndMigrateIfNeeded } from '../src/config/migration'
|
|
7
|
-
import { overrideConfigToEnvVarsIfGiven } from '../src/config/config'
|
|
8
|
-
|
|
9
|
-
program
|
|
10
|
-
.version(pkg.version)
|
|
11
|
-
.name('streamr-node')
|
|
12
|
-
.description('Run a Streamr node in the environment specified by given configuration file.')
|
|
13
|
-
.arguments('[configFile]')
|
|
14
|
-
.option('--test', 'test the configuration (does not start the node)')
|
|
15
|
-
.action(async (configFile) => {
|
|
16
|
-
try {
|
|
17
|
-
const config = readConfigAndMigrateIfNeeded(configFile)
|
|
18
|
-
overrideConfigToEnvVarsIfGiven(config)
|
|
19
|
-
const broker = await createBroker(config)
|
|
20
|
-
if (!program.opts().test) {
|
|
21
|
-
await broker.start()
|
|
22
|
-
} else {
|
|
23
|
-
console.info('the configuration is valid')
|
|
24
|
-
// TODO remove process.exit(0)
|
|
25
|
-
// We should not need explicit exit call if all setTimeouts are cleared.
|
|
26
|
-
// Currently there is only one leaking timeout in PingPongWs (created
|
|
27
|
-
// by NodeClientWsEndpoint from the createNetworkNode() call)
|
|
28
|
-
process.exit(0)
|
|
29
|
-
}
|
|
30
|
-
} catch (err) {
|
|
31
|
-
console.error(err)
|
|
32
|
-
process.exit(1)
|
|
33
|
-
}
|
|
34
|
-
})
|
|
35
|
-
.parse(process.argv)
|