@junobuild/cli 0.1.2 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "The Juno command-line interface",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",
@@ -18,48 +18,48 @@
18
18
  "scripts": {
19
19
  "format": "prettier . --write",
20
20
  "format:check": "prettier --check .",
21
- "build": "tsc --noEmit && node rmdir.mjs && node esbuild.mjs",
22
- "dev": "node rmdir.mjs && NODE_ENV=development node esbuild.mjs",
23
- "lint": "eslint --max-warnings 0 \"src/**/*\""
21
+ "build": "tsc --noEmit && node ./scripts/rmdir.mjs && node ./scripts/esbuild.mjs",
22
+ "dev": "node ./scripts/rmdir.mjs && NODE_ENV=development node ./scripts/esbuild.mjs",
23
+ "lint": "eslint --max-warnings 0 \"src/**/*\"",
24
+ "prepublishOnly": "./scripts/prepublish.sh"
24
25
  },
25
26
  "dependencies": {
26
- "@dfinity/agent": "^2.1.3",
27
- "@dfinity/auth-client": "^2.1.3",
28
- "@dfinity/candid": "^2.1.3",
29
- "@dfinity/ic-management": "^6.0.1",
30
- "@dfinity/identity": "^2.1.3",
31
- "@dfinity/principal": "^2.1.3",
32
- "@junobuild/admin": "^0.0.61",
33
- "@junobuild/cli-tools": "^0.0.16",
34
- "@junobuild/config-loader": "^0.0.7",
35
- "@junobuild/core": "^0.1.0",
36
- "@junobuild/did-tools": "^0.0.5",
37
- "@junobuild/utils": "^0.0.27",
38
- "conf": "^13.0.1",
27
+ "@dfinity/agent": "^2.3.0",
28
+ "@dfinity/auth-client": "^2.3.0",
29
+ "@dfinity/candid": "^2.3.0",
30
+ "@dfinity/ic-management": "^6.0.4",
31
+ "@dfinity/identity": "^2.3.0",
32
+ "@dfinity/principal": "^2.3.0",
33
+ "@junobuild/admin": "^0.1.5",
34
+ "@junobuild/cli-tools": "^0.1.1",
35
+ "@junobuild/config-loader": "^0.1.1",
36
+ "@junobuild/core": "^0.1.7",
37
+ "@junobuild/did-tools": "^0.1.0",
38
+ "@junobuild/utils": "^0.1.0",
39
+ "conf": "^13.1.0",
39
40
  "open": "^10.1.0",
40
- "ora": "^8.1.1",
41
+ "ora": "^8.2.0",
41
42
  "portfinder": "^1.0.32",
42
43
  "prompts": "^2.4.2",
43
- "semver": "^7.6.3",
44
+ "semver": "^7.7.1",
44
45
  "terminal-link": "^3.0.0"
45
46
  },
46
47
  "devDependencies": {
47
- "@junobuild/config": "^0.0.17",
48
+ "@eslint/eslintrc": "^3.2.0",
49
+ "@eslint/js": "^9.20.0",
50
+ "@junobuild/config": "^0.1.1",
51
+ "@types/node": "^22.13.1",
48
52
  "@types/prompts": "^2.4.9",
49
53
  "@types/semver": "^7.5.8",
50
- "@typescript-eslint/eslint-plugin": "^6.20.0",
51
- "dotenv": "^16.4.5",
52
- "esbuild": "^0.24.0",
53
- "eslint": "^8.57.0",
54
- "eslint-config-prettier": "^9.1.0",
55
- "eslint-config-standard-with-typescript": "^43.0.1",
56
- "eslint-plugin-import": "^2.29.1",
57
- "eslint-plugin-n": "^16.6.2",
58
- "eslint-plugin-prettier": "^5.2.1",
59
- "eslint-plugin-promise": "^6.1.1",
60
- "prettier": "^3.3.3",
54
+ "dotenv": "^16.4.7",
55
+ "esbuild": "^0.25.0",
56
+ "eslint": "^9.20.1",
57
+ "eslint-config-love": "^118.0.0",
58
+ "eslint-config-prettier": "^10.0.1",
59
+ "globals": "^15.14.0",
60
+ "prettier": "^3.5.0",
61
61
  "prettier-plugin-organize-imports": "^4.1.0",
62
- "typescript": "^5.5.4"
62
+ "typescript": "^5.7.3"
63
63
  },
