@distilled.cloud/gcp 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/README.md +6 -1
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -12,11 +12,16 @@ npm install @distilled.cloud/gcp effect
12
12
 
13
13
  ```typescript
14
14
  import { Effect, Layer } from "effect";
15
+ import * as Stream from "effect/Stream";
15
16
  import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
16
17
  import * as Storage from "@distilled.cloud/gcp/storage-v1";
17
18
  import { CredentialsFromEnv } from "@distilled.cloud/gcp";
18
19
 
19
- const program = Storage.listBuckets({ project: "my-project" });
20
+ const program = Effect.gen(function* () {
21
+ const buckets = yield* Storage.listBuckets
22
+ .items({ project: "my-project" })
23
+ .pipe(Stream.take(10), Stream.runCollect);
24
+ });
20
25
 
21
26
  const GCPLive = Layer.mergeAll(FetchHttpClient.layer, CredentialsFromEnv);
22
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distilled.cloud/gcp",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/alchemy-run/distilled",
@@ -53,11 +53,11 @@
53
53
  "test": "bunx vitest run test",
54
54
  "publish:npm": "bun run build && bun publish --access public",
55
55
  "generate": "bun run scripts/generate.ts && oxlint --fix src && oxfmt --write src && oxfmt --write src",
56
- "specs:fetch": "git submodule update --force --init --recursive specs/distilled-spec-gcp && git -C specs/distilled-spec-gcp checkout -- .",
56
+ "specs:fetch": "git submodule update --force --init --recursive --depth=1 specs/distilled-spec-gcp && git -C specs/distilled-spec-gcp checkout -- .",
57
57
  "specs:update": "git -C specs/distilled-spec-gcp fetch && git -C specs/distilled-spec-gcp checkout main && git -C specs/distilled-spec-gcp pull"
58
58
  },
59
59
  "dependencies": {
60
- "@distilled.cloud/core": "0.5.0",
60
+ "@distilled.cloud/core": "0.5.1",
61
61
  "effect": "4.0.0-beta.30"
62
62
  },
63
63
  "devDependencies": {