@mastra/google-cloud-pubsub 0.1.1 → 0.1.2-alpha.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @mastra/inngest
2
2
 
3
+ ## 0.1.2-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#7343](https://github.com/mastra-ai/mastra/pull/7343) [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e) Thanks [@LekoArts](https://github.com/LekoArts)! - Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
8
+
9
+ - Updated dependencies [[`85ef90b`](https://github.com/mastra-ai/mastra/commit/85ef90bb2cd4ae4df855c7ac175f7d392c55c1bf), [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e)]:
10
+ - @mastra/core@0.15.3-alpha.5
11
+
12
+ ## 0.1.2-alpha.0
13
+
14
+ ### Patch Changes
15
+
16
+ - [#5816](https://github.com/mastra-ai/mastra/pull/5816) [`ab48c97`](https://github.com/mastra-ai/mastra/commit/ab48c979098ea571faf998a55d3a00e7acd7a715) Thanks [@dane-ai-mastra](https://github.com/apps/dane-ai-mastra)! - dependencies updates:
17
+ - Updated dependency [`zod@^3.25.76` ↗︎](https://www.npmjs.com/package/zod/v/3.25.76) (from `^3.25.67`, in `dependencies`)
18
+ - Updated dependencies [[`ab48c97`](https://github.com/mastra-ai/mastra/commit/ab48c979098ea571faf998a55d3a00e7acd7a715), [`ff89505`](https://github.com/mastra-ai/mastra/commit/ff895057c8c7e91a5535faef46c5e5391085ddfa), [`183dc95`](https://github.com/mastra-ai/mastra/commit/183dc95596f391b977bd1a2c050b8498dac74891), [`a1111e2`](https://github.com/mastra-ai/mastra/commit/a1111e24e705488adfe5e0a6f20c53bddf26cb22), [`61debef`](https://github.com/mastra-ai/mastra/commit/61debefd80ad3a7ed5737e19df6a23d40091689a), [`9beaeff`](https://github.com/mastra-ai/mastra/commit/9beaeffa4a97b1d5fd01a7f8af8708b16067f67c), [`9eee594`](https://github.com/mastra-ai/mastra/commit/9eee594e35e0ca2a650fcc33fa82009a142b9ed0), [`979912c`](https://github.com/mastra-ai/mastra/commit/979912cfd180aad53287cda08af771df26454e2c), [`7dcf4c0`](https://github.com/mastra-ai/mastra/commit/7dcf4c04f44d9345b1f8bc5d41eae3f11ac61611), [`ad78bfc`](https://github.com/mastra-ai/mastra/commit/ad78bfc4ea6a1fff140432bf4f638e01af7af668), [`0ce418a`](https://github.com/mastra-ai/mastra/commit/0ce418a1ccaa5e125d4483a9651b635046152569), [`8387952`](https://github.com/mastra-ai/mastra/commit/838795227b4edf758c84a2adf6f7fba206c27719), [`5eca5d2`](https://github.com/mastra-ai/mastra/commit/5eca5d2655788863ea0442a46c9ef5d3c6dbe0a8)]:
19
+ - @mastra/core@0.15.3-alpha.4
20
+
3
21
  ## 0.1.1
4
22
 
5
23
  ### Patch Changes
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@mastra/google-cloud-pubsub",
3
- "version": "0.1.1",
3
+ "version": "0.1.2-alpha.1",
4
4
  "description": "Mastra Google Cloud PubSub integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "CHANGELOG.md"
11
+ ],
8
12
  "exports": {
9
13
  ".": {
10
14
  "import": {
@@ -23,7 +27,7 @@
23
27
  "@inngest/realtime": "^0.3.1",
24
28
  "@opentelemetry/api": "^1.9.0",
25
29
  "inngest": "^3.40.0",
26
- "zod": "^3.25.67"
30
+ "zod": "^3.25.76"
27
31
  },
28
32
  "devDependencies": {
29
33
  "ai": "^4.3.16",
@@ -33,17 +37,26 @@
33
37
  "vitest": "^3.2.4",
34
38
  "tsup": "^8.4.0",
35
39
  "@internal/lint": "0.0.34",
40
+ "@mastra/core": "0.15.3-alpha.5",
41
+ "@mastra/deployer": "0.15.3-alpha.5",
36
42
  "@internal/types-builder": "0.0.9",
37
- "@mastra/core": "0.15.2",
38
- "@mastra/deployer": "0.15.2",
39
- "@mastra/libsql": "0.13.7"
43
+ "@mastra/libsql": "0.13.8-alpha.1"
40
44
  },
41
45
  "peerDependencies": {
42
46
  "@mastra/core": ">=0.10.11-0 <0.16.0-0"
43
47
  },
48
+ "homepage": "https://mastra.ai",
49
+ "repository": {
50
+ "type": "git",
51
+ "url": "git+https://github.com/mastra-ai/mastra.git",
52
+ "directory": "pubsub/google-cloud-pubsub"
53
+ },
54
+ "bugs": {
55
+ "url": "https://github.com/mastra-ai/mastra/issues"
56
+ },
44
57
  "scripts": {
45
- "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
46
- "build:watch": "pnpm build --watch",
58
+ "build": "tsup --silent --config tsup.config.ts",
59
+ "build:watch": "tsup --watch --silent --config tsup.config.ts",
47
60
  "test": "vitest run --bail=1",
48
61
  "lint": "eslint ."
49
62
  }
@@ -1,26 +0,0 @@
1
-
2
- > @mastra/google-cloud-pubsub@0.1.0 build /home/runner/work/mastra/mastra/pubsub/google-cloud-pubsub
3
- > tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
4
-
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.0
8
- CLI Using tsup config: /home/runner/work/mastra/mastra/pubsub/google-cloud-pubsub/tsup.config.ts
9
- TSC Build start
10
- TSC ⚡️ Build success in 7841ms
11
- DTS Build start
12
- CLI Target: es2022
13
- Analysis will use the bundled TypeScript version 5.8.3
14
- Writing package typings: /home/runner/work/mastra/mastra/pubsub/google-cloud-pubsub/dist/_tsup-dts-rollup.d.ts
15
- Analysis will use the bundled TypeScript version 5.8.3
16
- Writing package typings: /home/runner/work/mastra/mastra/pubsub/google-cloud-pubsub/dist/_tsup-dts-rollup.d.cts
17
- DTS ⚡️ Build success in 5716ms
18
- CLI Cleaning output folder
19
- ESM Build start
20
- CJS Build start
21
- ESM dist/index.js 4.26 KB
22
- ESM dist/index.js.map 10.27 KB
23
- ESM ⚡️ Build success in 174ms
24
- CJS dist/index.cjs 4.29 KB
25
- CJS dist/index.cjs.map 10.29 KB
26
- CJS ⚡️ Build success in 174ms
@@ -1,27 +0,0 @@
1
- import type { ClientConfig } from '@google-cloud/pubsub';
2
- import type { Event as Event_2 } from '@mastra/core/events';
3
- import type { Message } from '@google-cloud/pubsub';
4
- import { Options } from 'tsup';
5
- import { PubSub } from '@mastra/core/events';
6
- import type { Subscription } from '@google-cloud/pubsub';
7
-
8
- export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
9
-
10
- export declare class GoogleCloudPubSub extends PubSub {
11
- private instanceId;
12
- private pubsub;
13
- private ackBuffer;
14
- private activeSubscriptions;
15
- private activeCbs;
16
- constructor(config: ClientConfig);
17
- getSubscriptionName(topic: string): string;
18
- ackMessage(topic: string, message: Message): Promise<void>;
19
- init(topicName: string): Promise<Subscription | undefined>;
20
- destroy(topicName: string): Promise<void>;
21
- publish(topicName: string, event: Omit<Event_2, 'id' | 'createdAt'>): Promise<void>;
22
- subscribe(topic: string, cb: (event: Event_2, ack?: () => Promise<void>) => void): Promise<void>;
23
- unsubscribe(topic: string, cb: (event: Event_2, ack?: () => Promise<void>) => void): Promise<void>;
24
- flush(): Promise<void>;
25
- }
26
-
27
- export { }
@@ -1,27 +0,0 @@
1
- import type { ClientConfig } from '@google-cloud/pubsub';
2
- import type { Event as Event_2 } from '@mastra/core/events';
3
- import type { Message } from '@google-cloud/pubsub';
4
- import { Options } from 'tsup';
5
- import { PubSub } from '@mastra/core/events';
6
- import type { Subscription } from '@google-cloud/pubsub';
7
-
8
- export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
9
-
10
- export declare class GoogleCloudPubSub extends PubSub {
11
- private instanceId;
12
- private pubsub;
13
- private ackBuffer;
14
- private activeSubscriptions;
15
- private activeCbs;
16
- constructor(config: ClientConfig);
17
- getSubscriptionName(topic: string): string;
18
- ackMessage(topic: string, message: Message): Promise<void>;
19
- init(topicName: string): Promise<Subscription | undefined>;
20
- destroy(topicName: string): Promise<void>;
21
- publish(topicName: string, event: Omit<Event_2, 'id' | 'createdAt'>): Promise<void>;
22
- subscribe(topic: string, cb: (event: Event_2, ack?: () => Promise<void>) => void): Promise<void>;
23
- unsubscribe(topic: string, cb: (event: Event_2, ack?: () => Promise<void>) => void): Promise<void>;
24
- flush(): Promise<void>;
25
- }
26
-
27
- export { }
package/dist/index.d.cts DELETED
@@ -1 +0,0 @@
1
- export { GoogleCloudPubSub } from './_tsup-dts-rollup.cjs';
package/eslint.config.js DELETED
@@ -1,6 +0,0 @@
1
- import { createConfig } from '@internal/lint/eslint';
2
-
3
- const config = await createConfig();
4
-
5
- /** @type {import("eslint").Linter.Config[]} */
6
- export default [...config.map(conf => ({ ...conf, ignores: [...(conf.ignores || []), '**/vitest.perf.config.ts'] }))];