@streamr/cli-tools 8.0.1 → 8.0.3-beta.0

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 CHANGED
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+
7
8
  ## [Unreleased]
8
9
 
9
10
  ### Added
@@ -18,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
18
19
 
19
20
  ### Security
20
21
 
22
+
21
23
  ## [7.0.0] - 2022-11-15
22
24
 
23
25
  ### Changed
@@ -40,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
40
42
 
41
43
 
42
44
  ## [6.0.0] - 2022-02-23
45
+
43
46
  - Add new command `stream wallet whoami` to display Ethereum address
44
47
  - (Breaking) `stream create` argument is a stream ID, not a name
45
48
  - Support path notation when defining a stream ID
@@ -66,7 +69,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
69
  - Remove `typescript` and `ts-node` as run-time dependencies
67
70
  - (Breaking) Remove `--msg-chain-id` parameter from `stream resend from`
68
71
 
72
+
69
73
  ## [5.0.0] - 2021-05-05
74
+
70
75
  ### Added
71
76
  - Add storage node commands under `streamr storage-node`
72
77
 
@@ -84,41 +89,58 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
84
89
  - Bump dependency streamr-client to 5.2.1
85
90
  - Bump dependency commander to 7.2.0
86
91
 
92
+
87
93
  ## [4.1.1] - 2021-02-11
94
+
88
95
  ### Changed
89
96
  - Bump dependency streamr-client to 5.0.0-beta.6
90
97
  - Bump dependency commander to ^6.1.0
91
98
 
99
+
92
100
  ## [4.1.0] - 2020-10-12
101
+
93
102
  ### Changed
94
103
  - Bump dependency streamr-client to ^4.1.1.
95
104
  - Turn option `--privateKey` into `--private-key` for consistency.
96
105
  - Turn `--apiKey` into `--api-key` for consistency.
97
106
 
107
+
98
108
  ## [4.0.0] - 2020-06-18
109
+
99
110
  ### Added
111
+
100
112
  - Ethereum authentication with `--privateKey <key>`. This also enables message signing when publishing messages.
101
113
 
102
114
  ### Changed
115
+
103
116
  - (Breaking) Rename command `listen` to `subscribe`.
104
117
  - (Breaking) API key is now given with `--apiKey <key>`. API keys are deprecated. Option `--privateKey` should be preferred.
105
118
 
106
119
  ## [3.1.1] - 2020-04-16
120
+
107
121
  ### Added
122
+
108
123
  - Add `--subscribe` flag to commands `streamr resend from` and `streamr resend last`. This causes the command to resend and subscribe.
109
124
 
110
125
  ### Changed
126
+
111
127
  - Bump dependency streamr-client to ^3.1.3.
112
128
 
129
+
113
130
  ## [3.1.0] - 2019-12-12
131
+
114
132
  ### Added
133
+
115
134
  - Add `--disable-ordering` flag to command `streamr listen` for disabling
116
135
  ordering and gap filling.
117
136
  - Add `--disable-ordering` flag to commands `streamr resend *` to disabling
118
137
  ordering and gap filling.
119
138
 
139
+
120
140
  ## [3.0.1] - 2019-10-14
141
+
121
142
  ### Added
143
+
122
144
  - Start keeping a CHANGELOG.md.
123
145
 
124
146
  ### Changed
@@ -126,6 +148,7 @@ ordering and gap filling.
126
148
  - Bump dependency commander to ^4.0.1.
127
149
  - Re-organize README.md and a few touches to Developing section paragraphs.
128
150
 
151
+
129
152
  [Unreleased]: https://github.com/streamr-dev/network/compare/cli-tools%2fv7.0.0...HEAD
130
153
  [7.0.0]: https://github.com/streamr-dev/network/compare/cli-tools%2fv6.1.1...cli-tools%2fv7.0.0
