ic-mops 1.11.0 → 1.12.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.
Files changed (79) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/api/actors.ts +2 -2
  3. package/api/downloadPackageFiles.ts +1 -1
  4. package/bun.lock +234 -198
  5. package/bundle/bench/bench-canister.mo +101 -109
  6. package/bundle/bench/user-bench.mo +6 -10
  7. package/bundle/cli.js +960 -889
  8. package/bundle/cli.tgz +0 -0
  9. package/bundle/declarations/bench/bench.did +3 -3
  10. package/bundle/declarations/bench/bench.did.d.ts +3 -3
  11. package/bundle/declarations/bench/index.d.ts +3 -3
  12. package/bundle/declarations/bench/index.js +1 -1
  13. package/bundle/declarations/main/index.d.ts +3 -3
  14. package/bundle/declarations/main/index.js +1 -1
  15. package/bundle/declarations/main/main.did +78 -121
  16. package/bundle/declarations/main/main.did.d.ts +48 -98
  17. package/bundle/declarations/main/main.did.js +53 -107
  18. package/bundle/declarations/storage/index.d.ts +3 -3
  19. package/bundle/declarations/storage/index.js +4 -4
  20. package/bundle/declarations/storage/storage.did.d.ts +3 -3
  21. package/bundle/package.json +1 -1
  22. package/bundle/templates/src/lib.mo +13 -13
  23. package/bundle/templates/test/lib.test.mo +2 -2
  24. package/commands/add.ts +1 -1
  25. package/commands/available-updates.ts +20 -7
  26. package/commands/bench-replica.ts +21 -9
  27. package/commands/maintainer.ts +1 -1
  28. package/commands/outdated.ts +8 -1
  29. package/commands/owner.ts +1 -1
  30. package/commands/replica.ts +31 -18
  31. package/commands/test/test.ts +37 -97
  32. package/commands/test/utils.ts +75 -1
  33. package/commands/update.ts +19 -2
  34. package/declarations/bench/bench.did.d.ts +3 -3
  35. package/declarations/bench/index.d.ts +3 -3
  36. package/declarations/bench/index.js +1 -1
  37. package/declarations/main/index.d.ts +3 -3
  38. package/declarations/main/index.js +1 -1
  39. package/declarations/main/main.did.d.ts +3 -3
  40. package/declarations/storage/index.d.ts +3 -3
  41. package/declarations/storage/index.js +4 -4
  42. package/declarations/storage/storage.did.d.ts +3 -3
  43. package/dist/api/actors.d.ts +2 -2
  44. package/dist/api/actors.js +1 -1
  45. package/dist/api/downloadPackageFiles.d.ts +1 -1
  46. package/dist/api/downloadPackageFiles.js +1 -1
  47. package/dist/commands/add.js +1 -1
  48. package/dist/commands/available-updates.js +19 -7
  49. package/dist/commands/bench-replica.d.ts +3 -2
  50. package/dist/commands/bench-replica.js +17 -6
  51. package/dist/commands/maintainer.js +1 -1
  52. package/dist/commands/outdated.js +7 -1
  53. package/dist/commands/owner.js +1 -1
  54. package/dist/commands/replica.d.ts +4 -3
  55. package/dist/commands/replica.js +25 -13
  56. package/dist/commands/test/test.js +29 -81
  57. package/dist/commands/test/utils.d.ts +6 -0
  58. package/dist/commands/test/utils.js +61 -0
  59. package/dist/commands/update.js +16 -2
  60. package/dist/declarations/bench/bench.did.d.ts +3 -3
  61. package/dist/declarations/bench/index.d.ts +3 -3
  62. package/dist/declarations/bench/index.js +1 -1
  63. package/dist/declarations/main/index.d.ts +3 -3
  64. package/dist/declarations/main/index.js +1 -1
  65. package/dist/declarations/main/main.did.d.ts +3 -3
  66. package/dist/declarations/storage/index.d.ts +3 -3
  67. package/dist/declarations/storage/index.js +4 -4
  68. package/dist/declarations/storage/storage.did.d.ts +3 -3
  69. package/dist/helpers/get-dep-name.d.ts +1 -0
  70. package/dist/helpers/get-dep-name.js +3 -0
  71. package/dist/mops.d.ts +1 -1
  72. package/dist/package.json +5 -15
  73. package/dist/pem.d.ts +2 -2
  74. package/dist/pem.js +2 -2
  75. package/helpers/get-dep-name.ts +4 -0
  76. package/mops.ts +1 -1
  77. package/package.json +5 -15
  78. package/pem.ts +2 -2
  79. package/tsconfig.json +2 -2
