apibara 2.0.0-beta.41 → 2.0.0-beta.42

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.
@@ -56,19 +56,19 @@ const storages = [
56
56
  ];
57
57
  const packageVersions = {
58
58
  // Required Dependencies
59
- apibara: "^2.0.0-beta.40",
60
- "@apibara/indexer": "^2.0.0-beta.40",
61
- "@apibara/protocol": "^2.0.0-beta.40",
59
+ apibara: "^2.0.0-beta.42",
60
+ "@apibara/indexer": "^2.0.0-beta.42",
61
+ "@apibara/protocol": "^2.0.0-beta.42",
62
62
  // Chain Dependencies
63
- "@apibara/evm": "^2.0.0-beta.40",
64
- "@apibara/beaconchain": "^2.0.0-beta.40",
65
- "@apibara/starknet": "^2.0.0-beta.40",
63
+ "@apibara/evm": "^2.0.0-beta.42",
64
+ "@apibara/beaconchain": "^2.0.0-beta.42",
65
+ "@apibara/starknet": "^2.0.0-beta.42",
66
66
  // Storage Dependencies
67
- "@apibara/plugin-drizzle": "^2.0.0-beta.40",
68
- "@apibara/plugin-mongo": "^2.0.0-beta.40",
69
- "@apibara/plugin-sqlite": "^2.0.0-beta.40",
67
+ "@apibara/plugin-drizzle": "^2.0.0-beta.42",
68
+ "@apibara/plugin-mongo": "^2.0.0-beta.42",
69
+ "@apibara/plugin-sqlite": "^2.0.0-beta.42",
70
70
  // Postgres Dependencies
71
- "@electric-sql/pglite": "^0.2.14",
71
+ "@electric-sql/pglite": "^0.2.17",
72
72
  "drizzle-orm": "^0.37.0",
73
73
  pg: "^8.13.1",
74
74
  "@types/pg": "^8.11.10",
@@ -591,11 +591,14 @@ async function createDrizzleStorageFiles(options) {
591
591
  if (!exists || overwrite) {
592
592
  const drizzleConfigContent = `${language === "typescript" ? 'import type { Config } from "drizzle-kit";' : ""}
593
593
 
594
- export default {
595
- schema: "./lib/schema.ts",
596
- out: "./drizzle",
597
- dialect: "postgresql",
598
- }${language === "typescript" ? " satisfies Config" : ""};`;
594
+ export default {
595
+ schema: "./lib/schema.ts",
596
+ out: "./drizzle",
597
+ dialect: "postgresql",
598
+ dbCredentials: {
599
+ url: process.env["POSTGRES_CONNECTION_STRING"] ?? "",
600
+ },
601
+ }${language === "typescript" ? " satisfies Config" : ""};`;
599
602
  fs.writeFileSync(drizzleConfigPath, drizzleConfigContent);
600
603
  consola.success(`Created ${cyan(drizzleConfigFileName)}`);
601
604
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apibara",
3
- "version": "2.0.0-beta.41",
3
+ "version": "2.0.0-beta.42",
4
4
  "type": "module",
5
5
  "main": "./dist/core/index.mjs",
6
6
  "exports": {
@@ -76,7 +76,7 @@
76
76
  "playground:start": "pnpm playground start --dir playground --indexer starknet"
77
77
  },
78
78
  "devDependencies": {
79
- "@apibara/starknet": "2.0.0-beta.41",
79
+ "@apibara/starknet": "2.0.0-beta.42",
80
80
  "@types/fs-extra": "^11.0.4",
81
81
  "@types/node": "^20.14.0",
82
82
  "@types/prompts": "^2.4.9",
@@ -87,8 +87,8 @@
87
87
  "vitest": "^1.6.0"
88
88
  },
89
89
  "dependencies": {
90
- "@apibara/indexer": "2.0.0-beta.41",
91
- "@apibara/protocol": "2.0.0-beta.41",
90
+ "@apibara/indexer": "2.0.0-beta.42",
91
+ "@apibara/protocol": "2.0.0-beta.42",
92
92
  "@rollup/plugin-commonjs": "^26.0.1",
93
93
  "@rollup/plugin-json": "^6.1.0",
94
94
  "@rollup/plugin-node-resolve": "^15.2.3",
@@ -66,19 +66,19 @@ export const storages: StorageDataType[] = [
66
66
 
67
67
  export const packageVersions = {
68
68
  // Required Dependencies
69
- apibara: "^2.0.0-beta.40",
70
- "@apibara/indexer": "^2.0.0-beta.40",
71
- "@apibara/protocol": "^2.0.0-beta.40",
69
+ apibara: "^2.0.0-beta.42",
70
+ "@apibara/indexer": "^2.0.0-beta.42",
71
+ "@apibara/protocol": "^2.0.0-beta.42",
72
72
  // Chain Dependencies
73
- "@apibara/evm": "^2.0.0-beta.40",
74
- "@apibara/beaconchain": "^2.0.0-beta.40",
75
- "@apibara/starknet": "^2.0.0-beta.40",
73
+ "@apibara/evm": "^2.0.0-beta.42",
74
+ "@apibara/beaconchain": "^2.0.0-beta.42",
75
+ "@apibara/starknet": "^2.0.0-beta.42",
76
76
  // Storage Dependencies
77
- "@apibara/plugin-drizzle": "^2.0.0-beta.40",
78
- "@apibara/plugin-mongo": "^2.0.0-beta.40",
79
- "@apibara/plugin-sqlite": "^2.0.0-beta.40",
77
+ "@apibara/plugin-drizzle": "^2.0.0-beta.42",
78
+ "@apibara/plugin-mongo": "^2.0.0-beta.42",
79
+ "@apibara/plugin-sqlite": "^2.0.0-beta.42",
80
80
  // Postgres Dependencies
81
- "@electric-sql/pglite": "^0.2.14",
81
+ "@electric-sql/pglite": "^0.2.17",
82
82
  "drizzle-orm": "^0.37.0",
83
83
  pg: "^8.13.1",
84
84
  "@types/pg": "^8.11.10",
@@ -314,11 +314,14 @@ export async function createDrizzleStorageFiles(options: IndexerOptions) {
314
314
  if (!exists || overwrite) {
315
315
  const drizzleConfigContent = `${language === "typescript" ? 'import type { Config } from "drizzle-kit";' : ""}
316
316
 
317
- export default {
318
- schema: "./lib/schema.ts",
319
- out: "./drizzle",
320
- dialect: "postgresql",
321
- }${language === "typescript" ? " satisfies Config" : ""};`;
317
+ export default {
318
+ schema: "./lib/schema.ts",
319
+ out: "./drizzle",
320
+ dialect: "postgresql",
321
+ dbCredentials: {
322
+ url: process.env["POSTGRES_CONNECTION_STRING"] ?? "",
323
+ },
324
+ }${language === "typescript" ? " satisfies Config" : ""};`;
322
325
 
323
326
  fs.writeFileSync(drizzleConfigPath, drizzleConfigContent);
324
327