@credo-ts/drizzle-storage 0.6.0-pr-2324-20250625132611 → 0.6.0-pr-2324-20250630130744
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/README.md +8 -2
- package/cli-build/utils.js +1 -1
- package/cli-build/utils.js.map +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -126,11 +126,17 @@ In the example below we're assuming `postgres` is used as the database dialect,
|
|
|
126
126
|
- `dialect` - the dialect to use for migrations. Either `postgres` or `sqlite` and MUST match with the database being used during runtime in your Credo agent.
|
|
127
127
|
- `database-url` - the url to connect to the database. You can also provide this using the `DRIZZLE_DATABASE_URL` environment variable (recommended).
|
|
128
128
|
|
|
129
|
-
If the `@credo-ts/drizzle-storage` package is already installed in your project, you can directly use it to run the CLI. You can also use `npx` to execute the CLI, but make sure that you install the correct version matching the version that is used for your runtime agent. You also need to make sure that all extension modules are installed so the migration files can be resolved (which can be done using `--project` in `npx`).
|
|
129
|
+
If the `@credo-ts/drizzle-storage` package is already installed in your project, you can directly use it to run the CLI with the `drizzle-storage` command. You can also use `npx` to execute the CLI, but make sure that you install the correct version matching the version that is used for your runtime agent. You also need to make sure that all extension modules are installed so the migration files can be resolved (which can be done using `--project` in `npx`).
|
|
130
|
+
|
|
131
|
+
> [!NOTE]
|
|
132
|
+
> When running migrations always make sure to provide the core module. While for the `bundles` in the `DrizzleStorageModule` the `core` bundle is added by default, due to imcreased control over the migration process, no bundles are added by default in the migration command.
|
|
130
133
|
|
|
131
134
|
```sh
|
|
132
135
|
# or npm or yarn
|
|
133
|
-
pnpm
|
|
136
|
+
pnpm drizzle-storage migrate --bundle core --bundle didcomm --bundle anoncreds --database-url postgresql://postgres:postgres@localhost:5432/postgres`
|
|
137
|
+
|
|
138
|
+
# using npx
|
|
139
|
+
npx @credo-ts/drizzle-storage@^x.x migrate
|
|
134
140
|
```
|
|
135
141
|
|
|
136
142
|
### React Native
|
package/cli-build/utils.js
CHANGED
|
@@ -52,7 +52,7 @@ function getMigrationsDirectory(schemaFile, migrationsPath) {
|
|
|
52
52
|
}
|
|
53
53
|
async function getDrizzleKitCliPath() {
|
|
54
54
|
// Find drizzle-kit CLI path
|
|
55
|
-
const result = (0, child_process_1.spawnSync)('npx', ['--package', '
|
|
55
|
+
const result = (0, child_process_1.spawnSync)('npx', ['--package', 'drizzle-kit', '-c', 'node -p "require.resolve(\'drizzle-kit\')"'], {
|
|
56
56
|
encoding: 'utf-8',
|
|
57
57
|
});
|
|
58
58
|
if (result.status !== 0) {
|
package/cli-build/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../cli/utils.ts"],"names":[],"mappings":";;;;;AAGA,sCAsCC;AAED,8CAOC;AAED,wDAOC;AAED,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../cli/utils.ts"],"names":[],"mappings":";;;;;AAGA,sCAsCC;AAED,8CAOC;AAED,wDAOC;AAED,oDAYC;AAED,kBAGC;AAED,4BAGC;AAnFD,iDAAyC;AACzC,gDAAuB;AAEhB,KAAK,UAAU,aAAa,CAAC,MAAc;IAChD,MAAM,OAAO,GAAG,CAAC,6BAA6B,MAAM,EAAE,EAAE,MAAM,CAAC,CAAA;IAE/D,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,CAAC;YACH,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QACzB,CAAC;QAAC,MAAM,CAAC;YACP,SAAQ;QACV,CAAC;QAED,4DAA4D;QAC5D,IAAI,MAAW,CAAA;QAEf,IAAI,CAAC;YACH,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;QAC1B,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,KAAK,CAAC,2BAA2B,MAAM,EAAE,CAAC,CAAA;QACtD,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;Y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GAAG,cAAI,CAAC,IAAI,CAAC,cAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,SAAS,CAAC,CAAA;IAClF,OAAO,iBAAiB,CAAA;AAC1B,CAAC;AAED,SAAgB,GAAG,CAAC,OAAe,EAAE,GAAG,cAAyB;IAC/D,wDAAwD;IACxD,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC,CAAA;AACzC,CAAC;AAED,SAAgB,QAAQ,CAAC,OAAe,EAAE,GAAG,cAAyB;IACpE,wDAAwD;IACxD,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC,CAAA;AAC3C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@credo-ts/drizzle-storage",
|
|
3
|
-
"version": "0.6.0-pr-2324-
|
|
3
|
+
"version": "0.6.0-pr-2324-20250630130744",
|
|
4
4
|
"files": [
|
|
5
5
|
"build",
|
|
6
6
|
"cli-build",
|
|
@@ -44,24 +44,24 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"class-transformer": "0.5.1",
|
|
46
46
|
"class-validator": "0.14.1",
|
|
47
|
-
"drizzle-orm": "^0.
|
|
47
|
+
"drizzle-orm": "^0.44.2",
|
|
48
|
+
"drizzle-kit": "^0.31.4",
|
|
48
49
|
"shell": "^0.12.0",
|
|
49
50
|
"tsyringe": "^4.8.0",
|
|
50
51
|
"zod": "^3.24.2",
|
|
51
|
-
"@credo-ts/action-menu": "0.6.0-pr-2324-
|
|
52
|
-
"@credo-ts/anoncreds": "0.6.0-pr-2324-
|
|
53
|
-
"@credo-ts/core": "0.6.0-pr-2324-
|
|
54
|
-
"@credo-ts/didcomm": "0.6.0-pr-2324-
|
|
55
|
-
"@credo-ts/question-answer": "0.6.0-pr-2324-
|
|
56
|
-
"@credo-ts/tenants": "0.6.0-pr-2324-
|
|
57
|
-
"@credo-ts/drpc": "0.6.0-pr-2324-
|
|
58
|
-
"@credo-ts/openid4vc": "0.6.0-pr-2324-
|
|
52
|
+
"@credo-ts/action-menu": "0.6.0-pr-2324-20250630130744",
|
|
53
|
+
"@credo-ts/anoncreds": "0.6.0-pr-2324-20250630130744",
|
|
54
|
+
"@credo-ts/core": "0.6.0-pr-2324-20250630130744",
|
|
55
|
+
"@credo-ts/didcomm": "0.6.0-pr-2324-20250630130744",
|
|
56
|
+
"@credo-ts/question-answer": "0.6.0-pr-2324-20250630130744",
|
|
57
|
+
"@credo-ts/tenants": "0.6.0-pr-2324-20250630130744",
|
|
58
|
+
"@credo-ts/drpc": "0.6.0-pr-2324-20250630130744",
|
|
59
|
+
"@credo-ts/openid4vc": "0.6.0-pr-2324-20250630130744"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@electric-sql/pglite": "^0.3.1",
|
|
62
63
|
"@libsql/client": "^0.15.6",
|
|
63
64
|
"@types/yargs": "^17.0.33",
|
|
64
|
-
"drizzle-kit": "^0.31.1",
|
|
65
65
|
"rimraf": "^4.4.0",
|
|
66
66
|
"typescript": "~5.5.2"
|
|
67
67
|
},
|