@specific.dev/spectest 0.95.0 → 0.96.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/README.md CHANGED
@@ -17,11 +17,14 @@ and run `spectest docs /installation` for project setup and authentication.
17
17
 
18
18
  ## Google Cloud Pub/Sub
19
19
 
20
+ Google Cloud components are available from `@specific.dev/spectest/components/gcp`.
21
+ The existing Pub/Sub exports from `/components` remain supported.
22
+
20
23
  `pubsub()` runs Google's local emulator and creates topics/subscriptions before
21
24
  dependent services start:
22
25
 
23
26
  ```ts
24
- import { pubsub } from "@specific.dev/spectest/components";
27
+ import { pubsub } from "@specific.dev/spectest/components/gcp";
25
28
 
26
29
  const services = {
27
30
  messages: pubsub({
@@ -0,0 +1,2 @@
1
+ /** Google Cloud components for local Spectest environments. */
2
+ export { pubsub, pubsubClient, type PubSubOptions, type PubSubClient, type PubSubHelpers, type PubSubSubscriptionOptions, type PubSubMessage, type PubSubReceivedMessage, } from "./pubsub.js";
@@ -0,0 +1,2 @@
1
+ /** Google Cloud components for local Spectest environments. */
2
+ export { pubsub, pubsubClient, } from "./pubsub.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@specific.dev/spectest",
3
- "version": "0.95.0",
3
+ "version": "0.96.0",
4
4
  "description": "Spectest SDK for defining test environments in TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -16,6 +16,11 @@
16
16
  "bun": "./src/components/index.ts",
17
17
  "default": "./dist/components/index.js"
18
18
  },
19
+ "./components/gcp": {
20
+ "types": "./dist/components/gcp.d.ts",
21
+ "bun": "./src/components/gcp.ts",
22
+ "default": "./dist/components/gcp.js"
23
+ },
19
24
  "./coverage": {
20
25
  "types": "./dist/coverage.d.ts",
21
26
  "bun": "./src/coverage.ts",
@@ -0,0 +1,11 @@
1
+ /** Google Cloud components for local Spectest environments. */
2
+ export {
3
+ pubsub,
4
+ pubsubClient,
5
+ type PubSubOptions,
6
+ type PubSubClient,
7
+ type PubSubHelpers,
8
+ type PubSubSubscriptionOptions,
9
+ type PubSubMessage,
10
+ type PubSubReceivedMessage,
11
+ } from "./pubsub.js";