@junobuild/cli 0.1.3 → 0.1.5

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.3",
3
+ "version": "0.1.5",
4
4
  "description": "The Juno command-line interface",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",
@@ -18,9 +18,10 @@
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
27
  "@dfinity/agent": "^2.3.0",
@@ -29,10 +30,10 @@
29
30
  "@dfinity/ic-management": "^6.0.4",
30
31
  "@dfinity/identity": "^2.3.0",
31
32
  "@dfinity/principal": "^2.3.0",
32
- "@junobuild/admin": "^0.1.4",
33
- "@junobuild/cli-tools": "^0.1.0",
34
- "@junobuild/config-loader": "^0.1.0",
35
- "@junobuild/core": "^0.1.6",
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",
36
37
  "@junobuild/did-tools": "^0.1.0",
37
38
  "@junobuild/utils": "^0.1.0",
38
39
  "conf": "^13.1.0",
@@ -46,7 +47,7 @@
46
47
  "devDependencies": {
47
48
  "@eslint/eslintrc": "^3.2.0",
48
49
  "@eslint/js": "^9.20.0",
49
- "@junobuild/config": "^0.1.0",
50
+ "@junobuild/config": "^0.1.1",
50
51
  "@types/node": "^22.13.1",
51
52
  "@types/prompts": "^2.4.9",
52
53
  "@types/semver": "^7.5.8",
@@ -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
 
@@ -24,7 +24,9 @@ type AuthenticationConfig = record {
24
24
  };
25
25
  type AuthenticationConfigInternetIdentity = record {
26
26
  derivation_origin : opt text;
27
+ external_alternative_origins : opt vec text;
27
28
  };
29
+ type CollectionType = variant { Db; Storage };
28
30
  type CommitBatch = record {
29
31
  batch_id : nat;
30
32
  headers : vec record { text; text };
@@ -129,8 +131,8 @@ type Rule = record {
129
131
  mutable_permissions : opt bool;
130
132
  rate_config : opt RateConfig;
131
133
  write : Permission;
134
+ max_changes_per_user : opt nat32;
132
135
  };
133
- type RulesType = variant { Db; Storage };
134
136
  type SetController = record {
135
137
  metadata : vec record { text; text };
136
138
  scope : ControllerScope;
@@ -154,6 +156,7 @@ type SetRule = record {
154
156
  mutable_permissions : opt bool;
155
157
  rate_config : opt RateConfig;
156
158
  write : Permission;
159
+ max_changes_per_user : opt nat32;
157
160
  };
158
161
  type StorageConfig = record {
159
162
  iframe : opt StorageConfigIFrame;
@@ -215,7 +218,7 @@ service : () -> {
215
218
  del_filtered_docs : (text, ListParams) -> ();
216
219
  del_many_assets : (vec record { text; text }) -> ();
217
220
  del_many_docs : (vec record { text; text; DelDoc }) -> ();
218
- del_rule : (RulesType, text, DelRule) -> ();
221
+ del_rule : (CollectionType, text, DelRule) -> ();
219
222
  deposit_cycles : (DepositCyclesArgs) -> ();
220
223
  get_asset : (text, text) -> (opt AssetNoContent) query;
221
224
  get_auth_config : () -> (opt AuthenticationConfig) query;
@@ -228,7 +231,7 @@ service : () -> {
228
231
  get_many_docs : (vec record { text; text }) -> (
229
232
  vec record { text; opt Doc },
230
233
  ) query;
231
- get_rule : (RulesType, text) -> (opt Rule) query;
234
+ get_rule : (CollectionType, text) -> (opt Rule) query;
232
235
  get_storage_config : () -> (StorageConfig) query;
233
236
  http_request : (HttpRequest) -> (HttpResponse) query;
234
237
  http_request_streaming_callback : (StreamingCallbackToken) -> (
@@ -239,7 +242,7 @@ service : () -> {
239
242
  list_controllers : () -> (vec record { principal; Controller }) query;
240
243
  list_custom_domains : () -> (vec record { text; CustomDomain }) query;
241
244
  list_docs : (text, ListParams) -> (ListResults_1) query;
242
- list_rules : (RulesType) -> (vec record { text; Rule }) query;
245
+ list_rules : (CollectionType) -> (vec record { text; Rule }) query;
243
246
  memory_size : () -> (MemorySize) query;
244
247
  set_auth_config : (AuthenticationConfig) -> ();
245
248
  set_controllers : (SetControllersArgs) -> (
@@ -251,7 +254,7 @@ service : () -> {
251
254
  set_many_docs : (vec record { text; text; SetDoc }) -> (
252
255
  vec record { text; Doc },
253
256
  );
254
- set_rule : (RulesType, text, SetRule) -> (Rule);
257
+ set_rule : (CollectionType, text, SetRule) -> (Rule);
255
258
  set_storage_config : (StorageConfig) -> ();
256
259
  upload_asset_chunk : (UploadChunk) -> (UploadChunkResult);
257
260
  version : () -> (text) query;