64
64
  "repository": {
65
65
  "type": "git",
@@ -7,12 +7,12 @@ edition = "2021"
7
7
  crate-type = ["cdylib"]
8
8
 
9
9
  [dependencies]
10
- candid = "0.10.2"
11
- ic-cdk = "0.17.0"
12
- ic-cdk-macros = "0.17.0"
13
- serde = "1.0.190"
10
+ candid = "0.10.13"
11
+ ic-cdk = "0.17.1"
12
+ ic-cdk-macros = "0.17.1"
13
+ serde = "1.0.217"
14
14
  serde_cbor = "0.11.2"
15
- junobuild-satellite = "= 0.0.21-patch.1"
16
- junobuild-macros = "0.0.3"
15
+ junobuild-satellite = "= 0.0.22"
16
+ junobuild-macros = "0.0.4"
17
17
  junobuild-utils = "0.0.4"
18
18
 
@@ -1,3 +1,18 @@
1
+ // This file was automatically generated by the Juno CLI.
2
+ // Any modifications may be overwritten.
3
+
4
+ import service "satellite_extension.did";
5
+
6
+ // This file was automatically generated by the Juno CLI.
7
+ // Any modifications may be overwritten.
8
+
9
+ import service "satellite_extension.did";
10
+
11
+ // This file was automatically generated by the Juno CLI.
12
+ // Any modifications may be overwritten.
13
+
14
+ import service "satellite_extension.did";
15
+
1
16
  type AssetEncodingNoContent = record {
2
17
  modified : nat64;
3
18
  sha256 : blob;
@@ -24,7 +39,9 @@ type AuthenticationConfig = record {
24
39
  };
25
40
  type AuthenticationConfigInternetIdentity = record {
26
41
  derivation_origin : opt text;
42
+ external_alternative_origins : opt vec text;
27
43
  };
44
+ type CollectionType = variant { Db; Storage };
28
45
  type CommitBatch = record {
29
46
  batch_id : nat;
30
47
  headers : vec record { text; text };
@@ -129,8 +146,8 @@ type Rule = record {
129
146
  mutable_permissions : opt bool;
130
147
  rate_config : opt RateConfig;
131
148
  write : Permission;
149
+ max_changes_per_user : opt nat32;
132
150
  };
133
- type RulesType = variant { Db; Storage };
134
151
  type SetController = record {
135
152
  metadata : vec record { text; text };
136
153
  scope : ControllerScope;
@@ -154,6 +171,7 @@ type SetRule = record {
154
171
  mutable_permissions : opt bool;
155
172
  rate_config : opt RateConfig;
156
173
  write : Permission;
174
+ max_changes_per_user : opt nat32;
157
175
  };
158
176
  type StorageConfig = record {
159
177
  iframe : opt StorageConfigIFrame;
@@ -215,7 +233,7 @@ service : () -> {
215
233
  del_filtered_docs : (text, ListParams) -> ();
216
234
  del_many_assets : (vec record { text; text }) -> ();
217
235
  del_many_docs : (vec record { text; text; DelDoc }) -> ();
218
- del_rule : (RulesType, text, DelRule) -> ();
236
+ del_rule : (CollectionType, text, DelRule) -> ();
219
237
  deposit_cycles : (DepositCyclesArgs) -> ();
220
238
  get_asset : (text, text) -> (opt AssetNoContent) query;
221
239
  get_auth_config : () -> (opt AuthenticationConfig) query;
@@ -228,7 +246,7 @@ service : () -> {
228
246
  get_many_docs : (vec record { text; text }) -> (
229
247
  vec record { text; opt Doc },
230
248
  ) query;
231
- get_rule : (RulesType, text) -> (opt Rule) query;
249
+ get_rule : (CollectionType, text) -> (opt Rule) query;
232
250
  get_storage_config : () -> (StorageConfig) query;
233
251
  http_request : (HttpRequest) -> (HttpResponse) query;
234
252
  http_request_streaming_callback : (StreamingCallbackToken) -> (
@@ -239,7 +257,7 @@ service : () -> {
239
257
  list_controllers : () -> (vec record { principal; Controller }) query;
240
258
  list_custom_domains : () -> (vec record { text; CustomDomain }) query;
241
259
  list_docs : (text, ListParams) -> (ListResults_1) query;
242
- list_rules : (RulesType) -> (vec record { text; Rule }) query;
260
+ list_rules : (CollectionType) -> (vec record { text; Rule }) query;
243
261
  memory_size : () -> (MemorySize) query;
244
262
  set_auth_config : (AuthenticationConfig) -> ();
245
263
  set_controllers : (SetControllersArgs) -> (
@@ -251,7 +269,7 @@ service : () -> {
251
269
  set_many_docs : (vec record { text; text; SetDoc }) -> (
252
270
  vec record { text; Doc },
253
271
  );
254
- set_rule : (RulesType, text, SetRule) -> (Rule);
272
+ set_rule : (CollectionType, text, SetRule) -> (Rule);
255
273
  set_storage_config : (StorageConfig) -> ();
256
274
  upload_asset_chunk : (UploadChunk) -> (UploadChunkResult);
257
275
  version : () -> (text) query;