package/mops.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import process from 'node:process';
2
2
  import path from 'node:path';
3
3
  import fs from 'node:fs';
4
- import {Identity} from '@dfinity/agent';
4
+ import {Identity} from '@icp-sdk/core/agent';
5
5
  import TOML from '@iarna/toml';
6
6
  import chalk from 'chalk';
7
7
  import prompts from 'prompts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "dist/bin/mops.js",
@@ -44,12 +44,8 @@
44
44
  "esbuild": "esbuild"
45
45
  },
46
46
  "dependencies": {
47
- "@dfinity/agent": "3.1.0",
48
- "@dfinity/candid": "3.1.0",
49
- "@dfinity/identity": "3.1.0",
50
- "@dfinity/identity-secp256k1": "3.1.0",
51
- "@dfinity/principal": "3.1.0",
52
47
  "@iarna/toml": "2.2.5",
48
+ "@icp-sdk/core": "4.0.2",
53
49
  "@noble/hashes": "1.8.0",
54
50
  "as-table": "1.0.55",
55
51
  "buffer": "6.0.3",
@@ -80,7 +76,8 @@
80
76
  "node-fetch": "3.3.2",
81
77
  "octokit": "3.1.2",
82
78
  "pem-file": "1.0.1",
83
- "pic-ic": "0.5.3",
79
+ "pic-ic": "0.5.4",
80
+ "pic-js-mops": "0.14.8",
84
81
  "prettier": "3.5.3",
85
82
  "prettier-plugin-motoko": "0.11.0",
86
83
  "promisify-child-process": "4.1.2",
@@ -108,13 +105,6 @@
108
105
  "eslint": "8.57.0",
109
106
  "rexreplace": "7.1.13",
110
107
  "tsx": "4.19.2",
111
- "typescript": "5.7.3"
112
- },
113
- "overrides": {
114
- "@dfinity/agent": "3.1.0",
115
- "@dfinity/candid": "3.1.0",
116
- "@dfinity/identity": "3.1.0",
117
- "@dfinity/identity-secp256k1": "3.1.0",
118
- "@dfinity/principal": "3.1.0"
108
+ "typescript": "5.9.2"
119
109
  }
120
110
  }
package/pem.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import fs from 'node:fs';
2
2
  import {Buffer} from 'node:buffer';
3
3
  import crypto from 'node:crypto';
4
- import {Ed25519KeyIdentity} from '@dfinity/identity';
5
- import {Secp256k1KeyIdentity} from '@dfinity/identity-secp256k1';
4
+ import {Ed25519KeyIdentity} from '@icp-sdk/core/identity';
5
+ import {Secp256k1KeyIdentity} from '@icp-sdk/core/identity/secp256k1';
6
6
  import pemfile from 'pem-file';
7
7
 
8
8
  export function decodeFile(file : string, password ?: string) {
package/tsconfig.json CHANGED
@@ -8,8 +8,8 @@
8
8
  "types": ["node"],
9
9
  "outDir": "./dist",
10
10
  "allowJs": true,
11
- "module": "nodenext",
12
- "moduleResolution": "nodenext",
11
+ "module": "ES2022",
12
+ "moduleResolution": "bundler",
13
13
  "noEmitOnError": false,
14
14
  "noUnusedLocals": false,
15
15
  "noUnusedParameters": false,