ic-mops 1.11.1 → 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 +4 -7
  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 +4 -7
  78. package/pem.ts +2 -2
  79. package/tsconfig.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Mops CLI Changelog
2
2
 
3
+ ## 1.12.0
4
+ - Add pinned dependencies support to `mops update` and `mops outdated` commands
5
+ - Add support for pocket-ic v9
6
+ - Migrate from `@dfinity/*` packages to `@icp-sdk/core` package
7
+ - `mops test` now runs replica tests sequentially
8
+
9
+ ## 1.11.1
10
+ - Fix `Cannot find module 'simple-cbor'` error
11
+
3
12
  ## 1.11.0
4
13
  - Fix `mops bench` to work with moc >= 0.15.0
5
14
  - `mops test` now detects persistent actor to run in replica mode
package/api/actors.ts CHANGED
@@ -1,5 +1,5 @@
1
- import {Actor, HttpAgent, Identity} from '@dfinity/agent';
2
- import {Principal} from '@dfinity/principal';
1
+ import {Actor, HttpAgent, Identity} from '@icp-sdk/core/agent';
2
+ import {Principal} from '@icp-sdk/core/principal';
3
3
 
4
4
  import {_SERVICE, idlFactory} from '../declarations/main/main.did.js';
5
5
  import {idlFactory as storageIdlFactory} from '../declarations/storage/storage.did.js';
@@ -1,4 +1,4 @@
1
- import {Principal} from '@dfinity/principal';
1
+ import {Principal} from '@icp-sdk/core/principal';
2
2
  import {mainActor, storageActor} from './actors.js';
3
3
  import {resolveVersion} from './resolveVersion.js';
4
4
  import {parallel} from '../parallel.js';