131
154
  [6.1.1]: https://github.com/streamr-dev/network/compare/cli-tools%2fv6.1.0...cli-tools%2fv6.1.1
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamr/cli-tools",
3
- "version": "8.0.1",
3
+ "version": "8.0.3-beta.0",
4
4
  "description": "Command line tools for Streamr",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,12 +28,12 @@
28
28
  "dependencies": {
29
29
  "@ethersproject/wallet": "^5.5.0",
30
30
  "@snapshot-labs/snapshot.js": "^0.4.43",
31
- "@streamr/utils": "8.0.1",
31
+ "@streamr/utils": "8.0.3-beta.0",
32
32
  "commander": "^8.3.0",
33
33
  "easy-table": "^1.1.1",
34
34
  "event-stream": "^4.0.1",
35
35
  "lodash": "^4.17.21",
36
- "streamr-client": "8.0.1"
36
+ "streamr-client": "8.0.3-beta.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/easy-table": "0.0.32",
@@ -1,14 +1,18 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.createClient = exports.getClientConfig = void 0;
4
- const lodash_1 = require("lodash");
7
+ const omit_1 = __importDefault(require("lodash/omit"));
8
+ const merge_1 = __importDefault(require("lodash/merge"));
5
9
  const streamr_client_1 = require("streamr-client");
6
10
  const config_1 = require("./config");
7
11
  const getClientConfig = (commandLineArgs, overridenOptions = {}) => {
8
- const environmentOptions = (commandLineArgs.dev !== undefined) ? (0, lodash_1.omit)(streamr_client_1.CONFIG_TEST, 'auth') : undefined;
12
+ const environmentOptions = (commandLineArgs.dev !== undefined) ? (0, omit_1.default)(streamr_client_1.CONFIG_TEST, 'auth') : undefined;
9
13
  const configFileJson = (0, config_1.getConfig)(commandLineArgs.config)?.client;
10
14
  const authenticationOptions = (commandLineArgs.privateKey !== undefined) ? { auth: { privateKey: commandLineArgs.privateKey } } : undefined;
11
- return (0, lodash_1.merge)(environmentOptions, configFileJson, authenticationOptions, overridenOptions);
15
+ return (0, merge_1.default)(environmentOptions, configFileJson, authenticationOptions, overridenOptions);
12
16
  };
13
17
  exports.getClientConfig = getClientConfig;
14
18
  const addInterruptHandler = (client) => {
@@ -1 +1 @@
1
- {"version":3,"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IAAA,uBAAe,EAAC,eAAe,EAAE,gBAAgB,CAAC,CAAA;IACjE,MAAM,MAAM,GAAG,IAAI,8BAAa,CAAC,MAAM,CAAC,CAAA;IACxC,mBAAmB,CAAC,MAAM,CAAC,CAAA;IAC3B,OAAO,MAAM,CAAA;AACjB,CAAC,CAAA;AALY,QAAA,YAAY,gBAKxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamr/cli-tools",
3
- "version": "8.0.1",
3
+ "version": "8.0.3-beta.0",
4
4
  "description": "Command line tools for Streamr",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,12 +28,12 @@
28
28
  "dependencies": {
29
29
  "@ethersproject/wallet": "^5.5.0",
30
30
  "@snapshot-labs/snapshot.js": "^0.4.43",
31
- "@streamr/utils": "8.0.1",
31
+ "@streamr/utils": "8.0.3-beta.0",
32
32
  "commander": "^8.3.0",
33
33
  "easy-table": "^1.1.1",
34
34
  "event-stream": "^4.0.1",
35
35
  "lodash": "^4.17.21",
36
- "streamr-client": "8.0.1"
36
+ "streamr-client": "8.0.3-beta.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/easy-table": "0.0.32",
package/src/client.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { merge, omit } from 'lodash'
1
+ import omit from 'lodash/omit'
2
+ import merge from 'lodash/merge'
2
3
  import { StreamrClientConfig, StreamrClient, CONFIG_TEST } from 'streamr-client'
3
4
  import { GlobalCommandLineArgs } from './common'
4
5
  import { getConfig } from './config'