jazz-tools 0.10.4 → 0.10.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > jazz-tools@0.10.4 build /home/runner/_work/jazz/jazz/packages/jazz-tools
2
+ > jazz-tools@0.10.5 build /home/runner/_work/jazz/jazz/packages/jazz-tools
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
@@ -11,8 +11,8 @@
11
11
  ESM Build start
12
12
  ESM dist/index.js 1.50 KB
13
13
  ESM dist/testing.js 6.18 KB
14
- ESM dist/chunk-XRX3CCYY.js 111.67 KB
14
+ ESM dist/chunk-DXCQRDRG.js 111.89 KB
15
15
  ESM dist/index.js.map 259.00 B
16
16
  ESM dist/testing.js.map 12.19 KB
17
- ESM dist/chunk-XRX3CCYY.js.map 269.16 KB
18
- ESM ⚡️ Build success in 33ms
17
+ ESM dist/chunk-DXCQRDRG.js.map 269.43 KB
18
+ ESM ⚡️ Build success in 82ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # jazz-tools
2
2
 
3
+ ## 0.10.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 59ff77e: Critical fix: move the Account migration code execution in the right place to ensure that the changes applied to the right Jazz node.
8
+
3
9
  ## 0.10.4
4
10
 
5
11
  ### Patch Changes
@@ -447,11 +447,17 @@ async function createJazzContextFromExistingCredentials({
447
447
  accountSecret: credentials.secret,
448
448
  sessionID,
449
449
  peersToLoadFrom,
450
- crypto
450
+ crypto,
451
+ migration: async (rawAccount, _node, creationProps) => {
452
+ const account2 = new CurrentAccountSchema({
453
+ fromRaw: rawAccount
454
+ });
455
+ activeAccountContext.set(account2);
456
+ await account2.applyMigration(creationProps);
457
+ }
451
458
  });
452
459
  const account = CurrentAccountSchema.fromNode(node);
453
460
  activeAccountContext.set(account);
454
- await account.applyMigration();
455
461
  return {
456
462
  node,
457
463
  account,
@@ -3919,4 +3925,4 @@ export {
3919
3925
  consumeInviteLink
3920
3926
  };
3921
3927
  /* istanbul ignore file -- @preserve */
3922
- //# sourceMappingURL=chunk-XRX3CCYY.js.map
3928
+ //# sourceMappingURL=chunk-DXCQRDRG.js.map