@distilled.cloud/fly-io 1.0.0-rc.2 → 1.0.0-rc.4

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/lib/errors.js CHANGED
@@ -14,14 +14,14 @@ import * as Category from "@distilled.cloud/core/category";
14
14
  * Unknown Fly.io error — returned when a failure matches no status-mapped
15
15
  * error class. Carries the raw body for later cataloging.
16
16
  */
17
- export class UnknownFlyIoError extends Schema.TaggedErrorClass()("UnknownFlyIoError", {
17
+ export class UnknownFlyIoError extends Schema.TaggedError()("UnknownFlyIoError", {
18
18
  code: Schema.optional(Schema.String),
19
19
  message: Schema.optional(Schema.String),
20
20
  body: Schema.Unknown,
21
21
  }).pipe(Category.withServerError) {
22
22
  }
23
23
  /** Schema parse error wrapper. */
24
- export class FlyIoParseError extends Schema.TaggedErrorClass()("FlyIoParseError", {
24
+ export class FlyIoParseError extends Schema.TaggedError()("FlyIoParseError", {
25
25
  body: Schema.Unknown,
26
26
  cause: Schema.Unknown,
27
27
  }).pipe(Category.withParseError) {
package/lib/errors.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,8BAA8B,CAAC;AAGtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAE3D;;;GAGG;AACH,MAAM,OAAO,iBAAkB,SAAQ,MAAM,CAAC,gBAAgB,EAAqB,CACjF,mBAAmB,EACnB;IACE,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,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B;IACE,IAAI,EAAE,MAAM,CAAC,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC,OAAO;CACtB,CACF,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;CAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distilled.cloud/fly-io",
3
- "version": "1.0.0-rc.2",
3
+ "version": "1.0.0-rc.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/alchemy-run/distilled",
@@ -73,12 +73,14 @@
73
73
  "specs:update": "git -C specs/distilled-spec-fly-io fetch && git -C specs/distilled-spec-fly-io checkout main && git -C specs/distilled-spec-fly-io pull"
74
74
  },
75
75
  "dependencies": {
76
- "@distilled.cloud/core": "1.0.0-rc.2",
77
- "@effect/platform-bun": ">=4.0.0-beta.102 || >=4.0.0",
78
- "effect": ">=4.0.0-beta.102 || >=4.0.0"
76
+ "@distilled.cloud/core": "1.0.0-rc.4"
79
77
  },
80
78
  "devDependencies": {
81
79
  "@types/bun": "latest",
82
- "@types/node": "latest"
80
+ "@types/node": "latest",
81
+ "@effect/platform-bun": ">=4.0.0-beta.104 || >=4.0.0"
82
+ },
83
+ "peerDependencies": {
84
+ "effect": ">=4.0.0-beta.104 || >=4.0.0"
83
85
  }
84
86
  }
package/src/errors.ts CHANGED
@@ -34,7 +34,7 @@ import * as Category from "@distilled.cloud/core/category";
34
34
  * Unknown Fly.io error — returned when a failure matches no status-mapped
35
35
  * error class. Carries the raw body for later cataloging.
36
36
  */
37
- export class UnknownFlyIoError extends Schema.TaggedErrorClass<UnknownFlyIoError>()(
37
+ export class UnknownFlyIoError extends Schema.TaggedError<UnknownFlyIoError>()(
38
38
  "UnknownFlyIoError",
39
39
  {
40
40
  code: Schema.optional(Schema.String),
@@ -44,7 +44,7 @@ export class UnknownFlyIoError extends Schema.TaggedErrorClass<UnknownFlyIoError
44
44
  ).pipe(Category.withServerError) {}
45
45
 
46
46
  /** Schema parse error wrapper. */
47
- export class FlyIoParseError extends Schema.TaggedErrorClass<FlyIoParseError>()(
47
+ export class FlyIoParseError extends Schema.TaggedError<FlyIoParseError>()(
48
48
  "FlyIoParseError",
49
49
  {
50
50
  body: Schema.Unknown,