@mastra/pg 0.3.1-alpha.5 → 0.3.1-alpha.8

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,23 +1,23 @@
1
1
 
2
- > @mastra/pg@0.3.1-alpha.5 build /home/runner/work/mastra/mastra/stores/pg
2
+ > @mastra/pg@0.3.1-alpha.8 build /home/runner/work/mastra/mastra/stores/pg
3
3
  > tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.4.0
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 11112ms
9
+ TSC ⚡️ Build success in 10835ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.8.3
13
13
  Writing package typings: /home/runner/work/mastra/mastra/stores/pg/dist/_tsup-dts-rollup.d.ts
14
14
  Analysis will use the bundled TypeScript version 5.8.3
15
15
  Writing package typings: /home/runner/work/mastra/mastra/stores/pg/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 12313ms
16
+ DTS ⚡️ Build success in 11734ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- CJS dist/index.cjs 54.79 KB
21
- CJS ⚡️ Build success in 1406ms
22
- ESM dist/index.js 54.31 KB
23
- ESM ⚡️ Build success in 1407ms
20
+ CJS dist/index.cjs 55.07 KB
21
+ CJS ⚡️ Build success in 1259ms
22
+ ESM dist/index.js 54.59 KB
23
+ ESM ⚡️ Build success in 1266ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @mastra/pg
2
2
 
3
+ ## 0.3.1-alpha.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [2d17c73]
8
+ - @mastra/core@0.9.1-alpha.8
9
+
10
+ ## 0.3.1-alpha.7
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [1d3b1cd]
15
+ - @mastra/core@0.9.1-alpha.7
16
+
17
+ ## 0.3.1-alpha.6
18
+
19
+ ### Patch Changes
20
+
21
+ - c23a81c: added deprecation warnings for pg and individual args
22
+ - Updated dependencies [c23a81c]
23
+ - @mastra/core@0.9.1-alpha.6
24
+
3
25
  ## 0.3.1-alpha.5
4
26
 
5
27
  ### Patch Changes
@@ -211,6 +211,10 @@ declare class PgVector extends MastraVector {
211
211
  private installVectorExtensionPromise;
212
212
  private vectorExtensionInstalled;
213
213
  private schemaSetupComplete;
214
+ /**
215
+ * @deprecated Passing connectionString as a string is deprecated.
216
+ * Use the object parameter instead. This signature will be removed on May 20th.
217
+ */
214
218
  constructor(connectionString: string);
215
219
  constructor(config: {
216
220
  connectionString: string;
@@ -211,6 +211,10 @@ declare class PgVector extends MastraVector {
211
211
  private installVectorExtensionPromise;
212
212
  private vectorExtensionInstalled;
213
213
  private schemaSetupComplete;
214
+ /**
215
+ * @deprecated Passing connectionString as a string is deprecated.
216
+ * Use the object parameter instead. This signature will be removed on May 20th.
217
+ */
214
218
  constructor(connectionString: string);
215
219
  constructor(config: {
216
220
  connectionString: string;
package/dist/index.cjs CHANGED
@@ -346,6 +346,14 @@ var PgVector = class extends vector.MastraVector {
346
346
  let pgPoolOptions;
347
347
  let schemaName;
348
348
  if (typeof config === "string") {
349
+ console.warn(
350
+ `DEPRECATION WARNING: Passing connectionString as a string to PgVector constructor is deprecated.
351
+
352
+ Please use an object parameter instead:
353
+ new PgVector({ connectionString })
354
+
355
+ The string signature will be removed on May 20th.`
356
+ );
349
357
  connectionString = config;
350
358
  schemaName = void 0;
351
359
  pgPoolOptions = void 0;
package/dist/index.js CHANGED
@@ -338,6 +338,14 @@ var PgVector = class extends MastraVector {
338
338
  let pgPoolOptions;
339
339
  let schemaName;
340
340
  if (typeof config === "string") {
341
+ console.warn(
342
+ `DEPRECATION WARNING: Passing connectionString as a string to PgVector constructor is deprecated.
343
+
344
+ Please use an object parameter instead:
345
+ new PgVector({ connectionString })
346
+
347
+ The string signature will be removed on May 20th.`
348
+ );
341
349
  connectionString = config;
342
350
  schemaName = void 0;
343
351
  pgPoolOptions = void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/pg",
3
- "version": "0.3.1-alpha.5",
3
+ "version": "0.3.1-alpha.8",
4
4
  "description": "Postgres provider for Mastra - includes both vector and db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "pg": "^8.13.3",
25
25
  "pg-promise": "^11.11.0",
26
26
  "xxhash-wasm": "^1.1.0",
27
- "@mastra/core": "^0.9.1-alpha.5"
27
+ "@mastra/core": "^0.9.1-alpha.8"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@microsoft/api-extractor": "^7.52.5",
@@ -70,6 +70,10 @@ export class PgVector extends MastraVector {
70
70
  private vectorExtensionInstalled: boolean | undefined = undefined;
71
71
  private schemaSetupComplete: boolean | undefined = undefined;
72
72
 
73
+ /**
74
+ * @deprecated Passing connectionString as a string is deprecated.
75
+ * Use the object parameter instead. This signature will be removed on May 20th.
76
+ */
73
77
  constructor(connectionString: string);
74
78
  constructor(config: {
75
79
  connectionString: string;
@@ -90,6 +94,15 @@ export class PgVector extends MastraVector {
90
94
  let schemaName: string | undefined;
91
95
 
92
96
  if (typeof config === 'string') {
97
+ // DEPRECATION WARNING
98
+ console.warn(
99
+ `DEPRECATION WARNING: Passing connectionString as a string to PgVector constructor is deprecated.
100
+
101
+ Please use an object parameter instead:
102
+ new PgVector({ connectionString })
103
+
104
+ The string signature will be removed on May 20th.`,
105
+ );
93
106
  connectionString = config;
94
107
  schemaName = undefined;
95
108
  pgPoolOptions = undefined;