@aztec/stdlib 0.77.1 → 0.78.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/stdlib",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.78.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json",
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@aztec/bb.js": "0.
|
|
70
|
-
"@aztec/blob-lib": "0.
|
|
71
|
-
"@aztec/constants": "0.
|
|
72
|
-
"@aztec/ethereum": "0.
|
|
73
|
-
"@aztec/foundation": "0.
|
|
69
|
+
"@aztec/bb.js": "0.78.0",
|
|
70
|
+
"@aztec/blob-lib": "0.78.0",
|
|
71
|
+
"@aztec/constants": "0.78.0",
|
|
72
|
+
"@aztec/ethereum": "0.78.0",
|
|
73
|
+
"@aztec/foundation": "0.78.0",
|
|
74
74
|
"lodash.chunk": "^4.2.0",
|
|
75
75
|
"lodash.isequal": "^4.5.0",
|
|
76
76
|
"lodash.omit": "^4.5.0",
|
|
@@ -12,8 +12,8 @@ The Version Manager helps manage database migrations and version compatibility a
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
16
15
|
import { version } from '@aztec/foundation';
|
|
16
|
+
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
17
17
|
|
|
18
18
|
// Define your current database version
|
|
19
19
|
const DB_VERSION = 3;
|
|
@@ -44,7 +44,7 @@ await versionManager.checkVersionAndHandle(
|
|
|
44
44
|
// Unsupported migration path, will fall back to reset
|
|
45
45
|
throw new Error(`Cannot upgrade from ${oldVersion} to ${newVersion}`);
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
},
|
|
48
48
|
);
|
|
49
49
|
|
|
50
50
|
// Get the data directory for your service
|
|
@@ -60,4 +60,4 @@ The database will be reset in the following conditions:
|
|
|
60
60
|
3. Version has changed and no upgrade callback is provided
|
|
61
61
|
4. Upgrade callback throws an error
|
|
62
62
|
|
|
63
|
-
When a reset occurs, the data directory is deleted and recreated, and the reset callback is called to initialize a fresh database.
|
|
63
|
+
When a reset occurs, the data directory is deleted and recreated, and the reset callback is called to initialize a fresh database.
|